/* ============================================================
   8POD DESIGN SYSTEM - custom.css 원본
   이 파일의 <style> 전체가 /app/static/css/custom.css 내용
   ============================================================ */

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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8f0;
  --text2: #9999aa;
  --accent: #6c5ce7;
  --accent2: #a29bfe;
  --accent3: #fd79a8;
  --green: #00b894;
  --orange: #e17055;
  --red: #d63031;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
  --bg: #f5f5fa;
  --bg2: #ffffff;
  --bg3: #ededf5;
  --border: rgba(0, 0, 0, 0.08);
  --text: #111118;
  --text2: #666677;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Pretendard", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── HEADER ── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
  overflow: visible;
}

[data-theme="light"] .header {
  background: rgba(245, 245, 250, 0.85);
}

.logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-tab {
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Pretendard", sans-serif;
}

.nav-tab:hover,
.nav-tab.active {
  background: var(--bg3);
  color: var(--text);
}

.nav-tab.active {
  color: var(--accent2);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  width: 220px;
}

.header-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: "Pretendard", sans-serif;
  width: 100%;
}

.header-search input::placeholder {
  color: var(--text2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.online-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text2);
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.login-btn {
  padding: 8px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Pretendard", sans-serif;
  transition: opacity 0.2s;
}

.login-btn:hover {
  opacity: 0.85;
}

/* ── HERO ── */

.hero {
  padding: 80px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse,
      rgba(108, 92, 231, 0.15) 0%,
      transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent2);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text2);
  max-width: 480px;
  margin: 0 auto 40px;
}

/* ── SERVICE PILLS ── */

.service-strip {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 24px;
  margin-bottom: 40px;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--text);
}

.service-pill:hover,
.service-pill.active {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.1);
  color: var(--accent2);
}

.service-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ── STATS BAR ── */

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text2);
  margin-top: 2px;
}

/* ── NOTICE BANNER ── */

.notice-banner {
  margin: 0 24px 24px;
  padding: 14px 20px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--accent2);
}

/* ── FILTER / SORT ── */

.list-controls {
  padding: 0 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}

.filter-tab {
  padding: 6px 16px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Pretendard", sans-serif;
}

.filter-tab.active {
  background: var(--accent);
  color: white;
}

.sort-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 13px;
  font-family: "Pretendard", sans-serif;
  cursor: pointer;
  margin-left: auto;
}

/* ── PARTY GRID ── */

.party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 24px 60px;
}

/* ── PARTY CARD ── */

.party-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
}

.party-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(108, 92, 231, 0.3);
}

.card-header {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.service-info .service-name {
  font-size: 16px;
  font-weight: 700;
}

.service-info .cat-tag {
  font-size: 11px;
  color: var(--text2);
  background: var(--bg3);
  border-radius: 4px;
  padding: 1px 6px;
  display: inline-block;
  margin-top: 2px;
}

.new-badge {
  background: linear-gradient(135deg, var(--accent3), #e84393);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.card-title {
  padding: 0 20px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.card-host {
  padding: 0 20px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.host-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.host-name {
  font-size: 13px;
  color: var(--text2);
}

.host-rating {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #ffd700;
}

.card-slots {
  padding: 0 20px 14px;
}

.slot-bar-bg {
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.slot-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--accent2));
  transition: width 0.3s;
}

.slot-bar-fill.full {
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.slot-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text2);
}

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-block .price-label {
  font-size: 11px;
  color: var(--text2);
}

.price-block .price-amount {
  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--accent2);
}

.price-block .price-unit {
  font-size: 12px;
  color: var(--text2);
}

.approval-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.approval-auto {
  background: rgba(0, 184, 148, 0.15);
  color: var(--green);
}

.approval-manual {
  background: rgba(225, 112, 85, 0.15);
  color: var(--orange);
}

.join-btn {
  padding: 8px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Pretendard", sans-serif;
  transition: opacity 0.2s;
}

.join-btn:hover {
  opacity: 0.85;
}

.join-btn:disabled {
  background: var(--bg3);
  color: var(--text2);
  cursor: not-allowed;
}

