* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff; /* 배경을 흰색으로 변경 */
  color: #000000;
  min-height: 100vh;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #ffffff; /* 배경을 흰색으로 변경 */
}

.chat-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff; /* 메인 카드 영역 */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.015);
  padding-bottom: 78px;
  min-height: 100vh;
}

/* 상단 네비게이션 (아이콘 + 로고 영역) */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  background: #ffffff;
}

/* 상단 아래 구분선 */
.top-divider {
  height: 1px;
  background: #e4e5f0;
}

/* 카카오톡 스타일 탭/검색 영역 */
.tab-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  gap: 7px;
  position: relative;
  overflow: hidden; /* 오버플로우 방지 */
}

.tab-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  flex: 0 0 auto; /* 탭 리스트는 크기 고정 */
  min-width: 0;
}

.tab-pill {
  border: none;
  border-radius: 9px;
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 500;
  background: #f3f4f8;
  color: #555;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-family: inherit;
}

.tab-pill:hover:not(.tab-pill-active) {
  background: #e8e9ed;
}

.tab-pill-active {
  background: #5d5ff5;
  color: #fff;
}

.tab-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.search-icon-btn {
  border: none;
  border-radius: 9px;
  padding: 8px;
  background: #f3f4f8;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.search-icon-btn.is-active {
  background: #5d5ff5;
  color: #fff;
}

.search-icon {
  width: 16px;
  height: 16px;
}

.search-input-wrap {
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
}

.search-input-wrap.is-open {
  max-width: min(200px, calc(100% - 40px)); /* 탭 영역을 가리지 않는 선에서 확장 (flex 컨테이너 기준) */
}

.search-input {
  flex: 1;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13.5px;
  background: #f3f4f8;
  color: #333;
}

.search-input::placeholder {
  color: #999; /* 회색 placeholder */
}

.search-input:focus {
  outline: none;
  box-shadow: none;
}

.search-submit-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  background: #5d5ff5;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
  flex-shrink: 0;
}

.search-submit-btn:hover {
  background: #4c44e2;
}

.search-submit-btn:active {
  background: #4137c7;
  transform: scale(0.98);
}

.top-nav-left,
.top-nav-center,
.top-nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.top-nav-left {
  justify-content: flex-start;
}

.top-nav-center {
  justify-content: center;
}

.top-nav-right {
  justify-content: flex-end;
  gap: 7px;
  align-items: center;
}

/* 프로필 사진/닉네임 첫 글자 (헤더 우측) */
.top-nav-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.profile-image-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e4e5f0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
  display: block;
}

.profile-image-circle:hover {
  transform: scale(1.05);
  border-color: #5d5ff5;
}

.profile-initial-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  border: 2px solid #e4e5f0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.profile-initial-circle:hover {
  transform: scale(1.05);
  border-color: #5d5ff5;
}

/* 알림 종 모양 아이콘 */
.notification-btn {
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.notification-btn:hover {
  color: #5d5ff5;
  transform: scale(1.05);
}

.notification-btn:active {
  transform: scale(0.95);
}

.notification-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* 알림 모달 스타일 */
.notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.notification-overlay.is-show {
  opacity: 1;
  visibility: visible;
}

.notification-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  background: #ffffff;
  border-radius: 11px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.notification-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.notification-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  gap: 11px;
}

.notification-modal-title {
  font-size: 20px;
  flex: 1;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.notification-close {
  border: none;
  background: transparent;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.18s ease, color 0.18s ease;
}

.notification-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.notification-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.notification-action-btn {
  border: none;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.notification-action-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.notification-action-btn-danger {
  background: #fee2e2;
  color: #dc2626;
}

.notification-action-btn-danger:hover {
  background: #fecaca;
  color: #b91c1c;
}

.notification-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  min-height: 200px;
  max-height: calc(80vh - 73px);
}

.notification-loading,
.notification-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 13.5px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #f3f4f6;
  transition: background 0.18s ease;
  cursor: pointer;
  position: relative;
}

.notification-item:hover {
  background: #e5e7eb;
}

.notification-item.notification-read {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.notification-item.notification-read:hover {
  background: #f9fafb;
}

.notification-item-content {
  flex: 1;
  min-width: 0;
}

.notification-item-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #5d5ff5;
  margin-bottom: 4px;
}

.notification-item.notification-read .notification-item-title {
  color: #6b7280;
}

.notification-item-message {
  font-size: 13.5px;
  color: #374151;
  margin-bottom: 8px;
  line-height: 1.5;
}

.notification-item.notification-read .notification-item-message {
  color: #9ca3af;
}

.notification-item-time {
  font-size: 12px;
  color: #9ca3af;
}

.notification-item-delete {
  border: none;
  background: transparent;
  font-size: 18px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 8px;
  border-radius: 4px;
  transition: background 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-item-delete:hover {
  background: #f3f4f6;
  color: #ef4444;
}

@media (max-width: 480px) {
  .notification-modal {
    width: 95%;
    max-height: 85vh;
  }

  .notification-modal-header {
    padding: 16px;
    flex-wrap: wrap;
  }

  .notification-header-actions {
    order: 3;
    width: 100%;
    margin-top: 8px;
    gap: 6px;
  }

  .notification-action-btn {
    flex: 1;
    font-size: 12px;
    padding: 6px 10px;
  }

  .notification-modal-content {
    max-height: calc(85vh - 120px);
  }

  .notification-item {
    padding: 12px;
  }

  .notification-item-title {
    font-size: 13.5px;
  }

  .notification-item-message {
    font-size: 13px;
  }
}

.logo-icon {
  height: 32px;
  width: auto;
}

.logo-main {
  height: 26px;
  width: auto;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

/* 헤더 우측 햄버거 메뉴 버튼 */
.menu-toggle-btn {
  border: none;
  background: transparent;
  padding: 4px;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}

.menu-toggle-btn span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #555;
}

/* 인기 채팅방 캐러셀 영역 */
.room-section {
  padding: 12px 0 4px;
  margin-bottom: 20px; /* 하단 여백 추가 */
}

.room-section:last-of-type {
  margin-bottom: 40px; /* 마지막 섹션은 더 많은 여백 */
}

.room-section-title {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 8px;
}

.room-carousel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px;
}

.room-viewport {
  flex: 1;
  overflow: hidden;
}

.room-track {
  display: flex;
  gap: 11px;
  padding: 8px 0 4px;
  transform: translateX(0);
  transition: transform 0.23s ease-out;
}

