/* 홈 화면 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-pink: #FF3B6D;
    --primary-pink-dark: #E6325E;
    --primary-pink-light: #FF5080;
    --bg-gray: #F8F9FA;
    --bubble-bg: #FFFFFF;
    --bubble-sent: #FFE8EE;
    --text-dark: #191919;
    --text-gray: #7C7C7C;
    --border-gray: #E5E5E5;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    --sidebar-width: 280px;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gray);
    overflow: hidden;
    height: 100vh;
}

/* 사이드바 오버레이 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* 사이드바 */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: var(--sidebar-width);
    height: 100vh;
    background: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-gray);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-gray);
    padding: 10px 14px;
    border-radius: 24px;
    gap: 8px;
}

.search-bar i {
    color: var(--text-gray);
    font-size: 14px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
}

/* 사이드바 메뉴 */
.sidebar-menu {
    padding: 12px;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: background 0.2s;
    text-align: left;
}

.menu-item:hover {
    background: var(--bg-gray);
}

.menu-item i {
    width: 20px;
    color: var(--primary-pink);
    font-size: 18px;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-gray);
    margin: 8px 16px;
}

/* 채팅 이력 */
.chat-history {
    padding: 20px;
    flex: 1;
}

.chat-history h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    transition: background 0.2s;
    text-align: left;
    width: 100%;
}

.history-item:hover {
    background: var(--bg-gray);
}

.history-item.active {
    background: #FFE8EE;
    color: var(--primary-pink);
    font-weight: 500;
}

/* 메인 컨테이너 */
.main-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

/* 헤더 */
.home-header {
    background: var(--primary-pink);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: relative;
    z-index: 100;
}

.hamburger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: var(--primary-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

/* 채팅 영역 */
.home-chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px 80px;
    scroll-behavior: smooth;
}

.date-divider {
    text-align: center;
    margin: 24px 0;
}

.date-divider span {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    display: inline-block;
}

/* 메시지 스타일 */
.home-message {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease-out;
}

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

.home-message.sent {
    flex-direction: row-reverse;
}

.home-message.sent .home-message-avatar {
    display: none;
}

.home-message-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    overflow: hidden;
}

.home-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-message-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-message.sent .home-message-content {
    align-items: flex-end;
}

.home-message-sender {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.home-message-bubble {
    background: var(--bubble-bg);
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    word-break: break-word;
}

.home-message.sent .home-message-bubble {
    background: var(--bubble-sent);
}

.home-message-time {
    font-size: 11px;
    color: var(--text-gray);
    margin: 0 4px;
}

/* 장소 카드 컨테이너 */
.home-place-cards-container {
    position: relative;
    margin-top: 12px;
    width: 100%;
}

.home-place-cards-wrapper {
    width: 100%;
    height: 480px;
    overflow: hidden;
    position: relative;
}

.home-place-cards {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.home-place-card {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-gray);
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.home-place-image {
    width: 100%;
    height: 160px;
    background: #f5f5f5;
    overflow: hidden;
    flex-shrink: 0;
}

.home-place-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-place-info {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}

.home-place-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.home-place-recommendation {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 8px;
    white-space: pre-line;
}

.home-place-category {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.home-place-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

.home-place-rating i {
    color: #FFD700;
}

.home-place-briefing {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
}

.home-place-address {
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;  /* 8px → 4px (간격 좁힘) */
}

.home-place-address i {
    color: var(--primary-pink);
    font-size: 16px;  /* 14px → 16px (네이버 아이콘 14px보다 큼) */
    margin-top: 2px;
    flex-shrink: 0;
}

.home-place-phone {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.home-place-phone i {
    color: var(--primary-pink);
}

.home-place-naver-link {
    display: flex;
    align-items: center;
    gap: 6px;  /* 8px → 6px (아이콘-텍스트 간격) */
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: none;
    margin-top: 2px;  /* 4px → 2px (위 간격 더 줄임) */
    padding: 6px 0;  /* 8px → 6px (상하 패딩 줄임) */
    transition: color 0.2s;
}

.home-place-naver-link:hover {
    color: #03C75A;
}

.home-place-naver-link .naver-icon {
    width: 14px;  /* 16px → 14px (아이콘 크기 축소) */
    height: 14px;
    flex-shrink: 0;
}

/* 기존 버튼 스타일 제거 (사용 안 함) */
.home-place-link {
    display: none;
}

.home-place-disclaimer {
    font-size: 10px;
    color: #999;
    margin-top: 8px;  /* 12px → 8px (위 간격 줄임) */
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    line-height: 1.4;
}

/* 카드 네비게이션 버튼 */
.home-card-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.2s;
    color: #333;
    font-size: 18px;
}

.home-card-nav-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.home-card-nav-btn.prev {
    left: -12px;
}

.home-card-nav-btn.next {
    right: -12px;
}

.home-card-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 카드 인디케이터 */
.home-card-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.home-card-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.home-card-indicator.active {
    background: var(--primary-pink);
    width: 24px;
    border-radius: 4px;
}

/* 입력창 */
.home-input-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border-gray);
    z-index: 90;
}

.home-input-wrapper input {
    flex: 1;
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
}

.home-icon-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-icon-btn:hover {
    color: var(--primary-pink);
}

/* 반응형 */
@media (max-width: 480px) {
    .home-message-content {
        max-width: 75%;
    }
}

/* ============================================
   모임 기능 스타일
   ============================================ */

/* 모달 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

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

.modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.modal-body {
  padding: 24px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* 카카오톡 공유 버튼 */
.btn-kakao {
  padding: 12px 24px;
  background: #FEE500;
  color: #191919;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-kakao:hover {
  background: #FDD800;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-kakao i {
  font-size: 16px;
}


/* 초대 버튼 */
.invite-btn {
  padding: 8px 16px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  margin-right: 12px;
}

.invite-btn:hover {
  background: #2563eb;
}

/* 참여자 섹션 */
.participants-section {
  padding: 16px;
}

.participants-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.participants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.participant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  transition: all 0.2s;
}

