/* === 랜딩 페이지 (비로그인 풀스크린) === */

.landing-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--night, #0B1026);
  background-image: url('../images/stars-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: landing-fade-in 0.5s ease-out;
}

@keyframes landing-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 별 반짝임 효과 (은은한 골드 파티클) */
.landing-overlay::before,
.landing-overlay::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(244, 197, 66, 0.4);
  pointer-events: none;
}

.landing-overlay::before {
  width: 3px;
  height: 3px;
  top: 18%;
  left: 22%;
  animation: landing-twinkle-a 5s ease-in-out infinite;
  box-shadow:
    calc(60vw) calc(8vh) 0 1px rgba(244, 197, 66, 0.25),
    calc(30vw) calc(72vh) 0 0.5px rgba(244, 197, 66, 0.2),
    calc(75vw) calc(35vh) 0 1.5px rgba(244, 197, 66, 0.3),
    calc(15vw) calc(50vh) 0 0.5px rgba(244, 197, 66, 0.15),
    calc(85vw) calc(65vh) 0 1px rgba(244, 197, 66, 0.25),
    calc(45vw) calc(15vh) 0 1px rgba(244, 197, 66, 0.2),
    calc(92vw) calc(20vh) 0 0.5px rgba(244, 197, 66, 0.15);
}

.landing-overlay::after {
  width: 2px;
  height: 2px;
  top: 40%;
  right: 30%;
  animation: landing-twinkle-b 6s ease-in-out 1.5s infinite;
  box-shadow:
    calc(-20vw) calc(-15vh) 0 1px rgba(244, 197, 66, 0.25),
    calc(10vw) calc(20vh) 0 0.5px rgba(244, 197, 66, 0.2),
    calc(-40vw) calc(30vh) 0 1px rgba(244, 197, 66, 0.3),
    calc(-55vw) calc(5vh) 0 0.5px rgba(244, 197, 66, 0.15),
    calc(25vw) calc(-10vh) 0 1px rgba(244, 197, 66, 0.2);
}

@keyframes landing-twinkle-a {
  0%, 100% { opacity: 0.3; }
  40% { opacity: 0.9; }
  60% { opacity: 0.5; }
  80% { opacity: 1; }
}
@keyframes landing-twinkle-b {
  0%, 100% { opacity: 0.5; }
  30% { opacity: 1; }
  70% { opacity: 0.3; }
}

/* ── 별똥별 (Shooting Stars) ── */
.shooting-star {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  height: 1.5px;
  border-radius: 1px;
  /* 머리(왼쪽=이동 앞쪽)→꼬리(오른쪽=뒤쪽) */
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.85),
    rgba(244, 197, 66, 0.5) 30%,
    rgba(244, 197, 66, 0.15) 65%,
    transparent
  );
  /* 우상→좌하 대각선: 약 -55도 (더 가파르게 아래로) */
  transform: rotate(-55deg);
}

/* 머리 글로우 */
.shooting-star::before {
  content: '';
  position: absolute;
  left: -2px;
  top: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 6px 2px rgba(244, 197, 66, 0.4);
}

/* 공통 애니메이션: 사라지지 않고 화면 끝까지 통과 */
@keyframes shoot {
  0%   { opacity: 0;   transform: rotate(-55deg) translate(0, 0); }
  2%   { opacity: 0.8; }
  20%  { opacity: 0.6; }
  25%  { opacity: 0.4; transform: rotate(-55deg) translate(-120vw, 0); }
  25.1%{ opacity: 0;   }
  100% { opacity: 0;   transform: rotate(-55deg) translate(-120vw, 0); }
}
@keyframes shoot-fast {
  0%   { opacity: 0;   transform: rotate(-50deg) translate(0, 0); }
  2%   { opacity: 0.7; }
  15%  { opacity: 0.5; }
  18%  { opacity: 0.3; transform: rotate(-50deg) translate(-120vw, 0); }
  18.1%{ opacity: 0;   }
  100% { opacity: 0;   transform: rotate(-50deg) translate(-120vw, 0); }
}