/* ── HOW IT WORKS ── */

.section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text2);
  margin-bottom: 40px;
  font-size: 15px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s;
}

.step-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
}

.step-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── TRUST ── */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.trust-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.trust-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.trust-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

/* ── REVIEWS ── */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.review-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.reviewer-name {
  font-size: 14px;
  font-weight: 600;
}

.reviewer-service {
  font-size: 12px;
  color: var(--text2);
}

.review-stars {
  margin-left: auto;
  color: #ffd700;
  font-size: 13px;
}

.review-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── FOOTER ── */

.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  font-size: 13px;
  color: var(--text2);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text2);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-info {
  line-height: 2;
}

.footer-disclaimer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text2);
  opacity: 0.7;
}

/* ── FIXED BUTTONS ── */

.fixed-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.fab:hover {
  transform: scale(1.1);
}

.fab-kakao {
  background: #fee500;
}

.fab-lang {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

/* ── TOAST ── */

/* 기존 하단 우측 → 상단 중앙으로 변경 */
.toast-container {
  position: fixed;
  top: 64px;
  /* 네비바 높이만큼 */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-radius: 99px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text1);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(108, 92, 231, 0.25);
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-join {
  border-color: rgba(108, 92, 231, 0.3);
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── LOGIN MODAL ── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 380px;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 42px;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.modal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal p {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 28px;
}

.google-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Pretendard", sans-serif;
  transition: all 0.2s;
}

.google-btn:hover {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.1);
}

.modal-close {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
}

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

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  .nav-tabs {
    display: none;
  }

  .header-search {
    display: none;
  }

  .hero {
    padding: 48px 16px 32px;
  }

  .party-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 40px;
  }

  .stats-bar {
    gap: 24px;
  }

  .section {
    padding: 40px 16px;
  }
}

/* ============================================================
   STEP 3 - 파티 상세페이지 CSS
   /app/static/css/custom.css 끝에 추가
   ============================================================ */

/* ── BREADCRUMB ── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--text2);
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb a {
  color: var(--text2);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent2);
}

/* ── DETAIL WRAP / LAYOUT ── */

.detail-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin-top: 24px;
  align-items: start;
}

/* ── LEFT: 메인 ── */

.detail-service-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.service-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.detail-service-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-service-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* 파티장 카드 */

.detail-host-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.host-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.detail-host-name {
  font-size: 16px;
  font-weight: 700;
}

.detail-host-sub {
  font-size: 12px;
  color: var(--text2);
  margin-top: 2px;
}

.detail-host-rating {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.rating-star {
  color: #ffd700;
}

.rating-num {
  font-weight: 700;
}

.rating-count {
  color: var(--text2);
  font-size: 12px;
}

/* 슬롯 카드 */

.detail-slots-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.detail-slots-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-slots-title {
  font-size: 15px;
  font-weight: 700;
}

.slot-visual {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.slot-dot {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2px solid var(--border);
  transition: all 0.2s;
}

.slot-used {
  background: rgba(108, 92, 231, 0.15);
  border-color: rgba(108, 92, 231, 0.3);
}

.slot-free {
  background: rgba(0, 184, 148, 0.1);
  border-color: rgba(0, 184, 148, 0.3);
  color: var(--green);
  font-size: 22px;
  font-weight: 300;
}

/* 파티 정보 카드 */

.detail-info-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.detail-info-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.detail-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-size: 13px;
  color: var(--text2);
}

.info-value {
  font-size: 14px;
  font-weight: 500;
}

/* 리뷰 섹션 */

.detail-reviews-section {
  margin-top: 8px;
}

.detail-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-total-badge {
  font-size: 13px;
  font-weight: 500;
  background: var(--bg3);
  padding: 2px 10px;
  border-radius: 12px;
  color: var(--text2);
}

.detail-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-reviews {
  text-align: center;
  padding: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── RIGHT: 사이드바 ── */

.detail-sidebar {
  position: sticky;
  top: 80px;
}

.purchase-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 16px;
}

.purchase-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.purchase-amount {
  font-family: "Bebas Neue", sans-serif;
  font-size: 40px;
  letter-spacing: 1px;
  color: var(--accent2);
  line-height: 1;
}

.purchase-slot-status {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.join-btn-lg {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: block;
}

.already-member-msg {
  font-size: 13px;
  color: var(--green);
  margin-bottom: 12px;
  font-weight: 600;
}

.purchase-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

.purchase-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text2);
}