.participant-item:hover {
  background: #f3f4f6;
}

.participant-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.participant-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

.host-badge {
  padding: 4px 8px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* 시스템 메시지 */
.system-message {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.system-message-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 13px;
  color: #6b7280;
}

.system-message-content i {
  font-size: 12px;
}

/* 내 메시지 스타일 */
.home-message-mine {
  flex-direction: row-reverse;
  margin-left: auto;
  max-width: 70%;
}

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

.home-message-mine .home-message-bubble {
  background: #3b82f6;
  color: white;
}

/* 초대 모달 스타일 */
.invite-code-section,
.invite-link-section {
  margin-bottom: 24px;
}

.invite-code-section h3,
.invite-link-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 12px 0;
}

.invite-code,
.invite-link {
  padding: 16px;
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #1f2937;
  margin-bottom: 12px;
}

.invite-link {
  font-size: 14px;
  letter-spacing: normal;
  font-weight: 500;
  word-break: break-all;
}

.invite-code-section button,
.invite-link-section button {
  width: 100%;
  margin-bottom: 8px;
}

/* 아바타 플레이스홀더 */
.avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

/* 장소 검색 로딩 애니메이션 */
.loading-dot {
  display: inline-block;
  opacity: 0;
  animation: dotPulse 1.4s infinite;
}

.loading-dot:nth-child(1) {
  animation-delay: 0s;
}

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

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

@keyframes dotPulse {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* 장소 투표 버튼 */
.group-place-vote-btn {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: var(--primary-pink);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.group-place-vote-btn:hover {
  background: var(--primary-pink-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 59, 109, 0.3);
}

.group-place-vote-btn.voted {
  background: #10B981;
}

.group-place-vote-btn.voted:hover {
  background: #059669;
}

.group-place-vote-btn i {
  font-size: 16px;
}

/* 투표 현황 버튼 */
.group-vote-status-btn {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: white;
  color: var(--primary-pink);
  border: 2px solid var(--primary-pink);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.group-vote-status-btn:hover {
  background: var(--primary-pink);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 59, 109, 0.3);
}

/* 투표 현황 모달 */
.vote-status-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s;
}

.vote-status-modal {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s;
}

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

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

.vote-status-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-pink-light) 100%);
  color: white;
}

.vote-status-header h3 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.vote-status-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vote-status-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.vote-status-summary {
  padding: 16px 20px;
  background: #FFF9FA;
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--border-gray);
}

.vote-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 600;
}

.vote-stat i {
  color: var(--primary-pink);
  font-size: 16px;
}

.vote-status-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.vote-status-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-gray);
  font-size: 15px;
}

.vote-status-item {
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.vote-status-item:hover {
  border-color: var(--primary-pink);
  box-shadow: 0 4px 12px rgba(255, 59, 109, 0.1);
}

.vote-status-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.vote-rank {
  font-size: 24px;
}

.vote-place-name {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.vote-count {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-pink);
  background: rgba(255, 59, 109, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
}

.vote-status-voters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-gray);
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 500;
}