/* 3개 별똥별 — 시간차를 두고 하나씩 뜨문뜨문 */
.s1 { top: -5%;   left: 30%;  width: 180px; animation: shoot      22.5s linear 0s   infinite; }
.s2 { top: 10%;   right: -5%; left: auto; width: 140px; animation: shoot-fast 20s   linear 10s  infinite; }
.s3 { top: -5%;   left: 55%;  width: 160px; animation: shoot      25s   linear 21s  infinite; }

/* ── 은은한 글로우 (배경 중앙 호흡) ── */
.landing-glow {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(244, 197, 66, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: landing-glow 10s ease-in-out infinite;
}

@keyframes landing-glow {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* reduced-motion 존중 */
@media (prefers-reduced-motion: reduce) {
  .shooting-star,
  .landing-glow,
  .landing-overlay::before,
  .landing-overlay::after {
    animation: none !important;
    opacity: 0.5;
  }
}

/* ── 어린 왕자 일러스트 ── */
.landing-prince {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  object-fit: contain;
  /* 오른쪽·위쪽 가장자리를 배경에 스며들게 */
  -webkit-mask-image:
    linear-gradient(to right, rgba(0,0,0,1) 70%, rgba(0,0,0,0.3) 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 18%, rgba(0,0,0,0.7) 32%, rgba(0,0,0,1) 45%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, rgba(0,0,0,1) 70%, rgba(0,0,0,0.3) 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 18%, rgba(0,0,0,0.7) 32%, rgba(0,0,0,1) 45%);
  mask-composite: intersect;
  /* 로그인 버튼이 자리잡은 뒤 등장 (content 애니메이션 1.0s 후) */
  animation: prince-fade-in 0.8s ease-out 1.2s both;
}

/* 모바일: 왼쪽 아래, 로그인 버튼 위에 */
.landing-prince {
  left: 2%;
  bottom: 155px;
  width: 70vw;
  max-width: 340px;
  opacity: 0.85;
}

/* 태블릿·PC: 왼쪽 아래 바닥에 고정 */
@media (min-width: 481px) {
  .landing-prince {
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 30vw;
    opacity: 0.75;
  }
}

/* 중앙 콘텐츠 — 어린 왕자 공간 확보를 위해 살짝 위로 */
.landing-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-bottom: 0;
  animation: landing-content-in 0.8s ease-out 0.2s both;
}

@keyframes landing-content-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 어린 왕자: 배경에서 서서히 스며나오듯 등장 */
@keyframes prince-fade-in {
  from { opacity: 0; filter: blur(3px) brightness(0.7); }
  to   { opacity: 0.85; filter: blur(0) brightness(1); }
}

/* 로고 */
.landing-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold, #f4c542);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(244, 197, 66, 0.3);
}

.landing-logo .logo-eye-gate {
  top: -2px;
}

.landing-logo .eye-ball-gate {
  width: 34px;
  height: 34px;
  border-width: 3px;
}

.landing-logo .eye-pupil-gate {
  width: 18px;
  height: 18px;
}

.landing-logo .logo-stars-gate {
  font-size: 0.45em;
  top: -5px;
}

/* 서브타이틀 */
.landing-subtitle {
  color: var(--sand, #ECE8E1);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  font-weight: 400;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* 태그라인 — 초대제 안내 */
.landing-tagline {
  color: var(--gold, #f4c542);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  opacity: 0.75;
  margin-bottom: 0;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(244, 197, 66, 0.4);
}

/* 장식 라인 */
.landing-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 197, 66, 0.5), transparent);
  margin: 1.5rem 0;
}

/* 하단 버튼 영역 */
.landing-buttons {
  width: 100%;
  max-width: 400px;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: landing-btns-in 0.7s ease-out 0.5s both;
}