.purchase-notice {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.6;
  opacity: 0.7;
  text-align: center;
}

/* 파티장 다른 파티 */

.other-parties-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.other-parties-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text2);
}

.other-party-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}

.other-party-row:last-child {
  border-bottom: none;
}

.other-party-row:hover {
  color: var(--accent2);
}

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
    order: -1;
    /* 모바일에서 구매 카드를 위로 */
  }
}

/* ============================================================
   STEP 3 - 파티 상세페이지 CSS
   /app/static/css/custom.css 끝에 추가
   ============================================================ */

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--text2);
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb a {
  color: var(--text2);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent2);
}

/* ── DETAIL WRAP / LAYOUT ── */
.detail-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin-top: 24px;
  align-items: start;
}

/* ── LEFT: 메인 ── */
.detail-service-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.service-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.detail-service-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-service-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* 파티장 카드 */
.detail-host-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.host-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.detail-host-name {
  font-size: 16px;
  font-weight: 700;
}

.detail-host-sub {
  font-size: 12px;
  color: var(--text2);
  margin-top: 2px;
}

.detail-host-rating {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.rating-star {
  color: #ffd700;
}

.rating-num {
  font-weight: 700;
}

.rating-count {
  color: var(--text2);
  font-size: 12px;
}

/* 슬롯 카드 */
.detail-slots-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.detail-slots-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-slots-title {
  font-size: 15px;
  font-weight: 700;
}

.slot-visual {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.slot-dot {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2px solid var(--border);
  transition: all 0.2s;
}

.slot-used {
  background: rgba(108, 92, 231, 0.15);
  border-color: rgba(108, 92, 231, 0.3);
}

.slot-free {
  background: rgba(0, 184, 148, 0.1);
  border-color: rgba(0, 184, 148, 0.3);
  color: var(--green);
  font-size: 22px;
  font-weight: 300;
}

/* 파티 정보 카드 */
.detail-info-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.detail-info-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.detail-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-size: 13px;
  color: var(--text2);
}

.info-value {
  font-size: 14px;
  font-weight: 500;
}

/* 리뷰 섹션 */
.detail-reviews-section {
  margin-top: 8px;
}

.detail-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-total-badge {
  font-size: 13px;
  font-weight: 500;
  background: var(--bg3);
  padding: 2px 10px;
  border-radius: 12px;
  color: var(--text2);
}

.detail-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-reviews {
  text-align: center;
  padding: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── RIGHT: 사이드바 ── */
.detail-sidebar {
  position: sticky;
  top: 80px;
}

.purchase-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 16px;
}

.purchase-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.purchase-amount {
  font-family: "Bebas Neue", sans-serif;
  font-size: 40px;
  letter-spacing: 1px;
  color: var(--accent2);
  line-height: 1;
}

.purchase-slot-status {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.join-btn-lg {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: block;
}

.already-member-msg {
  font-size: 13px;
  color: var(--green);
  margin-bottom: 12px;
  font-weight: 600;
}

.purchase-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

.purchase-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text2);
}

.purchase-notice {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.6;
  opacity: 0.7;
  text-align: center;
}

/* 파티장 다른 파티 */
.other-parties-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.other-parties-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text2);
}

.other-party-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}

.other-party-row:last-child {
  border-bottom: none;
}