.room-card {
  flex: 0 0 32%;
  max-width: 32%;
  background: #f7f7fb;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  opacity: 0.4;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.room-card-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

.room-card-clone {
  pointer-events: none; /* 복제된 카드는 클릭 불가 */
}

.room-cover {
  position: relative;
  height: 160px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-cover-with-image {
  background-color: transparent;
}

.room-cover-placeholder {
  font-size: 64px;
  color: #ffffff;
  font-weight: 300;
  opacity: 0.6;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.room-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.room-fav-btn:hover {
  transform: scale(1.1);
}

.room-fav-btn:active {
  transform: scale(0.95);
}

.room-fav-btn-active {
  color: #ffd700; /* 금색 */
  background: rgba(255, 215, 0, 0.2);
}

.room-title {
  padding: 10px 12px 12px;
  font-size: 13.5px;
  line-height: 1.4;
}

.room-arrow-btn {
  border: none;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  background: #f3f4f8;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.room-arrow-btn:disabled {
  opacity: 0.3;
}

.room-arrow-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* 광고 영역 (향후 카카오 애드핏 / 구글 애즈 삽입 예정) */
.ad-section {
  padding: 12px 0 16px;
}

.ad-section-sky {
  background: #e3f2fd; /* 하늘색 배경 */
}

.ad-section-sky .ad-placeholder {
  background: #e3f2fd; /* 하늘색 배경 */
  color: #1976d2; /* 하늘색 배경에 맞는 진한 파란색 텍스트 */
  border: 1px solid #90caf9; /* 연한 파란색 테두리 */
}

.ad-section-green {
  background: #e8f5e9; /* 연한 녹색 배경 */
}

.ad-section-green .ad-placeholder {
  background: #e8f5e9; /* 연한 녹색 배경 */
  color: #2e7d32; /* 연한 녹색 배경에 맞는 진한 녹색 텍스트 */
  border: 1px solid #a5d6a7; /* 연한 녹색 테두리 */
}

.ad-section-gray {
  background: #ffffff;
}

.ad-section-gray .ad-placeholder-gray {
  background: #e8e8e8; /* 밝은 회색 배경 */
  color: #666666; /* 회색 텍스트 */
  border: 1px solid #d0d0d0; /* 연한 회색 테두리 */
}

.ad-placeholder {
  width: 100%;
  height: 80px;
  border-radius: 11px;
  background: #ff4b4b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.ad-placeholder-gray {
  width: 100%;
  height: 80px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ASK-X 배너 (ask-x-logo.png + 3개 클릭 영역) */
.askx-banner {
  position: relative;
  width: 100%;
  margin-top: 10px;
  border-radius: 11px;
  overflow: hidden;
}

.askx-banner-img {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: cover;
}

/* 마니또 배너 스타일 */
.ad-section-manito {
  background: #ffffff;
}

.manito-banner {
  position: relative;
  width: 100%;
  margin-top: 10px;
  border-radius: 11px;
  overflow: hidden;
}

.manito-banner-img {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: cover;
}

/* 마니또 전체 클릭 영역 */
.manito-area {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* 밸런스 게임 배너 스타일 */
.ad-section-balance {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border: 1px solid #e4e5f0;
  border-radius: 11px;
  margin: 10px 16px;
  padding: 20px;
}

.balance-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.balance-banner-content {
  flex: 1;
}

.balance-banner-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.balance-banner-description {
  font-size: 13.5px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.balance-area {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e4e5f0;
  background: #5d5ff5;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
  flex-shrink: 0;
}

.balance-area:hover {
  background: #4c44e2;
  transform: translateX(1px);
}

.balance-area svg {
  width: 20px;
  height: 20px;
}

/* 유사도 테스트 배너 스타일 */
.ad-section-compatibility {
  background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
  border: 1px solid #e4e5f0;
  border-radius: 11px;
  margin: 10px 16px;
  padding: 20px;
}

.compatibility-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.compatibility-banner-content {
  flex: 1;
}

.compatibility-banner-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.compatibility-banner-description {
  font-size: 13.5px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.compatibility-area {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e4e5f0;
  background: #5d5ff5;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
  flex-shrink: 0;
}

.compatibility-area:hover {
  background: #4c44e2;
  transform: translateX(1px);
}

.compatibility-area svg {
  width: 20px;
  height: 20px;
}

/* 이미지 위 3등분 투명 클릭 영역 */
.askx-area {
  position: absolute;
  top: 0;
  bottom: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.askx-area-1 {
  left: 0;
  width: 33.3333%;
}

.askx-area-2 {
  left: 33.3333%;
  width: 33.3333%;
}

.askx-area-3 {
  left: 66.6667%;
  width: 33.3333%;
}

/* 인기 주제 섹션 */
.theme-section {
  padding: 0 12px 24px;
}

.theme-title {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.theme-carousel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.theme-viewport {
  flex: 1;
  overflow: hidden;
}

.theme-track {
  display: flex;
  gap: 7px;
}

.theme-card {
  flex: 0 0 32%;
  max-width: 32%;
  background: #f7f7fb;
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: #333;
  opacity: 0.4;
  transform: scale(0.9);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, box-shadow 0.4s ease-out;
  cursor: pointer;
}

.theme-card-title {
  transition: opacity 0.28s ease-out;
}

.theme-card-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.theme-card-title {
  line-height: 1.4;
}

.theme-arrow-btn {
  border: none;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  background: #f3f4f8;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding: 0;
}

.theme-arrow-btn:active {
  background: #e4e7ff;
}

/* 우측 슬라이드 메뉴 + 오버레이 */
.side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s ease;
  z-index: 20;
}

.side-menu-overlay.is-show {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 72%;
  max-width: 320px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.23s ease-out;
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.side-menu.is-open {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
  border-bottom: 1px solid #f1f1f4;
}

.side-menu-title {
  font-size: 15.5px;
  font-weight: 600;
}

.side-menu-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.side-menu-nav {
  padding: 8px 8px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  overflow-y: auto;
}

.side-menu-ad {
  margin-bottom: 8px;
  padding: 0 8px;
}

.side-menu-ad-placeholder {
  width: 100%;
  min-height: 100px;
  background: #ffebee;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c62828;
  font-size: 13px;
  font-weight: 500;
}

.side-menu-item {
  border: none;
  border-radius: 999px;
  padding: 9px 15px;
  text-align: left;
  font-size: 13.5px;
  background: #f4f5fb;
  color: #333;
}

.side-menu-item:active {
  background: #e4e7ff;
}

.side-menu-footer {
  display: flex;
  border-top: 1px solid #f1f1f4;
  padding: 12px 8px 40px 8px;
  gap: 7px;
  background: #ffffff;
  margin-top: auto;
  flex-shrink: 0;
}

.side-menu-my {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e4e5f0;
  border-radius: 8px;
  padding: 10px 14px;
  background: #ffffff;
  color: #555;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.side-menu-my:hover {
  background: #f7f7ff;
  border-color: #d0d2ff;
}

.side-menu-my:active {
  background: #eceeff;
}

.side-menu-my .my-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.side-menu-logout {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  background: #f4f5fb;
  color: #333;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.side-menu-logout:hover {
  background: #e4e7ff;
}

.side-menu-logout:active {
  background: #d4d7f0;
}

.side-menu-logout .logout-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.side-menu-footer-left {
  flex: 1;
  /* 왼쪽 영역 - 나중에 사용 */
}

/* 채팅방 메뉴 사이드바 */
.room-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s ease;
  z-index: 20;
}

.room-menu-overlay.is-show {
  opacity: 1;
  pointer-events: auto;
}

.room-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 72%;
  max-width: 320px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.23s ease-out;
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.room-menu.is-open {
  transform: translateX(0);
}

.room-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
  border-bottom: 1px solid #f1f1f4;
}

.room-menu-title {
  font-size: 15.5px;
  font-weight: 600;
}

.room-menu-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  padding: 4px;
  line-height: 1;
}

.room-menu-close:hover {
  color: #333;
}

.room-menu-content {
  flex: 0 0 auto;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* 방 썸네일 */
.room-menu-thumbnail {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e4e5f0;
}

.room-menu-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-menu-thumbnail-placeholder {
  font-size: 48px;
  color: #ffffff;
  font-weight: 600;
}

/* 방 제목 */
.room-menu-name {
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  color: #333;
  margin: 0;
}

/* 방 설명 */
.room-menu-description {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #f7f7fb;
  border-radius: 8px;
}

.room-menu-description-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.room-menu-description-text {
  font-size: 13.5px;
  color: #333;
  line-height: 1.5;
  word-break: break-word;
}

/* 방장 */
.room-menu-owner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  background: #f7f7fb;
  border-radius: 8px;
}

.room-menu-owner-label {
  font-size: 13px;
  color: #666;
}

.room-menu-owner-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #333;
}

/* 방 통계 정보 */
.room-menu-stat-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  background: #f7f7fb;
  border-radius: 8px;
}

.room-menu-favorite-item {
  cursor: pointer;
  transition: background 0.18s ease;
}

.room-menu-favorite-item:hover {
  background: #eceeff;
}

.room-menu-stat-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  color: #666;
  flex-shrink: 0;
}

.room-menu-stat-icon-favorite {
  fill: #ffd700;
  color: #ffd700;
  stroke: #ffd700;
}

.room-menu-stat-label {
  font-size: 13.5px;
  color: #666;
  flex: 1;
}

.room-menu-stat-value {
  font-size: 14.5px;
  font-weight: 600;
  color: #333;
}

/* 광고 영역 */
.room-menu-ads {
  flex: 1;
  padding: 12px 16px;
  border-top: 1px solid #f1f1f4;
  border-bottom: 1px solid #f1f1f4;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 0;
}

.room-menu-ad {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.room-menu-ad-placeholder {
  width: 100%;
  height: 100%;
  background: #e3f2fd; /* 하늘색 배경 */
  border: 1px solid #bbdefb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1976d2; /* 하늘색 배경에 맞는 진한 파란색 텍스트 */
  font-size: 13px;
  font-weight: 500;
}

/* 하단 액션 버튼 */
.room-menu-footer {
  display: flex;
  padding: 12px 8px;
  gap: 7px;
}

/* 설정 버튼이 없을 때 방 나가기 버튼이 전체 너비 차지 */
.room-menu-footer:has(.room-menu-leave:only-child) .room-menu-leave {
  flex: 1;
}

.room-menu-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.room-menu-action:hover {
  background: #f7f7fb;
}

.room-menu-action:active {
  background: #eceeff;
}

.room-menu-action-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.room-menu-settings {
  border: 1px solid #e4e5f0;
}

.room-menu-leave {
  color: #e53935;
}

.room-menu-leave:hover {
  background: #ffebee;
}

.room-menu-leave:active {
  background: #ffcdd2;
}

body.no-scroll {
  overflow: hidden;
}

/* 채팅 헤더 (섹션 타이틀) */
.chat-header {
  padding: 12px 16px;
  background: #222a3d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header h1 {
  font-size: 18px;
}

.chat-main {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.chat-messages {
  list-style: none;
}

.chat-message {
  margin-bottom: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  display: flex;
  gap: 7px;
}

.chat-message .meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  min-width: 40px;
}

.chat-message .text {
  font-size: 13.5px;
  word-break: break-word;
}

.chat-form {
  display: flex;
  padding: 8px;
  gap: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #181f2f;
}

.chat-form input {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13.5px;
  outline: none;
}

.chat-form button {
  border: none;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 13.5px;
  background: #ff4b6e;
  color: #ffffff;
  cursor: pointer;
}

.chat-form button:active {
  opacity: 0.9;
}

/* 회원가입/로그인 페이지 스타일 */
.auth-section {
  padding: 24px 16px;
}

.auth-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

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

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

.auth-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #333;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  padding: 11px 13px;
  padding-right: 40px;
  border: 1px solid #e4e5f0;
  border-radius: 7px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s ease;
}

.auth-input-wrapper .auth-input {
  padding-right: 50px;
}

.auth-input-wrapper.has-check-btn .auth-input {
  padding-right: 90px;
}

.auth-input:focus {
  border-color: #5d5ff5;
}

.auth-input.has-error {
  border-color: #c62828;
  border-width: 2px;
}

.auth-input-icon-btn {
  position: absolute;
  right: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: color 0.2s ease;
}

.auth-input-icon-btn:hover {
  color: #555;
}

.auth-input-icon-btn .eye-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.auth-check-btn {
  position: absolute;
  right: 8px;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  background: #f3f4f8;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.auth-check-btn:active:not(:disabled) {
  background: #e4e5f0;
}

.auth-check-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-field-error {
  font-size: 12px;
  color: #c62828;
  margin-top: 4px;
  display: none;
}

.auth-field-error.is-visible {
  display: block;
}

.auth-gender-select {
  display: flex;
  gap: 11px;
  margin-top: 4px;
}

.auth-gender-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 2px solid #e4e5f0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13.5px;
  font-weight: 500;
  color: #666;
}

.auth-gender-option:hover {
  border-color: #5d5ff5;
  background: #f8f9ff;
}

.auth-gender-option input[type="radio"] {
  display: none;
}

.auth-gender-option input[type="radio"]:checked + span {
  color: #5d5ff5;
  font-weight: 600;
}

.auth-gender-option input[type="radio"]:checked ~ span {
  color: #5d5ff5;
  font-weight: 600;
}

.auth-gender-option.selected {
  border-color: #5d5ff5;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.auth-field-error.is-visible {
  display: block;
}

.auth-field-error.auth-field-success {
  color: #2e7d32;
}

.auth-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.auth-checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #5d5ff5;
}

.auth-checkbox-label {
  font-size: 13.5px;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.auth-terms-link {
  color: #5d5ff5;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.auth-terms-link:hover {
  color: #4c44e2;
  text-decoration: underline;
}

.auth-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-reset-password-link,
.auth-signup-link {
  font-size: 13.5px;
  color: #5d5ff5;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-reset-password-link:hover,
.auth-signup-link:hover {
  color: #4c44e2;
  text-decoration: underline;
}

.auth-link-divider {
  font-size: 13.5px;
  color: #999;
  user-select: none;
}

.auth-submit-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  background: #5d5ff5;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
  margin-top: 8px;
}

.auth-submit-btn:hover:not(:disabled) {
  background: #4c44e2;
}

.auth-submit-btn:active:not(:disabled) {
  background: #4137c7;
  transform: scale(0.98);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 이메일 인증 모달 */
.email-auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.email-auth-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.email-auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.email-auth-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.email-auth-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.18s ease, color 0.18s ease;
}

.email-auth-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.email-auth-modal-body {
  padding: 24px;
}

.email-auth-modal-message {
  font-size: 14.5px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: center;
}

.email-auth-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  position: relative;
}

.email-auth-input {
  width: 100%;
  padding: 12px 100px 12px 14px;
  border: 1px solid #e4e5f0;
  border-radius: 8px;
  font-size: 15.5px;
  text-align: left;
  letter-spacing: 2px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease;
}

.email-auth-input:disabled {
  background-color: #f9fafb;
  cursor: not-allowed;
}

.email-auth-input:focus {
  border-color: #5d5ff5;
}

.email-auth-input.has-error {
  border-color: #c62828;
  border-width: 2px;
}

.email-auth-error {
  display: none;
  font-size: 13px;
  color: #c62828;
  margin-top: 4px;
}

.email-auth-error.is-visible {
  display: block;
}

.email-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}

