/* ==========================================================================
   오솔킹 (OSOLKING) 인증 시스템 & 모달 & 약관 & Auth Gate 스타일
   ========================================================================== */

/* 1. 상단 우측 헤더 인증 바 */
.auth-header-bar {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 5px 12px 5px 6px;
  border-radius: 30px;
  border: 1px solid #d8e5f8;
  box-shadow: 0 2px 8px rgba(39, 104, 200, 0.08);
}

.auth-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2768c8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  object-fit: cover;
}

.auth-user-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #172b4d;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 7px 14px;
  text-decoration: none;
}

.auth-btn-primary {
  background: #2768c8;
  color: #fff;
  box-shadow: 0 2px 8px rgba(39, 104, 200, 0.25);
}

.auth-btn-primary:hover {
  background: #1b53a3;
  transform: translateY(-1px);
}

.auth-btn-outline {
  background: #fff;
  color: #486581;
  border: 1px solid #d8e2ec;
}

.auth-btn-outline:hover {
  background: #f0f4f8;
  color: #102a43;
}

.auth-btn-logout {
  background: transparent;
  color: #829ab1;
  padding: 4px 8px;
  font-size: 0.78rem;
}

.auth-btn-logout:hover {
  color: #e12d39;
  text-decoration: underline;
}

/* 2. 드로어 메뉴 내 인증 영역 */
.drawer-auth-card {
  background: #f4f8ff;
  border: 1px solid #d9e6fa;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.drawer-auth-logged-in {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-auth-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.drawer-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.drawer-user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.drawer-user-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #172b4d;
  white-space: nowrap;
  word-break: keep-all;
}

.drawer-admin-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.drawer-user-email {
  font-size: 0.74rem;
  color: #627d98;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-logout-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.drawer-logout-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.drawer-auth-logged-out {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.drawer-auth-msg {
  font-size: 0.8rem;
  color: #486581;
  line-height: 1.4;
  margin: 0;
}

/* 3. 인증 모달 (로그인 / 회원가입) */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 42, 67, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.auth-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  background: #fff;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(16, 42, 67, 0.24);
  padding: 28px 24px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s ease;
}

.auth-modal-overlay.is-active .auth-modal {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f0f4f8;
  color: #627d98;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.auth-modal-close:hover {
  background: #d9e2ec;
  color: #102a43;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-modal-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.auth-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #102a43;
  margin: 0 0 6px;
}

.auth-modal-subtitle {
  font-size: 0.85rem;
  color: #627d98;
  margin: 0;
}

/* 모달 탭 */
.auth-tabs {
  display: flex;
  background: #f0f4f8;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  color: #627d98;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.is-active {
  background: #fff;
  color: #2768c8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 소셜 로그인 버튼 (카카오 & 네이버) */
.social-login-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.kakao-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  background: #FEE500;
  border: none;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 700;
  color: #191919;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(254, 229, 0, 0.35);
  transition: all 0.2s ease;
}

.kakao-login-btn:hover {
  background: #fada0a;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(254, 229, 0, 0.45);
}

.kakao-login-btn:active {
  transform: translateY(0);
}

.kakao-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.naver-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  background: #03C75A;
  border: none;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(3, 199, 90, 0.3);
  transition: all 0.2s ease;
}

.naver-login-btn:hover {
  background: #02b351;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(3, 199, 90, 0.4);
}

.naver-login-btn:active {
  transform: translateY(0);
}

.naver-icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 소셜 전용 안내 박스 */
.auth-social-notice-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 16px;
}

.auth-social-notice-box p {
  margin: 0;
}

.auth-social-notice-box strong {
  color: #1e293b;
}

/* 소셜 로그인 하단 이용약관 링크 */
.auth-social-terms-notice {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
}

.auth-social-terms-notice .terms-link-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 2px;
}

.auth-social-terms-notice .terms-link-btn:hover {
  color: #1d4ed8;
}


/* 구분선 */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: #9fb3c8;
  font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  padding: 0 12px;
}

/* 폼 필드 */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.auth-form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334e68;
}

.auth-form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d8e2ec;
  border-radius: 9px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8fafc;
}

.auth-form-input:focus {
  border-color: #2768c8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(39, 104, 200, 0.15);
}

.auth-form-helper {
  font-size: 0.74rem;
  color: #829ab1;
  margin: 2px 0 0;
}

/* 법적 동의 체크박스 영역 (약관) */
.terms-agreement-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
}

.terms-all-check {
  font-weight: 700;
  color: #102a43;
  padding-bottom: 8px;
  border-bottom: 1px dashed #d8e2ec;
}

.terms-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #486581;
}

.terms-item label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
}

.terms-badge-required {
  color: #e12d39;
  font-weight: 700;
}

.terms-badge-optional {
  color: #829ab1;
  font-weight: 600;
}