@keyframes landing-btns-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  font-family: var(--font-main, 'Noto Sans KR', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.3s, background 0.3s;
  min-height: 52px;
  letter-spacing: 0.02em;
  text-align: center;
  border: none;
}

.landing-btn:active {
  transform: scale(0.98);
}

/* 로그인 버튼 — 골드 */
.landing-btn-login {
  background: linear-gradient(135deg, var(--gold, #f4c542) 0%, var(--gold-dark, #D4A82E) 100%);
  color: var(--night, #0a0e1a);
  box-shadow: 0 4px 24px rgba(244, 197, 66, 0.3);
}

.landing-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(244, 197, 66, 0.45);
}

/* 회원가입 버튼 — 투명 테두리 */
.landing-btn-signup {
  background: rgba(21, 32, 66, 0.85);
  color: var(--sand, #ECE8E1);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.landing-btn-signup:hover {
  background: rgba(21, 32, 66, 0.90);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* 랜딩 페이지 나가기 애니메이션 */
.landing-overlay.landing-exit {
  animation: landing-fade-out 0.4s ease-in forwards;
}

@keyframes landing-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* safe-area 대응 (아이폰 노치) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .landing-buttons {
    padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  }
}

/* 모바일 최적화 */
@media (max-width: 480px) {
  .landing-overlay {
    background-position: left center;
  }
  .landing-content {
    justify-content: flex-start;
    padding-top: 18vh;
  }
  /* 모바일: 글자 뒤 은은한 그라데이션으로 별 가리기 */
  .landing-logo {
    font-size: 2.6rem;
    text-shadow:
      0 0 6px rgba(11,16,38,1),
      0 0 6px rgba(11,16,38,1),
      0 0 12px rgba(11,16,38,1),
      0 0 12px rgba(11,16,38,1),
      0 0 20px rgba(11,16,38,0.9),
      0 0 20px rgba(11,16,38,0.9),
      0 0 35px rgba(11,16,38,0.7),
      0 0 50px rgba(11,16,38,0.5);
  }

  .landing-logo .eye-ball-gate {
    width: 28px;
    height: 28px;
  }

  .landing-logo .eye-pupil-gate {
    width: 15px;
    height: 15px;
  }
  .landing-logo .logo-stars-gate {
    text-shadow: none;
  }

  .landing-subtitle {
    font-size: 0.8rem;
    text-shadow:
      0 0 5px rgba(11,16,38,1),
      0 0 5px rgba(11,16,38,1),
      0 0 10px rgba(11,16,38,1),
      0 0 10px rgba(11,16,38,1),
      0 0 20px rgba(11,16,38,0.8),
      0 0 35px rgba(11,16,38,0.6);
  }
  .landing-tagline {
    text-shadow:
      0 0 5px rgba(11,16,38,1),
      0 0 5px rgba(11,16,38,1),
      0 0 10px rgba(11,16,38,1),
      0 0 10px rgba(11,16,38,1),
      0 0 20px rgba(11,16,38,0.8),
      0 0 35px rgba(11,16,38,0.5);
  }

  .landing-buttons {
    padding: 0 1.25rem 2.5rem;
  }
}

/* 가로 모드 대응 */
@media (max-height: 500px) {
  .landing-content {
    padding: 1rem;
  }

  .landing-logo {
    font-size: 2.2rem;
  }

  .landing-divider {
    margin: 0.75rem 0;
  }

  .landing-buttons {
    padding-bottom: 1.5rem;
  }
}

/* === 로그인/회원가입 버튼 & 프로필 === */
.auth-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-buttons {
  display: flex;
  gap: 0.4rem;
}

/* 회원가입 골드 버튼 */
.btn-gold {
  background: rgba(244, 197, 66, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-gold:hover {
  background: rgba(244, 197, 66, 0.25);
  border-color: var(--gold);
}

/* 프로필 기본 아바타 (ID/PW 사용자) */
.profile-avatar-default {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--gold-muted);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 프로필 버튼 */
.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem 0.25rem 0.25rem;
  min-height: 44px;
  background: rgba(37, 48, 82, 0.90);
  border: 1px solid var(--border);
  border-radius: 22px;
  cursor: pointer;
  transition: all var(--transition);
}

.profile-btn:hover {
  border-color: var(--gold);
  background: rgba(37, 48, 82, 0.9);
}

.profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
}

.profile-name {
  font-size: 0.78rem;
  color: var(--sand);
  font-weight: 600;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 드롭다운 */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--night-card-95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.profile-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown-header {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
}

.profile-dropdown-email {
  font-size: 0.72rem;
  color: var(--sand-dark);
  word-break: break-all;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--sand);
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  font-family: var(--font-main);
  text-align: left;
}

.profile-dropdown-item:hover,
.profile-dropdown-item:focus-visible {
  background: rgba(244, 197, 66, 0.1);
}

.profile-dropdown-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.profile-dropdown-item.danger {
  color: var(--rose);
}

/* 동기화 상태 */
.sync-status {
  font-size: 0.7rem;
  color: var(--sage);
  padding: 0.3rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.3rem;
}

.sync-status.syncing {
  color: var(--gold);
}

/* === 로그인/회원가입 모달 === */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9500;
  padding: 1rem;
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--night-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(244, 197, 66, 0.1);
}

.auth-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--sand-muted);
  font-size: 1.4rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.15s;
  border-radius: var(--radius-xs);
}

