@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&family=Noto+Serif+KR:wght@400;600;700&display=swap');

@font-face {
  font-family: 'JoseonGulim';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ChosunGu.woff') format('woff');
  font-weight: normal;
  font-display: swap;
}

:root {
  --navy: #1B3A6B;
  --navy-dark: #122849;
  --navy-light: #2A5298;
  --gold: #C89B3C;
  --gold-light: #E8C06A;
  --gold-pale: #F7EDD5;
  --cream: #F5F1EA;
  --cream-dark: #EDE7D8;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5DDD0;
  --border-light: #F0EBE1;
  --shadow-sm: 0 1px 3px rgba(27,58,107,0.08);
  --shadow: 0 4px 16px rgba(27,58,107,0.10);
  --shadow-lg: 0 8px 32px rgba(27,58,107,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'JoseonGulim', 'Noto Sans KR', sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ───── NAVBAR ───── */
.navbar {
  background: #111111;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-brand img {
  height: 42px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  color: rgba(255,255,255,0.75);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
}
.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--navy);
  overflow: hidden;
  flex-shrink: 0;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.role-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.role-superadmin { background: #FFD700; color: #7B3F00; }
.role-admin { background: var(--gold); color: var(--navy-dark); }
.role-dreamy { background: #7DD3FC; color: #0C4A6E; }
.role-associate { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none;
  color: white; padding: 6px;
}
.nav-menu { display: none; }

/* ───── BUTTONS ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: white; }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: white; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 13px 30px; font-size: 16px; border-radius: var(--radius); }
.btn-danger { background: #EF4444; color: white; border-color: transparent; }
.btn-danger:hover { background: #DC2626; }
.btn-success { background: #10B981; color: white; }
.btn-success:hover { background: #059669; }
.btn-ghost { background: none; border: none; color: var(--text-muted); padding: 4px 8px; font-size: 13px; }
.btn-ghost:hover { color: var(--text); }

/* ───── HERO ───── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #2A5298 100%);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero-content { position: relative; max-width: 640px; margin: 0 auto; }
.hero-tag {
  display: inline-block;
  background: rgba(200,155,60,0.2);
  color: var(--gold-light);
  border: 1px solid rgba(200,155,60,0.4);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'JoseonGulim', 'Noto Serif KR', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 14px;
}
.hero h1 span { color: var(--gold-light); }
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'JoseonGulim', 'Noto Serif KR', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
}
.hero-stats .stat-label { font-size: 12px; color: #ffffff; margin-top: 2px; }

/* ───── CONTAINER ───── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.section-title {
  font-family: 'JoseonGulim', 'Noto Serif KR', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 22px;
  background: var(--gold);
  border-radius: 2px;
}
.section-link { font-size: 13px; color: var(--gold); font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ───── MEETING CARDS ───── */
.meetings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.meeting-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}
.meeting-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.meeting-card.is-past .card-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(100,100,100,0.55);
}
.meeting-card.is-past .card-thumb {
  filter: grayscale(100%);
}
.card-thumb-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--cream-dark);
}
.card-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.meeting-card:hover .card-thumb { transform: scale(1.04); }
.card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, var(--cream-dark), var(--border));
}
.card-type-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
}
.type-oneday { background: var(--gold); color: var(--navy-dark); }
.type-regular { background: var(--navy); color: white; }
.past-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}
.card-body { padding: 16px; }
.card-category {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.card-meta-item svg { flex-shrink: 0; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.card-participants {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.participants-bar {
  width: 60px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-left: 6px;
}
.participants-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}
.card-view-btn {
  font-size: 12px;
  color: var(--navy);
  font-weight: 600;
}
.card-view-btn:hover { color: var(--gold); }

/* ───── FILTERS ───── */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.filter-btn {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.filter-sep { width: 1px; height: 24px; background: var(--border); }

/* ───── PAGE HEADER ───── */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 40px 24px;
  color: white;
}
.page-header h1 {
  font-family: 'JoseonGulim', 'Noto Serif KR', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}
.page-header p { color: rgba(255,255,255,0.7); font-size: 14px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: white; }

/* ───── DETAIL PAGE ───── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.detail-images {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-dark);
  margin-bottom: 24px;
  position: relative;
}
.detail-main-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.detail-main-img.past { filter: grayscale(100%); }
.detail-thumbs {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--cream-dark);
}
.detail-thumb {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.65;
  transition: var(--transition);
  border: 2px solid transparent;
}
.detail-thumb.active, .detail-thumb:hover { opacity: 1; border-color: var(--gold); }

.detail-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}
.detail-title {
  font-family: 'JoseonGulim', 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
}
.detail-badges { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.badge-gold { background: var(--gold-pale); color: #8B5E15; border: 1px solid var(--gold-light); }
.badge-navy { background: #EEF2FF; color: var(--navy); border: 1px solid #C7D2FE; }

.info-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.info-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.info-icon {
  width: 32px; height: 32px;
  background: var(--cream);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.info-content { flex: 1; }
.info-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.info-value { font-size: 14px; font-weight: 600; color: var(--text); }

.participants-section { margin-bottom: 20px; }
.participants-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.participants-progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.participants-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 0.5s ease;
}
.participants-avatars { display: flex; gap: -4px; }
.p-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 2px solid var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--navy);
  margin-left: -6px;
  overflow: hidden;
}
.p-avatar:first-child { margin-left: 0; }

.detail-description {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.detail-description h3 {
  font-family: 'JoseonGulim', 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-description h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.description-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
}

/* ───── COMMENTS & REVIEWS ───── */
.section-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.section-card h3 {
  font-family: 'JoseonGulim', 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-card h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.comment-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--navy);
  flex-shrink: 0;
  overflow: hidden;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; }
.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.comment-author { font-size: 13px; font-weight: 700; }
.comment-time { font-size: 11px; color: var(--text-light); }
.comment-del { margin-left: auto; font-size: 11px; color: var(--text-light); cursor: pointer; }
.comment-del:hover { color: #EF4444; }
.comment-text { font-size: 13px; color: var(--text); line-height: 1.6; }

.comment-form { display: flex; gap: 10px; margin-top: 16px; align-items: flex-start; }
.comment-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--cream);
  resize: none;
  transition: var(--transition);
  min-height: 80px;
}
.comment-input:focus { outline: none; border-color: var(--navy); background: white; }