.other-party-row:hover {
  color: var(--accent2);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
    order: -1;
    /* 모바일에서 구매 카드를 위로 */
  }

  /* 유저 드롭다운 메뉴 */
  /* ── 유저 드롭다운 */
  .user-menu {
    position: relative;
    flex-shrink: 0;
  }

  .user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    white-space: nowrap;
    transition: all 0.2s;
  }

  .user-menu-trigger:hover {
    border-color: var(--accent);
  }

  .user-nickname {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-caret {
    font-size: 10px;
    color: var(--text2);
  }

  .user-dropdown {
    display: none;
    position: fixed;
    top: 68px;
    right: 24px;
    min-width: 180px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  .user-dropdown.open {
    display: block;
  }

  .user-dropdown-header {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
  }

  .ud-name {
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
  }

  .ud-badge {
    font-size: 10px;
    background: rgba(108, 92, 231, 0.2);
    color: var(--accent2);
    border-radius: 4px;
    padding: 2px 6px;
  }

  .user-dropdown-body,
  .user-dropdown-footer {
    padding: 4px 0;
  }

  .user-dropdown-footer {
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 4px;
  }

  .ud-item {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
  }

  .ud-item:hover {
    background: var(--bg3);
  }

  .ud-admin {
    color: var(--accent2);
  }

  .ud-logout {
    color: var(--red);
  }
}

/* ── 파티 만들기 버튼 (헤더) ── */
.create-party-btn {
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid rgba(108, 92, 231, 0.5);
  background: rgba(108, 92, 231, 0.12);
  color: var(--accent2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.create-party-btn:hover {
  background: rgba(108, 92, 231, 0.22);
  border-color: var(--accent);
  color: white;
}

/* ── Hero CTA 버튼 ── */
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-btn-primary {
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.hero-btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.hero-btn-secondary {
  padding: 13px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.hero-btn-secondary:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* ── 상세페이지 인라인 채팅 ── */
.detail-chat-section {
  margin-top: 24px;
}

.chat-live-badge {
  font-size: 11px;
  color: var(--green);
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  margin-left: 8px;
  animation: pulse 2s infinite;
}

.inline-chat-wrap {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 12px;
  display: flex;
  /* 추가 */
  flex-direction: column;
  /* 추가 */
}

.inline-chat-messages {
  height: 320px;
  min-height: 320px;
  /* 추가 */
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  flex: 1;
  /* 추가 */
}


.inline-chat-loading {
  text-align: center;
  color: var(--text2);
  font-size: 13px;
  padding: 20px;
}

.inline-chat-msg-mine {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  /* 이건 유지 - 가로 꽉 채워야 오른쪽 정렬됨 */
  justify-content: flex-start;
  /* 이 줄 추가 */
}

.inline-chat-msg-other {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
}

.inline-chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.inline-chat-bubble-mine {
  background: var(--accent);
  color: white;
  padding: 8px 12px;
  border-radius: 12px 12px 2px 12px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 70%;
  word-break: break-word;
}

.inline-chat-bubble-other {
  background: var(--bg2);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px 12px 12px 2px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 70%;
  word-break: break-word;
}

.inline-chat-nick {
  font-size: 10px;
  color: var(--text2);
  margin-bottom: 3px;
  margin-left: 4px;
}

.inline-chat-time {
  font-size: 10px;
  color: var(--text2);
  flex-shrink: 0;
  padding-bottom: 2px;
}

.inline-chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  flex-shrink: 0;
  /* 추가 */
}

.inline-chat-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 13px;
  font-family: 'Pretendard', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.detail-chat-section {
  margin-top: 24px;
}

.chat-live-badge {
  font-size: 11px;
  color: var(--green);
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  margin-left: 8px;
  animation: pulse 2s infinite;
}

.inline-chat-wrap {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 12px;
}

.inline-chat-messages {
  height: 320px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.inline-chat-loading {
  text-align: center;
  color: var(--text2);
  font-size: 13px;
  padding: 20px;
}

/* 비멤버 오버레이 */
.chat-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 4px;
  text-align: center;
}

[data-theme="light"] .chat-blur-overlay {
  background: rgba(245, 245, 250, 0.6);
}

.chat-blur-inner {
  color: var(--text);
}

/* 메시지 버블 */
.inline-chat-msg-mine {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 6px;
}

.inline-chat-msg-other {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.inline-chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.inline-chat-bubble-mine {
  background: var(--accent);
  color: white;
  padding: 8px 12px;
  border-radius: 12px 12px 2px 12px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 70%;
  word-break: break-word;
}

.inline-chat-bubble-other {
  background: var(--bg2);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px 12px 12px 2px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 70%;
  word-break: break-word;
}

.inline-chat-nick {
  font-size: 10px;
  color: var(--text2);
  margin-bottom: 3px;
  margin-left: 4px;
}

.inline-chat-time {
  font-size: 10px;
  color: var(--text2);
  flex-shrink: 0;
  padding-bottom: 2px;
}

.inline-chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.inline-chat-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 13px;
  font-family: 'Pretendard', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.inline-chat-input:focus {
  border-color: var(--accent);
}

.inline-chat-input::placeholder {
  color: var(--text2);
}

.inline-chat-send-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.inline-chat-send-btn:hover {
  opacity: 0.85;
}

/* ── USER MENU DROPDOWN */
.user-menu {
  position: relative;
  flex-shrink: 0;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;

}

.user-menu-trigger:hover {
  border-color: var(--accent);
}

.user-nickname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80px;
}

.user-caret {
  font-size: 10px;
  color: var(--text2);
  flex-shrink: 0;
}

.user-menu {
  position: relative;
  flex-shrink: 0;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  white-space: nowrap;
  transition: all 0.2s;
}

.user-menu-trigger:hover {
  border-color: var(--accent);
}

.user-nickname {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  display: none;
  position: fixed;
  top: 68px;
  right: 24px;
  min-width: 180px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.user-dropdown.open {
  display: block;
}

.user-dropdown-header {
  padding: 8px 12px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.ud-name {
  font-size: 14px;
  font-weight: 700;
  display: block;
}

.ud-badge {
  font-size: 10px;
  background: rgba(108, 92, 231, 0.2);
  color: var(--accent2);
  border-radius: 4px;
  padding: 2px 6px;
}

.user-dropdown-body,
.user-dropdown-footer {
  padding: 4px 0;
}

.user-dropdown-footer {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 4px;
}

.ud-item {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}

.ud-item:hover {
  background: var(--bg3);
}

.ud-admin {
  color: var(--accent2);
}

.ud-logout {
  color: var(--red);
}


/* ── 방장 채팅 멤버 탭 */
.chat-member-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 8px;
}

.chat-member-tab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  transition: all 0.2s;
}

.chat-member-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}

.chat-member-tab.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.admin-role-select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-size: 12px;
  font-family: 'Pretendard', sans-serif;
  cursor: pointer;
}

.share-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Pretendard', sans-serif;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.share-link-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.share-link-btn:hover {
  border-color: rgba(108, 92, 231, 0.4);
  background: rgba(108, 92, 231, 0.1);
  color: var(--accent2);
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.15);
}

