*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #f7f8fc;
  --bg-soft: #f1f4fb;
  --panel: #ffffff;
  --panel-2: #fbfcff;
  --line: #e8ecf5;
  --line-strong: #d8dfeb;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #667085;
  --text-muted: #667085;
  --primary: #4857d6;
  --primary-strong: #3948bf;
  --primary-text: #3f4fd4;
  --primary-soft: rgba(91,108,255,.10);
  --accent: #087f73;
  --accent-action: #087f73;
  --accent-text: #087f73;
  --accent-soft: rgba(25,195,179,.10);
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #087a55;
  --success-action: #087a55;
  --success-text: #087a55;
  --info: #3b82f6;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-xs: 0 2px 10px rgba(16,24,40,.04);
  --shadow-sm: 0 10px 30px rgba(16,24,40,.06);
  --shadow-md: 0 22px 60px rgba(16,24,40,.10);
  --page-pad: 24px;
  --page-pad-mobile: 16px;
  --header-height: 78px;
  /* sticky 헤더(header-shell + main-nav) 전체 높이 — JS가 실측값으로 갱신 */
  --header-total: 144px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(91,108,255,.10), transparent 24%),
    radial-gradient(circle at top right, rgba(25,195,179,.08), transparent 22%),
    linear-gradient(180deg, #ffffff 0, var(--bg) 220px, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.container, .container-sm {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--page-pad);
}
.container-sm { max-width: 980px; }
main { flex: 1; padding: 28px 0 56px; }

.topbar-band {
  background: linear-gradient(90deg, rgb(237 240 246) 0%, rgba(220,224,238,1) 100%);
  border-bottom: 1px solid rgba(216,223,235,.9);
}
.topbar {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 6px;
  color: var(--text-2);
  font-size: 12px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mini-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(17,24,39,.04); color: var(--text-2);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(247,248,252,.78);
  border-bottom: 1px solid rgba(216,223,235,.8);
}
.site-header.scrolled {
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-xs);
}
.header-shell {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding-block: 14px;
}

.mobile-menu-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-copy { min-width: 0; }
.brand-title { font-size: 22px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.brand-sub { margin-top: 4px; font-size: 12px; color: var(--text-3); }

.search-wrap { position: relative; min-width: 0; }
.search-box {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 10px 8px 18px;
  border-radius: 20px; background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: .18s ease;
}
.search-box:focus-within {
  border-color: rgba(91,108,255,.32);
  box-shadow: 0 0 0 6px rgba(91,108,255,.08), var(--shadow-sm);
  transform: translateY(-1px);
}
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 15px;
}
.search-box input::placeholder { color: var(--text-3); }
.search-submit {
  min-width: 108px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(91,108,255,.22);
}
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  background: rgba(255,255,255,.98); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-md);
  padding: 10px; display: none;
}
.search-suggest.open { display: block; }
.suggest-label { padding: 8px 10px; color: var(--text-3); font-size: 12px; font-weight: 700; }
.suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px; border-radius: 14px; color: var(--text-2);
}
.suggest-item:hover { background: var(--bg-soft); color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 14px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  font-size: 13px; font-weight: 800; line-height: 1;
  transition: .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(91,108,255,.24);
  outline-offset: 2px;
}
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 12px 24px rgba(91,108,255,.18);
}
.btn-secondary {
  background: var(--panel); border-color: var(--line); color: var(--text);
  box-shadow: var(--shadow-xs);
}
.btn-ghost {
  background: transparent; border-color: var(--line); color: var(--text-2);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-accent {
  background: var(--accent-action); color: #fff;
  box-shadow: 0 12px 24px rgba(25,195,179,.18);
}
.btn-warning { background: var(--warning); color: #0a0a0a; }
.btn-success { background: var(--success-action); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 12px; border-radius: 12px; font-size: 12px; }
.btn-lg { min-height: 52px; padding: 0 20px; border-radius: 16px; font-size: 14px; }

.main-nav-wrap { border-top: 1px solid rgba(216,223,235,.72); }
.main-nav {
  display: flex; align-items: center; gap: 8px;
  min-height: 58px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

/* ── 가로 스크롤 fade edge ── */
.hscroll {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.hscroll.at-start {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
  mask-image:         linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
}
.hscroll.at-end {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px);
  mask-image:         linear-gradient(to right, transparent 0, #000 28px);
}
.hscroll.at-start.at-end {
  -webkit-mask-image: none;
  mask-image: none;
}
.main-nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 14px; border-radius: 12px; color: var(--text-2);
  font-weight: 700; white-space: nowrap; transition: .16s ease;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--primary-soft); color: var(--primary);
}

.hero-panel {
  background: linear-gradient(135deg, rgba(91,108,255,.95), rgba(25,195,179,.88));
  color: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-md);
  padding: 28px; margin-bottom: 26px; position: relative;
}
.hero-panel::after {
  content: ""; position: absolute; inset: auto -60px -80px auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.12); filter: blur(4px);
  pointer-events: none;
}

