/* ============================================================
   Auth Pages CSS
   ============================================================ */

/* AUTH SHELL */
.auth-shell {
  display: grid;
  grid-template-columns: 540px 1fr;
  height: 100vh;
  overflow: hidden;
  background: var(--color-bg-app);
}
@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-shell__hero { display: none; }
}

.auth-shell__form {
  display: flex; flex-direction: column;
  padding: 32px 48px;
  overflow-y: auto;
  background: var(--color-bg-surface);
  border-right: 1px solid var(--color-border-subtle);
}
.auth-shell__brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-primary);
  margin-bottom: 40px;
}
.auth-shell__brand-mark {
  /* 약어 'CCAI' 가 들어가도록 폭만 글자에 맞춘다(높이는 유지). */
  min-width: 24px; height: 24px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--brand-accent-500) 100%);
  color: var(--color-text-inverse);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 700;
  white-space: nowrap;
}
/* CCAI 로고 이미지 마크 — 인증 셸의 텍스트 배지를 대체한다(투명 PNG, 배지 높이 24px). */
/*
   인증 화면(로그인·가입) 브랜드 로고.

   ★★ 앱 헤더를 32px 로 키운 것과 맞춘다(운영자 요청 2026-09-24). 인증 화면은 헤더가
     따로 없고 폼 위에 놓이므로 여유가 더 있다 — 30px 로 둔다.
   ★ `width: auto` 유지. 가로를 고정하면 워드마크가 찌그러진다.
   ★ 좁은 화면은 `mobile.css` 가 조건 안에서 24px 로 내린다.
*/
.auth-shell__brand-logo {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}
.auth-shell__brand-ver {
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 1px 5px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 3px;
  margin-left: var(--sp-1);
}
.auth-shell__form-inner {
  /* ★ flex: 1 로만 두면 이너의 높이가 "남는 공간"으로 압축되고, 내용(폼)은
     overflow-y: visible 인 채로 아래로 흘러 `.auth-shell__foot` 위에 겹친다.
     실측(360×800 · 390×844): 로그인/회원가입 버튼 중심이 foot 링크에 덮여
     누를 수 없었다(zz-mobile-occlusion 프로브). `flex-basis: auto` 로 내용
     높이를 보장하면 흘러넘치는 대신 스크롤 컨테이너(.auth-shell__form)가
     늘어나 스크롤된다 — CTA 와 foot 이 겹칠 수 없다. */
  flex: 1 0 auto;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  overflow-x: hidden;
}
.auth-shell__foot {
  padding-top: 32px;
  margin-top: auto;
  border-top: 1px solid var(--color-border-subtle);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.auth-foot-links {
  display: flex; gap: 12px;
  font-size: 11px;
  color: var(--color-text-tertiary);
}
.auth-foot-links a { color: var(--color-text-tertiary); }
.auth-foot-links a:hover { color: var(--color-text-primary); }
.auth-foot-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-top: 8px;
}

.auth-title-block { margin-bottom: 8px; }
.auth-title {
  /*
     ★★ 폼 제목도 **소개 페이지와 같은 serif** 다. 받은 디자인이 그렇게 했다
       ("Welcome back."). 오른쪽 표제는 serif 인데 왼쪽 제목만 sans 면 한 화면에서
       두 목소리가 난다.
     ★ 본문·입력칸은 그대로 sans 다 — 읽고 입력하는 곳에 장식 serif 를 쓰지 않는다.
  */
  font-family: var(--font-display, ui-serif, Georgia, serif);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.015em;
}
.auth-subtitle {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin: var(--sp-3) 0 0;
  line-height: 1.55;
}

.auth-form { display: flex; flex-direction: column; gap: 12px; }

.auth-row-between {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.auth-row-center {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  padding-top: 4px;
}

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--color-text-tertiary);
  font-size: 11px;
  text-align: center;
  padding: 4px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--color-border-subtle);
}
.auth-divider span { padding: 0 4px; font-family: var(--font-mono); }