.share-link-btn:hover svg {
  transform: scale(1.15);
}

/* ── 인라인 공유 ── */
.inline-share {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.inline-share-row {
  display: flex;
  gap: 10px;
}

.inline-sns-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Pretendard', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  transition: transform 0.15s;
  flex: 1;
}

.inline-sns-btn:hover {
  transform: translateY(-3px);
}

.inline-sns-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.inline-copy-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-size: 12px;
  font-family: 'Pretendard', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.inline-copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent2);
}

.copy-url-preview {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-label {
  font-weight: 700;
  color: var(--accent2);
  flex-shrink: 0;
}

.detail-copy-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg2);
  border: 1px solid rgba(108, 92, 231, 0.4);
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 999;
  white-space: nowrap;
}

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


.chat-noti-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(108, 92, 231, 0.4);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(253, 121, 168, 0.15));
  color: var(--accent2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  transition: all 0.2s;
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.2);
  animation: noti-pulse 2.5s infinite;
}

.chat-noti-btn:hover {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.4), rgba(253, 121, 168, 0.3));
  border-color: var(--accent2);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
  transform: scale(1.05);
}

@keyframes noti-pulse {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
  }
}

/* ── 가로 스크롤 방지 ── */
html {
  overflow-x: hidden;
}

body {
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

/* ── 모바일 overflow 방지 ── */
.header {
  max-width: 100vw;
  overflow: visible;
}

.party-grid {
  min-width: 0;
}

.party-card {
  min-width: 0;
  word-break: break-word;
}

.stats-bar {
  max-width: 100%;
  overflow-x: auto;
}

.service-strip {
  max-width: 100vw;
  overflow-x: auto;
  flex-wrap: nowrap;
  /* 모바일에서 가로 스크롤로 변경 */
  justify-content: flex-start;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* 스크롤바 숨김 */
}

.service-strip::-webkit-scrollbar {
  display: none;
}

/* ── 채팅방 ── */
.inline-chat-wrap {
  max-width: 100%;
  overflow: hidden;
}

.chat-noti-panel {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .section {
    padding: 40px 12px;
    overflow-x: hidden;
  }

  .trust-grid,
  .steps-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .list-controls {
    padding: 0 12px 16px;
    flex-wrap: wrap;
  }

  .card-footer {
    flex-wrap: wrap;
    gap: 8px;
  }

  .notice-banner {
    margin: 0 12px 16px;
    font-size: 13px;
  }
}


.inline-chat-input {
  font-size: 16px;
  /* 16px 미만이면 iOS가 자동 확대함 */
}



/* ── 공지 배너 ── */
.notice-banner-v2 {
  margin: 0 24px 24px;
  padding: 14px 20px;
  background: linear-gradient(135deg,
      rgba(108, 92, 231, 0.18) 0%,
      rgba(253, 121, 168, 0.12) 100%);
  border: 1px solid rgba(108, 92, 231, 0.45);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.12);
}

