/* ==========================================
   쇼핑쇼츠 스튜디오 — 화이트 베이스 + 핑크·보라 포인트
   큰 글씨 · 큰 버튼 · 한눈에 보이는 단계
   ========================================== */

:root {
  --accent: #e14d8f;
  --accent2: #7c5cf0;
  --grad: linear-gradient(120deg, #ef5da8 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(120deg, #fdf0f7 0%, #f4f1fe 100%);
  --bg: #faf8fc;
  --card: #ffffff;
  --text: #2b2140;
  --text-sub: #857b96;
  --line: #ece5f2;
  --line-strong: #ddd2ea;
  --ok: #14934c;
  --err: #d92f45;
  --shadow-sm: 0 1px 2px rgba(43, 33, 64, .05), 0 4px 14px rgba(43, 33, 64, .05);
  --shadow-md: 0 2px 6px rgba(43, 33, 64, .06), 0 12px 32px rgba(124, 92, 240, .1);
  --shadow-pop: 0 6px 18px rgba(225, 77, 143, .28);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html.auth-locked .stepper,
html.auth-locked .app-main { display: none; }

body {
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== 헤더 (중앙 히어로) ===== */
.app-header {
  position: relative;
  text-align: center;
  padding: 44px 20px 6px;
  background:
    radial-gradient(600px 220px at 30% 0%, rgba(239, 93, 168, .12), transparent 70%),
    radial-gradient(600px 220px at 70% 0%, rgba(139, 92, 246, .12), transparent 70%),
    linear-gradient(180deg, #fdf5fa 0%, var(--bg) 100%);
}
.logo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.logo-icon {
  font-size: 30px;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); border-radius: 20px;
  box-shadow: var(--shadow-pop);
}
.logo-text h1 {
  font-size: 30px; font-weight: 800; letter-spacing: -0.6px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.logo-text p { font-size: 15px; color: var(--text-sub); margin-top: 4px; }
.header-actions {
  position: absolute; top: 20px; right: 24px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}

.user-chip { display: inline-flex; align-items: center; gap: 8px; }
#user-email { font-size: 13.5px; font-weight: 600; color: var(--text-sub); }

/* ===== 스텝퍼 ===== */
.stepper {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 22px 16px 4px;
  flex-wrap: wrap;
}
.step-pill {
  display: flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 15.5px; font-weight: 700;
  font-family: inherit;
  color: var(--text-sub);
  cursor: pointer;
  transition: all .18s;
}
.step-pill .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--line); color: var(--text-sub);
  font-size: 14px; font-weight: 800;
}
.step-pill.active {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-pop);
}
.step-pill.active .step-num { background: rgba(255,255,255,.28); color: #fff; }
.step-pill.done { border-color: #f3c9de; color: var(--accent); background: #fff; }
.step-pill.done .step-num { background: #fbe3ef; color: var(--accent); }
.step-pill:disabled { opacity: .4; cursor: not-allowed; }
.step-arrow { color: var(--line-strong); font-size: 17px; font-weight: 800; }

/* ===== 메인/카드 ===== */
.app-main { max-width: 860px; margin: 0 auto; padding: 20px 20px 90px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 34px 38px;
}
.card-title { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 8px; }
.card-help { color: var(--text-sub); font-size: 15px; margin-bottom: 20px; }
.card-help b { color: var(--text); }

/* ===== 입력 ===== */
.big-textarea {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 16.5px; line-height: 1.85;
  font-family: inherit;
  resize: vertical;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.big-textarea:focus, .big-input:focus {
  outline: none; border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(124, 92, 240, .12);
}
.input-stats { text-align: right; color: var(--text-sub); font-size: 13.5px; margin-top: 8px; }

.big-input {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  margin: 6px 0 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field-label { display: block; font-weight: 700; font-size: 15px; margin-top: 14px; }

/* ===== 버튼 ===== */
.btn {
  border: none; cursor: pointer;
  font-family: inherit; font-weight: 700;
  border-radius: 999px;
  transition: transform .12s, box-shadow .12s, opacity .12s, background .12s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 8px 24px rgba(225, 77, 143, .38); }
.btn-xl { font-size: 19px; padding: 16px 42px; }
.btn-lg { font-size: 16px; padding: 13px 28px; }
.btn-sm { font-size: 13.5px; padding: 7px 15px; }
.btn-ghost {
  background: #fff; color: var(--accent2);
  border: 1.5px solid var(--line-strong);
  font-size: 14px; padding: 9px 16px;
}
.btn-ghost:hover:not(:disabled) { border-color: var(--accent2); }
.btn-key {
  background: var(--grad); color: #fff;
  font-size: 14px; padding: 10px 18px;
  box-shadow: var(--shadow-pop);
}
.step-actions {
  display: flex; gap: 12px; justify-content: center; align-items: center;
  margin-top: 26px; flex-wrap: wrap;
}

/* ===== 상태줄/토스트 ===== */
.status-line {
  margin-top: 16px; padding: 13px 18px;
  border-radius: 12px; font-size: 15px; font-weight: 600;
  background: var(--grad-soft); color: var(--accent2);
}
.status-line.ok { background: #eafaf0; color: var(--ok); }
.status-line.err { background: #fdf0f2; color: var(--err); }
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: #2b2140; color: #fff;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  z-index: 100;
}
.toast.err { background: var(--err); }

/* ===== 번역 블록 리스트 ===== */
.badge {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  border-radius: 999px; padding: 3px 11px;
}
.badge-tts { background: #fbe3ef; color: #c02670; }
.badge-sub { background: #e3f2fd; color: #0d64a8; }
.badge-paren { background: #fdf3d7; color: #96690a; }

.block-list { display: flex; flex-direction: column; gap: 12px; }
.block-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.block-card.type-korean { border-left: 4px solid var(--accent); }
.block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.block-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 25px; height: 25px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-size: 13px; font-weight: 800;
}
.block-jp {
  width: 100%;
  font-size: 18px; font-weight: 700; line-height: 1.75;
  border: 1.5px solid transparent; border-radius: 10px;
  padding: 5px 10px;
  font-family: inherit;
  background: transparent;
  resize: none; overflow: hidden;
  transition: border-color .15s, background .15s;
}
.block-jp:hover { background: #faf7fd; }
.block-jp:focus { outline: none; border-color: var(--accent2); background: #fff; }
.block-meta { color: var(--text-sub); font-size: 14px; padding: 2px 10px 0; }
.block-meta-pron { opacity: .72; font-size: 13px; }

.title-read-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--accent2);
  background: var(--grad-soft);
  border-radius: 999px; padding: 4px 12px;
  cursor: pointer;
}
.title-read-toggle input { accent-color: var(--accent2); width: 15px; height: 15px; }

.block-delete {
  margin-left: auto;
  border: none; background: transparent; cursor: pointer;
  font-size: 16px; opacity: .38; transition: opacity .12s;
  padding: 2px 6px;
}
.block-delete:hover { opacity: 1; }

.output-mode-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--grad-soft);
  border-radius: 13px; padding: 13px 18px; margin-bottom: 18px;
  font-size: 15px; font-weight: 700;
}
.output-mode-label { font-size: 12.5px; font-weight: 800; color: var(--accent2); }
.output-mode-option { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.output-mode-option input { accent-color: var(--accent2); width: 17px; height: 17px; }

/* ===== 필터 / 맨 위로 ===== */
.filter-bar {
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
  background: var(--grad-soft);
  border-radius: 14px; padding: 13px 18px; margin-bottom: 18px;
}
.filter-group { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-label { font-size: 12.5px; font-weight: 800; color: var(--accent2); margin-right: 2px; }
.chip {
  border: 1.5px solid var(--line-strong); background: #fff;
  border-radius: 999px; padding: 6px 15px;
  font-size: 14px; font-weight: 700; color: var(--text);
  cursor: pointer; font-family: inherit;
  transition: all .12s;
}
.chip:hover { border-color: var(--accent); }
.chip.on {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: var(--shadow-pop);
}
.voice-empty {
  grid-column: 1 / -1; text-align: center;
  color: var(--text-sub); font-size: 15px; padding: 30px 0;
}
#btn-scroll-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 20px;
  box-shadow: 0 10px 26px rgba(124, 92, 240, .38);
  transition: transform .12s;
}
#btn-scroll-top:hover { transform: translateY(-3px); }

/* ===== 목소리 그리드 ===== */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 13px;
  margin-bottom: 8px;
}
.voice-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 20px 16px 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: center;
  transition: all .15s;
}
.voice-card:hover { border-color: #f0c2da; transform: translateY(-2px); }
.voice-card.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff5fa 0%, #f8f5ff 100%);
  box-shadow: var(--shadow-md);
}
.voice-fav {
  position: absolute; top: 9px; right: 11px;
  border: none; background: transparent; cursor: pointer;
  font-size: 20px; color: #d9cde7; line-height: 1;
  transition: transform .12s, color .12s;
}
.voice-fav:hover { transform: scale(1.25); }
.voice-fav.on { color: #f5a623; }
.voice-tag {
  position: absolute; top: 11px; left: 11px;
  font-size: 11.5px; font-weight: 800;
  background: #fbe3ef; color: #c02670;
  border-radius: 999px; padding: 2px 8px;
}
.voice-name { font-size: 17px; font-weight: 800; margin-bottom: 2px; }
.voice-kr { font-size: 13.5px; color: var(--text-sub); font-weight: 600; margin-bottom: 10px; }
.voice-style-select {
  width: 100%; font-size: 14px; padding: 8px 10px;
  border: 1.5px solid var(--line-strong); border-radius: 10px;
  font-family: inherit; margin-bottom: 9px; background: #fff;
}
.voice-preview-btn {
  width: 100%;
  background: #fff; border: 1.5px solid var(--line-strong);
  color: var(--accent2);
  font-size: 14px; padding: 8px 0;
}
.voice-preview-btn:hover:not(:disabled) { border-color: var(--accent2); }

.speed-row {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 6px;
  font-size: 15.5px; font-weight: 700;
}
.speed-row label { min-width: 110px; }
.speed-row input[type="range"] { flex: 1; accent-color: var(--accent2); height: 26px; }
.speed-val { min-width: 56px; text-align: right; color: var(--accent2); }
.fps-select {
  flex: 1; max-width: 250px;
  font-size: 14.5px; padding: 9px 12px;
  border: 1.5px solid var(--line-strong); border-radius: 10px;
  font-family: inherit; background: #fff;
}

/* ===== 진행/결과 ===== */
.gen-progress { margin: 20px 0; }
.progress-bar {
  height: 14px; border-radius: 999px; background: var(--line); overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: var(--grad);
  border-radius: 999px;
  transition: width .3s;
}
.progress-text { margin-top: 12px; font-size: 16px; font-weight: 700; color: var(--accent2); text-align: center; }

.result-title-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--grad-soft);
  border-radius: 13px; padding: 13px 18px; margin-bottom: 16px;
}
.result-title-label { font-size: 12.5px; font-weight: 800; color: var(--accent2); white-space: nowrap; }
.result-title { font-size: 16px; font-weight: 700; flex: 1; }
.result-audio { width: 100%; margin: 6px 0 14px; }
.result-summary { color: var(--text-sub); font-size: 15px; text-align: center; margin-bottom: 20px; }

.download-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px;
}
.btn-download {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 18px;
  padding: 20px 10px;
  font-size: 27px;
}
.btn-download b { font-size: 16.5px; color: var(--text); }
.btn-download span { font-size: 13px; color: var(--text-sub); font-weight: 600; }
.btn-download:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

/* ===== 모달 ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(43, 33, 64, .5);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  z-index: 50; padding: 20px;
}
.modal {
  background: #fff; border-radius: 22px;
  max-width: 620px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px 0;
}
.modal-head h2 { font-size: 21px; font-weight: 800; }
.modal-close {
  border: none; background: var(--line); color: var(--text-sub);
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 16px; cursor: pointer;
}
.modal-close:hover { background: var(--line-strong); }
.modal-body { padding: 16px 28px 28px; }

.onboard-intro {
  background: var(--grad-soft);
  border-radius: 13px; padding: 15px 20px;
  font-size: 15.5px; margin-bottom: 20px;
}
.onboard-step { display: flex; gap: 15px; margin-bottom: 20px; }
.onboard-num {
  flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.onboard-text h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 3px; }
.onboard-text p { color: var(--text-sub); font-size: 14.5px; margin-bottom: 8px; }
.show-key-row { display: block; font-size: 14px; color: var(--text-sub); margin-bottom: 12px; }
.privacy-note {
  background: #eafaf0; color: #14713e;
  border-radius: 12px; padding: 12px 16px;
  font-size: 14px;
}

/* ===== 로그인 게이트 ===== */
.auth-gate {
  position: fixed; inset: 0; z-index: 45;
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  width: 100%; max-width: 420px;
  padding: 40px 36px;
  text-align: center;
}
.auth-logo {
  font-size: 26px;
  width: 60px; height: 60px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); border-radius: 18px;
  box-shadow: var(--shadow-pop);
}
.auth-title {
  font-size: 23px; font-weight: 800; margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.auth-pane-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.auth-sub { color: var(--text-sub); font-size: 15px; margin-bottom: 18px; word-break: keep-all; }
.auth-sub b { color: var(--text); }
.auth-card .big-input { margin: 5px 0; }
.auth-btn { width: 100%; margin-top: 8px; }
.otp-input {
  text-align: center; font-size: 26px; font-weight: 800;
  letter-spacing: 8px;
}

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-sub); font-size: 13.5px; font-weight: 600;
  margin: 18px 0 2px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line-strong);
}

.terms-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; color: var(--text-sub);
  margin: 4px 0 6px; cursor: pointer;
}
.terms-row input { accent-color: var(--accent2); width: 17px; height: 17px; flex: none; }
.terms-link {
  border: none; background: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: inherit;
  color: var(--accent2); font-weight: 700; text-decoration: underline;
}
.terms-body h3 { font-size: 15.5px; font-weight: 800; margin: 16px 0 4px; }
.terms-body h3:first-child { margin-top: 0; }
.terms-body p { font-size: 14.5px; color: var(--text-sub); }
.terms-body p b { color: var(--text); }