.email-auth-send-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #5d5ff5;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.email-auth-send-btn:hover:not(:disabled) {
  background: #4c44e2;
}

.email-auth-send-btn:active:not(:disabled) {
  background: #4137c7;
  transform: translateY(-50%) scale(0.98);
}

.email-auth-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.email-auth-resend-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: #10b981;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.email-auth-resend-btn:hover:not(:disabled) {
  background: #059669;
}

.email-auth-resend-btn:active:not(:disabled) {
  background: #047857;
  transform: scale(0.98);
}

.email-auth-resend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-auth-timer {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.email-auth-modal-footer {
  display: flex;
  gap: 7px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}

.email-auth-cancel-btn,
.email-auth-verify-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.email-auth-cancel-btn {
  background: #f3f4f6;
  color: #374151;
}

.email-auth-cancel-btn:hover {
  background: #e5e7eb;
}

.email-auth-verify-btn {
  background: #5d5ff5;
  color: #ffffff;
}

.email-auth-verify-btn:hover:not(:disabled) {
  background: #4c44e2;
}

.email-auth-verify-btn:active:not(:disabled) {
  background: #4137c7;
  transform: scale(0.98);
}

.email-auth-verify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 개인정보 처리 약관 모달 */
.privacy-terms-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.privacy-terms-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.privacy-terms-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.privacy-terms-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.privacy-terms-modal-close {
  border: none;
  background: transparent;
  font-size: 28px;
  color: #6b7280;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
  padding: 0;
  line-height: 1;
}

.privacy-terms-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.privacy-terms-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.privacy-terms-content {
  font-size: 13.5px;
  line-height: 1.8;
  color: #333;
}

.privacy-terms-content h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: #111827;
  margin: 24px 0 12px 0;
}

.privacy-terms-content h3:first-child {
  margin-top: 0;
}

.privacy-terms-content h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: #374151;
  margin: 16px 0 8px 0;
}

.privacy-terms-content p {
  margin: 12px 0;
  color: #4b5563;
}

.privacy-terms-content ul {
  margin: 12px 0;
  padding-left: 24px;
  color: #4b5563;
}

.privacy-terms-content li {
  margin: 8px 0;
}

.privacy-terms-content strong {
  color: #111827;
  font-weight: 600;
}

.privacy-terms-date {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 13px;
}

.privacy-terms-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.privacy-terms-close-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  background: #5d5ff5;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.privacy-terms-close-btn:hover {
  background: #4c44e2;
}

.privacy-terms-close-btn:active {
  background: #4137c7;
  transform: scale(0.98);
}

/* 회원가입 완료 모달 */
.signup-success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003;
}

.signup-success-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.signup-success-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.signup-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
}

.signup-success-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  text-align: center;
}

.signup-success-message {
  font-size: 13.5px;
  color: #666;
  margin: 0;
  text-align: center;
}

.signup-success-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  background: #5d5ff5;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.signup-success-btn:hover {
  background: #4c44e2;
}

.signup-success-btn:active {
  background: #4137c7;
  transform: scale(0.98);
}

.auth-message {
  margin-top: 16px;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  display: none;
}

.auth-message.auth-message-success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
}

.auth-message.auth-message-error {
  display: block;
  background: #ffebee;
  color: #c62828;
}

.side-menu-item {
  text-decoration: none;
  display: block;
}

/* 검색 결과 영역 */
.search-results-section {
  padding: 16px 12px;
  min-height: 400px;
}

.search-results-container {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.search-result-item {
  background: #ffffff;
  border: 1px solid #e4e5f0;
  border-radius: 11px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.search-result-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.result-item-type {
  font-size: 11px;
  color: #5d5ff5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-item-title {
  font-size: 15.5px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.result-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.result-item-owner {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.profile-image,
.profile-image-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-image-placeholder {
  background: #5d5ff5;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
}

.owner-nickname {
  font-size: 13px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-item-stats {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
}

.result-views,
.result-date {
  white-space: nowrap;
}

.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 11px;
  color: #999;
  font-size: 13.5px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f4f8;
  border-top-color: #5d5ff5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 14.5px;
}

@media (max-width: 480px) {
  .result-item-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .result-item-stats {
    width: 100%;
    justify-content: space-between;
  }
}

/* 비밀번호 입력 페이지 스타일 */
.password-room-header {
  text-align: center;
  margin-bottom: 32px;
}

.password-room-thumbnail {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.password-thumbnail-placeholder {
  font-size: 64px;
  color: #ffffff;
  font-weight: 300;
  opacity: 0.6;
}

.password-room-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.password-room-description {
  font-size: 13.5px;
  color: #666;
  line-height: 1.5;
  margin-top: 8px;
}

.password-question-section {
  margin-bottom: 24px;
  padding: 16px;
  background: #f7f7fb;
  border-radius: 11px;
}

.password-question-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.password-question-text {
  font-size: 15.5px;
  color: #333;
  line-height: 1.5;
}

/* 입장완료 모달 스타일 */
.enter-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.enter-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.enter-modal-content {
  text-align: center;
}

.enter-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.enter-modal-message {
  font-size: 14.5px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.5;
}

.enter-modal-close {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  background: #5d5ff5;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.enter-modal-close:hover {
  background: #4c44e2;
}

.enter-modal-close:active {
  background: #4137c7;
  transform: scale(0.98);
}

/* 유저 차단 모달 스타일 */
.user-block-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.user-block-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px 24px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.user-block-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.user-block-modal-profile-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.user-block-modal-profile {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  flex-shrink: 0;
}

.user-block-modal-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-block-modal-profile-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  background: #000000;
}

.user-block-modal-nickname {
  font-size: 15.5px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.user-block-modal-manager-section {
  width: 100%;
  margin-top: 8px;
}

.user-block-modal-manager-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  background: #5d5ff5;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.18s ease, transform 0.12s ease;
}

.user-block-modal-manager-btn:hover {
  background: #4c44e2;
  transform: translateY(-1px);
}

.user-block-modal-manager-btn:active {
  background: #4137c7;
  transform: translateY(0);
}

.user-block-modal-manager-btn.user-block-modal-manager-btn-active {
  background: #ef4444;
}

.user-block-modal-manager-btn.user-block-modal-manager-btn-active:hover {
  background: #dc2626;
}

.user-block-modal-manager-btn svg {
  flex-shrink: 0;
}

.user-block-modal-buttons {
  width: 100%;
  display: flex;
  gap: 11px;
  align-items: center;
}

.user-block-modal-block-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  background: #f3f4f8;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.18s ease, color 0.18s ease;
}

.user-block-modal-block-btn:hover {
  background: #e8e9ed;
}

.user-block-modal-block-btn.user-block-modal-unblock-btn {
  background: #4ade80; /* 초록색 계열 */
  color: #ffffff;
}

.user-block-modal-block-btn.user-block-modal-unblock-btn:hover {
  background: #22c55e;
}

.user-block-modal-block-btn svg {
  flex-shrink: 0;
}

.user-block-modal-cancel-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  background: #5d5ff5;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.user-block-modal-cancel-btn:hover {
  background: #4c44e2;
}

.user-block-modal-cancel-btn:active {
  background: #4137c7;
  transform: scale(0.98);
}

/* 차단 버튼이 없을 때 취소 버튼만 전체 너비 차지 */
.user-block-modal-buttons .user-block-modal-cancel-btn:only-child {
  flex: none;
  width: 100%;
}

/* 차단 확인 모달 스타일 */
.block-confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.block-confirm-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px 24px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.block-confirm-modal-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.block-confirm-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.4;
  margin: 0;
}

.block-confirm-modal-description {
  font-size: 13px;
  color: #666;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.block-confirm-modal-buttons {
  display: flex;
  gap: 11px;
  align-items: center;
}

.block-confirm-modal-block-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  background: #ff4444;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.block-confirm-modal-block-btn:hover {
  opacity: 0.9;
}

.block-confirm-modal-block-btn.unblock-confirm-btn {
  background: #4ade80; /* 초록색 계열 */
}

.block-confirm-modal-block-btn.unblock-confirm-btn:hover {
  background: #22c55e;
}

.block-confirm-modal-cancel-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  background: #f3f4f8;
  color: #333;
  cursor: pointer;
  transition: background 0.18s ease;
}

.block-confirm-modal-cancel-btn:hover {
  background: #e8e9ed;
}

/* 차단 알림 모달 스타일 */
.blocked-user-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.blocked-user-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px 24px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.blocked-user-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.blocked-user-modal-message {
  font-size: 15.5px;
  font-weight: 500;
  color: #333;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.blocked-user-modal-close-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  background: #5d5ff5;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.blocked-user-modal-close-btn:hover {
  background: #4c44e2;
}