.terms-view-btn {
  background: none;
  border: none;
  color: #2768c8;
  font-size: 0.76rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.terms-view-btn:hover {
  color: #1b53a3;
}

/* 에러 / 메시지 박스 */
.auth-message {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.4;
  display: none;
}

.auth-message.is-error {
  display: block;
  background: #ffe3e3;
  color: #c92a2a;
  border: 1px solid #ffa8a8;
}

.auth-message.is-success {
  display: block;
  background: #e6fcf5;
  color: #0ca678;
  border: 1px solid #96f2d7;
}

/* 모달 하단 보조 액션 */
.auth-sub-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 0.8rem;
}

.auth-link {
  color: #2768c8;
  text-decoration: none;
  cursor: pointer;
}

.auth-link:hover {
  text-decoration: underline;
}

/* 4. 약관 전문 팝업 모달 */
.terms-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 42, 67, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.terms-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.terms-modal {
  background: #fff;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(16, 42, 67, 0.3);
  overflow: hidden;
}

.terms-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terms-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #102a43;
  margin: 0;
}

.terms-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #334e68;
}

.terms-modal-body h4 {
  margin: 16px 0 6px;
  color: #102a43;
  font-size: 0.95rem;
}

.terms-modal-body p,
.terms-modal-body ul {
  margin: 0 0 10px;
}

.terms-modal-body ul {
  padding-left: 20px;
}

.terms-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  background: #f8fafc;
}

/* 5. 페이지 잠금 게이트 (Auth Gate - packing.html, gear.html) */
.auth-gate-container {
  display: block;
  max-width: 560px;
  margin: 50px auto 60px;
  background: #fff;
  border-radius: 20px;
  padding: 44px 30px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(39, 104, 200, 0.14);
  border: 1.5px solid #d0e2fa;
}

.auth-gate-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: inline-block;
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.auth-gate-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #102a43;
  margin: 0 0 10px;
}

.auth-gate-desc {
  font-size: 0.95rem;
  color: #486581;
  line-height: 1.6;
  margin: 0 0 26px;
  word-break: keep-all;
}

.auth-gate-features {
  background: #f4f8ff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 26px;
  text-align: left;
}

.auth-gate-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #243b53;
  margin-bottom: 8px;
}

.auth-gate-feature-item:last-child {
  margin-bottom: 0;
}

.auth-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}

.auth-gate-actions .kakao-login-btn,
.auth-gate-actions .naver-login-btn {
  padding: 12px 18px;
  font-size: 0.96rem;
}

.auth-gate-back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.84rem;
  color: #829ab1;
  text-decoration: none;
}

.auth-gate-back-link:hover {
  color: #2768c8;
  text-decoration: underline;
}

/* 6. 관리자 배지 및 관리자 게이트 스타일 */
.auth-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff1f0;
  color: #cf1322;
  border: 1px solid #ffa39e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: -0.2px;
}

.drawer-admin-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff1f0;
  color: #cf1322;
  border: 1px solid #ffa39e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.nav-item-badge.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #fff1f0;
  color: #cf1322;
  border: 1px solid #ffa39e;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

.admin-gate-container {
  border-color: #ffccc7 !important;
  box-shadow: 0 16px 40px rgba(207, 19, 34, 0.1) !important;
}

/* 미디어 쿼리 (모바일 대응) */
@media (max-width: 600px) {
  .auth-header-bar {
    top: 12px;
    right: 12px;
    gap: 6px;
    max-width: calc(100vw - 85px); /* 왼쪽 메뉴 버튼과의 충돌 완벽 방지 */
    justify-content: flex-end;
  }
  .auth-user-badge {
    padding: 2px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .auth-user-avatar {
    width: 28px !important;
    height: 28px !important;
  }
  .auth-user-name,
  .auth-admin-badge,
  .header-nick-edit-btn {
    display: none !important;
  }
  #header-admin-users-btn {
    display: none !important; /* 모바일에서는 왼쪽 ☰ 메뉴(드로어)에 크게 배치되어 있으므로 상단 바에서 숨겨 겹침 방지 */
  }
  .auth-btn {
    padding: 4px 8px !important;
    font-size: 11.5px !important;
    height: 28px !important;
    line-height: 1 !important;
    border-radius: 6px !important;
  }
  .auth-modal {
    padding: 24px 18px;
  }
  .auth-gate-container {
    padding: 30px 18px;
    margin: 20px 12px;
  }
}

/* 7. 닉네임 설정 모달 및 닉네임 변경 UI */
.nickname-modal-overlay {
  z-index: 10001; /* 다른 모달/드로어보다 위에 뜨도록 설정 */
}

.nickname-modal {
  max-width: 400px;
}

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

.nickname-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nickname-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #d8e2ec;
  border-radius: 10px;
  font-size: 1rem;
  color: #102a43;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nickname-input:focus {
  border-color: #2768c8;
  box-shadow: 0 0 0 3px rgba(39, 104, 200, 0.15);
}

.nickname-validation-msg {
  font-size: 0.8rem;
  line-height: 1.4;
  min-height: 18px;
  margin-top: 2px;
}

.nickname-validation-msg.is-error {
  color: #e12d39;
  font-weight: 600;
}