.notice-banner-v2:hover {
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(108, 92, 231, 0.22);
  transform: translateY(-1px);
}

.notice-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.notice-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.notice-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.notice-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── 공지 모달 ── */
.notice-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.notice-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.notice-modal {
  background: var(--bg2);
  border: 1px solid rgba(108, 92, 231, 0.35);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(16px);
  transition: transform 0.2s;
}

.notice-modal-overlay.open .notice-modal {
  transform: translateY(0);
}

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

.notice-modal-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
}

.notice-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.notice-modal-close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.notice-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.notice-modal-body {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  white-space: pre-wrap;
}

.notice-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.notice-modal-ok {
  padding: 8px 24px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
}

.notice-modal-ok:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .notice-banner-v2 {
    margin: 0 16px 16px;
  }

  .notice-title {
    max-width: 160px;
  }
}

.service-strip {
  padding-left: 44px;
  /* 사이드탭 28px + 여유 */
}

.service-pill {
  flex-shrink: 0;
  white-space: nowrap;
  /* pill 텍스트는 줄바꿈 없이 */
}

.service-strip {
  flex-wrap: wrap;
  /* 줄바꿈 허용 */
  overflow-x: unset;
  /* 가로 스크롤 제거 */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* 스크롤바 숨김 */
  padding-left: 44px;
  padding-bottom: 4px;
}

.service-strip::-webkit-scrollbar {
  display: none;
}

.service-strip {
  display: flex;
  gap: 8px;
  padding: 0 24px 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  /* nowrap → wrap */
  scrollbar-width: none;
  cursor: grab;
  /* overflow-x: auto 제거 — wrap 쓰면 불필요 */
}

.service-strip::-webkit-scrollbar {
  display: none;
  /* Chrome 스크롤바 숨김 */
}

.service-strip .service-pill {
  flex-shrink: 0;
  /* 줄어들지 않고 원래 크기 유지 */
  white-space: nowrap;
}


/* 1행: 항상 한 줄, 균등 비율 */
.service-strip-row1 {
  display: flex;
  gap: 8px;
  padding: 0 24px 8px;
}

.service-pill-cat {
  flex: 1;
  min-width: 0;
  padding: 8px 2px;
  /* 좌우 패딩 최소화 */
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 12px;
  /* 폰트 살짝 축소 */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-align: center;
  font-family: 'Pretendard', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-pill-cat:hover,
.service-pill-cat.active {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.1);
  color: var(--accent2);
}

