/* ========================================================================
   ITALIA EUGEN TRAVEL S.R.L. — 공통 디자인 시스템
   css/style.css
   모든 페이지(메인/로그인/회원가입/견적요청/견적접수/이탈리아소식)가
   이 파일 하나를 기준으로 색상·타이포·컴포넌트를 공유합니다.
   브랜드 컬러: 네이비 #0b2548 · 티얼 #228fb0 · 레드 #c6252b (로고 원본에서 추출)
   ======================================================================== */

:root {
  /* Color */
  --accent: #1c7a95;
  --accent-hover: #166178;
  --accent-soft: rgba(28, 122, 149, 0.12);
  --cta: #c6252b;
  --cta-hover: #a81f24;
  --cta-soft: rgba(198, 37, 43, 0.12);
  --text: #0b2548;
  --muted: #5c6b7a;
  --line: #dde3ea;
  --bg: #f5f8fa;
  --white: #ffffff;
  --footer-bg: #0b2548;
  --danger: #c6252b;
  --danger-bg: #fdeceb;
  --danger-line: #f3c6c3;
  --success: #1c8a53;
  --success-bg: #eaf7f0;
  --success-line: #b9e3cb;

  /* Radius / shadow */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(8, 21, 39, 0.08);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-shell > main { flex: 1; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text);
}
.brand img { height: 38px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand span {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a, .nav button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav a:hover, .nav button:hover { background: #eaf1f5; }
.nav .accent-link { color: var(--accent); font-weight: 700; }
.nav .accent-btn {
  color: var(--accent);
  font-weight: 700;
  border: 1.5px solid var(--accent) !important;
  background: var(--accent-soft) !important;
  padding: 8px 14px;
}
.nav .danger-link { color: var(--danger); }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-left: 4px;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 12px !important;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-radius: 0 !important;
}
.lang-toggle button.active { background: var(--accent); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.btn:hover { background: #eef4f7; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: #eef4f7; }

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-outline:hover { background: #cfe8ee; }

.btn-danger {
  color: var(--danger);
  border-color: var(--danger-line);
  background: #fff7f6;
}
.btn-danger:hover { background: #ffefed; }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: #081527;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,21,39,0.55) 0%, rgba(8,21,39,0.45) 45%, rgba(8,21,39,0.72) 100%);
}
.hero-slide.active { opacity: 1; }
.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 80px 0 90px; }
.hero-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.92;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
}
.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  word-break: keep-all;
  transition: opacity 0.4s ease;
}
.hero p {
  font-size: 16px;
  opacity: 0.94;
  margin-bottom: 28px;
  max-width: 620px;
  word-break: keep-all;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-size: 15px;
}
.hero-cta:hover { background: var(--cta-hover); }
.hero-note { position: absolute; left: 20px; bottom: 14px; font-size: 11px; opacity: 0.75; z-index: 1; transition: opacity 0.3s ease; }

.hero-dots {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.active { background: #fff; transform: scale(1.25); }

/* ---------- Sections / cards ---------- */
section { padding: 72px 0; }
.section-title {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section-desc { color: var(--muted); margin-bottom: 28px; max-width: 720px; word-break: keep-all; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.7; word-break: keep-all; }

.about-box, .services-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.about-box p { color: var(--muted); font-size: 15px; line-height: 1.8; word-break: keep-all; }

.locked-box {
  background: #fff;
  border: 1px dashed #c3d3e0;
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
}
.locked-box h3 { margin-bottom: 8px; }
.locked-box p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-line);
}

/* ---------- News preview (home) ---------- */
.news-list { display: grid; gap: 12px; }
.news-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.news-date { color: var(--accent); font-weight: 700; font-size: 13px; }
.news-item h4 { font-size: 15px; margin-bottom: 4px; }
.news-item p { color: var(--muted); font-size: 13px; }
.news-badge { font-size: 12px; color: var(--muted); white-space: nowrap; }
.more-link { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 700; font-size: 14px; }

/* ---------- News board (news.html) ---------- */
.page-head { padding: 36px 0 16px; }
.page-head h1 { font-size: 30px; letter-spacing: -0.03em; margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 760px; word-break: keep-all; }

.toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  justify-content: space-between; margin: 10px 0 16px;
}
.search-box { display: flex; gap: 8px; flex-wrap: wrap; }
.search-box input, .search-box select { min-width: 180px; }

.board-card, .editor, .detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
th { background: #eef3f6; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #f4f8fa; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

.editor, .detail-card { padding: 22px; margin-top: 16px; display: none; }
.editor h2, .detail-card h2 { font-size: 20px; margin-bottom: 14px; }
.detail-meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.detail-body { white-space: pre-wrap; line-height: 1.7; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Forms (shared: login / register / quote / news editor) ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field label .req, .required { color: var(--accent); }

.field input,
.field select,
.field textarea,
.form-control {
  width: 100%;
  border: 1px solid #cdd8e2;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus,
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea, .form-control.textarea, textarea { min-height: 110px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); }

.grid, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section-title {
  margin: 8px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.check-label, .check-item, .agree-box label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}
.check-label input, .check-item input { margin-top: 3px; width: auto; }
.check-group { margin: 8px 0 18px; }

.error-message, .success-message, .error-box {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
}
.error-message, .error-box { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-line); }
.success-message { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-line); }
.error-message.show, .success-message.show, .error-box.show { display: block; }

.links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px 18px; margin-top: 18px; font-size: 13px;
}
.links a { color: var(--muted); transition: color 0.2s ease; }
.links a:hover { color: var(--accent); }

/* ---------- Auth pages (login / register) ---------- */
.auth-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 16px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.auth-card.wide { max-width: 720px; }
.auth-logo {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.2px;
}
.auth-subtitle { margin-bottom: 28px; color: var(--muted); font-size: 14px; text-align: center; }
.auth-help {
  text-align: center; color: var(--muted); font-size: 13px;
  line-height: 1.6; margin: 0 0 28px; word-break: keep-all;
}
.auth-footer { margin-top: 28px; text-align: center; }
.auth-footer a { display: inline-block; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.auth-footer a:hover { color: var(--accent); }
.auth-footer p { color: #8a99a8; font-size: 12px; }

/* ---------- Quote request page ---------- */
.quote-main { max-width: 880px; width: 100%; margin: 0 auto; padding: 36px 20px 56px; }
.quote-eyebrow { margin-bottom: 12px; }
.quote-main h1 { margin: 12px 0 8px; font-size: 30px; line-height: 1.3; letter-spacing: -0.03em; word-break: keep-all; }
.quote-main > .page-head p { margin: 0; }

.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.form-section-heading { margin: 0 0 4px; font-size: 18px; }
.section-note { margin: 0 0 18px; color: var(--muted); font-size: 13px; }

.autofill-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 18px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--success-bg); border: 1px solid var(--success-line);
  color: var(--success); font-size: 13px;
}
.divider { height: 1px; background: var(--line); margin: 26px 0; }
.agree-box {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #eef4f7;
}

/* ---------- Quote success page ---------- */
.success-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.success-card {
  width: 100%; max-width: 560px; background: var(--white);
  border-radius: 20px; box-shadow: var(--shadow-card); border: 1px solid var(--line);
  padding: 48px 36px; text-align: center;
}
.check-wrap {
  width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 50%;
  background: linear-gradient(145deg, #cdeaf2, var(--accent-soft));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(28, 122, 149, 0.25);
}
.check-wrap svg {
  width: 44px; height: 44px; stroke: var(--accent); stroke-width: 3;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.success-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; line-height: 1.3; }
.success-desc { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.receipt-box {
  background: #eef4f7; border: 1px dashed #c3d3e0; border-radius: var(--radius-md);
  padding: 18px 16px; margin-bottom: 32px;
}
.receipt-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.receipt-no { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: 0.04em; word-break: break-all; }
.success-note { margin-top: 28px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #d7e0e9;
  padding: 36px 0 28px;
  font-size: 13px;
  line-height: 1.8;
  margin-top: auto;
}
.site-footer strong { color: #fff; font-size: 15px; }
.site-footer .muted { color: #93a5b8; }

/* ---------- Modal (약관 동의 팝업 등) ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 21, 39, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(8, 21, 39, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal-header h2 { font-size: 18px; margin: 0; }
.modal-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}
.modal-close:hover { color: var(--text); }
.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  line-height: 1.8;
  font-size: 14px;
  color: var(--text);
}
.modal-body h3 { font-size: 15px; margin: 18px 0 6px; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { color: var(--muted); margin-bottom: 4px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

/* ---------- Kakao channel floating button ---------- */
#kakaoChannelBtn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee500;
  box-shadow: 0 8px 20px rgba(8, 21, 39, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#kakaoChannelBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 21, 39, 0.3);
}

/* ---------- Phone call floating button ---------- */
#phoneCallBtn {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 200;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(8, 21, 39, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#phoneCallBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 21, 39, 0.3);
}

/* ---------- Partner testimonials ---------- */
.testimonial-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  margin-bottom: 10px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-quote-mark {
  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
}
.testimonial-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
  word-break: keep-all;
  flex: 1;
}
.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.testimonial-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.testimonial-role { font-size: 12px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .header-inner { height: auto; padding: 14px 0; align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; justify-content: flex-start; }
}

@media (max-width: 800px) {
  .grid, .form-grid, .form-row { grid-template-columns: 1fr; }
  .quote-card { padding: 20px; }
  .col-hide { display: none; }
}

@media (max-width: 640px) {
  .auth-card { padding: 28px 20px; }
  .success-card { padding: 36px 22px; }
  .success-card h1 { font-size: 22px; }
  .actions .btn { width: 100%; }
  #kakaoChannelBtn { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  #phoneCallBtn { right: 16px; bottom: 74px; width: 48px; height: 48px; }
}

/* ---------- File attachment (quote page) ---------- */
.file-drop {
  border: 1.5px dashed #c3d3e0;
  border-radius: var(--radius-md);
  background: #eef4f7;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.file-drop input[type="file"] { display: none; }
.file-drop-label { font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.file-drop-hint { font-size: 12px; color: var(--muted); }
.file-list { list-style: none; margin-top: 12px; display: grid; gap: 8px; padding: 0; }
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
}
.file-list .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .file-size { color: var(--muted); flex-shrink: 0; }
.file-remove {
  border: 0; background: transparent; color: var(--danger); cursor: pointer;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}

/* ---------- 게시판 이미지 ---------- */
.image-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.image-thumbs:empty { display: none; }
.image-thumb {
  position: relative; aspect-ratio: 1; border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; background: #eef4f7;
}
.image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-thumb .thumb-remove {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(11, 37, 72, 0.75); color: #fff; font-size: 15px; line-height: 26px; cursor: pointer;
}
.image-thumb .thumb-remove:hover { background: var(--danger); }
.detail-images { display: grid; gap: 14px; margin-top: 20px; }
.detail-images:empty { display: none; }
.detail-images a { display: block; }
.detail-images img {
  display: block; max-width: 100%; height: auto; margin: 0 auto;
  border-radius: var(--radius-md); border: 1px solid var(--line); background: #eef4f7;
}
.has-image { color: var(--muted); font-size: 13px; margin-left: 6px; }

/* ---------- Admin page ---------- */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.admin-tab {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
}
.admin-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px; text-align: center;
}
.stat-num { font-size: 26px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
select.mini-select {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 8px; font-size: 13px; background: #fff;
}
.status-pill {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
}
.status-pending { background: #fff6e5; color: #a86400; border: 1px solid #f0d9a3; }
.status-approved { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-line); }
.status-rejected { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-line); }

@media (max-width: 900px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 개인정보처리방침 등 긴 문서 ---------- */
/* 한국어/영어 본문을 통째로 나눠 둔 페이지: 현재 언어만 보이기 (common.js가 <html lang>을 바꿈) */
html[lang="en"] .lang-ko, html:not([lang="en"]) .lang-en { display: none; }
.policy { line-height: 1.8; }
.policy h3 { font-size: 17px; margin: 26px 0 8px; color: var(--text); }
.policy h3:first-of-type { margin-top: 18px; }
.policy ul { margin: 6px 0 10px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.policy li { margin-bottom: 4px; word-break: keep-all; }
.policy strong { color: var(--text); }
.policy a { color: var(--accent); }
.table-wrap { overflow-x: auto; margin: 10px 0; }
.policy-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.policy-table th, .policy-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.policy-table th { background: var(--bg); color: var(--text); font-weight: 600; }
.policy-table td { color: var(--muted); }
.footer-links a { color: inherit; }
.footer-links strong { color: #fff; font-size: inherit; }
