/* ────────────────────────────────────────────────────────────
   AI MECA — 인증 화면 (signup / login / reset) 라이트 테마
   CLAUDE.md 색상 표준 준수 (버튼 border+text only, transparent bg)
   이모지 금지 (SVG inline만)
   ──────────────────────────────────────────────────────────── */

/* ── 카드 중앙 배치 (signup/login/reset 공통) ──────────── */
.vs-auth-shell {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  padding-top: 108px;
}

.vs-auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 34px 30px 28px;
  box-shadow: 0 4px 20px rgba(28, 42, 42, 0.05);
}

.vs-auth-title {
  font-size: 22px;
  font-weight: 800;
  color: #1c2a2a;
  margin: 0 0 6px;
  text-align: center;
  letter-spacing: -0.4px;
}

.vs-auth-subtitle {
  font-size: 13px;
  color: #666;
  margin: 0 0 22px;
  text-align: center;
  line-height: 1.55;
}

/* ── Step indicator ────────────────────────────── */
.vs-step-indicator {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
  list-style: none;
  padding: 0;
}
.vs-step-indicator li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eef0f2;
  border: 1px solid #e5e7eb;
  transition: background 0.2s, border-color 0.2s;
}
.vs-step-indicator li.done {
  background: #4a7f4f;
  border-color: #4a7f4f;
}
.vs-step-indicator li.active {
  background: #1c2a2a;
  border-color: #1c2a2a;
  box-shadow: 0 0 0 3px rgba(28, 42, 42, 0.18);
}

/* ── Step body 전환 ─────────────────────────────── */
.vs-step {
  display: none;
}
.vs-step.active {
  display: block;
}

/* ── Form fields ────────────────────────────────── */
.vs-field {
  margin-bottom: 16px;
}
.vs-field label {
  display: block;
  font-size: 12.5px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 600;
}
.vs-field input {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #1c2a2a;
  font-family: inherit;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.vs-field input:focus {
  border-color: #1c2a2a;
  box-shadow: 0 0 0 3px rgba(28, 42, 42, 0.12);
}
.vs-field input:disabled {
  background: #fafbfc;
  color: #9098a1;
  cursor: not-allowed;
}
.vs-field input::placeholder {
  color: #9098a1;
}

/* OTP 6자리 입력 */
.vs-field input.vs-otp {
  letter-spacing: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vs-field-hint {
  font-size: 11.5px;
  color: #666;
  margin: 5px 2px 0;
  line-height: 1.5;
}

.vs-field-error {
  font-size: 11.5px;
  color: #8f4a4a;
  margin: 5px 2px 0;
  min-height: 14px;
  line-height: 1.5;
}

/* ── Buttons (border+text only, transparent bg) ── */
.vs-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #1c2a2a;
  color: #1c2a2a;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  margin-top: 8px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.vs-btn:hover:not(:disabled) {
  color: #fff;
  background: #1c2a2a;
  border-color: #1c2a2a;
}
.vs-btn:focus-visible {
  outline: 2px solid #1c2a2a;
  outline-offset: 2px;
}
.vs-btn:disabled {
  color: #9098a1;
  border-color: #e5e7eb;
  cursor: not-allowed;
}

.vs-btn-secondary {
  border-color: #cfd3d8;
  color: #666;
}
.vs-btn-secondary:hover:not(:disabled) {
  color: #1c2a2a;
  border-color: #1c2a2a;
  background: transparent;
}

.vs-btn-inline {
  width: auto;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 0;
}

/* Row layout: [input + inline button] */
.vs-field-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.vs-field-row input {
  flex: 1;
}

/* ── Alert / global error ───────────────────────── */
.vs-alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 14px;
  line-height: 1.5;
  min-height: 0;
  display: none;
}
.vs-alert.show { display: block; }
.vs-alert.error {
  border: 1px solid #8f4a4a;
  color: #8f4a4a;
  background: #fdf5f5;
}
.vs-alert.success {
  border: 1px solid #4a7f4f;
  color: #4a7f4f;
  background: #f5faf5;
}

/* ── Footer link ────────────────────────────────── */
.vs-auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12.5px;
  color: #666;
}
.vs-auth-footer a {
  color: #1c2a2a;
  text-decoration: none;
  margin-left: 4px;
  font-weight: 600;
}
.vs-auth-footer a:hover {
  color: #0f1c1c;
  text-decoration: underline;
}

/* success 아이콘 */
.vs-success-icon {
  color: #4a7f4f;
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}