.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.review-item:last-child { border-bottom: none; }
.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.review-rating { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.review-text { font-size: 13px; color: var(--text); line-height: 1.7; }
.review-form { margin-top: 16px; }
.rating-select { display: flex; gap: 4px; margin-bottom: 10px; }
.star-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--border);
  transition: color 0.1s;
}
.star-btn.active { color: var(--gold); }

/* ───── FORMS ───── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-label .required { color: #EF4444; margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--cream);
  color: var(--text);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--navy);
  background: white;
  box-shadow: 0 0 0 3px rgba(27,58,107,0.08);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 140px; line-height: 1.6; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Image upload */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--cream);
}
.image-upload-area:hover, .image-upload-area.dragover {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.upload-icon { font-size: 36px; margin-bottom: 10px; }
.upload-text { font-size: 14px; color: var(--text-muted); }
.upload-text strong { color: var(--navy); }
.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.image-preview-item {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
}
.image-preview-item:first-child { border-color: var(--gold); }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item .thumb-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 2px;
}
.image-preview-item .remove-img {
  position: absolute;
  top: 2px; right: 2px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; }
.alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #16A34A; }
.alert-info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1D4ED8; }
.alert-warning { background: var(--gold-pale); border: 1px solid var(--gold-light); color: #92400E; }

/* ───── AUTH PAGES ───── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2A5298 100%);
  padding: 24px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo h2 {
  font-family: 'JoseonGulim', 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.auth-logo p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.auth-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.google-btn {
  width: 100%;
  padding: 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
/* ───── NAV DROPDOWN ───── */
.nav-user-dropdown {
  position: relative;
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  transition: var(--transition);
}
.nav-user-dropdown:hover { background: rgba(255,255,255,0.1); }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 200;
  overflow: hidden;
  border: 1px solid var(--border);
}
.nav-user-dropdown.open .nav-dropdown { display: block; }
.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.nav-dropdown-item:hover { background: var(--cream); }
.nav-dropdown-divider { height: 1px; background: var(--border-light); margin: 4px 0; }
.nav-dropdown-logout { color: #DC2626; }
.nav-dropdown-logout:hover { background: #FEE2E2; }

/* ───── PROFILE PAGE ───── */
.profile-avatar-lg {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--navy);
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--border);
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.google-btn:hover { background: var(--cream); border-color: var(--navy); }
.kakao-btn {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: var(--radius-sm);
  background: #FEE500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3C1E1E;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 8px;
}
.kakao-btn:hover { background: #F0D900; color: #3C1E1E; }
.auth-footer { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.auth-footer a { color: var(--navy); font-weight: 600; }

/* ───── ADMIN ───── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
  gap: 0;
}
.admin-sidebar {
  background: var(--navy-dark);
  padding: 24px 0;
}
.admin-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 20px;
  margin-bottom: 8px;
  margin-top: 16px;
}
.admin-sidebar-title:first-child { margin-top: 0; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-link:hover { color: white; background: rgba(255,255,255,0.07); }
.admin-nav-link.active { color: var(--gold-light); border-left-color: var(--gold); background: rgba(200,155,60,0.08); }
.admin-content { padding: 32px; background: var(--cream); }
.admin-content h1 {
  font-family: 'JoseonGulim', 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-light);
  text-align: center;
}
.stat-card .s-num {
  font-family: 'JoseonGulim', 'Noto Serif KR', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}
.stat-card .s-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-card.highlight .s-num { color: var(--gold); }

.pending-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border-light);
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.pending-card:hover { box-shadow: var(--shadow); }
.pending-thumb {
  width: 70px; height: 70px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--cream-dark);
  flex-shrink: 0;
}
.pending-info { flex: 1; min-width: 0; }
.pending-title { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.pending-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.pending-actions { display: flex; gap: 8px; }

/* User table */
.user-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.user-table th {
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.user-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.user-table tr:last-child td { border-bottom: none; }
.user-table tr:hover td { background: var(--cream); }
.role-select {
  padding: 4px 10px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: white;
  cursor: pointer;
}

/* ───── EMPTY STATE ───── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 14px; }
.empty-state h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 13px; margin-bottom: 20px; }

/* ───── FOOTER ───── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px;
  font-size: 13px;
  margin-top: 0;
}
footer strong { color: rgba(255,255,255,0.85); }

/* ───── TOAST ───── */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
}
.toast-success { background: var(--navy); color: white; }
.toast-error { background: #EF4444; color: white; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { to { transform: translateX(120%); opacity: 0; } }

/* ───── RESPONSIVE ───── */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-info-card { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
@media (max-width: 640px) {
  .nav-inner { gap: 6px; padding: 0 12px; }
  .nav-brand {
    flex: 1;
    min-width: 0;
  }
  .nav-brand img {
    height: 32px;
  }
  .nav-links { display: none; }
  .nav-toggle { display: block; flex-shrink: 0; }
  .nav-menu {
    display: block;
    background: var(--navy-dark);
    padding: 8px 0 16px;
  }
  .nav-menu .nav-link { display: block; padding: 12px 24px; border-radius: 0; }

  /* 모바일 유저 영역: 아바타만, 이름·뱃지 숨김 */
  .nav-user-dropdown { padding: 4px; flex-shrink: 0; }
  .nav-username { display: none; }
  .role-badge { display: none; }
  .nav-dropdown { right: 0; min-width: 140px; }

  .hero { padding: 50px 20px 40px; }
  .hero-stats { gap: 20px; }
  .form-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .meetings-grid { grid-template-columns: 1fr; }
  .admin-content { padding: 16px; }

  /* 모바일: 썸네일 가로 비율 유지 (잘림 방지) */
  .detail-main-img {
    height: auto;
    max-height: none;
    object-fit: contain;
    background: #0a0a0a;
  }
}

/* No Google setup notice */
.no-google-notice {
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #92400E;
  margin-bottom: 16px;
}

/* ───── ADMIN DASHBOARD ───── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}
.stat-pending  { border-color: #F59E0B; }
.stat-approved { border-color: #10B981; }
.stat-rejected { border-color: #EF4444; }
.stat-users    { border-color: var(--navy); }
.stat-participations { border-color: var(--gold); }
.stat-icon { font-size: 1.8rem; }
.stat-num  { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }

.admin-quick-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.quick-nav-btn {
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}
.quick-nav-btn:hover { background: var(--navy); color: var(--white); }
.quick-nav-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.admin-section { margin-bottom: 40px; }
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge-count {
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 2px 10px;
}

.admin-card-list { display: flex; flex-direction: column; gap: 14px; }
.admin-meeting-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.admin-meeting-card:hover { box-shadow: var(--shadow-md); }
.admin-meeting-thumb {
  width: 90px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-meeting-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { font-size: 1.6rem; color: var(--gold); }
.admin-meeting-info { flex: 1; min-width: 0; }
.admin-meeting-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.date-text { font-size: 0.75rem; color: var(--text-secondary); }
.admin-meeting-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.admin-meeting-title a { color: var(--navy); text-decoration: none; }
.admin-meeting-title a:hover { color: var(--gold); }
.admin-meeting-details { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 6px; }
.admin-creator { font-size: 0.8rem; color: var(--text-secondary); }
.creator-email { font-size: 0.75rem; }
.admin-meeting-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

/* ───── ADMIN TABLE ───── */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  background: var(--white);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table thead tr {
  background: var(--navy);
  color: var(--white);
}
.admin-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--cream); }
.admin-table tbody tr.row-past { opacity: 0.65; }

.td-num { color: var(--text-secondary); font-size: 0.8rem; }
.td-center { text-align: center; }
.td-name { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.td-email { color: var(--text-secondary); font-size: 0.8rem; }
.td-date { white-space: nowrap; font-size: 0.8rem; }
.td-role { white-space: nowrap; }
.td-action { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.td-thumb { width: 60px; }
.td-type { white-space: nowrap; }
.td-title { min-width: 180px; }

.user-avatar-sm {
  width: 28px; height: 28px;
  border-radius: 50%; object-fit: cover;
}
.avatar-initial {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}
.me-badge {
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 50px;
}

.provider-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
}
.provider-google { background: #FEE2E2; color: #DC2626; }
.provider-local  { background: #DBEAFE; color: #1D4ED8; }

.role-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.role-superadmin { background: #FDF2CA; color: #92400E; }
.role-admin      { background: var(--navy-light); color: var(--white); }
.role-dreamy     { background: #D1FAE5; color: #065F46; }
.role-associate  { background: var(--border-light); color: var(--text-secondary); }

.role-select {
  padding: 5px 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  min-width: 110px;
}
.role-select:focus { outline: none; border-color: var(--gold); }

.table-thumb {
  width: 48px; height: 36px;
  border-radius: 4px; object-fit: cover;
}
.table-thumb-empty {
  width: 48px; height: 36px;
  background: var(--cream);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--gold-light);
}
.table-title-link { color: var(--navy); text-decoration: none; font-weight: 600; }
.table-title-link:hover { color: var(--gold); }
.past-label {
  display: inline-block;
  font-size: 0.65rem;
  background: var(--text-secondary);
  color: var(--white);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
.status-badge {
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 50px;
}
.status-approved { background: #D1FAE5; color: #065F46; }
.status-past     { background: var(--border-light); color: var(--text-secondary); }

.role-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 20px;
  background: var(--cream);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.role-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-secondary); }
.role-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.role-row-superadmin .role-dot, .role-item.role-superadmin .role-dot { background: #F59E0B; }
.role-item.role-admin .role-dot    { background: var(--navy); }
.role-item.role-dreamy .role-dot   { background: #10B981; }
.role-item.role-associate .role-dot{ background: #9CA3AF; }

.table-info {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.btn-xs {
  padding: 4px 10px !important;
  font-size: 0.75rem !important;
}

/* ───── MEETING EDIT ───── */
.existing-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.existing-img-item {
  position: relative;
  width: 110px;
}
.existing-img-item img {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  display: block;
}
.thumb-label {
  position: absolute;
  top: 4px; left: 4px;
  background: var(--gold);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.delete-check {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #EF4444;
  margin-top: 4px;
  cursor: pointer;
  font-weight: 600;
}
.delete-check input { accent-color: #EF4444; cursor: pointer; }
.existing-img-item:has(input:checked) img {
  opacity: 0.4;
  border-color: #EF4444;
}
.alert-warning {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* ───── MY MEETING WRAP (수정 버튼) ───── */
.my-meeting-wrap {
  display: flex;
  flex-direction: column;
}
.my-meeting-wrap .meeting-card {
  flex: 1;
}
.my-edit-btn {
  display: block;
  text-align: center;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.my-edit-btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* ───── NAVER MAP ───── */
.map-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.map-search-row .form-control { flex: 1; }
.naver-map-box {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 8px;
  overflow: hidden;
}
.naver-map-detail {
  height: 220px;
  margin-top: 10px;
}
.map-selected-label {
  font-size: 0.82rem;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--border-light);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

/* ───── IMAGE URL INPUT ───── */
.img-tab-btns {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.img-tab-btn {
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  background: var(--cream);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.img-tab-btn:hover { background: var(--navy-light); color: var(--white); }
.img-tab-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.url-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.url-input-row .form-control { flex: 1; }
.url-err {
  font-size: 0.8rem;
  color: #EF4444;
  padding: 8px;
  display: block;
}

/* ───── REVIEW EDIT ───── */
.review-edit-form {
  margin-top: 8px;
}
.review-edit-form .rating-select {
  margin-bottom: 4px;
}

/* ───── 인라인 텍스트 버튼 (수정/삭제) ───── */
.btn-inline-text {
  background: none;
  border: none;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.btn-inline-text:hover { color: var(--navy); background: var(--cream); }
.btn-inline-danger { color: #EF4444; }
.btn-inline-danger:hover { color: #DC2626; background: #FEE2E2; }

/* ───── FOOTER INFO ───── */
.footer-info {
  margin-top: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
.footer-info a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-info a:hover {
  color: var(--gold);
}