/* ===== 회원 관리 (전체 화면 페이지) ===== */
.members-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.members-count { font-size: 14px; font-weight: 700; color: var(--accent2); margin-left: auto; }
.members-controls {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--grad-soft);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 16px;
}
.member-search { flex: 1; min-width: 220px; margin: 0; }
.member-cohort { flex: none; max-width: 170px; }
.member-row.pending { border-left: 4px solid var(--accent); background: #fffafd; }

.member-list { display: flex; flex-direction: column; gap: 8px; }
.member-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px; padding: 12px 16px;
}
.member-info { display: flex; flex-direction: column; }
.member-name { font-size: 15.5px; font-weight: 800; }
.member-phone { font-size: 13.5px; font-weight: 600; color: var(--text-sub); margin-left: 6px; }
.member-email { font-size: 13.5px; color: var(--text-sub); }
.member-note { font-size: 13.5px; color: var(--accent2); }
.member-date { font-size: 12.5px; color: var(--text-sub); }
.member-loading { color: var(--text-sub); font-size: 14.5px; text-align: center; padding: 16px 0; }

/* ===== 반응형 ===== */
@media (max-width: 820px) {
  .voice-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .app-main { padding: 12px 12px 80px; }
  .card { padding: 20px 16px; border-radius: 18px; }
  .card-title { font-size: 19px; }

  /* 헤더 */
  .app-header { padding: 18px 14px 2px; }
  .header-actions { position: static; justify-content: center; margin-top: 12px; }
  .logo-icon { width: 52px; height: 52px; font-size: 24px; border-radius: 16px; }
  .logo-text h1 { font-size: 23px; }
  .logo-text p { font-size: 13.5px; padding: 0 8px; word-break: keep-all; }
  #user-email { display: none; } /* 좁은 화면에선 버튼만 */

  /* 스텝퍼 — 현재 단계만 라벨 표시 */
  .stepper { padding: 14px 8px 2px; gap: 5px; }
  .step-arrow { display: none; }
  .step-label { display: none; }
  .step-pill { padding: 8px 12px; }
  .step-pill.active .step-label { display: inline; }

  /* 입력/버튼 */
  .big-textarea { padding: 13px 14px; font-size: 16px; }
  .btn-xl { font-size: 17px; padding: 15px 26px; width: 100%; }
  .btn-lg { width: 100%; }
  .step-actions { flex-direction: column; gap: 10px; }
  .step-actions .btn { width: 100%; }

  /* 긴 설명은 모바일에서 숨김 (PC에선 표시) */
  .mobile-hide { display: none !important; }

  /* 번역 블록 */
  .block-card { padding: 12px 12px; }
  .block-jp { font-size: 16.5px; }
  .block-meta { font-size: 12.5px; }

  /* 목소리 화면 */
  .speed-row { flex-wrap: wrap; gap: 8px; font-size: 14.5px; }
  .speed-row label { min-width: 84px; }
  .fps-select { max-width: none; min-width: 200px; }
  .filter-bar { gap: 10px; padding: 11px 12px; }
  .chip { padding: 6px 12px; font-size: 13.5px; }
  #btn-filter-clear { margin-left: 0 !important; }
  .voice-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .voice-card { padding: 34px 10px 12px; } /* 인기·⭐ 태그와 이름 안 겹치게 */
  .voice-name { font-size: 15px; }
  .voice-kr { font-size: 12px; }
  .voice-style-select { font-size: 13px; padding: 7px 6px; }
  .voice-preview-btn { font-size: 13px; }

  /* 결과 */
  .download-grid { grid-template-columns: 1fr; gap: 10px; }
  .btn-download { flex-direction: row; justify-content: center; gap: 10px; padding: 15px 10px; font-size: 22px; }
  .output-mode-row { gap: 8px 16px; font-size: 14px; }
  .result-title-row { flex-wrap: wrap; }

  /* 로그인/모달 */
  .auth-card { padding: 28px 20px; }
  .otp-input { font-size: 22px; letter-spacing: 5px; }
  .modal { border-radius: 18px; }
  .modal-body { padding: 14px 18px 22px; }
  .modal-head { padding: 18px 18px 0; }

  /* 회원 관리 */
  .members-head { gap: 10px; }
  .members-count { margin-left: 0; width: 100%; }
  .member-search { min-width: 100%; }
  .member-cohort { flex: 1; max-width: none; }
  .member-row { flex-wrap: wrap; }
  .member-row .member-toggle { width: 100%; }

  #btn-scroll-top { right: 16px; bottom: 20px; width: 46px; height: 46px; font-size: 17px; }
  .toast { width: calc(100% - 40px); text-align: center; font-size: 14px; }
}
