/* ═══════════════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════════════ */

:root {
  --bg:           #080808;
  --surface:      #0F0E0E;
  --surface-2:    #1C1A1A;
  --glass:        rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.09);
  --accent:       #C4904E;
  --accent-light: #DDA86A;
  --accent-dim:   rgba(196, 144, 78, 0.12);
  --text:         #EDE7DF;
  --text-2:       #6A6560;
  --danger:       #B83232;
  --danger-hover: #C43E3E;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui:      'Outfit', -apple-system, sans-serif;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.035;
}


/* ═══════════════════════════════════════════════════
   RECONNECT TOAST (상단 캡슐형)
═══════════════════════════════════════════════════ */

.reconnect-toast {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  background: rgba(10, 8, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 10000;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.reconnect-toast.hidden {
  opacity: 0;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════════
   ROOM JOIN MODAL
═══════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.hidden {
  display: none;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
  border-radius: 24px 24px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: sheetUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes sheetUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--glass-border);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#modalStatus {
  min-height: 1.2em;
  font-size: 0.78rem;
  color: var(--danger);
  font-weight: 400;
  letter-spacing: 0.02em;
}

#joinBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: #100D08;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.12s;
}

#joinBtn:hover             { background: var(--accent-light); }
#joinBtn:active            { transform: scale(0.97); }
#joinBtn:disabled          { opacity: 0.5; cursor: not-allowed; transform: none; }

/* 로딩 스피너 */
.join-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(16, 13, 8, 0.35);
  border-top-color: #100D08;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* Shared input wrap style */
.input-wrap { position: relative; }

.input-wrap input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.input-wrap input::placeholder { color: var(--text-2); }

.input-wrap input:focus {
  border-color: var(--accent);
  background: rgba(196, 144, 78, 0.05);
  box-shadow: 0 0 0 3px rgba(196, 144, 78, 0.09);
}


/* ═══════════════════════════════════════════════════
   SESSION START BUTTON (로비 패널)
═══════════════════════════════════════════════════ */

#startSessionBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: #100D08;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.12s;
}

#startSessionBtn:hover             { background: var(--accent-light); }
#startSessionBtn:active            { transform: scale(0.97); }
#startSessionBtn:disabled          { opacity: 0.5; cursor: not-allowed; transform: none; }


/* ═══════════════════════════════════════════════════
   WAITING PANEL (대기 화면 — 세션 생성자)
═══════════════════════════════════════════════════ */

.invite-link-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.invite-link-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.invite-link-text {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--accent-light);
  letter-spacing: 0.02em;
  word-break: break-all;
  line-height: 1.4;
}

.invite-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 2px;
}

.invite-countdown-label {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

.invite-countdown-value {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

#shareLinkBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: #100D08;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.12s;
}

#shareLinkBtn:hover  { background: var(--accent-light); }
#shareLinkBtn:active { transform: scale(0.97); }

.cancel-session-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cancel-session-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}

.cancel-session-btn:active { transform: scale(0.97); }


/* ═══════════════════════════════════════════════════
   CONNECTING PANEL (연결 중 — 링크 진입 사용자)
═══════════════════════════════════════════════════ */

.connecting-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 8px;
}

.connecting-spinner {
  width: 16px !important;
  height: 16px !important;
  border: 2px solid rgba(255, 255, 255, 0.15) !important;
  border-top-color: var(--accent) !important;
}

.connecting-text {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: 0.06em;
}


/* ═══════════════════════════════════════════════════
   CALL CONTAINER
═══════════════════════════════════════════════════ */

.call-container {
  display: flex;
  position: fixed;
  inset: 0;
}


/* ═══════════════════════════════════════════════════
   VIDEOS — 혼자 모드 / PiP 레이아웃
═══════════════════════════════════════════════════ */

.videos {
  position: absolute;
  inset: 0;
}