/* ── vs-* legacy 스타일 (channel / favorites / settings 안 리팩터 화면용) ── */
.vs-main {
  padding-top: 88px;
  min-height: calc(100dvh - 260px);
  max-width: 1232px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.vs-intro {
  padding: 40px 0 20px;
  text-align: center;
}
.vs-title {
  font-size: 28px;
  font-weight: 800;
  color: #1c2a2a;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}
.vs-subtitle {
  font-size: 14px;
  color: #666;
}
.vs-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #1c2a2a;
  margin: 24px 0 12px;
}

/* CTA card (미로그인 유도) */
.vs-signup-cta {
  max-width: 640px;
  margin: 30px auto;
  background: linear-gradient(180deg, #fffef8 0%, #fff 100%);
  border: 1px solid #e5e7eb;
  border-left: 3px solid #FEDF68;
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
}
.vs-signup-cta h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1c2a2a;
  margin-bottom: 8px;
}
.vs-cta-sub {
  font-size: 13.5px;
  color: #666;
  margin-bottom: 16px;
}
.vs-cta-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.vs-cta-benefits li {
  padding: 6px 0 6px 22px;
  font-size: 13px;
  color: #333;
  position: relative;
}
.vs-cta-benefits li:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1c2a2a;
}
.vs-cta-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.vs-cta-actions .vs-btn { width: auto; padding: 10px 22px; }

/* Skeleton (light) */
.vs-skeleton-list {
  list-style: none; padding: 0; margin: 0;
}
.vs-skeleton-list li {
  height: 44px;
  background: linear-gradient(90deg, #f0f2f4 0%, #f7f8f9 50%, #f0f2f4 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  margin: 8px 4px;
  animation: vs-shimmer 1.4s linear infinite;
}
@keyframes vs-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Channel hero */
.vs-channel-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #eef0f2;
}
.vs-channel-thumb {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #f7f8f9;
  object-fit: cover;
  flex-shrink: 0;
}
.vs-channel-hero-body { flex: 1; min-width: 0; }
.vs-channel-hero-body h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1c2a2a;
  margin-bottom: 8px;
}
.vs-channel-stats {
  display: flex;
  gap: 20px;
  color: #666;
  font-size: 13.5px;
  flex-wrap: wrap;
}
.vs-channel-stats span { display: inline-flex; gap: 4px; align-items: baseline; }
.vs-channel-stats strong {
  color: #1c2a2a;
  font-weight: 700;
  font-size: 15px;
}
.vs-channel-badges {
  display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap;
}

.vs-favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid #1c2a2a;
  color: #1c2a2a;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
}
.vs-favorite-btn:hover:not(:disabled) {
  color: #fff;
  background: #1c2a2a;
}
.vs-favorite-btn.is-favorited {
  border-color: #FEDF68;
  color: #8c6a00;
}
.vs-favorite-btn:disabled {
  border-color: #e5e7eb;
  color: #9098a1;
  cursor: default;
}

/* Chart & report */
.vs-chart-container {
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  min-height: 260px;
  margin-bottom: 20px;
}
.vs-chart-fallback {
  padding: 40px 20px;
  text-align: center;
  color: #666;
  font-size: 13px;
}

/* Insights */
.vs-insights-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
}
.vs-insights-controls select {
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  color: #1c2a2a;
  background: #fff;
}
.vs-insights-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .vs-insights-grid { grid-template-columns: 1fr; }
}

/* Country tabs (legacy pages) */
.vs-country-tabs {
  display: inline-flex;
  gap: 4px;
  background: #f7f8f9;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto;
}
.vs-tab {
  padding: 6px 14px;
  background: transparent;
  border: 0;
  color: #666;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.vs-tab.active {
  color: #1c2a2a;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 42, 42, 0.06);
}

/* Settings */
.vs-settings-card {
  max-width: 680px;
  margin: 24px auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 28px;
}
.vs-settings-section {
  padding: 16px 0;
  border-bottom: 1px solid #eef0f2;
}
.vs-settings-section:last-child { border-bottom: 0; }
.vs-settings-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1c2a2a;
  margin-bottom: 10px;
}
.vs-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.vs-settings-key {
  font-size: 13.5px;
  color: #333;
}
.vs-settings-val {
  font-size: 13.5px;
  color: #1c2a2a;
  font-weight: 600;
}
.vs-radio-group { display: flex; gap: 12px; }
.vs-radio-group label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #333; }
.vs-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.vs-toggle input { opacity: 0; width: 0; height: 0; }
.vs-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e5e7eb;
  border-radius: 22px;
  transition: 0.15s;
}
.vs-toggle-slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.vs-toggle input:checked + .vs-toggle-slider { background: #1c2a2a; }
.vs-toggle input:checked + .vs-toggle-slider:before { transform: translateX(18px); }

/* Error / empty legacy */
.vs-error {
  padding: 40px 20px;
  text-align: center;
  color: #8f4a4a;
}
.vs-error-msg { font-size: 14px; margin-bottom: 12px; }
.vs-btn-retry {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid #1c2a2a;
  color: #1c2a2a;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}
.vs-btn-retry:hover { color: #fff; background: #1c2a2a; }
.vs-empty { padding: 40px 20px; text-align: center; color: #666; font-size: 13px; }

/* Toast host (legacy pages) */
.vs-toast-host {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

/* ── 모바일 대응 ────────────────────────────────── */
@media (max-width: 480px) {
  .vs-auth-card {
    padding: 26px 22px;
  }
  .vs-auth-title { font-size: 19px; }
  .vs-channel-hero { flex-direction: column; text-align: center; }
}