.auth-modal-close:hover {
  color: var(--sand);
}

.auth-modal-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.auth-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auth-field label {
  font-size: 0.78rem;
  color: var(--sand-dark);
  font-weight: 600;
}

.auth-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--night-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--sand);
  font-size: 0.9rem;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s;
}

.auth-input:focus {
  border-color: var(--gold);
}

.auth-input::placeholder {
  color: var(--sand-muted);
  opacity: 0.6;
}

.auth-error {
  font-size: 0.78rem;
  color: var(--rose);
  min-height: 1.1em;
}

.auth-btn {
  width: 100%;
  padding: 0.65rem;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.auth-btn-primary {
  background: var(--gold);
  color: var(--night);
}

.auth-btn-primary:hover:not(:disabled) {
  background: var(--gold-light);
}

.auth-btn-signup {
  background: transparent;
  color: var(--gold, #f4c542);
  border: 1.5px solid var(--gold, #f4c542);
  margin-top: 0.5rem;
}

.auth-btn-signup:hover {
  background: rgba(244, 197, 66, 0.12);
}

.auth-link {
  text-align: center;
  font-size: 0.82rem;
  color: var(--sand-muted);
  margin-top: 1rem;
}

.auth-link a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

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

/* 닉네임 힌트 */
.auth-hint {
  font-size: 0.75rem;
  min-height: 1em;
  transition: color 0.15s;
}

.auth-hint-ok {
  color: var(--sage);
}

.auth-hint-error {
  color: var(--rose);
}

.auth-hint-checking {
  color: var(--sand-muted);
}

/* 프로필 편집 — 프로필 사진 */
.edit-profile-photo-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--gold);
  margin: 0 auto 0.5rem;
}

.edit-profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edit-profile-photo-default {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-muted);
  color: var(--gold);
  font-size: 2rem;
  font-weight: 700;
}

.edit-profile-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}

.edit-profile-photo-wrap:hover .edit-profile-photo-overlay {
  opacity: 1;
}