/* Remote: fills entire space */
.video-wrapper.video-remote {
  position: absolute;
  inset: 0;
  background: var(--surface);
}

.video-wrapper.video-remote video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

/* Local: 혼자 모드에서는 전체 화면 채움, 연결 후 PiP */
.video-wrapper.video-local {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-wrapper.video-local.pip {
  inset: auto;
  right: 14px;
  bottom: 92px;
  width: 96px;
  height: 152px;
  border-radius: 16px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.65),
    0 2px 8px  rgba(0, 0, 0, 0.4),
    0 0 0 1.5px rgba(255, 255, 255, 0.08);
  animation: pipIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}

@keyframes pipIn {
  from { opacity: 0; transform: scale(0.6) translateY(18px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.video-wrapper.video-local video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

/* Labels */
.video-label {
  position: absolute;
  bottom: 7px;
  left: 8px;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 7px;
  border-radius: 5px;
  z-index: 1;
}

/* Waiting indicator */
.status-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.07em;
  animation: waitPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes waitPulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 1; }
}


/* ═══════════════════════════════════════════════════
   COMPOSITE VIEW
═══════════════════════════════════════════════════ */

.composite-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 1;
}

.composite-view canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  transform: scaleX(-1);
}


/* ═══════════════════════════════════════════════════
   BACKGROUND PANEL
═══════════════════════════════════════════════════ */

.bg-panel {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 14px;
  background: rgba(10, 8, 8, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  z-index: 5;
  white-space: nowrap;
  /* 스와이프 배지 fade 트랜지션 */
  opacity: 1;
  transition: opacity 0.5s ease;
}

.bg-panel--fade-out {
  opacity: 0;
  pointer-events: none;
}

.bg-panel-state {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 400;
}

.bg-panel-sep {
  font-size: 0.6rem;
  color: var(--text-2);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════
   CONTROLS
═══════════════════════════════════════════════════ */

.controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 20px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top,
    rgba(4, 3, 3, 0.92) 0%,
    rgba(4, 3, 3, 0.5)  55%,
    transparent         100%
  );
  z-index: 10;
}

/* 혼자 모드 / 통화 모드 컨트롤 그룹 */
.controls-solo,
.controls-call {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.controls button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.controls button svg {
  width: 20px;
  height: 20px;
}

.controls button:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
}

.controls button:active { transform: scale(0.9); }

/* Dual-state icon system */
.controls button .icon-off               { display: none; }
.controls button.active .icon-on          { display: none; }
.controls button.active .icon-off         { display: block; }

/* Active = muted/off → red tint */
.controls button.active {
  background: rgba(184, 50, 50, 0.2);
  border-color: rgba(184, 50, 50, 0.4);
  color: #C06060;
}

/* Layer toggle active → amber (not red) */
#toggleLayer.active {
  background: var(--accent-dim);
  border-color: rgba(196, 144, 78, 0.3);
  color: var(--accent-light);
}

/* End Call */
.controls button.end-call {
  width: 64px;
  height: 50px;
  border-radius: 25px;
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.controls button.end-call:hover {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
}

/* 혼자 모드 셔터 (크게) */
.shutter-btn {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.shutter-btn svg {
  width: 26px !important;
  height: 26px !important;
}

/* 같이 찍기 버튼 (텍스트 포함, 더 넓게) */
.together-btn {
  width: auto !important;
  padding: 0 18px !important;
  border-radius: 25px !important;
  gap: 7px;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #100D08 !important;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.together-btn:hover {
  background: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
}

.together-btn svg {
  width: 18px !important;
  height: 18px !important;
}


/* ═══════════════════════════════════════════════════
   CAPTURE FLASH OVERLAY
═══════════════════════════════════════════════════ */

.capture-flash {
  position: fixed;
  inset: 0;
  background: #ffffff;
  pointer-events: none;
  opacity: 0;
  /* z-index: 필름 그레인(9999) 아래, 나머지 UI 위 */
  z-index: 9998;
}

.capture-flash.active {
  opacity: 1;
  transition: none;
}

.capture-flash.fading {
  opacity: 0;
  transition: opacity 0.7s ease-out;
}


/* ═══════════════════════════════════════════════════
   HIDDEN UTILITY
═══════════════════════════════════════════════════ */

.hidden { display: none !important; }


/* ═══════════════════════════════════════════════════
   GALLERY VIEW
═══════════════════════════════════════════════════ */

.gallery-view {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  z-index: 20;
  animation: galleryUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes galleryUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.gallery-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.gallery-header button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-header button:hover { background: rgba(255, 255, 255, 0.1); }

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text);
}

.gallery-grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
  align-content: flex-start;
}