.card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(232,236,245,.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251,252,255,.96), rgba(255,255,255,.92));
}
.card-body { padding: 22px; }
.card-title { font-size: 16px; font-weight: 900; letter-spacing: -.02em; }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; line-height: 1.4; white-space: nowrap;
}
.badge-primary { background: var(--primary-soft); color: var(--primary-text); }
.badge-success { background: rgba(16,185,129,.12); color: var(--success-text); }
.badge-danger { background: rgba(239,68,68,.10); color: var(--danger); }
.badge-warning { background: rgba(245,158,11,.12); color: var(--warning); }
.badge-info { background: rgba(59,130,246,.12); color: var(--info); }
.badge-gray { background: #eef2f7; color: var(--text-2); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 12px 14px; text-align: left; color: var(--text-3);
  font-size: 12px; font-weight: 800; border-bottom: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .04em;
}
td {
  padding: 15px 14px; border-bottom: 1px solid #edf1f7;
  color: var(--text-2); vertical-align: middle;
}
tbody tr:hover td { background: #fafcff; color: var(--text); }
tbody tr:last-child td { border-bottom: 0; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block; margin-bottom: 7px; color: var(--text-2); font-size: 13px; font-weight: 700;
}
.form-control {
  width: 100%; min-height: 48px; padding: 0 14px;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); outline: 0;
  transition: .16s ease;
}
textarea.form-control { min-height: 120px; padding: 14px; resize: vertical; }
.form-control:focus {
  border-color: rgba(91,108,255,.35);
  box-shadow: 0 0 0 5px rgba(91,108,255,.08);
}

.page-header { margin-bottom: 22px; }
.page-header h1 { font-size: 30px; line-height: 1.12; font-weight: 900; letter-spacing: -.04em; }
.page-header p { margin-top: 8px; color: var(--text-2); }
.section-title {
  margin-bottom: 14px; font-size: 13px; font-weight: 900; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .08em;
}

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  color: var(--text-2); font-weight: 800;
}
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

.empty-state {
  padding: 56px 20px; text-align: center; color: var(--text-3);
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(248,250,255,.94));
  border: 1px dashed var(--line-strong); border-radius: 24px;
}
.empty-state .icon { font-size: 44px; margin-bottom: 10px; }

.alert {
  padding: 14px 16px; border-radius: 16px; border: 1px solid transparent; font-size: 13px; font-weight: 700;
}
.alert-success { background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.18); color: var(--success-text); }
.alert-danger { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.16); color: var(--danger); }
.alert-warning { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.16); color: var(--warning); }
.alert-info { background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.16); color: var(--info); }