/* Auth progress steps */
.auth-progress {
  display: flex; align-items: center;
  padding: 8px 0 24px;
  gap: 0;
}
.auth-progress__line {
  flex: 1;
  height: 2px;
  background: var(--color-border-default);
}
.auth-progress__line.is-done { background: var(--color-brand); }
.auth-progress__step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 60px;
}
.auth-progress__num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-default);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-tertiary);
}
.auth-progress__step.is-active .auth-progress__num {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-text-inverse);
}
.auth-progress__step.is-done .auth-progress__num {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-text-inverse);
}
.auth-progress__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-tertiary);
  letter-spacing: 0.02em;
}
.auth-progress__step.is-active .auth-progress__label,
.auth-progress__step.is-done .auth-progress__label {
  color: var(--color-text-primary);
}

/* Auth alert */
.auth-alert {
  display: flex; gap: 8px; align-items: flex-start;
  padding: var(--sp-5) 12px;
  border-radius: 6px;
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.auth-alert svg { flex-shrink: 0; margin-top: 1px; }
.auth-alert--info    { background: var(--color-brand-subtle); border: 1px solid var(--color-brand); color: var(--color-text-primary); }
.auth-alert--warning { background: oklch(80% 0.14 75 / 0.10); border: 1px solid var(--color-warning); color: var(--color-text-primary); }
.auth-alert--danger  { background: oklch(64% 0.20 25 / 0.10); border: 1px solid var(--color-danger); color: var(--color-danger); }
.auth-alert--success { background: oklch(78% 0.14 145 / 0.10); border: 1px solid var(--color-success); color: var(--color-success); }

/* Spinner */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  vertical-align: middle;
  margin-right: var(--sp-3);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Password strength meter */
.pw-strength { display: flex; flex-direction: column; gap: 4px; margin-top: -4px; }
.pw-strength__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.pw-strength__seg {
  height: 3px;
  background: var(--color-border-default);
  border-radius: 999px;
  transition: background var(--dur-fast);
}
.pw-strength__seg.is-fill.s1 { background: var(--color-danger); }
.pw-strength__seg.is-fill.s2 { background: var(--color-warning); }
.pw-strength__seg.is-fill.s3 { background: var(--brand-accent-500); }
.pw-strength__seg.is-fill.s4 { background: var(--color-success); }
.pw-strength__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-tertiary);
}

/* OTP input */
.otp-input {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  margin: 8px 0;
}
.otp-input__cell {
  height: 52px;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-input);
  border-radius: 6px;
  text-align: center;
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  outline: none;
  transition: border-color var(--dur-fast);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  display: block;
}
.otp-input__cell::-webkit-outer-spin-button,
.otp-input__cell::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.otp-input__cell:focus { border-color: var(--color-brand); box-shadow: 0 0 0 3px var(--color-brand-subtle); }

/* Verify icon */
.auth-verify-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-brand-subtle);
  color: var(--color-brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto;
  border: 1px solid var(--color-brand);
}

/*
   ★ (2026-10-15) KYC 전용 클래스 6개를 지웠다 — `KYCOnboardingPage` 가 삭제됐고
     그 클래스를 쓰는 곳이 jsx/js 에 0곳이다(실측). 남겨 두면 다음 사람이 "이 화면이
     있구나" 로 읽는다.
*/

/* AUTH HERO — right side */
.auth-shell__hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-app), oklch(20% 0.05 220));
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.auth-hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, oklch(56% 0.15 220 / 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, oklch(72% 0.15 285 / 0.14) 0%, transparent 40%),
    linear-gradient(180deg, transparent, oklch(14% 0.012 240 / 0.5));
  pointer-events: none;
}
.auth-hero-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
}
.auth-hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: 4px var(--sp-5);
  background: var(--color-ai-bg);
  border: 1px solid var(--color-ai);
  color: var(--color-ai);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.auth-hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.auth-hero-body {
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 420px;
}
.auth-hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.auth-hero-feat {
  display: flex; align-items: flex-start; gap: var(--sp-5);
  padding: 12px;
  background: oklch(20% 0.014 240 / 0.5);
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  backdrop-filter: blur(6px);
}
.auth-hero-feat__icon {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: var(--color-brand-subtle);
  color: var(--color-brand);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-hero-feat__title { font-size: 12px; font-weight: 600; margin-bottom: var(--sp-1); }
.auth-hero-feat__desc { font-size: 11px; color: var(--color-text-tertiary); line-height: 1.4; }
.auth-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border-subtle);
}
.auth-hero-stats > div {
  display: flex; flex-direction: column; gap: var(--sp-1);
}
.auth-hero-stats strong {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.auth-hero-stats span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   LANDING PAGE (public marketing)
   ============================================================ */
.landing-shell {
  min-height: 100vh;
  background: var(--color-bg-app);
  color: var(--color-text-primary);
  overflow-x: hidden;
}
body:has(.landing-shell) { overflow: auto !important; }

.landing-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-bg-surface);
  position: sticky;
  top: 22px;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.landing-nav {
  display: inline-flex;
  gap: 24px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.landing-nav a { color: var(--color-text-secondary); }
.landing-nav a:hover { color: var(--color-text-primary); }

.landing-hero {
  padding: 80px 48px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.landing-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, oklch(56% 0.15 220 / 0.18) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, oklch(72% 0.15 285 / 0.12) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}
.landing-hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: 4px var(--sp-5);
  background: var(--color-ai-bg);
  border: 1px solid var(--color-ai);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-ai);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