.gallery-item {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.gallery-item:hover         { transform: scale(1.025); }
.gallery-item.selected      { border-color: var(--accent); }

.gallery-item canvas {
  display: block;
  height: 200px;
  width: auto;
}

.gallery-footer {
  display: flex;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.gallery-footer button {
  padding: 13px 48px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #100D08;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.gallery-footer button:hover:not(:disabled)   { background: var(--accent-light); }
.gallery-footer button:active:not(:disabled)  { transform: scale(0.97); }

.gallery-footer button:disabled {
  background: var(--surface-2);
  color: var(--text-2);
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════
   BEAUTY TOGGLE BUTTONS (솔로 + 통화 컨트롤 바 공통)
═══════════════════════════════════════════════════ */

/* 기본 원형 버튼 스타일은 .controls button 공통으로 적용됨 */
/* active 상태 = 뷰티 ON → amber 강조 (#toggleLayer.active 와 동일 언어) */
#beautyToggleBtn.active,
#soloBeautyBtn.active {
  background: var(--accent-dim);
  border-color: rgba(196, 144, 78, 0.3);
  color: var(--accent-light);
}


/* ═══════════════════════════════════════════════════
   BEAUTY PANEL OVERLAY (통화 화면 하단 고정)
═══════════════════════════════════════════════════ */

.beauty-panel-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* 컨트롤 바(z-index:10) 위에, 모달(z-index:500) 아래 */
  z-index: 50;
  background: rgba(8, 6, 6, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: sheetUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 패널 헤더: 탭 + 닫기 버튼 */
.beauty-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 0;
  border-bottom: 1px solid var(--glass-border);
}

.beauty-panel-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.72rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.beauty-panel-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* 탭 바 */
.beauty-tabs {
  display: flex;
  gap: 0;
}

.beauty-tab {
  padding: 11px 16px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.beauty-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.beauty-tab.active {
  color: var(--text);
}

.beauty-tab.active::after {
  opacity: 1;
}

.beauty-tab:hover:not(.active) {
  color: rgba(237, 231, 223, 0.65);
}

/* 탭 콘텐츠 */
.beauty-tab-content {
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 슬라이더 그룹 */
.beauty-slider-group {
  padding: 8px 0;
}

.beauty-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.beauty-slider-label {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}

.beauty-slider-value {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  min-width: 24px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* range input 커스텀 */
.beauty-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--glass-border);
  outline: none;
  cursor: pointer;
}

.beauty-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.beauty-slider::-webkit-slider-thumb:hover {
  background: var(--accent-light);
  transform: scale(1.15);
}

.beauty-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

/* "곧 지원 예정" 메시지 */
.beauty-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 0 16px;
  text-align: center;
}

.beauty-coming-soon-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.04em;
}

.beauty-coming-soon-sub {
  font-size: 0.74rem;
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: 0.03em;
  line-height: 1.5;
  max-width: 260px;
}


/* ─────────────────────────────────────────────
   GALLERY EMPTY STATE
───────────────────────────────────────────── */

.gallery-empty {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  gap: 10px;
}

.gallery-empty-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}

.gallery-empty-sub {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