.messages-container {
  position: fixed; right: 20px; top: 96px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(18px) scale(.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.message-item {
  min-width: 280px; max-width: 380px;
  padding: 13px 16px 13px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  border-left-width: 2px;
  box-shadow: 0 8px 28px rgba(16,24,40,.13), 0 2px 8px rgba(16,24,40,.07);
  font-size: 13px; font-weight: 700; line-height: 1.5;
  animation: toast-in .22s ease both;
  transition: opacity .2s ease, transform .2s ease;
}
.message-item.alert-success {
  background: #f0fdf8; border-color: #6ee7c7; border-left-color: var(--success); color: #065f46;
}
.message-item.alert-danger {
  background: #fff4f4; border-color: #fca5a5; border-left-color: var(--danger); color: #991b1b;
}
.message-item.alert-warning {
  background: #fffbeb; border-color: #fcd34d; border-left-color: var(--warning); color: #92400e;
}
.message-item.alert-info {
  background: #eff6ff; border-color: #93c5fd; border-left-color: var(--info); color: #1e40af;
}
.message-item:not(.alert-success):not(.alert-danger):not(.alert-warning):not(.alert-info) {
  background: rgba(255,255,255,.97); border-color: var(--line); border-left-color: var(--primary); color: var(--text);
}

footer {
  margin-top: auto; border-top: 1px solid var(--line);
  background: rgba(255,255,255,.7);
}
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 18px;
  padding-block: 26px; color: var(--text-2);
}
.footer-title { font-size: 13px; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.footer-section { min-width: 0; }
.footer-section > summary { list-style: none; cursor: default; }
.footer-section > summary::-webkit-details-marker { display: none; }
.footer-business > summary { display: none; }
.footer-contact { display: flex; flex-direction: column; gap: 7px; }
.footer-contact a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; color: var(--text);
}
.footer-contact a svg { flex: none; color: var(--primary); }

@media (min-width: 821px) {
  .footer-section > summary { pointer-events: none; }
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-sm { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-2); }
.text-primary { color: var(--primary-text); }
.text-accent { color: var(--accent-text); }
.text-success { color: var(--success-text); }
.text-danger { color: var(--danger); }
.font-bold { font-weight: 800; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }

.badge-accent { background: rgba(25,195,179,.10); color: var(--accent-text); }

/* ── Seller Stats Modal ── */
.smodal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(15,23,42,.44);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.smodal-overlay.open { opacity: 1; visibility: visible; }
.smodal {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(16,24,40,.22);
  width: 100%; max-width: 420px;
  overflow: hidden;
  transform: translateY(18px) scale(.96);
  transition: transform .28s cubic-bezier(.34,1.4,.64,1);
}
.smodal-overlay.open .smodal { transform: translateY(0) scale(1); }
.smodal-head {
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, rgba(91,108,255,.09), rgba(25,195,179,.06));
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.smodal-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 11px; font-weight: 800; margin-bottom: 6px;
}
.smodal-name { font-size: 17px; font-weight: 900; color: var(--text); }
.smodal-close {
  width: 34px; height: 34px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.8);
  cursor: pointer; display: grid; place-items: center;
  font-size: 15px; color: var(--text-3); flex-shrink: 0;
  transition: .14s ease;
}
.smodal-close:hover { background: var(--bg-soft); color: var(--text); }
.smodal-body { padding: 22px; }
.smodal-counters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.smodal-counter {
  background: var(--bg-soft); border-radius: 16px; padding: 16px;
  text-align: center; border: 1px solid var(--line);
}
.smodal-counter-val { font-size: 26px; font-weight: 900; color: var(--text); line-height: 1; }
.smodal-counter-lbl { margin-top: 6px; font-size: 11px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; }
.smodal-rate-row { margin-bottom: 16px; }
.smodal-rate-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.smodal-rate-label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.smodal-rate-pct { font-size: 15px; font-weight: 900; }
.smodal-bar-bg { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.smodal-bar { height: 100%; border-radius: 999px; width: 0; transition: width .7s cubic-bezier(.34,1.2,.64,1); }
.smodal-bar.clr-good { background: linear-gradient(90deg, #10b981, #34d399); }
.smodal-bar.clr-mid  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.smodal-bar.clr-bad  { background: linear-gradient(90deg, #ef4444, #f87171); }
.smodal-rate-detail { margin-top: 5px; font-size: 11px; color: var(--text-3); }
.smodal-empty { text-align: center; padding: 32px 0; color: var(--text-3); }
.smodal-empty-icon { font-size: 38px; margin-bottom: 10px; }
.smodal-loading { text-align: center; padding: 36px 0; color: var(--text-3); font-weight: 700; }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 250; display: none;
  background: rgba(15,23,42,.34);
}
.mobile-drawer.open { display: block; }
.mobile-drawer-panel {
  width: min(90vw, 360px); height: 100%; background: #fff; box-shadow: var(--shadow-md);
  padding: 18px; display: flex; flex-direction: column; gap: 16px;
  overflow-y: auto;
}
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav-label {
  margin-top: 10px; padding: 4px 4px 0;
  color: var(--text-3); font-size: 11px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .08em;
}
.mobile-nav a {
  padding: 14px 14px; border-radius: 14px; font-weight: 800; color: var(--text-2); background: var(--bg-soft);
}
.mobile-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.mobile-nav-more {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 8px;
}
.mobile-nav-more summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: var(--text-2);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.mobile-nav-more summary::-webkit-details-marker { display: none; }
.mobile-nav-more summary::after { content: "+"; font-size: 18px; font-weight: 500; }
.mobile-nav-more[open] summary::after { content: "−"; }
.mobile-nav-more-links { display: grid; gap: 8px; padding-top: 8px; }

@media (max-width: 1080px) {
  .header-shell { grid-template-columns: auto 1fr auto; }
  .brand-sub { display: none; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  :root { --page-pad: var(--page-pad-mobile); --header-total: 78px; }
  .topbar-band { display: none; }
  .header-shell { grid-template-columns: auto auto 1fr auto; gap: 10px; }
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  /* 모바일: 브랜드 마크 없이 brand-title만 노출 (brand-sub는 1080px 이하에서 숨김) */
  .header-actions .desktop-only { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .btn { min-height: 44px; padding-inline: 11px; }
  .search-wrap { display: none; }
  .mobile-search-btn { display: inline-flex !important; }
  .main-nav-wrap { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .messages-container { left: 16px; right: 16px; top: 88px; }
  .message-item { min-width: 0; max-width: none; }
  main { padding-top: 20px; }
  .page-header { margin-bottom: 16px; }
  .page-header h1 { font-size: 24px; line-height: 1.25; letter-spacing: 0; }
  .card { border-radius: 18px; }
  .card-header { padding: 14px 16px; }
  .card-body { padding: 16px; }
  .card-title { letter-spacing: 0; }
  .empty-state { padding: 40px 16px; border-radius: 18px; }
  .pagination { gap: 6px; margin-top: 20px; }
  .pagination a, .pagination span { min-width: 44px; height: 44px; border-radius: 12px; }
  .pagination .pagination-distant { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 0; padding-block: 18px; }
  .footer-brand { padding-bottom: 10px; }
  .footer-brand > .footer-title { margin-bottom: 2px; }
  .footer-section { border-top: 1px solid var(--line); }
  .footer-section > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    cursor: pointer;
  }
  .footer-section > summary::after { content: "+"; color: var(--text-3); font-size: 18px; font-weight: 500; }
  .footer-section[open] > summary::after { content: "−"; }
  .footer-section:not([open]) > .footer-section-content { display: none; }
  .footer-section-content { padding: 2px 0 14px; }
  .footer-business > summary { color: var(--text-2); font-size: 12px; }
  .footer-copyright { margin-top: 6px !important; }
  /* 터치 타깃 최소 44px */
  .btn-sm { min-height: 44px; }
  .dpr-nav-btn { min-width: 44px; min-height: 44px; }
  .dpr-qb { min-height: 44px; }
  /* iOS Safari: 입력 폰트 16px 미만이면 포커스 시 화면이 강제 확대됨 */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea { font-size: 16px !important; }
}

/* ── 모바일 검색 버튼 ── */
.mobile-search-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── 검색 Overlay ── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(15,23,42,.38);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay-panel {
  background: var(--panel);
  padding: 14px 16px 16px;
  box-shadow: 0 8px 32px rgba(16,24,40,.14);
  transform: translateY(-8px);
  transition: transform .22s cubic-bezier(.34,1.3,.64,1);
}
.search-overlay.open .search-overlay-panel { transform: translateY(0); }
.search-overlay-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.search-overlay-close {
  width: 36px; height: 36px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-soft);
  cursor: pointer; font-size: 16px; color: var(--text-2);
  display: grid; place-items: center; flex-shrink: 0;
}
.search-overlay-box {
  flex: 1; display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 8px 6px 14px;
  border-radius: 16px; background: var(--bg-soft);
  border: 1.5px solid rgba(91,108,255,.24);
  box-shadow: 0 0 0 4px rgba(91,108,255,.08);
}
.search-overlay-box input {
  flex: 1; min-width: 0; border: 0; outline: 0;
  background: transparent; color: var(--text); font-size: 15px;
}
.search-overlay-submit {
  min-width: 44px; height: 36px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff; font-weight: 800; font-size: 13px; cursor: pointer;
  padding: 0 12px;
}
.search-overlay-suggest { padding: 4px 0 2px; }
.search-overlay-suggest .suggest-label {
  padding: 8px 4px 4px; color: var(--text-3); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
}
.search-overlay-suggest .suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 8px; border-radius: 12px; color: var(--text-2); font-size: 14px;
}
.search-overlay-suggest .suggest-item:active { background: var(--bg-soft); }

/* ── 공통 모달 ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.45);
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--panel);
  border-radius: 20px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  position: relative;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
}
.modal-box-sm { max-width: 360px; }
.modal-box-lg { max-width: 560px; }
.modal-title { font-size: 18px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 10px; }
.modal-body  { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }
.modal-footer { display: flex; gap: 10px; }
.modal-footer .btn { flex: 1; }

/* ── 공통 필터 패널 ── */
.filter-panel { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filter-field { display: flex; flex-direction: column; gap: 5px; }
.filter-field-label { font-size: 11px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.filter-field select.form-control,
.filter-field input.form-control  { min-height: 44px; }
.filter-field-w120 { width: 120px; }
.filter-field-w150 { width: 150px; }
.filter-field-w200 { width: 200px; }
@media (max-width: 820px) {
  .filter-panel { flex-direction: column; }
  .filter-field,
  .filter-field-w120,
  .filter-field-w150,
  .filter-field-w200 { width: 100%; }
}
