/* ============================================================
   DRONE MARKET — 중고 드론 거래·전문가 성능평가 MVP
   공용 스타일시트 (반응형 · 모바일 앱스타일)
   ============================================================ */

:root {
    --primary: #2457e6;
    --primary-dark: #1a3fb0;
    --primary-light: #eef3ff;
    --navy: #101828;
    --text: #1d2939;
    --sub: #667085;
    --muted: #98a2b3;
    --line: #e4e7ec;
    --line-light: #f2f4f7;
    --bg: #f5f7fa;
    --white: #fff;
    --green: #12b76a;
    --green-light: #ecfdf3;
    --orange: #f79009;
    --orange-light: #fffaeb;
    --red: #f04438;
    --red-light: #fef3f2;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
    --shadow-md: 0 8px 24px rgba(16,24,40,.10);
    --header-h: 60px;
    --m-header-h: 54px;
    --botnav-h: 60px;
    --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
}
/* 가로 오버플로 전역 차단 (모바일 fixed 하단바 안정화) */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
i.fa-solid, i.fa-regular, i.fa-brands { line-height: 1; }

::selection { background: var(--primary-light); }

/* ------------------------------------------------------------
   레이아웃 공통
   ------------------------------------------------------------ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.page-body { padding-top: calc(var(--header-h) + 0px); min-height: 100vh; }

/* ===== PC 헤더 ===== */
.gnb {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    height: var(--header-h);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.gnb-in { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.4px; color: var(--navy); flex-shrink: 0; }
.logo .logo-mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #4b7bff);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px;
    box-shadow: 0 3px 8px rgba(36,87,230,.3);
}
.logo em { font-style: normal; color: var(--primary); }
.gnb-menu { display: flex; gap: 4px; }
.gnb-menu a {
    padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--text);
    transition: background .15s, color .15s;
}
.gnb-menu a:hover { background: var(--line-light); }
.gnb-menu a.on { color: var(--primary); background: var(--primary-light); }
.gnb-search { flex: 1; max-width: 300px; position: relative; }
.gnb-search input {
    width: 100%; height: 40px; border: 1.5px solid var(--line); border-radius: 999px;
    padding: 0 42px 0 18px; font-size: 14px; background: var(--bg); outline: none;
    transition: border-color .15s, background .15s;
}
.gnb-search input:focus { border-color: var(--primary); background: #fff; }
.gnb-search button { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; color: var(--sub); }
.gnb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gnb-ico {
    position: relative; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--text); transition: background .15s;
}
.gnb-ico:hover { background: var(--line-light); }
.gnb-ico .dot {
    position: absolute; top: 7px; right: 7px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}