/* 2행: 가로 스크롤 */
.service-strip-row2 {
  display: flex;
  gap: 8px;
  padding: 0 24px 12px;
  margin-bottom: 16px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.service-strip-row2::-webkit-scrollbar {
  display: none;
}

.service-strip-row2 .service-pill {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── 전체공지 말풍선 ── */
.inline-chat-bubble-notice {
  background: linear-gradient(135deg, rgba(214, 48, 49, 0.85), rgba(192, 30, 30, 0.9));
  border: 1px solid rgba(255, 100, 100, 0.6);
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(214, 48, 49, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .inline-chat-bubble-notice {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: 1px solid #e74c3c;
  box-shadow: 0 0 16px rgba(231, 76, 60, 0.4);
}



/* ============================================================
   MYPAGE LAYOUT — custom.css 하단에 추가
   ============================================================ */
.mypage-wrap {
  display: flex;
  gap: 32px;
  max-width: 1100px;
  min-height: 100vh;
  margin: 40px auto;
  padding: 0 24px 60px;
  align-items: flex-start;
}

.mypage-nav {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  position: sticky;
  border-right: 1px solid var(--border);
  top: 80px;
}

.mypage-nav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text2);
  text-transform: uppercase;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.mypage-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.mypage-nav-item:hover,
.mypage-nav-item.active {
  background: var(--bg3);
  color: var(--accent2);
}

.mypage-main {
  flex: 1;
  min-width: 0;
  /* ← 이게 없으면 모바일에서 넘침 */
  padding: 32px;

}

.mypage-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.mypage-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
}

.mypage-count {
  font-size: 14px;
  color: var(--text2);
}

/* 페이지네이션/빈상태/버튼 — 공통 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.page-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent2);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* 반응형 */
@media (max-width: 768px) {
  .mypage-wrap {
    flex-direction: column;
    gap: 20px;
    margin: 24px auto;
  }

  .mypage-nav {
    width: 100%;
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
  }

  .mypage-nav-title {
    display: none;
  }

  .mypage-nav-item {
    flex: 1;
    justify-content: center;
    min-width: 80px;
  }
}

/* ── 마이페이지 레이아웃 ── */
.mypage-wrap {
  display: flex;
  gap: 32px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px 60px;
  align-items: flex-start;
}

/* ── 사이드 네비 ── */
.mypage-nav {
  width: 200px;
  flex-shrink: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  position: sticky;
  top: 80px;
}

.mypage-nav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text2);
  text-transform: uppercase;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.mypage-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.mypage-nav-item:hover,
.mypage-nav-item.active {
  background: var(--bg3);
  color: var(--accent2);
}

.mypage-nav-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.coming-soon {
  margin-left: auto;
  font-size: 10px;
  background: var(--bg3);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text2);
}

/* ── 메인 콘텐츠 ── */
.mypage-main {
  flex: 1;
  min-width: 0;
}

.mypage-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.mypage-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
}

.mypage-count {
  font-size: 14px;
  color: var(--text2);
}

/* ── 구매 목록 ── */
.purchase-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.purchase-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.purchase-item:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateX(3px);
}

.purchase-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.purchase-info {
  flex: 1;
  min-width: 0;
}

.purchase-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.purchase-service {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}

.purchase-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-paid {
  background: rgba(0, 184, 148, 0.15);
  color: var(--green);
}

.status-pending {
  background: rgba(253, 121, 168, 0.15);
  color: var(--accent3);
}

.status-cancelled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text2);
}

.status-refunded {
  background: rgba(108, 92, 231, 0.15);
  color: var(--accent2);
}

.purchase-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.purchase-meta {
  font-size: 12px;
  color: var(--text2);
}

.purchase-amount {
  text-align: right;
  flex-shrink: 0;
}

.amount-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--accent2);
  letter-spacing: 1px;
}

.amount-unit {
  font-size: 12px;
  color: var(--text2);
}

.purchase-arrow {
  font-size: 20px;
  color: var(--text2);
  flex-shrink: 0;
}