.nickname-validation-msg.is-success {
  color: #03a84e;
  font-weight: 600;
}

.nickname-guide-text {
  font-size: 0.78rem;
  color: #829ab1;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.nickname-submit-btn {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.98rem;
  font-weight: 700;
}

.header-nick-edit-btn,
.drawer-nick-edit-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.8rem;
  line-height: 1;
  border-radius: 4px;
  opacity: 0.65;
  transition: opacity 0.2s, background 0.2s, transform 0.15s;
}

.header-nick-edit-btn:hover,
.drawer-nick-edit-btn:hover {
  opacity: 1;
  background: rgba(39, 104, 200, 0.1);
  transform: scale(1.1);
}

/* ==========================================================================
   관리자 전용 [👑 회원 관리] 버튼 및 회원 명부 모달 스타일
   ========================================================================== */

.auth-btn-admin {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.28);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 11px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-btn-admin:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.38);
}

.drawer-admin-users-btn {
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  color: #b45309;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.drawer-admin-users-btn:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: translateY(-1px);
}

/* 관리자 회원 명부 모달 오버레이 */
.admin-users-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.admin-users-modal-overlay.is-active {
  display: flex;
  opacity: 1;
}

/* 관리자 회원 명부 모달 컨테이너 */
.admin-users-modal {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 980px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  animation: adminModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes adminModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 모달 헤더 */
.admin-users-header {
  padding: 20px 24px 16px;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.admin-users-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-users-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.admin-users-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin: 4px 0 0 0;
}

.admin-users-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.admin-users-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

/* 상단 요약 통계 칩 바 */
.admin-users-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.admin-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}

.admin-stat-chip strong {
  font-weight: 800;
  font-size: 0.88rem;
}

.admin-stat-chip.is-total {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.admin-stat-chip.is-kakao {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.admin-stat-chip.is-naver {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.admin-stat-chip.is-admin {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

/* 툴바 (검색 및 새로고침) */
.admin-users-toolbar {
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.admin-users-search-wrap {
  position: relative;
  flex: 1;
}

.admin-users-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #94a3b8;
  pointer-events: none;
}

.admin-users-search {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.admin-users-search:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-users-refresh-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.admin-users-refresh-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* 회원 목록 테이블 */
.admin-users-table-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  min-height: 220px;
}

.admin-users-table-wrap::-webkit-scrollbar {
  width: 6px;
}

.admin-users-table-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.admin-users-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  padding: 10px 16px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1.5px solid #e2e8f0;
  z-index: 10;
  white-space: nowrap;
}

.admin-users-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.admin-users-table tr:hover td {
  background: #f8fafc;
}

/* 테이블 내 유저 정보 셀 */
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  color: #475569;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-user-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.9rem;
}

.admin-user-sub {
  font-size: 0.75rem;
  color: #64748b;
}

/* 관리자 뱃지 */
.admin-crown-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  margin-left: 5px;
}

/* 소셜 로그인 뱃지 */
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 700;
}

.provider-badge.is-kakao {
  background: #fee500;
  color: #3c1e1e;
}

.provider-badge.is-naver {
  background: #03c75a;
  color: #ffffff;
}

/* 로딩 및 빈 상태 */
.admin-users-empty {
  padding: 48px 24px;
  text-align: center;
  color: #64748b;
}

.admin-users-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.admin-users-footer {
  padding: 12px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-users-count-label {
  font-size: 0.8rem;
  color: #64748b;
}

.col-show-mobile-only {
  display: none;
}

/* --------------------------------------------------------------------------
   회원 제재 상태 뱃지 및 관리 액션 버튼 스타일
   -------------------------------------------------------------------------- */
.admin-action-cell {
  white-space: nowrap;
}

.admin-action-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.admin-user-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2.5px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-user-status-badge.is-normal {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.admin-user-status-badge.is-talkban {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.admin-user-status-badge.is-kicked {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.btn-admin-action {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-admin-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 톡 7일 금지 버튼 */
.btn-admin-talkban {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.btn-admin-talkban:hover:not(:disabled) {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

/* 톡 금지 해제 버튼 */
.btn-admin-untalkban {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.btn-admin-untalkban:hover:not(:disabled) {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

/* 강퇴 버튼 */
.btn-admin-kick {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}
.btn-admin-kick:hover:not(:disabled) {
  background: #fecaca;
  color: #991b1b;
  border-color: #f87171;
}

/* 재가입 금지 해제 버튼 */
.btn-admin-unban {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}
.btn-admin-unban:hover:not(:disabled) {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}

/* 반응형 모바일 */
@media (max-width: 640px) {
  .admin-users-modal {
    max-height: 94vh;
    border-radius: 14px;
  }
  .admin-users-header {
    padding: 16px;
  }
  .admin-users-toolbar {
    padding: 10px 16px;
  }
  .admin-users-table th,
  .admin-users-table td {
    padding: 8px 10px;
  }
  .admin-users-table .col-hide-mobile {
    display: none;
  }
  .col-show-mobile-only {
    display: block;
  }
  .admin-action-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
}