/* ===== 모바일 헤더 (앱바) ===== */
.m-header {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    height: var(--m-header-h); background: #fff;
    border-bottom: 1px solid var(--line);
    align-items: center; padding: 0 8px; gap: 4px;
}
.m-header .mh-btn {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: var(--text); border-radius: 50%; position: relative;
}
.m-header .mh-btn .dot {
    position: absolute; top: 8px; right: 8px; min-width: 15px; height: 15px; padding: 0 3px;
    border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.m-header .mh-title { flex: 1; font-size: 17px; font-weight: 700; letter-spacing: -.3px; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-header .mh-logo { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--navy); padding-left: 8px; }
.m-header .mh-logo .logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg,var(--primary),#4b7bff); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; }
.m-header .mh-logo em { font-style: normal; color: var(--primary); }

/* ===== 모바일 하단 탭바 ===== */
.botnav {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    height: calc(var(--botnav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
}
.botnav-in { display: flex; height: var(--botnav-h); }
.botnav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 10.5px; font-weight: 600; color: var(--muted); position: relative;
}
.botnav a i { font-size: 20px; }
.botnav a.on { color: var(--primary); }
.botnav a .dot { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.botnav .nav-sell { position: relative; }
.botnav .nav-sell .sell-circle {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #4b7bff);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 19px; margin-top: -18px;
    box-shadow: 0 6px 14px rgba(36,87,230,.38);
    border: 3px solid #fff;
}
.botnav .nav-sell span { color: var(--primary); }

/* ------------------------------------------------------------
   공통 컴포넌트
   ------------------------------------------------------------ */
/* 버튼 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 44px; padding: 0 20px; border-radius: 11px;
    font-size: 15px; font-weight: 700; transition: all .15s; white-space: nowrap;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 13px; }
.btn-full { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(36,87,230,.25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: #fff; border: 1.5px solid var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--muted); }
.btn-outline-primary { background: #fff; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary-light); }
.btn-ghost { background: var(--line-light); color: var(--text); }
.btn-ghost:hover { background: var(--line); }
.btn-danger-ghost { background: var(--red-light); color: var(--red); }
.btn-green { background: var(--green); color: #fff; }

/* 배지 */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    height: 24px; padding: 0 9px; border-radius: 7px;
    font-size: 12px; font-weight: 700; white-space: nowrap;
}
.badge i { font-size: 11px; }
.badge-sale { background: var(--green-light); color: var(--green); }
.badge-reserve { background: var(--orange-light); color: var(--orange); }
.badge-done { background: var(--line-light); color: var(--muted); }
.badge-cert {
    background: linear-gradient(135deg, var(--primary), #4b7bff); color: #fff;
    box-shadow: 0 2px 6px rgba(36,87,230,.3);
}
.badge-line { background: #fff; border: 1px solid var(--line); color: var(--sub); }
.badge-red { background: var(--red-light); color: var(--red); }

/* 카드 */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* 섹션 타이틀 */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.sec-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.sec-head h2 i { color: var(--primary); margin-right: 8px; font-size: 19px; }
.sec-head .more { font-size: 13.5px; font-weight: 600; color: var(--sub); display: flex; align-items: center; gap: 4px; }
.sec-head .more:hover { color: var(--primary); }

/* ------------------------------------------------------------
   매물 썸네일 (그라디언트 플레이스홀더 + 드론 워터마크)
   ------------------------------------------------------------ */
.thumb {
    position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background-size: cover;
}
.thumb::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='13' cy='13' r='8'/%3E%3Ccircle cx='51' cy='13' r='8'/%3E%3Ccircle cx='13' cy='51' r='8'/%3E%3Ccircle cx='51' cy='51' r='8'/%3E%3Cline x1='18' y1='18' x2='26' y2='26'/%3E%3Cline x1='46' y1='18' x2='38' y2='26'/%3E%3Cline x1='18' y1='46' x2='26' y2='38'/%3E%3Cline x1='46' y1='46' x2='38' y2='38'/%3E%3Crect x='24' y='25' width='16' height='14' rx='4'/%3E%3Ccircle cx='32' cy='40' r='3'/%3E%3C/svg%3E") center/38% no-repeat;
    opacity: .28;
}
.thumb .thumb-model {
    position: absolute; left: 12px; bottom: 10px; color: rgba(255,255,255,.92);
    font-size: 12px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
}
.grad-1 { background: linear-gradient(135deg, #3d5afe, #00b0ff); }
.grad-2 { background: linear-gradient(135deg, #37474f, #78909c); }
.grad-3 { background: linear-gradient(135deg, #1a2980, #26d0ce); }
.grad-4 { background: linear-gradient(135deg, #514a9d, #24c6dc); }
.grad-5 { background: linear-gradient(135deg, #0f2027, #2c5364); }
.grad-6 { background: linear-gradient(135deg, #42275a, #734b6d); }
.grad-7 { background: linear-gradient(135deg, #136a8a, #267871); }
.grad-8 { background: linear-gradient(135deg, #182848, #4b6cb7); }

/* 실사 이미지 적용 시 플레이스홀더(드론 워터마크·모델 라벨) 숨김 */
.thumb.photo::before, .thumb.photo .thumb-model { display: none; }
.hero-slide.photo::after { display: none; }
.g-slide.photo::before { display: none; }

/* 판매완료 딤 처리 */
.thumb .done-overlay {
    position: absolute; inset: 0; background: rgba(16,24,40,.62);
    display: flex; align-items: center; justify-content: center; z-index: 2;
}
.thumb .done-overlay span {
    color: #fff; font-size: 14px; font-weight: 700; border: 1.5px solid rgba(255,255,255,.7);
    border-radius: 999px; padding: 6px 16px;
}
.thumb .cert-tag {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, var(--primary), #4b7bff);
    color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(16,24,40,.3);
}
.thumb .like-btn {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92);
    display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted);
    box-shadow: 0 2px 6px rgba(16,24,40,.15);
}
.thumb .like-btn.liked { color: var(--red); }

/* ------------------------------------------------------------
   매물 카드 그리드
   ------------------------------------------------------------ */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.prod-card { display: block; }
.prod-card .p-info { padding: 11px 3px 0; }
.prod-card .p-badges { display: flex; gap: 5px; margin-bottom: 6px; flex-wrap: wrap; }
.prod-card .p-title { font-size: 15px; font-weight: 700; letter-spacing: -.3px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.prod-card .p-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.prod-card .p-sub i { font-size: 11px; }
.prod-card .p-price { font-size: 17px; font-weight: 800; margin-top: 6px; letter-spacing: -.3px; }
.prod-card .p-price em { font-style: normal; font-size: 13px; font-weight: 600; margin-left: 1px; }
.prod-card:hover .p-title { color: var(--primary); }

/* ------------------------------------------------------------
   칩 슬라이더 (Swiper freeMode)
   ------------------------------------------------------------ */
.chips {
    -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.chips .swiper { overflow: hidden; }
.chips .swiper-wrapper { display: flex; align-items: center; }
.chips .swiper-slide { width: auto !important; flex-shrink: 0; }
.chips .swiper-slide + .swiper-slide { margin-left: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 16px; border-radius: 999px;
    background: #fff; border: 1.5px solid var(--line);
    font-size: 14px; font-weight: 600; color: var(--text);
    -webkit-user-drag: none; user-select: none; white-space: nowrap;
    transition: all .15s;
}
.chip i { font-size: 12.5px; color: var(--muted); }
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.on i { color: #fff; }

/* ------------------------------------------------------------
   폼 요소
   ------------------------------------------------------------ */
.field { margin-bottom: 20px; }
.field > label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field > label .req { color: var(--red); margin-left: 3px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.inp, .sel, .txa {
    width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.inp, .sel { height: 48px; padding: 0 14px; font-size: 15px; }
.txa { padding: 13px 14px; font-size: 15px; min-height: 130px; resize: vertical; line-height: 1.6; }
.inp:focus, .sel:focus, .txa:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,87,230,.1); }
.sel {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667085' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center no-repeat;
    padding-right: 38px;
}
.inp-group { position: relative; }
.inp-group .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 600; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 라디오 카드 (회원유형 등) */
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-cards.cols-2 { grid-template-columns: 1fr 1fr; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card .rc-body {
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    padding: 16px 10px; text-align: center; cursor: pointer; transition: all .15s;
}
.radio-card .rc-body i { font-size: 22px; color: var(--muted); margin-bottom: 8px; display: block; }
.radio-card .rc-body strong { display: block; font-size: 14px; font-weight: 700; }
.radio-card .rc-body span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.radio-card input:checked + .rc-body { border-color: var(--primary); background: var(--primary-light); }
.radio-card input:checked + .rc-body i, .radio-card input:checked + .rc-body strong { color: var(--primary); }

/* 체크박스 */
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.chk input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ------------------------------------------------------------
   사진 드롭존 (전 프로젝트 표준 패턴)
   ------------------------------------------------------------ */
.na-dropzone {
    border: 2px dashed var(--line); border-radius: var(--radius-sm);
    background: var(--bg); cursor: pointer; outline: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 150px; padding: 22px; text-align: center; transition: all .15s;
}
.na-dropzone:hover, .na-dropzone:focus { border-color: var(--primary); background: var(--primary-light); }
.na-dropzone.is-over { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 4px rgba(36,87,230,.12); }
.na-dropzone .dz-icon { font-size: 30px; color: var(--muted); margin-bottom: 10px; }
.na-dropzone .dz-text { font-size: 14px; font-weight: 600; color: var(--sub); }
.na-dropzone .dz-text strong { color: var(--primary); }
.na-dropzone .dz-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.na-previews { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.na-previews:empty { display: none; }
.na-previews .pv-item { position: relative; aspect-ratio: 1/1; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.na-previews .pv-item img { width: 100%; height: 100%; object-fit: cover; }
.na-previews .pv-item .pv-del {
    position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(16,24,40,.65); color: #fff; font-size: 11px;
    display: flex; align-items: center; justify-content: center;
}
.na-previews .pv-item .pv-main {
    position: absolute; left: 0; right: 0; bottom: 0; background: rgba(36,87,230,.9); color: #fff;
    font-size: 10px; font-weight: 700; text-align: center; padding: 2px 0;
}

/* ------------------------------------------------------------
   모달 / 바텀시트
   ------------------------------------------------------------ */
.modal-dim {
    position: fixed; inset: 0; z-index: 1000; background: rgba(16,24,40,.55);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-dim.open { display: flex; }
.modal {
    background: #fff; border-radius: 18px; width: 100%; max-width: 440px;
    max-height: calc(100vh - 60px); overflow-y: auto;
    box-shadow: 0 24px 60px rgba(16,24,40,.3);
    animation: modalUp .22s ease;
}
@keyframes modalUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
.modal-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.modal-head h3 i { color: var(--primary); margin-right: 8px; }
.modal-head .modal-x { width: 34px; height: 34px; border-radius: 50%; font-size: 16px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.modal-head .modal-x:hover { background: var(--line-light); }
.modal-body { padding: 16px 22px 22px; }
.modal-foot { display: flex; gap: 8px; padding: 0 22px 22px; }
.modal-foot .btn { flex: 1; }

/* 안내 박스 */
.notice-box { background: var(--orange-light); border: 1px solid #fedf89; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; color: #93570a; }
.notice-box strong { display: flex; align-items: center; gap: 7px; font-size: 14px; margin-bottom: 6px; color: #7a4608; }
.notice-box ul { padding-left: 4px; }
.notice-box li { display: flex; gap: 7px; margin-top: 4px; line-height: 1.5; }
.notice-box li::before { content: '·'; font-weight: 900; }
.info-box { background: var(--primary-light); border: 1px solid #d6e2ff; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; color: var(--primary-dark); }

/* 토스트 */
.toast {
    position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
    z-index: 1200; background: rgba(16,24,40,.92); color: #fff;
    padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
    opacity: 0; pointer-events: none; transition: all .25s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ------------------------------------------------------------
   푸터
   ------------------------------------------------------------ */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 70px; padding: 40px 0 46px; }
.footer .f-logo { font-weight: 800; font-size: 17px; color: var(--navy); margin-bottom: 12px; }
.footer .f-logo em { font-style: normal; color: var(--primary); }
.footer p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.footer .f-links { display: flex; gap: 18px; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--sub); flex-wrap: wrap; }
.footer .f-links a:hover { color: var(--primary); }

/* ------------------------------------------------------------
   페이지별 — 메인
   ------------------------------------------------------------ */
.hero-banner { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3/1; margin-top: 22px; }
.hero-banner .swiper, .hero-banner .swiper-wrapper, .hero-banner .swiper-slide { width: 100%; height: 100%; }
.hero-slide { width: 100%; height: 100%; display: flex; align-items: center; padding: 0 6%; position: relative; overflow: hidden; }
.hero-slide::after {
    content: ''; position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
    width: 34%; aspect-ratio: 1/1; max-width: 260px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='13' cy='13' r='8'/%3E%3Ccircle cx='51' cy='13' r='8'/%3E%3Ccircle cx='13' cy='51' r='8'/%3E%3Ccircle cx='51' cy='51' r='8'/%3E%3Cline x1='18' y1='18' x2='26' y2='26'/%3E%3Cline x1='46' y1='18' x2='38' y2='26'/%3E%3Cline x1='18' y1='46' x2='26' y2='38'/%3E%3Cline x1='46' y1='46' x2='38' y2='38'/%3E%3Crect x='24' y='25' width='16' height='14' rx='4'/%3E%3Ccircle cx='32' cy='40' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: .2;
}
.hero-slide .hs-txt { position: relative; z-index: 2; color: #fff; }
.hero-slide .hs-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 700; margin-bottom: 12px; }
.hero-slide h2 { font-size: clamp(20px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.8px; line-height: 1.3; }
.hero-slide p { font-size: clamp(12.5px, 1.4vw, 15px); opacity: .85; margin-top: 8px; }
.hero-banner .swiper-pagination { bottom: 12px !important; }
.hero-banner .swiper-pagination-bullet { background: #fff; opacity: .5; width: 7px; height: 7px; }
.hero-banner .swiper-pagination-bullet-active { opacity: 1; width: 20px; border-radius: 4px; }
.hb-1 { background: linear-gradient(120deg, #101828 20%, #2457e6 130%); }
.hb-2 { background: linear-gradient(120deg, #0f2027, #2c5364); }
.hb-3 { background: linear-gradient(120deg, #1a2980, #26d0ce); }

/* 퀵메뉴 */
.quick-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.quick-menu a {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 700; transition: all .15s; box-shadow: var(--shadow); text-align: center;
}
.quick-menu a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d6e2ff; }
.quick-menu .qm-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.qm-blue { background: var(--primary-light); color: var(--primary); }
.qm-green { background: var(--green-light); color: var(--green); }
.qm-orange { background: var(--orange-light); color: var(--orange); }
.qm-navy { background: #eef1f7; color: var(--navy); }

/* 성능평가 홍보 밴드 */
.cert-band {
    margin-top: 56px; border-radius: 18px; overflow: hidden;
    background: linear-gradient(120deg, var(--navy) 30%, #23408f 120%);
    color: #fff; padding: 40px 44px; position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cert-band h3 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; line-height: 1.35; }
.cert-band h3 em { font-style: normal; color: #8fb0ff; }
.cert-band p { margin-top: 8px; font-size: 14.5px; opacity: .8; }
.cert-band .cb-steps { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.cert-band .cb-steps span { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; }
.cert-band .cb-steps i { color: #8fb0ff; font-size: 11px; }

/* ------------------------------------------------------------
   페이지별 — 목록 (list)
   ------------------------------------------------------------ */
.list-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; margin-top: 26px; }
.filter-box { position: sticky; top: calc(var(--header-h) + 20px); }
.filter-box .fb-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.filter-box h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.filter-box .fb-list li { margin-bottom: 8px; }
.filter-box .fb-list label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; color: var(--text); }
.filter-box .fb-list input { width: 17px; height: 17px; accent-color: var(--primary); }
.filter-box .fb-list .cnt { margin-left: auto; font-size: 12px; color: var(--muted); }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs .inp { height: 40px; font-size: 13.5px; padding: 0 10px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.list-toolbar .lt-count { font-size: 14.5px; color: var(--sub); }
.list-toolbar .lt-count strong { color: var(--primary); font-weight: 800; }
.list-toolbar .lt-right { display: flex; gap: 8px; align-items: center; }
.list-toolbar .sel { height: 40px; width: auto; font-size: 13.5px; }
.m-filter-btn { display: none; }

/* 페이징 */
.paging { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.paging a {
    min-width: 38px; height: 38px; padding: 0 6px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: var(--sub); background: #fff; border: 1px solid var(--line);
}
.paging a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.paging a:hover:not(.on) { border-color: var(--muted); }

/* ------------------------------------------------------------
   페이지별 — 상세 (view)
   ------------------------------------------------------------ */
.view-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; grid-template-rows: auto 1fr; gap: 0 32px; align-items: start; margin-top: 26px; }
.view-layout > * { min-width: 0; }
.v-col-gallery { grid-column: 1; grid-row: 1; }
.v-col-detail { grid-column: 1; grid-row: 2; }
.view-aside { grid-column: 2; grid-row: 1 / 3; position: sticky; top: calc(var(--header-h) + 20px); }
.view-gallery { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; }
.view-gallery .swiper, .view-gallery .swiper-wrapper, .view-gallery .swiper-slide { width: 100%; height: 100%; }
.view-gallery .g-slide { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.view-gallery .g-slide::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='13' cy='13' r='8'/%3E%3Ccircle cx='51' cy='13' r='8'/%3E%3Ccircle cx='13' cy='51' r='8'/%3E%3Ccircle cx='51' cy='51' r='8'/%3E%3Cline x1='18' y1='18' x2='26' y2='26'/%3E%3Cline x1='46' y1='18' x2='38' y2='26'/%3E%3Cline x1='18' y1='46' x2='26' y2='38'/%3E%3Cline x1='46' y1='46' x2='38' y2='38'/%3E%3Crect x='24' y='25' width='16' height='14' rx='4'/%3E%3Ccircle cx='32' cy='40' r='3'/%3E%3C/svg%3E") center/30% no-repeat;
    opacity: .25;
}
.view-gallery .swiper-pagination { bottom: 12px !important; }
.view-gallery .swiper-pagination-bullet { background: #fff; opacity: .5; width: 7px; height: 7px; }
.view-gallery .swiper-pagination-bullet-active { opacity: 1; width: 18px; border-radius: 4px; }
.view-gallery .g-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9);
    display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--text);
    box-shadow: 0 2px 8px rgba(16,24,40,.2);
}
.view-gallery .g-prev { left: 12px; } .view-gallery .g-next { right: 12px; }

.view-aside .va-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.view-aside .va-badges { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.view-aside h1 { font-size: 21px; font-weight: 800; letter-spacing: -.4px; line-height: 1.35; }
.view-aside .va-meta { font-size: 13px; color: var(--muted); margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.view-aside .va-price { font-size: 28px; font-weight: 800; margin-top: 14px; letter-spacing: -.5px; }
.view-aside .va-price em { font-style: normal; font-size: 17px; font-weight: 700; }
.view-aside .va-actions { display: flex; gap: 8px; margin-top: 18px; }
.view-aside .va-actions .btn { flex: 1; }
.view-aside .va-actions .like-sq { flex: 0 0 48px; height: 48px; border-radius: 11px; border: 1.5px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 16px; color: var(--muted); background: #fff; gap: 1px; }
.view-aside .va-actions .like-sq small { font-size: 10px; font-weight: 700; }
.view-aside .va-actions .like-sq.liked { color: var(--red); border-color: #fecdca; background: var(--red-light); }

.seller-card { display: flex; align-items: center; gap: 13px; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #c7d6ff, #eef3ff); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; flex-shrink: 0; }
.avatar.sz-sm { width: 38px; height: 38px; font-size: 15px; }
.seller-card .sc-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.seller-card .sc-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* 상세 스펙 표 */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec-item { background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.spec-item .si-label { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.spec-item .si-label i { color: var(--primary); font-size: 12px; }
.spec-item .si-value { font-size: 15px; font-weight: 700; margin-top: 4px; }
.view-sec { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-top: 20px; box-shadow: var(--shadow); }
.view-sec > h3 { font-size: 17px; font-weight: 800; margin-bottom: 16px; letter-spacing: -.3px; }
.view-sec > h3 i { color: var(--primary); margin-right: 8px; font-size: 15px; }
.desc-text { font-size: 15px; line-height: 1.75; color: var(--text); white-space: pre-line; }

/* 인증 결과 카드 */
.cert-result {
    border: 1.5px solid #d6e2ff; background: linear-gradient(160deg, #f5f8ff, #fff);
    border-radius: 16px; padding: 22px; margin-top: 20px;
}
.cert-result .cr-head { display: flex; align-items: center; gap: 12px; }
.cert-result .cr-shield { width: 52px; height: 52px; border-radius: 15px; background: linear-gradient(135deg, var(--primary), #4b7bff); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(36,87,230,.3); }
.cert-result .cr-title { font-size: 17px; font-weight: 800; }
.cert-result .cr-sub { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.cert-result .cr-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.cert-result .cr-items > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.cert-result .cr-items .ci-l { font-size: 11.5px; color: var(--muted); }
.cert-result .cr-items .ci-v { font-size: 14px; font-weight: 800; color: var(--green); margin-top: 2px; }

/* 모바일 하단 고정 CTA */
.m-cta {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 890;
    background: #fff; border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    gap: 8px; align-items: center;
}
.m-cta .like-sq { flex: 0 0 46px; height: 46px; border-radius: 11px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--muted); background: #fff; }
.m-cta .btn { flex: 1; height: 46px; }

/* ------------------------------------------------------------
   페이지별 — 마이페이지
   ------------------------------------------------------------ */
.my-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; margin-top: 26px; }
.my-side { position: sticky; top: calc(var(--header-h) + 20px); }
.my-profile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.my-profile .avatar { width: 66px; height: 66px; font-size: 26px; margin: 0 auto 10px; }
.my-profile .mp-name { font-size: 17px; font-weight: 800; }
.my-profile .mp-type { font-size: 12px; color: var(--primary); font-weight: 700; margin-top: 2px; }
.my-profile .mp-email { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
/* 모바일 전용 컴팩트 프로필 바 (PC 사이드 숨김 시 대체) */
.m-profile-bar { display: none; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; margin-bottom: 14px; }
.m-profile-bar .mp-name { font-weight: 800; font-size: 15.5px; }
.m-profile-bar .mp-type { font-size: 12px; color: var(--sub); margin-top: 1px; }
.m-profile-bar .mp-type b { color: var(--primary); }
.my-menu { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 12px; overflow: hidden; }
.my-menu a { display: flex; align-items: center; gap: 11px; padding: 14px 18px; font-size: 14.5px; font-weight: 600; border-bottom: 1px solid var(--line-light); }
.my-menu a:last-child { border-bottom: 0; }
.my-menu a i { width: 20px; text-align: center; color: var(--muted); font-size: 15px; }
.my-menu a.on { color: var(--primary); background: var(--primary-light); }
.my-menu a.on i { color: var(--primary); }
.my-menu a .cnt { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
.my-menu a .cnt.hot { color: #fff; background: var(--red); border-radius: 8px; min-width: 20px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }

/* 통계 박스 */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-box .sb-label { font-size: 12.5px; color: var(--sub); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.stat-box .sb-label i { color: var(--primary); }
.stat-box .sb-value { font-size: 24px; font-weight: 800; margin-top: 6px; letter-spacing: -.5px; }
.stat-box .sb-value small { font-size: 13px; font-weight: 600; color: var(--muted); }

/* 가로 리스트 아이템 (내 매물/관심매물) */
.hlist-item { display: flex; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; align-items: center; }
.hlist-item .thumb { width: 108px; flex-shrink: 0; aspect-ratio: 1/1; border-radius: 10px; }
.hlist-item .hl-body { flex: 1; min-width: 0; }
.hlist-item .hl-title { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hlist-item .hl-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.hlist-item .hl-price { font-size: 16px; font-weight: 800; margin-top: 6px; }
.hlist-item .hl-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.hlist-item .hl-actions .sel { width: auto; height: 36px; font-size: 13px; padding: 0 32px 0 10px; }

/* 진행상태 스텝 */
.step-track { display: flex; align-items: center; margin: 14px 0 4px; }
.step-track .st { flex: 1; text-align: center; position: relative; }
.step-track .st .st-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 11px; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-weight: 700; position: relative; z-index: 2; }
.step-track .st::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.step-track .st:first-child::before { display: none; }
.step-track .st span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.step-track .st.done .st-dot { background: var(--primary-light); color: var(--primary); }
.step-track .st.done::before { background: var(--primary); }
.step-track .st.now .st-dot { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(36,87,230,.15); }
.step-track .st.now::before { background: var(--primary); }
.step-track .st.now span { color: var(--primary); font-weight: 700; }

/* 탭 */
.tabbar { display: flex; border-bottom: 2px solid var(--line-light); margin-bottom: 20px; gap: 4px; overflow-x: auto; }
.tabbar a {
    padding: 12px 18px; font-size: 15px; font-weight: 700; color: var(--muted);
    border-bottom: 2.5px solid transparent; margin-bottom: -2px; white-space: nowrap;
}
.tabbar a.on { color: var(--navy); border-bottom-color: var(--navy); }

/* ------------------------------------------------------------
   페이지별 — 쪽지
   ------------------------------------------------------------ */
.msg-list-item { display: flex; gap: 13px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; align-items: center; transition: border-color .15s; }
.msg-list-item:hover { border-color: #c8d6f8; }
.msg-list-item.unread { border-left: 3.5px solid var(--primary); }
.msg-list-item .ml-body { flex: 1; min-width: 0; }
.msg-list-item .ml-top { display: flex; align-items: center; gap: 8px; }
.msg-list-item .ml-name { font-weight: 800; font-size: 14.5px; }
.msg-list-item .ml-time { margin-left: auto; font-size: 12px; color: var(--muted); flex-shrink: 0; }
.msg-list-item .ml-prod { font-size: 12px; color: var(--primary); font-weight: 600; margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.msg-list-item .ml-preview { font-size: 13.5px; color: var(--sub); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-list-item.unread .ml-preview { color: var(--text); font-weight: 600; }
.msg-list-item .ml-unread-cnt { flex-shrink: 0; min-width: 22px; height: 22px; border-radius: 11px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 7px; }

/* 대화 화면 */
.chat-wrap { max-width: 760px; margin: 0 auto; }
.chat-prod-bar { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 18px; }
.chat-prod-bar .thumb { width: 52px; aspect-ratio: 1/1; border-radius: 9px; flex-shrink: 0; }
.chat-prod-bar .cp-title { font-size: 14px; font-weight: 700; }
.chat-prod-bar .cp-price { font-size: 13.5px; font-weight: 800; color: var(--primary); margin-top: 1px; }
.chat-body { display: flex; flex-direction: column; gap: 12px; padding: 6px 2px 20px; }
.chat-date { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0; }
.bubble-row { display: flex; gap: 9px; align-items: flex-end; }
.bubble-row.me { flex-direction: row-reverse; }
.bubble { max-width: 72%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; }
.bubble-row.you .bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble-row.me .bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.bubble-row .b-time { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.chat-input {
    position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 18px;
    display: flex; gap: 8px;
}
.chat-input .inp { border-radius: 999px; height: 48px; padding: 0 20px; }
.chat-input .send-btn { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 17px; display: flex; align-items: center; justify-content: center; }

/* ------------------------------------------------------------
   페이지별 — 성능평가 안내
   ------------------------------------------------------------ */
.insp-hero {
    margin-top: 22px; border-radius: 18px; overflow: hidden;
    background: linear-gradient(125deg, var(--navy) 30%, #23408f 130%);
    color: #fff; padding: 54px 48px; text-align: center; position: relative;
}
.insp-hero .ih-tag { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 7px 18px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.insp-hero h1 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.8px; line-height: 1.3; }
.insp-hero h1 em { font-style: normal; color: #8fb0ff; }
.insp-hero p { margin-top: 12px; font-size: 15px; opacity: .82; }
.insp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.insp-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; position: relative; box-shadow: var(--shadow); }
.insp-step .is-num { position: absolute; top: 18px; right: 20px; font-size: 30px; font-weight: 800; color: var(--line); }
.insp-step .is-ico { width: 50px; height: 50px; border-radius: 14px; background: var(--primary-light); color: var(--primary); font-size: 21px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.insp-step h4 { font-size: 16px; font-weight: 800; }
.insp-step p { font-size: 13px; color: var(--sub); margin-top: 6px; line-height: 1.6; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; font-weight: 600; }
.check-list li i { color: var(--green); font-size: 15px; }
.check-list.detail { grid-template-columns: 1fr; }
.check-list.detail li { align-items: flex-start; padding: 16px 18px; font-weight: 500; }
.check-list.detail li i { margin-top: 3px; flex-shrink: 0; }
.check-list.detail li strong { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.check-list.detail li p { font-size: 13px; color: var(--sub); line-height: 1.6; margin: 0; }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.price-cards.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.price-card { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 26px 22px; text-align: center; position: relative; }
.price-card.hot { border-color: var(--primary); box-shadow: 0 8px 24px rgba(36,87,230,.14); }
.price-card .pc-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 14px; }
.price-card h4 { font-size: 16px; font-weight: 800; }
.price-card .pc-price { font-size: 26px; font-weight: 800; margin: 12px 0 2px; letter-spacing: -.5px; }
.price-card .pc-price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.price-card ul { margin-top: 14px; text-align: left; }
.price-card li { display: flex; gap: 8px; font-size: 13px; color: var(--sub); margin-top: 7px; }
.price-card li i { color: var(--green); font-size: 12px; margin-top: 3px; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.faq-item .fq-q { width: 100%; display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-size: 15px; font-weight: 700; text-align: left; }
.faq-item .fq-q .q-mark { color: var(--primary); font-weight: 800; }
.faq-item .fq-q i.arrow { margin-left: auto; color: var(--muted); transition: transform .2s; font-size: 13px; }
.faq-item.open .fq-q i.arrow { transform: rotate(180deg); }
.faq-item .fq-a { display: none; padding: 0 18px 16px 40px; font-size: 14px; color: var(--sub); line-height: 1.7; }
.faq-item.open .fq-a { display: block; }

/* ------------------------------------------------------------
   페이지별 — 인증/로그인
   ------------------------------------------------------------ */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 46px 20px 60px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px 30px; box-shadow: var(--shadow); }
.auth-card .ac-logo { text-align: center; margin-bottom: 26px; }
.auth-card .ac-logo .logo-mark { width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 12px; background: linear-gradient(135deg,var(--primary),#4b7bff); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 23px; box-shadow: 0 6px 16px rgba(36,87,230,.3); }
.auth-card .ac-logo h1 { font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.auth-card .ac-logo p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.auth-links { display: flex; justify-content: center; gap: 14px; margin-top: 18px; font-size: 13.5px; color: var(--sub); }
.auth-links a:hover { color: var(--primary); }
.auth-links .bar { color: var(--line); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ------------------------------------------------------------
   폼 페이지 공통 (등록/신청)
   ------------------------------------------------------------ */
.form-page { max-width: 720px; margin: 0 auto; padding-bottom: 60px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-top: 18px; box-shadow: var(--shadow); }
.form-card > h3 { font-size: 17px; font-weight: 800; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-light); }
.form-card > h3 i { color: var(--primary); margin-right: 8px; font-size: 15px; }
.page-title { margin-top: 30px; }
.page-title h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.page-title h1 i { color: var(--primary); margin-right: 10px; font-size: 22px; }
.page-title p { color: var(--sub); font-size: 14.5px; margin-top: 6px; }

/* ------------------------------------------------------------
   관리자
   ------------------------------------------------------------ */
.adm-body { display: flex; min-height: 100vh; background: var(--bg); }
.adm-side {
    width: 240px; flex-shrink: 0; background: var(--navy); color: #cbd3e1;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.adm-side .as-logo { display: flex; align-items: center; gap: 10px; padding: 22px 20px; color: #fff; font-weight: 800; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
.adm-side .as-logo .logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg,var(--primary),#4b7bff); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.adm-side .as-logo small { display: block; font-size: 10.5px; font-weight: 600; color: #8fa0bd; letter-spacing: 1px; }
.adm-side nav { padding: 14px 12px; flex: 1; overflow-y: auto; }
.adm-side nav .as-label { font-size: 11px; font-weight: 700; color: #6b7a99; letter-spacing: 1px; padding: 14px 10px 8px; }
.adm-side nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 2px; transition: all .15s; }
.adm-side nav a i { width: 19px; text-align: center; font-size: 14.5px; }
.adm-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.adm-side nav a.on { background: var(--primary); color: #fff; }
.adm-side nav a .cnt { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--red); color: #fff; border-radius: 8px; min-width: 19px; height: 17px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.adm-side .as-foot { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #6b7a99; }
.adm-main { flex: 1; min-width: 0; padding: 26px 30px 60px; }
.adm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.adm-top h1 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.adm-top h1 i { color: var(--primary); margin-right: 9px; font-size: 19px; }
.adm-top .at-right { display: flex; align-items: center; gap: 9px; }
.adm-top .at-admin { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 7px; }
.adm-top .at-admin .avatar { width: 28px; height: 28px; font-size: 12px; }

.adm-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden; }
.adm-card .ac-ico { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.adm-card .ac-label { font-size: 13px; color: var(--sub); font-weight: 600; }
.adm-card .ac-value { font-size: 27px; font-weight: 800; margin-top: 6px; letter-spacing: -.5px; }
.adm-card .ac-diff { font-size: 12px; font-weight: 700; margin-top: 4px; }
.adm-card .ac-diff.up { color: var(--green); }
.adm-card .ac-diff.dn { color: var(--red); }
.adm-card .ac-diff .g { color: var(--muted); font-weight: 500; }

.adm-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.adm-panel > h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.adm-panel > h3 i { color: var(--primary); margin-right: 8px; }
.adm-panel > h3 .more { font-size: 12.5px; color: var(--sub); font-weight: 600; }

/* 관리자 테이블 */
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.adm-table th { background: var(--bg); color: var(--sub); font-weight: 700; font-size: 12.5px; padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td { padding: 13px 12px; border-bottom: 1px solid var(--line-light); vertical-align: middle; }
.adm-table tr:hover td { background: #fafbff; }
.adm-table .tt { font-weight: 700; }
.adm-table .sub { color: var(--muted); font-size: 12px; }
.adm-table .sel { height: 34px; font-size: 12.5px; width: auto; padding: 0 30px 0 10px; border-radius: 8px; }
.adm-table .row-btns { display: flex; gap: 5px; }
.adm-table .row-btns .btn-sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 7px; }

/* 관리자 필터바 */
.adm-filter { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.adm-filter .inp, .adm-filter .sel { height: 40px; font-size: 13.5px; width: auto; }
.adm-filter .inp { width: 220px; }
.adm-filter .spacer { flex: 1; }

/* 간이 막대 차트 */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.bar-chart .bc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-chart .bc-bar { width: 100%; max-width: 38px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #4b7bff, var(--primary)); }
.bar-chart .bc-bar.gray { background: var(--line); }
.bar-chart .bc-v { font-size: 11px; font-weight: 700; color: var(--sub); }
.bar-chart .bc-l { font-size: 11.5px; color: var(--muted); }
.adm-2col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }

/* 관리자 모바일 토글 */
.adm-m-toggle { display: none; }

/* ------------------------------------------------------------
   가이드/공지 페이지
   ------------------------------------------------------------ */
.doc-body { font-size: 14.5px; line-height: 1.8; color: var(--text); }
.doc-body h4 { font-size: 16px; font-weight: 800; margin: 22px 0 8px; }
.doc-body h4:first-child { margin-top: 0; }
.doc-body h4 i { color: var(--primary); margin-right: 8px; font-size: 14px; }
.doc-body p { margin-bottom: 8px; color: var(--sub); }
.doc-body ol { padding-left: 20px; list-style: decimal; color: var(--sub); }
.doc-body ol li { margin-bottom: 6px; }
.notice-row { display: flex; align-items: center; gap: 12px; padding: 15px 4px; border-bottom: 1px solid var(--line-light); }
.notice-row .badge { flex-shrink: 0; }
.notice-row .nr-title { font-size: 14.5px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-row .nr-title:hover { color: var(--primary); }
.notice-row .nr-date { font-size: 12.5px; color: var(--muted); flex-shrink: 0; }

/* 빈 상태 */
.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-state i { font-size: 40px; margin-bottom: 14px; opacity: .5; }
.empty-state p { font-size: 14.5px; font-weight: 600; }
.empty-state small { font-size: 13px; display: block; margin-top: 4px; }

/* ============================================================
   반응형 — 태블릿
   ============================================================ */
@media (max-width: 1024px) {
    .prod-grid { grid-template-columns: repeat(3, 1fr); }
    .list-layout { grid-template-columns: 1fr; }
    .list-layout > * { min-width: 0; }
    .filter-box { display: none; }
    .m-filter-btn { display: inline-flex; }
    /* 상세: 갤러리 → 가격카드 → 상세정보 순으로 재배열 */
    .view-layout { grid-template-columns: 1fr; grid-template-rows: none; }
    .v-col-gallery, .v-col-detail, .view-aside { grid-column: auto; grid-row: auto; }
    .v-col-gallery { order: 1; }
    .view-aside { order: 2; position: static; }
    .v-col-detail { order: 3; }
    .my-layout { grid-template-columns: 1fr; }
    .my-layout > * { min-width: 0; }
    .my-side { display: none; }
    .m-profile-bar { display: flex; }
    .adm-cards { grid-template-columns: repeat(2, 1fr); }
    .adm-2col { grid-template-columns: 1fr; }
    .insp-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   반응형 — 모바일 (앱 스타일)
   ============================================================ */
@media (max-width: 768px) {
    body { background: var(--bg); font-size: 14.5px; }
    .wrap { padding: 0 16px; }

    /* 헤더 전환 */
    .gnb { display: none; }
    .m-header { display: flex; }
    .botnav { display: block; }
    .page-body { padding-top: var(--m-header-h); padding-bottom: calc(var(--botnav-h) + 30px + env(safe-area-inset-bottom)); }
    body.no-botnav .page-body { padding-bottom: 30px; }
    body.has-mcta .page-body { padding-bottom: 90px; }

    .hero-banner { aspect-ratio: 2/1; border-radius: 14px; margin-top: 14px; }
    .quick-menu { gap: 8px; margin-top: 16px; }
    .quick-menu a { padding: 14px 6px; font-size: 12px; gap: 7px; border-radius: 12px; }
    .quick-menu .qm-ico { width: 40px; height: 40px; font-size: 17px; border-radius: 12px; }

    .sec-head { margin-bottom: 13px; }
    .sec-head h2 { font-size: 18px; }
    .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
    .prod-card .p-title { font-size: 14px; }
    .prod-card .p-price { font-size: 15.5px; }

    .cert-band { padding: 26px 22px; margin-top: 40px; border-radius: 14px; }
    .cert-band h3 { font-size: 19px; }

    .footer { margin-top: 44px; padding: 28px 0 34px; }

    .list-toolbar .sel { height: 38px; }
    .view-gallery { border-radius: 14px; aspect-ratio: 4/3; }
    .view-gallery .g-nav { display: none; }
    .view-aside .va-actions { display: none; } /* 모바일은 하단 고정 CTA 로 대체 */
    .view-aside .va-card { border-radius: 16px; margin-top: 16px; padding: 18px; }
    .view-aside h1 { font-size: 18px; }
    .view-aside .va-price { font-size: 23px; }
    .view-sec { padding: 18px; border-radius: 14px; margin-top: 14px; }
    .spec-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .cert-result .cr-items { grid-template-columns: repeat(2, 1fr); }
    .m-cta { display: flex; }
    body.has-mcta .botnav { display: none; }

    .stat-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-box { padding: 14px; }
    .stat-box .sb-value { font-size: 20px; }
    .hlist-item { padding: 12px; flex-wrap: wrap; }
    .hlist-item .thumb { width: 78px; }
    .hlist-item .hl-actions { flex-direction: row; flex: 1 0 100%; justify-content: flex-end; border-top: 1px solid var(--line-light); padding-top: 10px; }

    .field-row { grid-template-columns: 1fr; }
    .form-card { padding: 20px 18px; border-radius: 14px; }
    .page-title { margin-top: 20px; }
    .page-title h1 { font-size: 21px; }
    .na-previews { grid-template-columns: repeat(4, 1fr); }

    .insp-hero { padding: 36px 22px; border-radius: 14px; }
    .insp-steps { grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
    .insp-step { padding: 18px 15px; }
    .check-list { grid-template-columns: 1fr; }
    .price-cards { grid-template-columns: 1fr; gap: 18px; }

    .chat-input { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
    .chat-wrap { padding-bottom: 76px; }

    /* 라디오카드: 모바일은 1열 가로형 (텍스트 깨짐 방지) */
    .radio-cards, .radio-cards.cols-2 { grid-template-columns: 1fr; gap: 8px; }
    .radio-card .rc-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; }
    .radio-card .rc-body i { margin-bottom: 0; font-size: 17px; width: 24px; text-align: center; flex-shrink: 0; }
    .radio-card .rc-body strong { font-size: 14px; }
    .radio-card .rc-body span { margin-top: 0; margin-left: auto; font-size: 11.5px; flex-shrink: 0; text-align: right; }

    /* 관리자 모바일 */
    .adm-body { flex-direction: column; }
    .adm-side { width: 100%; height: auto; position: static; }
    .adm-side nav { display: none; padding: 8px 12px 14px; }
    .adm-side.open nav { display: block; }
    .adm-side .as-foot { display: none; }
    .adm-m-toggle { display: flex; margin-left: auto; width: 40px; height: 40px; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
    .adm-side .as-logo { padding: 12px 16px; }
    .adm-main { padding: 18px 16px 50px; }
    .adm-cards { grid-template-columns: 1fr 1fr; gap: 9px; }
    .adm-card { padding: 15px; }
    .adm-card .ac-value { font-size: 21px; }
    .adm-card .ac-ico { width: 34px; height: 34px; font-size: 14px; top: 13px; right: 12px; }
    .adm-panel { padding: 16px; }
    .adm-filter .inp { width: 100%; }
}

@media (max-width: 380px) {
    .prod-grid { gap: 14px 10px; }
    .quick-menu { grid-template-columns: repeat(4, 1fr); }
}