.voter-badge i {
  color: var(--primary-pink);
  font-size: 12px;
}

/* 예약 확정 카드 */
.reservation-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primary-pink);
}

.reservation-card-header {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-pink-light) 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.reservation-card-header i {
  font-size: 20px;
}

.reservation-card-body {
  padding: 20px;
}

.reservation-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-gray);
}

.reservation-item:last-child {
  border-bottom: none;
}

.reservation-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
}

.reservation-label i {
  color: var(--primary-pink);
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.reservation-value {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.reservation-card-footer {
  background: rgba(255, 59, 109, 0.05);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--primary-pink);
  font-size: 14px;
  font-weight: 600;
}

.reservation-card-footer i {
  font-size: 16px;
  animation: bell-ring 2s infinite;
}

@keyframes bell-ring {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30% {
    transform: rotate(-10deg);
  }
  20%, 40% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(0deg);
  }
}

/* 모임 선택 모달 스타일 */
.modal-compact {
  max-width: 400px !important;
  max-height: 80vh;
}

.meeting-option-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary-pink);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.meeting-option-btn:hover {
  background: var(--primary-pink-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 59, 109, 0.3);
}

.meeting-option-btn i {
  font-size: 18px;
}

.existing-meetings-list {
  max-height: 300px;
  overflow-y: auto;
}

.existing-meetings-list:empty::before {
  content: '참여 중인 모임이 없습니다';
  display: block;
  text-align: center;
  color: var(--text-gray);
  padding: 40px 20px;
  font-size: 14px;
}

.existing-meeting-item {
  width: 100%;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.existing-meeting-item:hover {
  border-color: var(--primary-pink);
  background: var(--bubble-sent);
  transform: translateX(4px);
}

.meeting-item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.meeting-item-info {
  font-size: 12px;
  color: var(--text-gray);
  display: flex;
  gap: 8px;
}

.meeting-item-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meeting-item-info i {
  font-size: 11px;
}

/* 모달 크기 축소 */
.modal-content {
  max-width: 500px;
}

.modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 6px;
}

.form-group input {
  padding: 10px 12px;
  font-size: 14px;
}

.modal-footer {
  padding: 16px 20px;
}

.modal-footer button {
  padding: 10px 20px;
  font-size: 14px;
}

/* 일정 조율 현황 모달 스타일 */
.vote-summary {
  padding: 16px;
  background: var(--bg-gray);
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
}

.vote-summary p {
  margin: 0;
  color: var(--text-dark);
  font-size: 15px;
}

.vote-status-list {
  max-height: 400px;
  overflow-y: auto;
}

.vote-status-item {
  padding: 12px;
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  margin-bottom: 8px;
}

.vote-status-schedule {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.vote-status-count {
  margin-bottom: 6px;
}

.vote-count-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-pink);
  color: white;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.vote-status-voters {
  font-size: 13px;
  color: var(--text-gray);
}

.no-votes {
  text-align: center;
  color: var(--text-gray);
  padding: 40px 20px;
  font-size: 14px;
}

/* 버튼 스타일 개선 */
.group-message-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.group-cta-button.secondary {
  background: white;
  color: var(--primary-pink);
  border: 1px solid var(--primary-pink);
}

.group-cta-button.secondary:hover {
  background: var(--bubble-sent);
}

/* 위치 현황 지도 모달 스타일 */
.modal-large {
  max-width: 800px !important;
  max-height: 90vh;
}

.location-summary {
  padding: 12px;
  background: var(--bg-gray);
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
}

.location-summary p {
  margin: 0;
  font-size: 15px;
  color: var(--text-dark);
}

.location-map-container {
  margin-bottom: 20px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  overflow: hidden;
}

.location-list {
  max-height: 300px;
  overflow-y: auto;
}

.location-list h3 {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-gray);
}

.location-item {
  padding: 12px;
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  margin-bottom: 10px;
}

.location-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.location-details {
  margin-bottom: 6px;
}