.blocked-user-modal-close-btn:active {
  background: #4137c7;
  transform: scale(0.98);
}

/* 차단/차단 해지 완료 모달 스타일 */
.block-success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.block-success-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px 24px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.block-success-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.block-success-modal-message {
  font-size: 15.5px;
  font-weight: 500;
  color: #333;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.block-success-modal-close-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  background: #5d5ff5;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.block-success-modal-close-btn:hover {
  background: #4c44e2;
}

.block-success-modal-close-btn:active {
  background: #4137c7;
  transform: scale(0.98);
}

.enter-modal-close:hover {
  opacity: 0.9;
}

.enter-modal-close:active {
  opacity: 0.8;
}

/* 링크 복사 토스트 모달 */
.copy-toast-overlay {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  pointer-events: none;
}

.copy-toast {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 12px 24px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   채팅방 입장 화면 스타일
   ============================================ */

/* 채팅방 헤더 영역 (방제목 + 돋보기 + 메뉴바) */
.chat-room-header {
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e4e5f0;
}

.chat-room-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
}

.chat-room-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-room-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.chat-room-action-btn {
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: color 0.2s ease, transform 0.2s ease;
}

.chat-room-action-btn:hover {
  color: #5d5ff5;
  transform: scale(1.1);
}

.chat-room-action-btn:active {
  transform: scale(0.95);
}

.chat-room-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* 공지 영역 */
.chat-room-notice {
  background: #f7f7fb;
  border-bottom: 1px solid #e4e5f0;
}

.chat-room-notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.chat-room-notice-header:hover {
  background: #f0f0f5;
}

.chat-room-notice-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #555;
}

.chat-room-notice-toggle {
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: transform 0.2s ease, color 0.2s ease;
}

.chat-room-notice-toggle:hover {
  color: #555;
}

.notice-arrow-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.chat-room-notice-content {
  padding: 0 16px 12px;
  display: block;
}

.chat-room-notice-text {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* 채팅 메시지 영역 */
.chat-room-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px 60px 12px;
  background: #ffffff;
  min-height: calc(100vh - 300px);
  max-height: calc(100vh - 300px);
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
}

/* 날짜 구분선 */
.chat-date-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.chat-date-divider > div {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #e5e7eb;
}

.chat-date-divider > span {
  background: #f8fafc;
  padding: 0 15px;
  position: relative;
  color: #9ca3af;
  font-size: 12px;
}

/* 더보기 버튼 컨테이너 */
.chat-load-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  margin: 0 auto 8px auto;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.chat-load-more-btn {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-load-more-btn:hover {
  background: #e8e8e8;
  border-color: #5d5ff5;
  color: #5d5ff5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-load-more-btn:active {
  background: #dcdcdc;
  transform: scale(0.98);
}

/* 채팅 메시지 아이템 */
.chat-message-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 4px;
}

.chat-message-mine {
  justify-content: flex-end;
  align-items: flex-end;
}

/* 내 메시지용 wrapper */
.chat-message-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 75%;
  margin-left: auto;
}

.chat-message-other {
  justify-content: flex-start;
}

.chat-message-content {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 75%;
}

.chat-message-mine .chat-message-content {
  flex-direction: row-reverse;
}

.chat-message-mine .chat-message-content-wrapper .chat-message-content {
  margin-left: 0; /* wrapper가 정렬을 담당 */
}

/* 프로필 아바타 컨테이너 (배지 포함) */
.chat-message-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

/* 프로필 이미지 (다른 사람 메시지) */
.chat-message-profile {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e4e5f0;
}

.chat-message-profile-initial {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  flex-shrink: 0;
  border: 2px solid #e4e5f0;
}

/* 방장/부방장 배지 */
.chat-role-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* 방장 배지: 파란색 배경 */
.chat-role-badge-owner {
  background: #2196f3;
}

/* 부방장 배지: 핑크색 배경 */
.chat-role-badge-manager {
  background: #ff80ab;
}

/* 메시지 정보 영역 (닉네임 + 메시지 버블) */
.chat-message-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 메시지 버블 래퍼 (버블 + 시간) */
.chat-message-bubble-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.chat-message-nickname {
  font-size: 12px;
  color: #666;
  padding: 0 4px;
  font-weight: 500;
}

/* 본인 메시지 닉네임 우측 정렬 */
.chat-message-nickname-mine {
  text-align: right;
}

/* 메시지 버블 */
.chat-message-bubble {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 13.5px;
  line-height: 1.4;
  word-wrap: break-word;
  word-break: normal;
  white-space: normal;
  position: relative;
  width: fit-content;
  max-width: 100%;
  min-width: fit-content;
}

.chat-message-bubble-mine {
  background: #5d5ff5;
  color: #ffffff;
  border-top-right-radius: 4px;
}

.chat-message-bubble-other {
  background: #f0f0f5;
  color: #333;
  border-top-left-radius: 4px;
}

/* 메시지 액션 영역 (답글 버튼 + 이모지 반응) */
.chat-message-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  /* 기본은 좌측 정렬 */
  align-self: flex-start;
}

.chat-message-mine .chat-message-content-wrapper .chat-message-actions {
  justify-content: flex-end;
  align-self: flex-end; /* 말풍선과 같은 우측 정렬 */
  margin-left: 0; /* wrapper가 정렬을 담당 */
  margin-top: 4px;
  width: 100%; /* 말풍선 너비에 맞춤 */
  /* 말풍선 아래 우측에 붙도록 */
}

.chat-message-other .chat-message-actions {
  justify-content: flex-start;
  padding-left: 44px; /* 프로필 이미지 너비(36px) + gap(8px) */
}

/* 답글 버튼 */
.chat-reply-btn {
  background: transparent;
  border: none;
  color: #666;
  font-size: 15.5px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.chat-reply-btn:hover {
  background: #f0f0f0;
  color: #333;
}

/* 이모지 반응 영역 */
.chat-message-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.chat-reaction-btn {
  padding: 3px 7px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.18s, border-color 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}

.chat-reaction-btn:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #bbb;
}

.chat-reaction-btn:disabled {
  cursor: not-allowed;
  opacity: 1;
  background: #f5f5f5;
  border-color: #ddd;
}

.chat-reaction-btn.reacted {
  background: #e3f2fd;
  border-color: #2196f3;
}