/* ★ 히어로 강조 구절. 랜딩 테마가 색을 바꿀 수 있게 클래스로 둔다
     (전에는 인라인 style 이라 테마가 손댈 수 없었다). */
.landing-hero__title .is-accent { color: var(--color-brand); }

.landing-hero__title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.landing-hero__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto;
}
.landing-hero-stats {
  display: flex; justify-content: center; gap: 40px;
  padding: 40px 0;
  margin-top: 40px;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}
.landing-hero-stats > div { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.landing-hero-stats strong { font-family: var(--font-num); font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.landing-hero-stats span { font-family: var(--font-mono); font-size: 10px; color: var(--color-text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; }

.landing-section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.landing-section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
  text-align: center;
}
.landing-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.landing-feat {
  padding: 24px;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.landing-feat:hover { border-color: var(--color-brand); transform: translateY(-3px); }
.landing-feat__icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--color-brand-subtle);
  color: var(--color-brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.landing-feat__title { font-size: 15px; font-weight: 600; margin-bottom: var(--sp-3); }
.landing-feat__body { font-size: var(--fs-md); color: var(--color-text-secondary); line-height: 1.65; }

.landing-pricing {
  /*
     ★★ 요금제가 5개다(무료 + 유료 4개). 3열로 고정하면 마지막 줄에 두 개만 남아
       가운데가 비어 보인다. 폭에 맞춰 자동으로 줄바꿈한다.
     ★ 최소 폭을 두어 카드가 너무 좁아지지 않게 한다 — 기능 목록이 한 줄에 한 항목씩
       읽혀야 비교가 된다.
  */
  display: grid;
  /*
     ★★ 요금제가 5개다. auto-fit 에 맡기면 실제 폭(측정: 1104px)에서 4개만 들어가
       마지막 카드가 혼자 다음 줄로 내려간다 — 비교표가 두 줄로 끊기면 읽기 어렵다.

     ★ 넓은 화면에서는 5열을 명시한다. 좁아지면 아래 media query 가 3 → 2 → 1 로 줄인다.
       auto-fit 은 "몇 개가 한 줄에 와야 하는가" 를 표현할 수 없다.
  */
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1240px; margin: 0 auto;
}
/* ★ 카드가 좁아지면 기능 목록이 한 항목당 세 줄로 접혀 비교가 안 된다. 그 전에 줄인다. */
@media (max-width: 1180px) {
  .landing-pricing { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .landing-pricing { grid-template-columns: repeat(2, 1fr); }
}
.landing-price-card {
  /* ★ 5열이 되면서 카드가 좁아졌다. 여백을 줄여 글자가 접히는 것을 늦춘다. */
  padding: 22px 16px;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
/*
   요금제 카드에 새로 붙는 것들.

   ★ 월 단위 표시, 포함량 한 줄, 제외 항목의 흐린 표시, 그리고 "정기결제가 아직
     붙지 않았다" 는 안내 문장.
*/
.landing-price-card__per {
  font-size: 13px; color: var(--color-text-tertiary); margin-left: 3px;
}
.landing-price-card__meta {
  font-size: var(--fs-sm); color: var(--color-text-secondary); line-height: 1.6;
  padding-bottom: 4px; border-bottom: 1px solid var(--color-border-subtle);
}
/* ★ 포함되지 않은 항목은 흐리게 — 목록에서 빼면 무엇이 없는지 알 수 없다. */
.landing-price-card li.is-excluded {
  color: var(--color-text-tertiary); opacity: 0.7;
}
.landing-price-note {
  max-width: 760px; margin: 18px auto 0;
  padding: 12px 16px;
  background: var(--color-bg-surface);
  border: 1px dashed var(--color-border-subtle);
  border-radius: 6px;
  font-size: 12px; line-height: 1.7; color: var(--color-text-secondary);
  text-align: center;
}

.landing-price-card.is-highlight {
  border-color: var(--color-brand);
  background: linear-gradient(180deg, var(--color-brand-subtle), var(--color-bg-panel) 20%);
  /* ★ 5개가 나란히 있으면 확대가 옆 카드를 가린다. 테두리·배경으로만 강조한다. */
  transform: none;
}
.landing-price-card__badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 3px var(--sp-5);
  background: var(--color-brand);
  color: var(--color-text-inverse);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.landing-price-card__name { font-size: 16px; font-weight: 600; }
.landing-price-card__desc { font-size: 11px; color: var(--color-text-tertiary); }
.landing-price-card__price { display: flex; align-items: baseline; gap: 4px; margin: 8px 0; }
.landing-price-card__price strong { font-family: var(--font-num); font-size: 40px; font-weight: 700; letter-spacing: -0.01em; }
.landing-price-card__price span { font-size: 12px; color: var(--color-text-tertiary); }
.landing-price-card ul { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: var(--sp-3); font-size: 12px; color: var(--color-text-secondary); }

.landing-exchanges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.landing-ex {
  padding: 20px;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
.landing-ex__logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
}
.landing-ex__name { font-size: 13px; font-weight: 600; }
.landing-ex__market { font-size: 10px; color: var(--color-text-tertiary); font-family: var(--font-mono); }

.landing-foot {
  padding: 40px 48px;
  border-top: 1px solid var(--color-border-subtle);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-tertiary);
}

/* WIZARD progress (in modal, e.g. exchange connect) */
.wizard-progress {
  display: flex; align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-bg-surface);
  gap: 4px;
}
.wizard-progress__step {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 4px var(--sp-5);
  border-radius: 999px;
  font-size: 11px;
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
  border: 1px solid transparent;
  flex: 1;
  justify-content: center;
}
.wizard-progress__step.is-active {
  color: var(--color-brand);
  background: var(--color-brand-subtle);
  border-color: var(--color-brand);
  font-weight: 500;
}
.wizard-progress__step.is-done {
  color: var(--color-success);
}
.wizard-progress__num {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.wizard-progress__step.is-active .wizard-progress__num {
  background: var(--color-brand);
  color: var(--color-text-inverse);
}
.wizard-progress__step.is-done .wizard-progress__num {
  background: var(--color-success);
  color: var(--color-bg-app);
}

/* Wizard referral card (거래소 가입 유도) */
.wizard-referral-card {
  display: flex; align-items: center; gap: 12px;
  padding: var(--sp-7) 16px;
  background: linear-gradient(135deg, var(--color-brand-subtle), transparent 60%);
  border: 1px solid var(--color-brand);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur-fast);
}
.wizard-referral-card:hover { transform: translateY(-1px); }
.wizard-referral-card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--color-brand);
  color: var(--color-text-inverse);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wizard-referral-card:hover .wizard-referral-card__icon {
  filter: brightness(1.1);
}

/* Small text utility */
.t-danger { color: var(--color-danger); }
.t-brand  { color: var(--color-brand); }

/* ============================================================
   ★ 모바일 히어로 숨김 — 소스 순서 문제로 앞선 규칙이 덮였던 것을 고친다.
     1100px 이하에서는 좌측 폼만 보인다(히어로는 우측 장식 패널).
     이 블록이 파일에서 가장 뒤에 있어야 기본 display:flex 를 이긴다.
   ============================================================ */
@media (max-width: 1100px) {
  .auth-shell__hero { display: none; }
}

/* (2026-10-14) 보호 화면 → 로그인 안내 띠. 휴대폰에서는 위쪽 로고·제목을 덮어서 아래로 내린다. 안내만 하므로 클릭은 통과시킨다(app.jsx). */
@media (max-width: 900px) {
  .auth-session-banner { top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important; }
}


/* ============================================================
   (2026-10-15) 인증 화면 — 인라인 style 을 클래스로 옮긴 것 (2단계).

   ★★ 왜 옮겼나
     승인 시안을 게이트 레이어(auth-design-v1.css)로 이식하는데, CSS 는 **인라인 style 을
     덮을 수 없다**(`!important` 없이는). 이 저장소는 시안의 `!important` 이식을 금지한다
     (admin 레이어 주석). 그래서 인라인으로 그려진 부분은 레이어가 닿지 못했다 —
     실측: 인증 화면 전체에 인라인 87곳, 그중 EmailVerifyPage 는 인라인 10 vs 클래스 9 로
     인라인이 더 많았다.

   ★★★ 이 단계의 규칙 — **값은 하나도 바꾸지 않는다.**
     DOM 모양 그대로, 선언 그대로, 클래스 이름만 생긴다. React 의 숫자 → px 규칙을 그대로
     옮겼다(단위 없는 속성 flex·font-weight·line-height·grid-column 등은 숫자 유지).
     증명: 변경 전후로 `.auth-shell` 아래 모든 요소의 계산된 스타일 34개 속성을 떠서 비교했다.

   ★ `auth-u-*` 는 여러 곳에서 똑같이 쓰이던 선언이다(예: `width:'100%'` 9곳, `flex:1` 3곳).
     의미 이름을 붙일 수 없는 것들이라 유틸로 둔다 — 새 디자인 결정이 아니라 **같은 값의 이동**이다.
   ★ 조건부 색(가입 추천코드 상태·필수 동의 표시) 2곳은 값이 상태에 따라 달라지므로
     이 단계에서 다루지 않는다. 3단계에서 상태 클래스(`is-*`)로 분리한다.
   ============================================================ */

/* ---- 반복 선언(값 이동만) ---- */
.auth-u-center { text-align: center; }
.auth-u-flex1 { flex: 1; }
.auth-u-fs12 { font-size: 12px; }
.auth-u-full { width: 100%; }
.auth-u-full-mt12 { width: 100%; margin-top: 12px; }
.auth-u-full-mt20 { width: 100%; margin-top: 20px; }
.auth-u-link { color: var(--color-brand); }
.auth-u-link-inline { color: var(--color-brand); margin-left: 4px; }
.auth-u-mt20 { margin-top: 20px; }
.auth-u-mt4 { margin-top: 4px; }
.auth-u-mt8 { margin-top: 8px; }
.auth-u-ok { color: var(--color-success); }

/* ---- 화면별 ---- */
.auth-404 { align-items: center; text-align: center; }
.auth-404__actions { display: flex; gap: 8px; margin-top: 16px; }
.auth-404__body { font-size: 13px; color: var(--color-text-secondary); line-height: 1.7; }
.auth-404__code {
  font-size: 64px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-brand-subtle);
}
.auth-404__home { font-size: 12px; color: var(--color-brand); margin-top: 20px; }
.auth-consent { border: 1px solid var(--color-border-default); border-radius: 8px; overflow: hidden; }
.auth-consent__all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--color-border-default);
  background: var(--color-bg-surface);
  cursor: pointer;
}
.auth-consent__all-text { font-size: 13px; font-weight: 600; }
.auth-consent__body {
  padding: 0 12px 10px 34px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.auth-consent__item { border-bottom: 1px solid var(--color-border-default); }
.auth-consent__label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  cursor: pointer;
  margin: 0px;
}
.auth-consent__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
}
.auth-consent__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 11px;
  color: var(--color-text-tertiary);
}
.auth-login__forgot { font-size: 12px; color: var(--color-brand); }
.auth-login__oauth-row { display: flex; gap: 8px; }
.auth-login__otp-hint { font-size: 12px; color: var(--color-text-tertiary); text-align: center; }
.auth-pwreset__done {
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
  color: var(--color-success);
}
.auth-pwreset__hint { font-size: 11px; color: var(--color-text-tertiary); margin-top: 4px; }
.auth-pwreset__lead {
  text-align: center;
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.auth-pwreset__sent-body { font-size: 12px; color: var(--color-text-secondary); margin-top: 4px; }
.auth-pwreset__sent-meta {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-top: 20px;
  font-family: var(--font-mono);
}
.auth-pwreset__sent-title { font-size: 14px; font-weight: 500; margin-top: 12px; }
.auth-signup__consent-warn {
  padding: 9px 11px;
  border-radius: 6px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  background: color-mix(in srgb, var(--color-warning, #d97706) 12%, transparent);
  border: 1px solid var(--color-warning, #d97706);
}
.auth-signup__country-note { font-size: 11px; color: var(--color-text-tertiary); margin-top: -6px; }
.auth-signup__google { width: 100%; margin-bottom: 10px; }
.auth-verify__lead {
  text-align: center;
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}
.auth-verify__ok {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-success);
  margin-bottom: 8px;
}
.auth-verify__status { text-align: center; font-size: 13px; color: var(--color-text-secondary); }

/* ============================================================
   (2026-10-15) 로그인 핸드오프 로딩 — 시안 "LOADING modal" 블록 그대로 (3단계).

   ★ 출처: design-library/auth-design-reference.html (:153–166). 수치를 그 파일에서 읽었다.
   ★★ 시안의 자체 변수는 제품 토큰으로 바꿔 쓴다 — `.auth-shell` 이 종이 팔레트로
     덮고 있어 같은 역할의 토큰이 이미 있다(#130 에서 정리한 대응표):
         시안 --line → var(--color-border-subtle) · --mag → var(--brand-primary-500)
     다만 **무대 안쪽은 어둡다**(고정 그라데이션). 그 위의 글자색은 테마와 무관하게
     정해져야 하므로 시안 값을 그대로 쓴다 — 토큰을 쓰면 라이트 테마에서 흰 바탕에
     흰 글자가 된다(#120 의 로고 사고와 같은 종류).
   ★★★ `prefers-reduced-motion` 에서 맥박·회전을 끈다(시안 :166). 빠뜨리면 안 되는
     접근성 요건이고, 이 화면은 애니메이션이 둘 다 돈다.
   ============================================================ */
.loadstage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  min-height: 480px;
  background: linear-gradient(160deg, #141419, #1E1E26);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}
.loadstage .fake {
  position: absolute;
  inset: 0;
  opacity: .16;
  color: #9aa0ab;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 2.1;
  padding: 34px 40px;
  user-select: none;
  white-space: pre-wrap;
}
.loadmodal {
  position: relative;
  z-index: 2;
  width: min(420px, 86%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  padding: 30px 30px 26px;
  text-align: center;
}
.lm-mark {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 13px;
  background: var(--brand-primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lm-pulse 1.6s ease-in-out infinite;
}
@keyframes lm-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240, 15, 240, .35); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(240, 15, 240, 0); }
}
/* ★ 마크 안의 아이콘은 마젠타 면 위에 있다 — 흰색 고정이다(시안도 #fff). */
.lm-mark svg { width: 22px; height: 22px; color: #fff; }
.loadmodal h5 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  /* 흰 카드 위다 — 어두운 잉크 고정. */
  color: #101014;
}
.loadmodal .ph2 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #4A4A55;
  margin-top: 8px;
  min-height: 16px;
}
.lm-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(16, 16, 20, .09);
  margin: 18px 0 8px;
  overflow: hidden;
}
.lm-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-primary-500), #FF6BFF);
  transition: width .5s ease;
}
.lm-steps {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #8B8B96;
}
.lm-steps b { color: #101014; }

@media (prefers-reduced-motion: reduce) {
  .lm-mark, .spinner { animation: none; }
  .lm-bar i { transition: none; }
}

/* ---- (2026-10-15 3단계) 상태 클래스 — 삼항식 인라인 색을 걷어낸 자리 ---- */
/*
   ★ 2단계(인라인 → 클래스)에서 이 둘만 남겼다. 값이 상태에 따라 달라지므로
     정적 클래스 하나로는 표현할 수 없고, 상태 클래스가 필요했다.
   ★★ 색만으로 알리지 않는다 — 문구가 직접 말한다(추천코드는 유효/무효 문장,
     동의는 '(required)' / '(optional)'). 색은 보조 신호다.
*/
.auth-signup__ref-state { margin-top: 5px; font-size: var(--fs-sm); }
.auth-signup__ref-state.is-ok { color: var(--color-success); }
.auth-signup__ref-state.is-warn { color: var(--color-warning); }

.auth-consent__mark.is-required { color: var(--color-danger, #dc2626); font-weight: 600; }
.auth-consent__mark.is-optional { color: var(--color-text-tertiary); font-weight: 400; }
.auth-consent__bonus { color: var(--color-success, #16a34a); font-weight: 600; }