/* === 승인 대기 화면 === */
.pending-approval-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 16, 38, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.pending-approval-card {
  text-align: center;
  max-width: 380px;
  width: 100%;
  background: var(--night-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pending-approval-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.pending-approval-title {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.pending-approval-desc {
  color: var(--sand);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.pending-approval-sub {
  color: var(--sand-dark);
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
}

.pending-approval-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* === 승인 알림 배지 === */
.approval-badge {
  position: relative;
  background: rgba(244, 197, 66, 0.15);
  border: 1px solid var(--gold-dark);
  border-radius: 20px;
  padding: 0.3rem 0.6rem;
  color: var(--gold);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 36px;
  transition: all 0.2s;
  font-family: var(--font-main);
  animation: approval-pulse 2s ease-in-out infinite;
}

.approval-badge:hover {
  background: rgba(244, 197, 66, 0.25);
  border-color: var(--gold);
}

.approval-badge-count {
  background: var(--rose);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

@keyframes approval-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* === 승인 모달 === */
.approval-modal {
  max-width: 420px;
  width: 100%;
}

.approval-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
}

.approval-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(37, 48, 82, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.approval-item-name {
  font-size: 0.9rem;
  color: var(--sand);
  font-weight: 600;
}

.approval-item-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* === 회원 호출 오버레이 === */
.summon-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 16, 38, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.summon-card {
  max-width: 480px;
  width: 100%;
  background: var(--night-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.summon-card-header {
  text-align: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.summon-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.summon-card-title {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.summon-card-reason {
  font-size: 0.88rem;
  color: var(--sand);
  line-height: 1.5;
}

.summon-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 400px;
  min-height: 120px;
}

.summon-msg-mine {
  align-self: flex-end;
  max-width: 80%;
  background: rgba(244, 197, 66, 0.12);
  border: 1px solid rgba(244, 197, 66, 0.2);
  border-radius: 12px 12px 4px 12px;
  padding: 0.5rem 0.75rem;
}

.summon-msg-other {
  align-self: flex-start;
  max-width: 80%;
  background: rgba(37, 48, 82, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 0.5rem 0.75rem;
}

.summon-msg-sender {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.summon-msg-text {
  font-size: 0.88rem;
  color: var(--sand);
  word-break: break-word;
  line-height: 1.5;
}

.summon-msg-time {
  font-size: 0.65rem;
  color: var(--sand-muted);
  text-align: right;
  margin-top: 0.2rem;
}

.summon-msg-system {
  align-self: center;
  font-size: 0.78rem;
  color: var(--sand-muted);
  font-style: italic;
  text-align: center;
  padding: 0.3rem 0;
}

.summon-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.summon-input-row textarea {
  flex: 1;
  resize: none;
  background: var(--night-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--sand);
  font-family: var(--font-main);
  font-size: 0.88rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  min-height: 40px;
  max-height: 100px;
}

.summon-input-row textarea:focus {
  border-color: var(--gold);
}

.summon-input-row .summon-send-btn {
  align-self: flex-end;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--night);
  border: none;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-family: var(--font-main);
  font-size: 0.88rem;
  cursor: pointer;
  min-height: 40px;
  transition: background 0.15s;
}

.summon-input-row .summon-send-btn:hover {
  background: var(--gold-light);
}

.summon-card-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.summon-card-footer button {
  color: var(--rose);
  background: none;
  border: none;
  font-size: 0.82rem;
  font-family: var(--font-main);
  cursor: pointer;
}

/* 모바일 반응형 */
@media (max-width: 480px) {
  .profile-name {
    display: none;
  }

  .profile-btn {
    padding-right: 0.25rem;
  }

  .auth-buttons .btn .btn-label {
    display: none;
  }

  .auth-modal {
    padding: 1.5rem 1.25rem;
  }

  .approval-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .approval-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* === 로딩 화면 (인증 확인 중) === */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--night, #0B1026);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loading-dots {
  display: flex;
  gap: 0.4rem;
}
.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #f0a030);
  animation: loading-dot 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading-dot {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

.loading-exit {
  animation: loading-fade-out 0.3s ease forwards;
}

@keyframes loading-fade-out {
  to { opacity: 0; }
}