.chat-reaction-add {
  font-size: 13.5px;
  padding: 3px 5px;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 이모지 피커 */
.chat-emoji-picker {
  position: fixed;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10000;
}

.chat-emoji-picker-item {
  font-size: 18px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.chat-emoji-picker-item:hover {
  background: #f0f0f0;
}

/* 타이핑 인디케이터 */
.chat-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 6px;
  background: #f0f0f5;
  border-radius: 11px;
  border-top-left-radius: 4px;
  width: fit-content;
}

.typing-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #666;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* 메시지 시간 */
.chat-message-time {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  align-self: flex-end;
  padding: 0 2px;
  margin-bottom: 2px;
}

/* 답글 입력 영역 */
.chat-reply-input-area {
  background: #f8f9fa;
  border-top: 1px solid #e4e5f0;
  padding: 8px 12px;
}

.chat-reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.chat-reply-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-reply-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.chat-reply-original {
  font-size: 13px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-reply-close {
  background: transparent;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-reply-close:hover {
  background: #e0e0e0;
}

/* 답글 미리보기 (메시지 말풍선 내부) */
.chat-message-reply-preview {
  border-left: 3px solid #5d5ff5;
  padding-left: 8px;
  margin-bottom: 6px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.chat-message-reply-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-message-reply-nickname {
  font-size: 12px;
  color: #5d5ff5;
  font-weight: 600;
}

.chat-message-reply-text {
  font-size: 12px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.chat-message-bubble-mine .chat-message-reply-preview {
  border-left-color: rgba(255, 255, 255, 0.5);
}

.chat-message-bubble-mine .chat-message-reply-nickname {
  color: rgba(255, 255, 255, 0.9);
}

.chat-message-bubble-mine .chat-message-reply-text {
  color: rgba(255, 255, 255, 0.7);
}

.chat-message-text {
  word-wrap: break-word;
  word-break: normal;
  white-space: normal;
  display: inline;
}

/* 이미지 메시지 버블 (카카오톡 스타일) */
.chat-message-image-wrapper {
  margin-top: 2px;
  border-radius: 11px;
  overflow: hidden;
  max-width: 220px;
  max-height: 220px;
}

.chat-message-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 이미지 확대 모달 */
.image-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.image-viewer-overlay.is-show {
  opacity: 1;
  visibility: visible;
}

.image-viewer-modal {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 1001;
}

.image-viewer-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.image-viewer-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 11px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #000;
}

.image-viewer-close {
  position: static;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  align-self: flex-end;
  margin-bottom: 8px;
}

.image-viewer-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* 프로필 페이지용 간단 모달 */
.simple-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.simple-modal-overlay.is-show {
  display: flex;
}

.simple-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px 16px;
  max-width: 320px;
  width: 85%;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  text-align: center;
}

.simple-modal-message {
  font-size: 13.5px;
  color: #111827;
  margin-bottom: 12px;
}

.simple-modal-loading {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.simple-modal-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  border-top-color: #5d5ff5;
  animation: simple-spin 0.8s linear infinite;
}

@keyframes simple-spin {
  to {
    transform: rotate(360deg);
  }
}

.simple-modal-actions {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 4px;
}

.simple-modal-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}

.simple-modal-btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.simple-modal-btn-danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.simple-modal-btn-danger:hover {
  background: #fecaca;
  border-color: #fca5a5;
  color: #991b1b;
}

/* 링크 스타일 */
.chat-message-link {
  color: #5d5ff5;
  text-decoration: underline;
  word-break: break-all;
}

.chat-message-bubble-mine .chat-message-link {
  color: rgba(255, 255, 255, 0.9);
}

/* 링크 미리보기 카드 (카카오톡 스타일) */
.chat-link-preview {
  display: block;
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: opacity 0.2s ease;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
}

.chat-link-preview:hover {
  opacity: 0.9;
}

.chat-message-bubble-mine .chat-link-preview {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-link-preview-thumbnail {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.chat-link-preview-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-link-preview-content {
  padding: 12px;
}

.chat-link-preview-domain {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
  font-weight: 500;
}

.chat-message-bubble-mine .chat-link-preview-domain {
  color: rgba(255, 255, 255, 0.7);
}

.chat-link-preview-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-message-bubble-mine .chat-link-preview-title {
  color: #ffffff;
}

.chat-link-preview-description {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-message-bubble-mine .chat-link-preview-description {
  color: rgba(255, 255, 255, 0.8);
}

/* 하단 채팅 입력 영역 */
.chat-room-input-area {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  background: #ffffff;
  border-top: 1px solid #e4e5f0;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 10;
  box-sizing: border-box;
}

.chat-input-attach-btn {
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.chat-input-attach-btn:hover {
  color: #5d5ff5;
  transform: scale(1.1);
}

.chat-input-attach-btn:active {
  transform: scale(0.95);
}

.attach-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.chat-input-field {
  flex: 1;
  border: 1px solid #e4e5f0;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13.5px;
  background: #f7f7fb;
  color: #333;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

/* 이모지 버튼 제거 후 입력창을 더 넓게 보이도록 약간 여유를 줌 */
.chat-input-field-wide {
  flex: 1.2;
}

.chat-input-field:focus {
  border-color: #5d5ff5;
  background: #ffffff;
}

.chat-input-field::placeholder {
  color: #999;
}

.chat-input-send-btn {
  border: none;
  background: #5d5ff5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background 0.18s ease, transform 0.12s ease;
  flex-shrink: 0;
}

.chat-input-send-btn:hover {
  background: #4c44e2;
  transform: scale(1.05);
}

.chat-input-send-btn:active {
  background: #4137c7;
  transform: scale(0.95);
}

.chat-input-send-btn:active {
  opacity: 0.8;
  transform: scale(0.95);
}

.chat-input-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.send-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: currentColor;
}

/* ============================================
   프로필 페이지 스타일
   ============================================ */

.profile-section {
  padding: 24px 16px;
}

.profile-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 32px;
  text-align: center;
}

.profile-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.profile-image-actions {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 32px;
}

.profile-image-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.profile-image-btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #111827;
}

.profile-image-btn-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.profile-image-btn-danger:hover {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.profile-image-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e4e5f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-initial-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 600;
  border: 3px solid #e4e5f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-info-item {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e4e5f0;
}

.profile-info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.profile-info-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-info-value {
  font-size: 15.5px;
  color: #333;
  font-weight: 500;
  word-break: break-all;
}

/* 비밀번호 재설정 섹션 */
.profile-password-reset-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e4e5f0;
}

.profile-password-reset-btn {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #eef2ff;
  color: #4c44e2;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.profile-password-reset-btn:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #4338ca;
}

.profile-password-reset-btn:active {
  background: #c7d2fe;
  border-color: #818cf8;
}

/* 회원 탈퇴 섹션 */
.profile-withdraw-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e4e5f0;
}

.profile-withdraw-btn {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.profile-withdraw-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.profile-withdraw-btn:active {
  background: #fecaca;
  border-color: #f87171;
}

/* 회원 탈퇴 비밀번호 입력 모달 */
.withdraw-password-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.withdraw-password-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.withdraw-password-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.withdraw-password-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.withdraw-password-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.18s ease, color 0.18s ease;
}

.withdraw-password-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.withdraw-password-modal-body {
  padding: 24px;
}

.withdraw-password-modal-message {
  font-size: 14.5px;
  color: #666;
  margin-bottom: 16px;
  text-align: center;
}

.withdraw-password-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.withdraw-password-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e4e5f0;
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.withdraw-password-input:focus {
  border-color: #5d5ff5;
}

.withdraw-password-input.has-error {
  border-color: #c62828;
  border-width: 2px;
}

.withdraw-password-error {
  display: none;
  font-size: 13px;
  color: #c62828;
  margin-top: 4px;
}

.withdraw-password-modal-footer {
  display: flex;
  gap: 7px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}

.withdraw-password-cancel-btn,
.withdraw-password-submit-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.withdraw-password-cancel-btn {
  background: #f3f4f6;
  color: #374151;
}

.withdraw-password-cancel-btn:hover {
  background: #e5e7eb;
}

.withdraw-password-submit-btn {
  background: #5d5ff5;
  color: #ffffff;
}

/* 비밀번호 재설정 모달 */
.reset-password-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 20px;
}

.reset-password-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.reset-password-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.reset-password-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.reset-password-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.reset-password-modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.reset-password-modal-body {
  padding: 24px;
}

.reset-password-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.withdraw-password-submit-btn:hover {
  background: #4c44e2;
}

.withdraw-password-submit-btn:active {
  background: #4137c7;
  transform: scale(0.98);
}

.withdraw-password-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 회원 탈퇴 성공 모달 */
.withdraw-success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.withdraw-success-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.withdraw-success-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.withdraw-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
}

.withdraw-success-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  text-align: center;
}

.withdraw-success-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  background: #5d5ff5;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.withdraw-success-btn:hover {
  background: #4c44e2;
}

.withdraw-success-btn:active {
  background: #4137c7;
  transform: scale(0.98);
}

/* ASK-X 숫자 모달 (1 / 2 / 3) */
.askx-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.askx-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  min-width: 120px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.askx-modal-content {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  text-align: center;
}

/* 로그인 필요 모달 (감각적이고 예쁜 디자인) */
.login-required-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.25s ease-out;
}

.login-required-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 24px;
  padding: 40px 32px 32px;
  max-width: 320px;
  width: 85%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: modalBounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.2s ease-out;
}

.login-required-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes modalBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
  }
  60% {
    transform: scale(1.05) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.login-required-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: iconBounce 0.6s ease-out 0.2s both;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes iconBounce {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  60% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.login-required-title {
  font-size: 22px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.4s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-required-message {
  font-size: 14.5px;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 24px;
  animation: fadeInUp 0.4s ease-out 0.4s both;
}

.login-required-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  opacity: 0;
  transition: opacity 0.28s ease-out;
  animation: fadeInUp 0.4s ease-out 0.5s both;
}

.login-required-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-required-text {
  font-size: 13px;
  color: #a0aec0;
  font-weight: 500;
}

/* 마니또 모달 스타일 */
.manito-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.manito-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.manito-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.manito-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.manito-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  padding: 0;
}

.manito-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.manito-modal-content {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.manito-modal-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e4e5f0;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  color: #333;
}

.manito-modal-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  border-color: #5d5ff5;
}

.manito-modal-btn:active {
  transform: translateY(0);
}

.manito-modal-btn-join {
  background: #5d5ff5;
  color: #ffffff;
  border: none;
}

.manito-modal-btn-join:hover {
  background: #4c44e2;
  transform: translateY(-2px);
}

.manito-modal-btn-create {
  background: #5d5ff5;
  color: #ffffff;
  border: none;
}

.manito-modal-btn-create:hover {
  background: #4c44e2;
}

.manito-modal-btn-create:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.manito-modal-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
}

.manito-modal-btn-text {
  font-size: 14.5px;
  font-weight: 500;
  flex: 1;
}

/* 마니또 초대 링크 모달 스타일 */
.manito-invite-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.manito-invite-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.manito-invite-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.manito-invite-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.manito-invite-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  padding: 0;
}

.manito-invite-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.manito-invite-modal-content {
  text-align: center;
}

.manito-invite-url-box {
  margin-bottom: 24px;
  text-align: left;
}

.manito-invite-url-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.manito-invite-url-wrapper {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.manito-invite-url-input {
  flex: 1;
  padding: 12px;
  border: 1px solid #e4e5f0;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  background: #ffffff;
}

.manito-invite-url-input:focus {
  outline: none;
  border-color: #5d5ff5;
}

.manito-invite-url-copy-btn {
  padding: 12px 16px;
  border: none;
  border-radius: 9px;
  background: #5d5ff5;
  color: #ffffff;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.12s ease;
}

.manito-invite-url-copy-btn:hover {
  background: #4c44e2;
  transform: translateY(-1px);
}

.manito-invite-url-copy-btn:active {
  background: #4137c7;
  transform: translateY(0);
}

.manito-invite-url-hint {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.manito-invite-modal-actions {
  display: flex;
  gap: 11px;
}

.manito-invite-modal-btn-primary,
.manito-invite-modal-btn-secondary {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.manito-invite-modal-btn-primary {
  background: #5d5ff5;
  color: #ffffff;
}

.manito-invite-modal-btn-primary:hover {
  background: #4c44e2;
}

.manito-invite-modal-btn-primary:active {
  background: #4137c7;
}

.manito-invite-modal-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.manito-invite-modal-btn-secondary {
  background: #f3f4f8;
  color: #666;
  border: 1px solid #e4e5f0;
}

.manito-invite-modal-btn-secondary:hover {
  background: #e4e5f0;
}

/* ========================================
   마이틴 페이지 스타일 (10대 감각적 디자인)
   ======================================== */

.myteen-section {
  padding: 24px 16px 40px;
  animation: fadeInUp 0.4s ease-out;
}

.myteen-header {
  text-align: center;
  margin-bottom: 32px;
}

.myteen-title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.myteen-subtitle {
  font-size: 14.5px;
  color: #718096;
  font-weight: 500;
}

/* 검색 및 생성 버튼 영역 */
.myteen-actions {
  display: flex;
  gap: 11px;
  margin-bottom: 24px;
  align-items: center;
}

.myteen-search-wrapper {
  position: relative;
  flex: 1;
}

.myteen-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid #e2e8f0;
  border-radius: 11px;
  font-size: 13.5px;
  background: #f8f9fa;
  transition: all 0.28s ease;
  outline: none;
}

.myteen-search-input:focus {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.myteen-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #a0aec0;
  pointer-events: none;
}

.myteen-create-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.28s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.myteen-create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.myteen-create-btn:active {
  transform: translateY(0);
}

.myteen-create-icon {
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

/* ASK 생성 개수 표시 */
.myteen-ask-limit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%);
  border-radius: 11px;
  border: 1px solid #e2e8f0;
}

.myteen-ask-count {
  font-size: 15.5px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 40px;
  text-align: center;
}

.myteen-ask-limit-text {
  font-size: 13px;
  color: #718096;
  font-weight: 500;
}

/* ASK 목록 */
.myteen-ask-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ASK 카드 */
.myteen-ask-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.28s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.myteen-ask-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.myteen-ask-card:hover {
  transform: translateY(-4px);
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.myteen-ask-card:hover::before {
  opacity: 1;
}

.myteen-ask-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 12px;
}

.myteen-ask-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.4;
  flex: 1;
  margin: 0;
}