/* ── 페이지네이션 ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.page-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent2);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
}

/* ── 빈 상태 ── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
  .mypage-wrap {
    flex-direction: column;
    gap: 20px;
    margin: 24px auto;
  }

  .mypage-nav {
    width: 100%;
    position: static;
  }

  .mypage-nav-title {
    display: none;
  }

  .mypage-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
  }

  .mypage-nav-item {
    flex: 1;
    justify-content: center;
    min-width: 80px;
  }

  .purchase-title {
    font-size: 14px;
  }
}

/* ── detail 페이지 강제 가로고정 ── */
.detail-wrap,
.detail-main,
.detail-sidebar,
.detail-section,
.detail-chat-section,
.detail-action-box,
.detail-info-grid,
.detail-slot-section,
.detail-review-section,
.detail-sns-section,
.inline-chat-wrap,
.inline-chat-messages,
.inline-chat-input-area,
.chat-noti-panel,
.chat-member-tabs {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  word-break: break-word;
}

@media (max-width: 768px) {
  .detail-wrap {
    flex-direction: column !important;
    padding: 0 12px !important;
    gap: 16px !important;
  }

  .detail-sidebar,
  .detail-main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .detail-action-box {
    position: static !important;
    width: 100% !important;
  }

  .chat-member-tabs {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }

  .inline-chat-input-area {
    flex-wrap: nowrap !important;
  }

  .inline-chat-input {
    min-width: 0 !important;
    flex: 1 !important;
  }
}



/* ── iOS Safari 키보드 올라올 때 가로 깨짐 방지 ── */
@supports (-webkit-touch-callout: none) {
  body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }

  input,
  textarea {
    font-size: 16px !important;
    /* iOS 자동확대 방지 */
    transform: translateZ(0);
    /* GPU 레이어 강제 */
  }

  .inline-chat-input {
    font-size: 16px !important;
  }

  .header {
    position: sticky;
    transform: translateZ(0);
  }
}

/* ── 아이폰 키보드 올라올 때 레이아웃 고정 ── */
.inline-chat-wrap {
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.inline-chat-input-area {
  position: relative;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}


/* ── 차단 메시지 말풍선 ── */
.inline-chat-msg-blocked {
  width: 100%;
}

.chat-blocked-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(214, 48, 49, 0.9), rgba(180, 20, 20, 0.95));
  border: 1px solid rgba(255, 80, 80, 0.6);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 0 20px rgba(214, 48, 49, 0.5);
  width: 100%;
}

.chat-blocked-icon {
  font-size: 28px;
  animation: siren 0.8s infinite alternate;
  flex-shrink: 0;
}

@keyframes siren {
  from {
    filter: brightness(1);
    transform: scale(1);
  }

  to {
    filter: brightness(1.4);
    transform: scale(1.1);
  }
}

.chat-blocked-body {
  flex: 1;
}

.chat-blocked-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.chat-blocked-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.chat-blocked-report-btn {
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  transition: all 0.2s;
}

.chat-blocked-report-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 기존에 있으면 수정, 없으면 추가 */
@media (max-width: 768px) {
  .mypage-wrap {
    flex-direction: column;
  }

  .mypage-nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 12px;
    gap: 4px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .mypage-nav-title {
    display: none;
  }

  .mypage-main {
    width: 100%;
    /* ← 핵심 */
    max-width: 100%;
    /* ← 핵심 */
    padding: 12px 0px;
    min-width: 0;
  }
}



/* ── 헤더 적립금 뱃지 ── */
.ud-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.ud-credit-link:hover {
  background: rgba(108, 92, 231, 0.22);
  border-color: var(--accent);
  color: var(--accent2);
}

.ud-credit-amount {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}

/* ── 모집마감 카드 ── */
.party-card.is-closed {
  opacity: 0.55;
  filter: grayscale(60%);
  cursor: default;
  position: relative;
}

.party-card.is-closed:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.closed-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
  pointer-events: none;
}

.closed-label {
  padding: 8px 24px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

/* 마감 슬롯바 빨간색 */
.party-card.is-closed .slot-bar-fill {
  background: linear-gradient(90deg, var(--orange), var(--red)) !important;
}

/* 마감 참여버튼 */
.party-card.is-closed .join-btn {
  background: var(--bg3) !important;
  color: var(--text2) !important;
  cursor: not-allowed;
  pointer-events: none;
}
}