.location-point {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-point i {
  width: 14px;
  color: var(--primary-pink);
}

.location-point.start i {
  color: var(--primary-pink);
}

.location-point.end i {
  color: #4A90E2;
}

.location-prefs {
  font-size: 12px;
  color: var(--text-gray);
  padding-top: 6px;
  border-top: 1px dashed var(--border-gray);
}

.no-locations {
  text-align: center;
  color: var(--text-gray);
  padding: 40px 20px;
  font-size: 14px;
}

/* Leaflet 커스텀 마커 스타일 */
.custom-marker {
  background: transparent !important;
  border: none !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.leaflet-popup-content {
  margin: 0;
}

/* 예약 안내 카드 스타일 */
.reservation-guide-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 10px;
  max-width: 400px;
}

.reservation-guide-header {
  background: linear-gradient(135deg, #FF3B6D, #FF6B9D);
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}

.reservation-guide-header i {
  font-size: 18px;
}

.reservation-guide-body {
  padding: 20px;
}

.reservation-guide-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #666;
  font-size: 14px;
}

.reservation-guide-info i {
  width: 20px;
  color: #FF3B6D;
}

.reservation-guide-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.reservation-guide-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.reservation-guide-button.naver {
  background: #03C75A;
  color: white;
}

.reservation-guide-button.naver:hover {
  background: #02B350;
}

.reservation-guide-button.catchtable {
  background: #FF6B35;
  color: white;
}

.reservation-guide-button.catchtable:hover {
  background: #E55E2E;
}

.reservation-guide-button.phone {
  background: #4A90E2;
  color: white;
}

.reservation-guide-button.phone:hover {
  background: #3A7BC8;
}

.reservation-guide-button.disabled {
  background: #E0E0E0;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.naver-icon-small {
  width: 16px;
  height: 16px;
}

.reservation-guide-button i {
  font-size: 16px;
}

/* 영수증 정산 스타일 */
.receipt-upload-area {
  border: 2px dashed var(--border-gray);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--bg-gray);
}

.receipt-upload-area:hover {
  border-color: var(--primary-pink);
  background: #FFF5F8;
}

.receipt-upload-icon {
  font-size: 48px;
  color: var(--primary-pink);
  margin-bottom: 15px;
}

.settlement-modal {
  max-width: 800px !important;
}

.settlement-header {
  background: linear-gradient(135deg, var(--primary-pink) 0%, #FF5080 100%);
  color: white;
  padding: 30px;
  border-radius: 12px 12px 0 0;
  margin: -20px -20px 20px -20px;
}

.settlement-store-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.settlement-info {
  display: flex;
  gap: 20px;
  font-size: 14px;
  opacity: 0.95;
}

.settlement-item {
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settlement-item-info {
  flex: 1;
}

.settlement-item-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
}

.settlement-item-price {
  color: var(--text-gray);
  font-size: 14px;
}

.settlement-quantity-control {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-gray);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary-pink);
  transition: all 0.2s;
}

.quantity-btn:hover:not(:disabled) {
  background: var(--primary-pink);
  color: white;
  transform: scale(1.1);
}

.quantity-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quantity-display {
  font-size: 18px;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.settlement-item-total {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-pink);
  min-width: 100px;
  text-align: right;
}

.settlement-footer {
  background: var(--bg-gray);
  padding: 20px;
  margin: 20px -20px -20px -20px;
  border-radius: 0 0 12px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settlement-total {
  font-size: 20px;
  font-weight: bold;
}

.settlement-total-label {
  color: var(--text-gray);
  margin-right: 10px;
}

.settlement-total-amount {
  color: var(--primary-pink);
  font-size: 28px;
}

.settlement-submit-btn {
  background: var(--primary-pink);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.settlement-submit-btn:hover {
  background: var(--primary-pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 59, 109, 0.3);
}

.settlement-submit-btn:disabled {
  background: var(--border-gray);
  cursor: not-allowed;
  transform: none;
}

.receipt-analysis-progress {
  text-align: center;
  padding: 40px;
}

.progress-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border-gray);
  border-top-color: var(--primary-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.progress-text {
  font-size: 16px;
  color: var(--text-gray);
  margin-top: 15px;
}

.settlement-status-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
  box-shadow: var(--shadow);
}

.settlement-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-gray);
}

.participant-settlement {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-gray);
}

.participant-settlement:last-child {
  border-bottom: none;
}

.participant-name {
  font-weight: 600;
  margin-bottom: 8px;
}

.participant-amount {
  color: var(--primary-pink);
  font-weight: 600;
  font-size: 18px;
}

.grand-total {
  background: var(--bg-gray);
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  text-align: right;
}

.grand-total-label {
  color: var(--text-gray);
  margin-right: 10px;
}

.grand-total-amount {
  color: var(--primary-pink);
  font-size: 24px;
  font-weight: bold;
}

/* 로딩 애니메이션 - 점이 하나씩 나타났다가 사라지는 효과 v3 */
.loading-dots {
  display: inline-block;
  width: 30px;
  text-align: left;
}

.loading-dots::after {
  content: '';
  animation: dots-loading 2s steps(4, end) infinite;
}

@keyframes dots-loading {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}