.myteen-ask-actions {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.myteen-btn-share,
.myteen-btn-edit,
.myteen-btn-delete {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.myteen-btn-share:hover {
  background: #e0f2fe;
  color: #0ea5e9;
  transform: scale(1.1);
}

.myteen-btn-edit:hover {
  background: #e0e7ff;
  color: #667eea;
  transform: scale(1.1);
}

.myteen-btn-delete:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: scale(1.1);
}

.myteen-btn-share svg,
.myteen-btn-edit svg,
.myteen-btn-delete svg {
  width: 16px;
  height: 16px;
}

.myteen-ask-description {
  font-size: 13.5px;
  color: #718096;
  line-height: 1.6;
  margin: 0 0 16px;
}

.myteen-ask-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.myteen-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.myteen-stat-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
}

.myteen-stat-item strong {
  color: #2d3748;
  font-weight: 600;
}

.myteen-stat-date {
  font-size: 12px;
  color: #a0aec0;
  margin-left: auto;
}

/* 빈 상태 */
.myteen-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.myteen-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: block;
  animation: iconBounce 0.6s ease-out;
  opacity: 0.8;
}

.myteen-empty-text {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.myteen-empty-subtext {
  font-size: 13.5px;
  color: #718096;
}

/* ASK 생성/수정 모달 */
.ask-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.25s ease-out;
  padding: 20px;
}

.ask-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalBounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.ask-modal::before {
  content: '';
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  display: block;
}

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

.ask-modal-title {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.ask-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.ask-modal-close:hover {
  background: #e2e8f0;
  color: #2d3748;
  transform: rotate(90deg);
}

.ask-modal-form {
  padding: 24px;
}

.ask-form-group {
  margin-bottom: 20px;
}

.ask-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.ask-form-required {
  color: #ef4444;
}

.ask-form-input,
.ask-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 11px;
  font-size: 13.5px;
  font-family: inherit;
  background: #ffffff;
  transition: all 0.28s ease;
  outline: none;
  resize: vertical;
}

.ask-form-input:focus,
.ask-form-textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.ask-form-textarea {
  min-height: 100px;
}

.ask-form-char-count {
  text-align: right;
  font-size: 12px;
  color: #a0aec0;
  margin-top: 6px;
}

.ask-modal-actions {
  display: flex;
  gap: 11px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.ask-btn-cancel,
.ask-btn-submit {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.28s ease;
}

.ask-btn-cancel {
  background: #f1f5f9;
  color: #64748b;
}

.ask-btn-cancel:hover {
  background: #e2e8f0;
}

.ask-btn-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ask-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ask-btn-submit:active {
  transform: translateY(0);
}

/* 반응형 */
@media (max-width: 480px) {
  .myteen-actions {
    flex-direction: column;
  }

  .myteen-create-btn {
    width: 100%;
    justify-content: center;
  }

  .myteen-ask-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .myteen-ask-actions {
    align-self: flex-end;
  }

  .myteen-stat-date {
    margin-left: 0;
    width: 100%;
  }
}

/* ========================================
   ASK 상세 페이지 스타일 (10대 감각적 디자인)
   ======================================== */

.back-icon {
  width: 24px;
  height: 24px;
  color: #2d3748;
  transition: transform 0.2s ease;
}

.top-nav-left a:hover .back-icon {
  transform: translateX(-3px);
}

.ask-detail-section {
  padding: 24px 16px 40px;
  animation: fadeInUp 0.4s ease-out;
}

.ask-detail-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
}

.ask-detail-title {
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
  line-height: 1.4;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ask-detail-description {
  font-size: 14.5px;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 16px;
}

.ask-detail-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #a0aec0;
}

.ask-detail-owner {
  font-weight: 500;
  color: #64748b;
}

.ask-detail-question-count {
  font-weight: 500;
  color: #667eea;
}

.ask-detail-date {
  margin-left: auto;
}

/* 질문/답변 목록 */
.ask-detail-qna-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ask-detail-qna-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.ask-detail-qna-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ask-detail-qna-item:hover {
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.ask-detail-qna-item:hover::before {
  opacity: 1;
}

/* 질문 */
.ask-detail-question {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
}

.ask-detail-answer {
  margin-top: 16px;
}

.ask-detail-qna-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.ask-detail-qna-icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.ask-detail-qna-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #667eea;
}

.ask-detail-qna-date {
  font-size: 12px;
  color: #a0aec0;
  margin-left: auto;
}

.ask-detail-question-delete-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  margin-left: 8px;
}

.ask-detail-question-delete-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.ask-detail-question-delete-btn svg {
  width: 14px;
  height: 14px;
}

.ask-detail-deleted-message {
  padding: 16px 20px !important;
  background: #f8f9fa !important;
  border-radius: 8px !important;
  min-height: 60px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.ask-detail-deleted-text {
  color: #a0aec0 !important;
  font-style: italic !important;
  display: inline-block !important;
  margin: 0 !important;
  text-align: center !important;
  width: auto !important;
}

/* 삭제된 질문의 답변 블러 처리 */
.ask-detail-answer-blurred {
  position: relative;
  overflow: hidden;
}

.ask-detail-answer-blurred .ask-detail-qna-content {
  filter: blur(12px) brightness(0.3);
  user-select: none !important;
  pointer-events: none !important;
  opacity: 0.3 !important;
  color: transparent !important;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5) !important;
}

.ask-detail-answer-blurred::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
  pointer-events: none;
}

.ask-detail-qna-content {
  font-size: 14.5px;
  color: #2d3748;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: keep-all;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 12px 0;
  text-align: center;
  display: block;
  width: 100%;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  max-width: 100%;
}

.ask-detail-question .ask-detail-qna-content {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 0;
  margin: 0;
  text-align: center;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.ask-detail-qna-content.ask-detail-deleted-message {
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 16px 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ask-detail-question {
  box-sizing: border-box;
  width: 100%;
}

.ask-detail-qna-item {
  box-sizing: border-box;
  width: 100%;
}

/* 답변 없음 상태 */
.ask-detail-answer-empty {
  margin-top: 16px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 11px;
  text-align: center;
  border: 1px dashed #cbd5e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.ask-detail-answer-empty-icon {
  width: 32px;
  height: 32px;
  opacity: 0.5;
  display: block;
}

.ask-detail-answer-empty-text {
  font-size: 13px;
  color: #a0aec0;
  font-weight: 500;
  margin: 0;
}

.ask-detail-answer-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.28s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ask-detail-answer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ask-detail-answer-btn:active {
  transform: translateY(0);
}

/* 빈 상태 */
.ask-detail-empty-state {
  text-align: center;
  padding: 80px 20px;
}

.ask-detail-empty-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  display: block;
  animation: iconBounce 0.6s ease-out;
  opacity: 0.6;
}

.ask-detail-empty-text {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.ask-detail-empty-subtext {
  font-size: 13.5px;
  color: #718096;
}

/* 질문 등록 버튼 */
.ask-detail-question-btn-wrapper {
  margin-bottom: 24px;
  text-align: center;
}

.ask-detail-question-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.28s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ask-detail-question-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ask-detail-question-btn:active {
  transform: translateY(0);
}

.ask-detail-question-btn-icon {
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

/* 반응형 */
@media (max-width: 480px) {
  .ask-detail-title {
    font-size: 20px;
  }

  .ask-detail-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .ask-detail-date {
    margin-left: 0;
  }

  .ask-detail-qna-item {
    padding: 16px;
  }

  .ask-detail-question-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   인기 ASK 검색 페이지 스타일
   ======================================== */

.findask-section {
  padding: 24px 16px 40px;
  animation: fadeInUp 0.4s ease-out;
}

.findask-header {
  text-align: center;
  margin-bottom: 32px;
}

.findask-title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.findask-subtitle {
  font-size: 14.5px;
  color: #718096;
  font-weight: 500;
}

/* 검색 영역 */
.findask-search-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.findask-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid #e2e8f0;
  border-radius: 11px;
  font-size: 13.5px;
  background: #f8f9fa;
  transition: all 0.28s ease;
  outline: none;
  box-sizing: border-box;
}

.findask-search-input:focus {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.findask-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #a0aec0;
  pointer-events: none;
}

/* ASK 카드 */
.findask-ask-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 24px;
}

.findask-ask-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.28s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.findask-ask-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.findask-ask-card:hover {
  transform: translateY(-4px);
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.findask-ask-card:hover::before {
  opacity: 1;
}

.findask-ask-header {
  margin-bottom: 12px;
}

.findask-ask-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.4;
  margin: 0;
}

.findask-ask-description {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.findask-ask-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.findask-ask-author {
  display: flex;
  align-items: center;
  gap: 7px;
}

.findask-author-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.findask-author-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
}

.findask-author-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #4a5568;
}

.findask-ask-stats {
  display: flex;
  gap: 15px;
  align-items: center;
}

.findask-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.findask-stat-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
}

.findask-stat-item strong {
  color: #2d3748;
  font-weight: 600;
}

/* 빈 상태 */
.findask-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.findask-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: block;
  animation: iconBounce 0.6s ease-out;
  opacity: 0.8;
}

.findask-empty-text {
  font-size: 15.5px;
  color: #a0aec0;
  font-weight: 500;
}

/* 로딩 인디케이터 */
.findask-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 11px;
}

.findask-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.findask-loading span {
  font-size: 13.5px;
  color: #a0aec0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 반응형 */
@media (max-width: 480px) {
  .findask-ask-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .findask-ask-stats {
    width: 100%;
  }
}

/* ========================================
   내가 질문한 ASK 페이지 스타일
   ======================================== */

.myquestions-section {
  padding: 24px 16px 40px;
  animation: fadeInUp 0.4s ease-out;
}

.myquestions-header {
  text-align: center;
  margin-bottom: 32px;
}

.myquestions-title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.myquestions-subtitle {
  font-size: 14.5px;
  color: #718096;
  font-weight: 500;
}

/* ASK 목록 */
.myquestions-ask-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 24px;
}

.myquestions-ask-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.28s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.myquestions-ask-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.myquestions-ask-card:hover {
  transform: translateY(-4px);
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.myquestions-ask-card:hover::before {
  opacity: 1;
}

.myquestions-ask-header {
  margin-bottom: 12px;
}

.myquestions-ask-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.4;
  margin: 0;
}

.myquestions-ask-description {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.myquestions-ask-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.myquestions-ask-author {
  display: flex;
  align-items: center;
  gap: 7px;
}

.myquestions-author-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.myquestions-author-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
}

.myquestions-author-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #4a5568;
}

.myquestions-ask-stats {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.myquestions-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.myquestions-stat-item.myquestions-stat-myquestion {
  color: #667eea;
  font-weight: 600;
}

.myquestions-stat-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
}

.myquestions-stat-item.myquestions-stat-myquestion .myquestions-stat-icon {
  opacity: 1;
  color: #667eea;
}

.myquestions-stat-item strong {
  color: #2d3748;
  font-weight: 600;
}

.myquestions-stat-item.myquestions-stat-myquestion strong {
  color: #667eea;
}

/* 빈 상태 */
.myquestions-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.myquestions-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: block;
  animation: iconBounce 0.6s ease-out;
  opacity: 0.8;
}

.myquestions-empty-text {
  font-size: 15.5px;
  color: #a0aec0;
  font-weight: 500;
  margin-bottom: 8px;
}

.myquestions-empty-subtext {
  font-size: 13.5px;
  color: #cbd5e0;
}

/* 로딩 인디케이터 */
.myquestions-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 11px;
}

.myquestions-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.myquestions-loading span {
  font-size: 13.5px;
  color: #a0aec0;
}

/* 반응형 */
@media (max-width: 480px) {
  .myquestions-ask-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .myquestions-ask-stats {
    width: 100%;
  }
}

/* ========================================
   ASK 생성 제한 모달 스타일
   ======================================== */

.ask-limit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.25s ease-out;
}

.ask-limit-modal {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
  border-radius: 24px;
  padding: 40px 32px 32px;
  max-width: 320px;
  width: 85%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: modalBounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.2s ease-out;
}

.ask-limit-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 50%, #dc2626 100%);
}

.ask-limit-modal-icon {
  font-size: 64px;
  margin-bottom: 16px;
  display: block;
  animation: iconBounce 0.6s ease-out 0.2s both;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.ask-limit-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.ask-limit-modal-message {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 500;
}

.ask-limit-modal-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #ffffff;
  border: none;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.28s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.ask-limit-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.ask-limit-modal-btn:active {
  transform: translateY(0);
}

/* ========================================
   ASK 생성 성공 모달 스타일
   ======================================== */

.ask-success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.25s ease-out;
  transition: opacity 0.28s ease-out;
}

.ask-success-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border-radius: 24px;
  padding: 40px 32px 32px;
  max-width: 320px;
  width: 85%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: modalBounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.2s ease-out;
}

.ask-success-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
}

.ask-success-modal-check {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkBounce 0.6s ease-out 0.2s both;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.ask-success-modal-check svg {
  width: 48px;
  height: 48px;
  color: #ffffff;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: checkDraw 0.6s ease-out 0.4s forwards;
}

@keyframes checkBounce {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  60% {
    transform: scale(1.15) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes checkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.ask-success-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.4s ease-out 0.3s both;
}

.ask-success-modal-message {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.6;
  font-weight: 500;
  animation: fadeInUp 0.4s ease-out 0.4s both;
}

@keyframes iconBounce {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-20px);
  }
  50% {
    transform: scale(1.1) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================
   주제별 채팅방 리스트 페이지 스타일
   ======================================== */

.themechats-section {
  padding: 24px 16px 40px;
  animation: fadeInUp 0.4s ease-out;
}

.themechats-header {
  text-align: center;
  margin-bottom: 32px;
}

.themechats-title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.themechats-subtitle {
  font-size: 14.5px;
  color: #718096;
  font-weight: 500;
}

.themechats-create-btn-wrapper {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.themechats-create-btn {
  width: 100%;
  max-width: 400px;
  padding: 16px 24px;
  border: none;
  border-radius: 16px;
  font-size: 15.5px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.28s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.themechats-create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.themechats-create-btn:active {
  transform: translateY(0);
}

.themechats-create-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* 채팅방 카드 */
.themechats-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 24px;
}

.themechats-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.28s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.themechats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.themechats-card:hover {
  transform: translateY(-4px);
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.themechats-card:hover::before {
  opacity: 1;
}

.themechats-card-header {
  margin-bottom: 16px;
}

.themechats-thumbnail {
  width: 100%;
  height: 160px;
  border-radius: 11px;
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
  background-color: #e2e8f0;
}

.themechats-thumbnail-placeholder {
  width: 100%;
  height: 160px;
  border-radius: 11px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ffffff;
  font-weight: 300;
  opacity: 0.6;
  margin-bottom: 12px;
}

.themechats-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.themechats-card-description {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.themechats-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.themechats-card-owner {
  display: flex;
  align-items: center;
  gap: 7px;
}

.themechats-owner-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.themechats-owner-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
}

.themechats-owner-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #4a5568;
}

.themechats-card-stats {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.themechats-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.themechats-stat-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
  stroke: currentColor;
}

.themechats-stat-item strong {
  color: #2d3748;
  font-weight: 600;
}

.themechats-fav-btn {
  position: absolute;
  top: 28px;
  right: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #cbd5e0;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 15.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.themechats-fav-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
}

.themechats-fav-btn:active {
  transform: scale(0.95);
}

.themechats-fav-btn-active {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.2);
}

/* 빈 상태 */
.themechats-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.themechats-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: block;
  animation: iconBounce 0.6s ease-out;
  opacity: 0.8;
}

.themechats-empty-text {
  font-size: 15.5px;
  color: #a0aec0;
  font-weight: 500;
  margin-bottom: 8px;
}

.themechats-empty-subtext {
  font-size: 13.5px;
  color: #cbd5e0;
}

/* 로딩 인디케이터 */
.themechats-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 11px;
}

.themechats-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.themechats-loading span {
  font-size: 13.5px;
  color: #a0aec0;
}

/* 반응형 */
@media (max-width: 480px) {
  .themechats-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .themechats-card-stats {
    width: 100%;
    justify-content: space-between;
  }

  .themechats-stat-item {
    flex: 1;
    justify-content: center;
  }

  .themechats-fav-btn {
    top: 20px;
    right: 20px;
  }
}

/* 매니저/방장 차단 불가 모달 */
.cannot-block-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  animation: fadeIn 0.3s ease-out;
}

.cannot-block-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  animation: modalBounceIn 0.4s ease-out;
  border: 2px solid #fee2e2;
}

.cannot-block-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cannot-block-modal-icon {
  font-size: 48px;
  animation: iconBounce 0.6s ease-out;
}

.cannot-block-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #ef4444;
  text-align: center;
  margin: 0;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cannot-block-modal-message {
  font-size: 14.5px;
  color: #64748b;
  text-align: center;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.cannot-block-modal-close-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cannot-block-modal-close-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.cannot-block-modal-close-btn:active {
  transform: translateY(0);
}

/* 매니저 지정/해제 성공 모달 */
.manager-success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  animation: fadeIn 0.3s ease-out;
}

.manager-success-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  animation: modalBounceIn 0.4s ease-out;
  border: 2px solid #d1fae5;
}

.manager-success-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.manager-success-modal-icon {
  font-size: 48px;
  color: #10b981;
  animation: checkBounce 0.6s ease-out;
  font-weight: bold;
}

.manager-success-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #2d3748;
  text-align: center;
  margin: 0;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.manager-success-modal-message {
  font-size: 14.5px;
  color: #64748b;
  text-align: center;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.manager-success-modal-close-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.manager-success-modal-close-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.manager-success-modal-close-btn:active {
  transform: translateY(0);
}

/* ========================================
   모든 주제 리스트 페이지 스타일 (10대 감각적 디자인)
   ======================================== */

.allthemes-section {
  padding: 24px 16px 40px;
  animation: fadeInUp 0.4s ease-out;
}

.allthemes-header {
  text-align: center;
  margin-bottom: 32px;
}

.allthemes-title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.allthemes-header-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.allthemes-subtitle {
  font-size: 14.5px;
  color: #718096;
  font-weight: 500;
}

.allthemes-request-section {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8f7ff 0%, #fff5f7 100%);
  border-radius: 16px;
  border: 2px solid #e8e4ff;
  width: 100%;
  max-width: 480px;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(122, 90, 248, 0.1);
}

@media (max-width: 480px) {
  .allthemes-request-section {
    flex-wrap: wrap;
    gap: 9px;
  }

  .allthemes-request-text {
    font-size: 12px;
    width: 100%;
  }

  .allthemes-request-btn {
    padding: 7px 14px;
    font-size: 12px;
    margin-left: auto;
  }
}

.allthemes-request-text {
  font-size: 13px;
  color: #555;
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
}

.allthemes-request-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.allthemes-request-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.allthemes-request-btn:active {
  transform: translateY(0);
}

.allthemes-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.allthemes-category {
  margin-bottom: 8px;
}

.allthemes-category-title {
  font-size: 20px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 16px;
  padding-left: 4px;
  border-left: 4px solid #667eea;
  padding-left: 12px;
}

.allthemes-themes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.allthemes-theme-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.28s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: block;
}

.allthemes-theme-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  border-radius: 16px;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.allthemes-theme-card:hover .allthemes-theme-card-overlay {
  opacity: 0.7;
}

.allthemes-theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.allthemes-theme-card:hover {
  transform: translateY(-4px);
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  text-decoration: none;
}

.allthemes-theme-card:hover::before {
  opacity: 1;
}

.allthemes-theme-card-content {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.allthemes-theme-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 11px;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.allthemes-theme-card:hover .allthemes-theme-icon {
  transform: scale(1.1) rotate(5deg);
  opacity: 1;
}

.allthemes-theme-name {
  font-size: 17px;
  font-weight: 600;
  color: #2d3748;
  flex: 1;
  margin: 0;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

/* 배경 이미지가 있을 때 텍스트 색상 변경 */
.allthemes-theme-card[style*="background-image"] .allthemes-theme-name {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.allthemes-theme-card[style*="background-image"] .allthemes-theme-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.allthemes-theme-card[style*="background-image"] .allthemes-theme-arrow {
  color: #ffffff;
}

.allthemes-theme-arrow {
  width: 24px;
  height: 24px;
  color: #cbd5e0;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.allthemes-theme-card:hover .allthemes-theme-arrow {
  transform: translateX(4px);
  color: #667eea;
}

.allthemes-theme-arrow svg {
  width: 100%;
  height: 100%;
}

.allthemes-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.allthemes-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.allthemes-empty-text {
  font-size: 18px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
}

.allthemes-empty-subtext {
  font-size: 13.5px;
  color: #a0aec0;
}

/* 반응형 */
@media (min-width: 480px) {
  .allthemes-themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .allthemes-title {
    font-size: 24px;
  }

  .allthemes-category-title {
    font-size: 18px;
  }

  .allthemes-theme-name {
    font-size: 14.5px;
  }

}

/* 신고 모달 스타일 */
.report-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.report-modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.report-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

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

.report-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.report-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.report-modal-close:hover {
  background: #f5f5f5;
  color: #666;
}

.report-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.report-modal-description {
  font-size: 14.5px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.report-reason-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
}

.report-reason-item:hover {
  border-color: #5d5ff5;
  background: #f8f7ff;
}

.report-reason-item input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #5d5ff5;
  flex-shrink: 0;
}

.report-reason-item input[type="radio"]:checked + span {
  color: #5d5ff5;
  font-weight: 600;
}

.report-reason-item:has(input[type="radio"]:checked) {
  border-color: #5d5ff5;
  background: #f8f7ff;
}

.report-reason-item span {
  font-size: 14.5px;
  color: #333;
  flex: 1;
  transition: color 0.2s, font-weight 0.2s;
}

.report-other-reason {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.report-other-reason-input {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 2px solid #e8e8e8;
  border-radius: 11px;
  font-size: 13.5px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
}

.report-other-reason-input:focus {
  outline: none;
  border-color: #5d5ff5;
}

.report-modal-footer {
  display: flex;
  gap: 11px;
  padding: 16px 24px 24px;
  border-top: 1px solid #f0f0f0;
}

.report-modal-cancel-btn,
.report-modal-submit-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-modal-cancel-btn {
  background: #f5f5f5;
  color: #666;
}

.report-modal-cancel-btn:hover {
  background: #e8e8e8;
  color: #333;
}

.report-modal-submit-btn {
  background: #5d5ff5;
  color: #ffffff;
}

.report-modal-submit-btn:hover:not(:disabled) {
  background: #4c44e2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.report-modal-submit-btn:active:not(:disabled) {
  background: #4137c7;
  transform: translateY(0);
}

.report-modal-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 신고 완료 모달 스타일 */
.report-success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  animation: fadeIn 0.2s ease;
}

.report-success-modal {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

.report-success-modal-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.report-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #5d5ff5;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.report-success-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.report-success-message {
  font-size: 14.5px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* 주제 신청 모달 스타일 */
.theme-request-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.theme-request-modal {
  background: #ffffff;
  border-radius: 24px;
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

.theme-request-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.theme-request-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #f8f7ff 0%, #fff5f7 100%);
}

.theme-request-modal-title {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.theme-request-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.theme-request-modal-close:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.theme-request-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.theme-request-modal-description {
  font-size: 13.5px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
  text-align: center;
}

.theme-request-input-group {
  margin-bottom: 20px;
}

.theme-request-input-group:last-of-type {
  margin-bottom: 0;
}

.theme-request-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.theme-request-label-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #333;
}

.theme-request-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 11px;
  font-size: 14.5px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #ffffff;
}

.theme-request-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.theme-request-input::placeholder {
  color: #bbb;
}

.theme-request-modal-footer {
  display: flex;
  gap: 11px;
  padding: 20px 24px 24px;
  border-top: 1px solid #f0f0f0;
}

.theme-request-modal-cancel-btn,
.theme-request-modal-submit-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-request-modal-cancel-btn {
  background: #f5f5f5;
  color: #666;
}

.theme-request-modal-cancel-btn:hover {
  background: #e8e8e8;
  color: #333;
}

.theme-request-modal-submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.theme-request-modal-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.theme-request-modal-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 주제 신청 완료 모달 스타일 */
.theme-request-success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  animation: fadeIn 0.2s ease;
}

.theme-request-success-modal {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 340px;
  width: 90%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

.theme-request-success-modal-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.theme-request-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  animation: scaleIn 0.3s ease;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.theme-request-success-title {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.theme-request-success-message {
  font-size: 14.5px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   모든 그룹 X 리스트 페이지 스타일
   ======================================== */

.allthema-chats-section {
  padding: 24px 16px 40px;
  animation: fadeInUp 0.4s ease-out;
}

.allthema-chats-header {
  text-align: center;
  margin-bottom: 24px;
}

.allthema-chats-title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.allthema-chats-subtitle {
  font-size: 14.5px;
  color: #718096;
  font-weight: 500;
}

.allthema-chats-search {
  margin-bottom: 24px;
}

.allthema-chats-search-box {
  display: flex;
  gap: 7px;
  align-items: center;
}

.allthema-chats-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 11px;
  font-size: 14.5px;
  background: #ffffff;
  color: #2d3748;
  transition: all 0.28s ease;
}

.allthema-chats-search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.allthema-chats-search-btn {
  padding: 12px 16px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.28s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.allthema-chats-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.allthema-chats-search-btn:active {
  transform: translateY(0);
}

.allthema-chats-search-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.allthema-chats-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.allthema-chats-tabs::-webkit-scrollbar {
  display: none;
}

.allthema-chats-tab {
  flex-shrink: 0;
  padding: 10px 16px;
  border: none;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  background: #f7fafc;
  color: #718096;
  cursor: pointer;
  transition: all 0.28s ease;
  white-space: nowrap;
}

.allthema-chats-tab:hover {
  background: #edf2f7;
  color: #4a5568;
}

.allthema-chats-tab-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.allthema-chats-sort {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #f7fafc;
  border-radius: 11px;
  border: 2px solid #e2e8f0;
}

.allthema-chats-sort-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #4a5568;
  white-space: nowrap;
}

.allthema-chats-sort-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.allthema-chats-sort-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  background: #ffffff;
  color: #718096;
  cursor: pointer;
  transition: all 0.28s ease;
  white-space: nowrap;
}

.allthema-chats-sort-option:hover {
  border-color: #cbd5e0;
  background: #edf2f7;
  color: #4a5568;
}

.allthema-chats-sort-option-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-color: #667eea;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.allthema-chats-sort-check {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.allthema-chats-sort-option-active .allthema-chats-sort-check {
  opacity: 1;
}

.allthema-chats-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.allthema-chat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  transition: all 0.28s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.allthema-chat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.allthema-chat-card:hover {
  transform: translateY(-2px);
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.allthema-chat-card:hover::before {
  opacity: 1;
}

.allthema-chat-card-cover {
  width: 100%;
  height: 120px;
  border-radius: 11px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  font-size: 48px;
}

.allthema-chat-card-cover-with-image {
  background-color: transparent;
}

.allthema-chat-card-placeholder {
  font-size: 48px;
  color: #ffffff;
  font-weight: 300;
  opacity: 0.6;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.3);
}

.allthema-chat-card-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.allthema-chat-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.4;
  margin: 0;
}

.allthema-chat-card-description {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.allthema-chat-card-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: #718096;
  margin-top: 4px;
}

.allthema-chat-card-owner,
.allthema-chat-card-views,
.allthema-chat-card-favs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.allthema-chat-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #cbd5e0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.allthema-chat-fav-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
}

.allthema-chat-fav-btn:active {
  transform: scale(0.95);
}

.allthema-chat-fav-btn-active {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.2);
}

.allthema-chats-loading,
.allthema-chats-empty {
  text-align: center;
  padding: 40px 20px;
  color: #a0aec0;
  font-size: 14.5px;
}

@media (max-width: 480px) {
  .allthema-chats-section {
    padding: 20px 12px 32px;
  }

  .allthema-chats-title {
    font-size: 24px;
  }

  .allthema-chats-search-box {
    gap: 6px;
  }

  .allthema-chats-search-input {
    padding: 10px 14px;
    font-size: 13.5px;
  }

  .allthema-chats-search-btn {
    padding: 10px 14px;
  }

  .allthema-chats-search-btn svg {
    width: 18px;
    height: 18px;
  }

  .allthema-chats-tab {
    padding: 8px 14px;
    font-size: 13px;
  }

  .allthema-chats-sort {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 13px;
  }

  .allthema-chats-sort-label {
    font-size: 13px;
  }

  .allthema-chats-sort-options {
    width: 100%;
    gap: 6px;
  }

  .allthema-chats-sort-option {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
  }

  .allthema-chat-card {
    padding: 14px;
  }

  .allthema-chat-card-cover {
    height: 100px;
    font-size: 40px;
  }

  .allthema-chat-card-title {
    font-size: 14.5px;
  }

  .allthema-chat-card-description {
    font-size: 13px;
  }

  .allthema-chat-card-meta {
    font-size: 12px;
    gap: 11px;
  }
}

/* 푸터 스타일 */
.site-footer {
  width: 100%;
  background-color: #f5f5f7;
  border-top: 1px solid #e4e5f0;
  padding: 24px 16px;
  margin-top: 32px;
}

.footer-content {
  max-width: 100%;
  margin: 0 auto;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-text {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-label {
  font-weight: 500;
  color: #333;
}

.footer-link {
  color: #5d5ff5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #4c44e2;
  text-decoration: underline;
}

.footer-value {
  color: #666;
}

