/* ============================================
   백조알바 - 소프트 핑크 톤
   Brand: #f7a9b8 / Minimal Monotone Base
   ============================================ */

:root {
    --primary: #ec8fa3;
    --primary-dark: #d9758b;
    --primary-light: #fbdbe3;
    --primary-bg: #fcecf0;

    --secondary: #ff9500;
    --accent: #ec8fa3;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* 냉큼바다 스타일 그레이스케일 위계 */
    --text-dark: #393939;
    --text-primary: #393939;
    --text-secondary: #6F6F6F;
    --text-muted: #8D8D8D;
    --text-light: #A8A8A8;
    --text-disabled: #C6C6C6;

    --bg-white: #ffffff;
    --bg-section: #F4F4F4;
    --bg-light: #fafafa;
    --bg-dark: #262626;

    --border: #E0E0E0;
    --border-light: #F4F4F4;

    --shadow-card: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-hover: 0 2px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);

    --radius: 5px;
    --radius-sm: 3px;
    --radius-lg: 7px;
    --radius-pill: 50px;

    --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bottom-nav-h: 60px;
}

/* ======== DARK MODE ======== */
[data-theme="dark"] {
    --primary-light: #4a2c32;
    --primary-bg: #3a2228;

    --text-dark: #e0e0e0;
    --text-primary: #d0d0d0;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --text-light: #707070;
    --text-disabled: #555555;

    --bg-white: #1a1a1a;
    --bg-section: #242424;
    --bg-light: #1e1e1e;
    --bg-dark: #111111;

    --border: #333333;
    --border-light: #2a2a2a;

    --shadow-card: 0 1px 4px rgba(0,0,0,0.3);
    --shadow-hover: 0 2px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.5);
}

/* Dark mode - hardcoded backgrounds */
[data-theme="dark"] .main-header,
[data-theme="dark"] .main-nav,
[data-theme="dark"] .mega-panel,
[data-theme="dark"] .mobile-side-menu,
[data-theme="dark"] .mobile-search-overlay {
    background: #1a1a1a;
}

[data-theme="dark"] .shop-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .board-list,
[data-theme="dark"] .post-view,
[data-theme="dark"] .pv-nav,
[data-theme="dark"] .comment-form,
[data-theme="dark"] .comment-list,
[data-theme="dark"] .comm-user-card,
[data-theme="dark"] .comm-popular-list,
[data-theme="dark"] .comm-bcard,
[data-theme="dark"] .comm-rank-list,
[data-theme="dark"] .comm-simple-list,
[data-theme="dark"] .comm-board-card,
[data-theme="dark"] .comm-empty-box,
[data-theme="dark"] .board-head-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .rv-item,
[data-theme="dark"] .shop-list-item,
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .modal,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .v-section,
[data-theme="dark"] .v-info-item,
[data-theme="dark"] .price-range-card,
[data-theme="dark"] .data-table,
[data-theme="dark"] .page-link,
[data-theme="dark"] .category-pill,
[data-theme="dark"] .region-tag,
[data-theme="dark"] .trending-strip,
[data-theme="dark"] .stat-strip,
[data-theme="dark"] .notice-strip,
[data-theme="dark"] .scroll-top-btn,
[data-theme="dark"] .fixed-bottom-nav,
[data-theme="dark"] .v-bottom,
[data-theme="dark"] .tw-premium,
[data-theme="dark"] .tw-spad,
[data-theme="dark"] .tw-search,
[data-theme="dark"] .tw-ticker,
[data-theme="dark"] .form-control {
    background: #242424;
}

/* 다크모드 - 공고찾기 / 추천 공고 섹션 */
[data-theme="dark"] .tw-premium { border-color: var(--primary); }
[data-theme="dark"] .tw-spad,
[data-theme="dark"] .tw-search,
[data-theme="dark"] .tw-ticker { border-color: #3a3a3a; }

[data-theme="dark"] .tw-search input,
[data-theme="dark"] .tw-search select,
[data-theme="dark"] .tw-search textarea {
    background: #1a1a1a; color: #e0e0e0; border-color: #3a3a3a;
}
[data-theme="dark"] .tw-search label,
[data-theme="dark"] .tw-search .form-label { color: #d0d0d0; }
[data-theme="dark"] .tw-search h3,
[data-theme="dark"] .tw-search strong { color: #fff; }

/* 프리미엄/추천 카드 내부 컨텐츠 영역 */
[data-theme="dark"] .twp-body,
[data-theme="dark"] .tws-body,
[data-theme="dark"] .tw-premium .swiper-slide,
[data-theme="dark"] .tw-spad .swiper-slide { background: transparent; color: #e0e0e0; }

[data-theme="dark"] .tw-ticker-item,
[data-theme="dark"] .tw-ticker-msg { color: #d0d0d0; }

/* 공고찾기 위젯(tws2) 다크모드 */
[data-theme="dark"] .tws2-header { background: #1f2937; color: #fff; border-bottom-color: #374151; }
[data-theme="dark"] .tws2-stats {
    background: #1a1a1a; border-bottom-color: #3a3a3a;
}
[data-theme="dark"] .tws2-stats a { color: #a0a0a0; border-right-color: #3a3a3a; }
[data-theme="dark"] .tws2-stats a strong { color: #f0f0f0; }
[data-theme="dark"] .tws2-stats a strong.hot { color: #fca5a5; }
[data-theme="dark"] .tws2-stats a span { color: #8a8a8a; }

[data-theme="dark"] .tws2-tab-head { border-bottom-color: #3a3a3a; }
[data-theme="dark"] .tws2-tab { color: #a0a0a0; }
[data-theme="dark"] .tws2-tab:hover { color: #e0e0e0; }
[data-theme="dark"] .tws2-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

[data-theme="dark"] .tws2-item {
    background: #2a2a2a; color: #e0e0e0;
}
[data-theme="dark"] .tws2-item:hover { background: var(--primary); color: #fff; }

[data-theme="dark"] .tws2-quick-title { color: #8a8a8a; }
[data-theme="dark"] .tws2-qtag { background: #2a2a2a; color: #c0c0c0; }
[data-theme="dark"] .tws2-qtag:hover { background: var(--primary); color: #fff; }

[data-theme="dark"] .hero-search .search-form {
    background: #2d2d2d;
}
[data-theme="dark"] .hero-search .search-input {
    color: #e0e0e0;
}

[data-theme="dark"] .search-form:focus-within {
    background: #2d2d2d;
}

[data-theme="dark"] .btn-secondary {
    background: #2d2d2d;
    color: #d0d0d0;
    border-color: #444;
}
[data-theme="dark"] .btn-secondary:hover {
    border-color: #888;
    color: #e0e0e0;
}

[data-theme="dark"] .btn-outline {
    color: #d0d0d0;
    border-color: #d0d0d0;
}
[data-theme="dark"] .btn-outline:hover {
    background: #d0d0d0;
    color: #1a1a1a;
}

[data-theme="dark"] .data-table th {
    background: #2d2d2d;
}
[data-theme="dark"] .data-table tr:hover td {
    background: #2d2d2d;
}

[data-theme="dark"] .board-notices {
    background: #2d2610;
    border-color: #4a3f1a;
}
[data-theme="dark"] .board-notice-row {
    border-bottom-color: rgba(74,63,26,0.5);
}
[data-theme="dark"] .board-notice-row:hover {
    background: rgba(74,63,26,0.3);
}

[data-theme="dark"] .alert-info { background: #1a2a3d; color: #6ba3d6; }
[data-theme="dark"] .alert-success { background: #1a2d1a; color: #5ab85a; }
[data-theme="dark"] .alert-error { background: #3d1a1a; color: #d66b6b; }

[data-theme="dark"] .mso-tag:hover {
    background: #e0e0e0;
    color: #1a1a1a;
}

[data-theme="dark"] .category-pill:hover .pill-icon {
    background: #e0e0e0;
    color: #1a1a1a;
}

[data-theme="dark"] .region-tag:hover {
    background: #2d2d2d;
}

[data-theme="dark"] .guide-step:hover .guide-icon {
    background: #e0e0e0;
    color: #1a1a1a;
}

[data-theme="dark"] .shop-card-fav {
    background: rgba(40,40,40,0.85);
}

[data-theme="dark"] .view-gallery { background: #000; }

[data-theme="dark"] .form-control:focus {
    box-shadow: 0 0 0 2px rgba(200,200,200,0.1);
}

[data-theme="dark"] .signature-pad {
    background: #2d2d2d;
}

[data-theme="dark"] .rg-map {
    filter: brightness(0.8);
}

[data-theme="dark"] .modal-overlay {
    background: rgba(0,0,0,0.6);
}

[data-theme="dark"] .msm-user-avatar {
    background: #e0e0e0;
    color: #1a1a1a;
}

/* Dark mode toggle button */
.theme-toggle-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 16px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.theme-toggle-btn:hover {
    background: var(--bg-section);
    color: var(--text-dark);
}
[data-theme="dark"] .theme-toggle-btn {
    color: #fbbf24;
}
[data-theme="dark"] .theme-toggle-btn:hover {
    background: #333;
    color: #fcd34d;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    font-family: var(--font);
    font-size: 14px; line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ======== TOP BAR ======== */
.top-bar {
    background: var(--bg-dark); color: var(--text-light); font-size: 12px; padding: 5px 0;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-left { display: flex; gap: 14px; }
.top-info i { margin-right: 3px; color: var(--primary); font-size: 10px; }
.top-right { display: flex; gap: 10px; align-items: center; }
.top-right a { color: var(--text-light); font-size: 12px; }
.top-right a:hover { color: #fff; }
.top-user { color: #ccc; }
.top-user strong { color: #fff; }
.badge {
    display: inline-flex; align-items: center;
    padding: 1px 7px; border-radius: var(--radius-pill);
    font-size: 10px; font-weight: 700;
}
.badge-grade { background: rgba(255,255,255,0.15); color: #ddd; }
/* 회원 등급별 배지 색상 */
.badge-grade.grade-bronze, .badge-grade-bronze { background: linear-gradient(135deg,#cd7f32,#92400e); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,0.15); }
.badge-grade.grade-silver, .badge-grade-silver { background: linear-gradient(135deg,#cbd5e1,#94a3b8); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,0.15); }
.badge-grade.grade-gold, .badge-grade-gold { background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,0.15); }
.badge-grade.grade-platinum, .badge-grade-platinum { background: linear-gradient(135deg,#06b6d4,#0891b2); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,0.15); }
.badge-grade.grade-diamond, .badge-grade-diamond { background: linear-gradient(135deg,#8b5cf6,#6d28d9); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,0.15); }
.badge-grade.grade-vip, .badge-grade-vip { background: linear-gradient(135deg,#dc2626,#991b1b); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,0.15); }
.badge-point { background: var(--primary); color: #fff; }
/* 광고 등급 배지 (그라디언트) */
.badge-premium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: #fff; border: none; font-size: 10px; font-weight: 800;
    padding: 3px 9px; letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(245,158,11,0.35);
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}
.badge-premium::before { content: '\f521'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 3px; font-size: 9px; }
.badge-recommend {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
    color: #fff; border: none; font-size: 10px; font-weight: 800;
    padding: 3px 9px; letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(236,72,153,0.35);
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}
.badge-recommend::before { content: '\f005'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 3px; font-size: 9px; }
.badge-smart {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
    color: #fff; border: none; font-size: 10px; font-weight: 800;
    padding: 3px 9px; letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(14,165,233,0.35);
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}
.badge-smart::before { content: '\f0eb'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 3px; font-size: 9px; }
.badge-grand {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 50%, #475569 100%);
    color: #fff; border: none; font-size: 10px; font-weight: 800;
    padding: 3px 9px; letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(100,116,139,0.3);
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}
.badge-grand::before { content: '\f091'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 3px; font-size: 9px; }
.badge-free {
    background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb;
    font-size: 10px; padding: 2px 8px;
}
.badge-new { background: var(--primary); color: #fff; font-size: 10px; }
.badge-event { background: #ffebee; color: #c62828; font-size: 10px; }
.badge-theme {
    background: var(--primary-bg); color: var(--primary);
    border: 1px solid #fbb6ce; padding: 2px 8px;
}

/* ======== HEADER ======== */
.main-header {
    background: #fff; position: sticky; top: 0; z-index: 1000;
}
.header-inner {
    display: flex; align-items: center; gap: 16px;
    height: 56px;
}
.logo {
    display: flex; align-items: center; gap: 7px;
    font-size: 20px; font-weight: 800; color: var(--primary);
    white-space: nowrap; flex-shrink: 0;
}
.logo:hover { color: var(--primary-dark); }
.logo-icon {
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.logo-img {
    height: 36px; width: auto; display: block;
}
/* 다크모드에서 로고 파일 교체 (검정 글자만 흰색, 오리 등 컬러는 원본 유지) */
[data-theme="dark"] .logo-img {
    content: url("../images/logo-dark.png");
}
@media (max-width: 768px) {
    .logo-img { height: 30px; }
}

/* ============================================
   공고 카드 (유흥 구인구직) - 단정한 버전
   ============================================ */
.job-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}
.job-card:hover {
    border-color: var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* 이미지 */
.job-card-image {
    position: relative; display: block;
    aspect-ratio: 4/3; overflow: hidden;
    background: var(--bg-section);
}
.job-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.job-card:hover .job-card-image img { transform: scale(1.03); }

/* 등급 뱃지 - 단색 + 작게 */
.job-card-grade {
    position: absolute; top: 8px; left: 8px;
    padding: 3px 8px; border-radius: 4px;
    font-size: 11px; font-weight: 700; color: #fff;
    letter-spacing: -0.3px; z-index: 2;
}
.grade-lvl4 { background: #e11d48; }   /* 프리미엄 - 레드핑크 (가장 강조) */
.grade-lvl3 { background: #f472b6; }   /* 추천 - 밝은 핑크 */
.grade-lvl2 { background: #8b5cf6; }   /* 스마트 - 보라 */
.grade-lvl1 { background: #64748b; }   /* 그랜드 - 회색 */

/* 프리미엄·추천만 테두리 */
.job-card.ad-tier-premium { border-color: #fda4af; }
.job-card.ad-tier-recommend { border-color: #fbcfe8; }

/* 찜 버튼 */
.job-card-fav {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2;
    transition: background 0.15s;
}
.job-card-fav i { font-size: 13px; color: #94a3b8; }
.job-card-fav:hover { background: #fff; }
.job-card-fav.active i { color: #ef4444; }

/* NEW 리본 */
.ribbon-new {
    position: absolute; bottom: 6px; right: 6px;
    background: #ef4444; color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 3px;
    z-index: 2;
}

/* 본문 */
.job-card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }

.job-card-title {
    font-size: 15px; font-weight: 700; line-height: 1.35;
    color: var(--text-dark);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden;
}
.job-card-title a { color: inherit; }

/* 카테고리 + 위치 한 줄 */
.job-card-meta-row {
    display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
    font-size: 12px; color: var(--text-muted);
    overflow: hidden;
}
.jc-cat {
    color: var(--primary); font-weight: 600; font-size: 11px;
    flex-shrink: 0;
}
.jc-cat::after { content: '·'; margin: 0 2px; color: var(--border); font-weight: 400; }
.jc-loc {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1; min-width: 0;
}
.jc-loc i { display: none; } /* 아이콘 제거, 더 깔끔 */
.jc-dist {
    color: var(--primary); font-weight: 600; font-size: 11px; flex-shrink: 0;
}

/* 페이 - 핵심 정보라 강조 */
.job-card-pay {
    font-size: 15px; font-weight: 800; color: #dc2626;
    line-height: 1.2; margin-top: 2px;
}
.job-card-pay i { display: none; }
.jc-shift {
    margin-left: 6px;
    font-size: 11px; font-weight: 600; color: var(--text-secondary);
    background: var(--bg-section); padding: 1px 6px; border-radius: 3px;
}

/* 해시태그 - 얇은 회색 */
.job-card-tags {
    display: flex; flex-wrap: wrap; gap: 3px;
    margin-top: 2px;
}
.jc-tag {
    font-size: 11px; font-weight: 500; color: var(--text-muted);
    background: transparent; padding: 0;
}
.jc-tag + .jc-tag::before { content: '·'; margin-right: 3px; color: var(--border); }

@media (max-width: 600px) {
    .job-card-body { padding: 10px 11px 12px; gap: 4px; }
    .job-card-title { font-size: 13px; }
    .job-card-pay { font-size: 13px; }
    .jc-cat, .jc-loc { font-size: 11px; }
    .jc-tag { font-size: 10px; }
}

/* 기존 shop-card 스타일과 호환 유지 (일부 페이지에서 직접 참조) */
.shop-card { /* legacy */ }


/* ============================================
   법적 준수 섹션 (푸터 상단, 밝은 배경)
   ============================================ */
.site-law-section {
    background: #fafafa;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 18px 0;
}

/* ======== UPLOADER (공통 파일 업로드) ========
 * 사용:
 *   <div class="upl" data-max="10">
 *     <input type="file" name="..." accept="image/*" multiple>
 *     <div class="upl-dropzone">...</div>
 *     <div class="upl-previews"></div>
 *   </div>
 */
.upl {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s;
}
.upl:hover, .upl.upl-dragover {
    border-color: var(--primary);
    background: #fff7f9;
}
.upl input[type="file"] {
    position: absolute; inset: 0;
    opacity: 0; cursor: pointer;
    width: 100%; height: 100%;
    z-index: 2;
}
.upl-empty {
    position: relative; z-index: 1;
    padding: 28px 20px;
    text-align: center;
}
.upl-empty-icon {
    width: 44px; height: 44px; border-radius: 8px;
    background: #fff; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #64748b;
    margin: 0 auto 10px;
}
.upl-empty strong {
    display: block; font-size: 14px; font-weight: 700;
    color: #1e293b; margin-bottom: 4px;
}
.upl-empty p { font-size: 12px; color: #64748b; line-height: 1.5; }
.upl-empty .upl-highlight { color: var(--primary); font-weight: 700; }

/* 미리보기 그리드 */
.upl-previews {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px; padding: 12px;
    max-height: 360px; overflow-y: auto;
}
.upl-preview {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    background: #fff; overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: border-color 0.15s;
}
.upl-preview:hover { border-color: #cbd5e1; }
.upl-preview img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.upl-preview-main {
    position: absolute; top: 4px; left: 4px; z-index: 2;
    background: var(--primary); color: #fff;
    padding: 2px 7px; border-radius: 3px;
    font-size: 10px; font-weight: 800;
}
.upl-preview-remove {
    position: absolute; top: 4px; right: 4px; z-index: 3;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0,0,0,0.65); color: #fff;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; padding: 0;
    transition: background 0.15s;
}
.upl-preview-remove:hover { background: var(--danger); }
.upl-preview-label {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    padding: 3px 6px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.65));
    color: #fff; font-size: 10px; font-weight: 600;
    text-align: right;
    display: flex; justify-content: space-between;
    align-items: center;
}
.upl-preview-label small { opacity: 0.8; }

/* 추가 버튼 (갤러리용) */
.upl-add {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1.5px dashed #cbd5e1;
    border-radius: 4px;
    background: #f8fafc; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #94a3b8; transition: all 0.15s;
}
.upl-add:hover { border-color: var(--primary); color: var(--primary); background: #fff7f9; }
.upl-add i { font-size: 22px; margin-bottom: 4px; }
.upl-add span { font-size: 11px; font-weight: 600; }

/* 힌트 */
.upl-hint {
    padding: 10px 14px;
    background: #fff; border-top: 1px solid #e2e8f0;
    font-size: 11px; color: #64748b;
    display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center;
}
.upl-hint strong { color: #1e293b; font-weight: 700; }
.upl-hint .upl-hint-err { color: var(--danger); font-weight: 700; }

/* SEO: 시각적으로 숨김 (스크린리더·검색엔진은 읽음) */
.visually-hidden {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0,0,0,0) !important;
    white-space: nowrap !important; border: 0 !important;
}

/* 카카오톡 버튼 */
.btn-kakao {
    background: #fee500 !important;
    color: #181600 !important;
    border: 1px solid #fee500 !important;
    font-weight: 700;
}
.btn-kakao:hover { background: #ffd900 !important; border-color: #ffd900 !important; }
.btn-kakao i { color: #181600; }

/* 최저임금·체불 안내 배너 */
.site-wage-section {
    background: #fff8f0;
    border-top: 1px solid #fed7aa;
    border-bottom: 1px solid #fed7aa;
    padding: 20px 0;
}
.sws-inner {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 18px; align-items: center;
}
.sws-item {
    display: flex; align-items: center; gap: 12px;
    padding: 6px 0;
}
.sws-item + .sws-item { border-left: 1px solid rgba(0,0,0,0.08); padding-left: 18px; }
.sws-icon {
    width: 44px; height: 44px; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.sws-wage .sws-icon { background: #fef3c7; color: #d97706; }
.sws-defaulter .sws-icon { background: #fee2e2; color: #dc2626; }
.sws-report .sws-icon { background: #dbeafe; color: #2563eb; }
.sws-body { flex: 1; min-width: 0; }
.sws-body strong { display: block; font-size: 13px; font-weight: 800; color: #333; margin-bottom: 2px; }
.sws-body span { display: block; font-size: 11px; color: #666; line-height: 1.45; }
.sws-body em { font-style: normal; color: #dc2626; font-weight: 800; }
.sws-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px;
    background: #dc2626; color: #fff;
    border-radius: 6px;
    font-size: 11px; font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}
.sws-btn:hover { background: #991b1b; color: #fff; }
.sws-btn i { font-size: 9px; }
.sws-btn-ghost {
    background: transparent; color: #2563eb;
    border: 1px solid #2563eb;
}
.sws-btn-ghost:hover { background: #2563eb; color: #fff; }
@media (max-width: 900px) {
    .sws-inner { grid-template-columns: 1fr; gap: 12px; }
    .sws-item + .sws-item { border-left: none; border-top: 1px dashed #fed7aa; padding-left: 0; padding-top: 12px; }
}
.sls-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 28px;
}
.sls-slogan {
    font-size: 15px; font-weight: 700;
    color: #4b5563;
    letter-spacing: -0.3px;
}
.sls-links {
    display: flex; flex-wrap: wrap; align-items: center; gap: 26px;
}
.sls-links a {
    display: inline-flex; align-items: center; gap: 8px;
    opacity: 0.78;
    transition: opacity 0.15s;
}
.sls-links a:hover { opacity: 1; }
.sls-emblem { height: 20px; width: auto; display: block; flex-shrink: 0; }
.sls-text { height: 15px; width: auto; display: block; }

@media (max-width: 768px) {
    .site-law-section { padding: 18px 0; }
    .sls-inner { gap: 14px; }
    .sls-slogan { font-size: 14px; width: 100%; text-align: center; }
    .sls-links { justify-content: center; gap: 18px; width: 100%; }
    .sls-emblem { height: 16px; }
    .sls-text { height: 12px; }
}

/* 신고 버튼 전용 */
.btn-report {
    color: #b91c1c !important;
    border-color: #fecaca !important;
    background: #fef2f2 !important;
}
.btn-report:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}
.btn-report i { color: #dc2626; }

/* ============================================
   공고 상세 - 추천/비추천 + 채용정보 테이블
   ============================================ */
.v-rate-row {
    display: flex; gap: 10px;
    margin: 16px 0;
}
.v-rate-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 14px;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    cursor: pointer; transition: all 0.15s;
}
.v-rate-btn:hover { background: var(--bg-section); }
.v-rate-btn i { font-size: 14px; }
.v-rate-btn em { font-style: normal; font-weight: 700; color: var(--text-dark); }
.v-rate-good.active { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; }
.v-rate-good.active i, .v-rate-good.active em { color: #1d4ed8; }
.v-rate-bad.active { background: #fef2f2; border-color: #ef4444; color: #b91c1c; }
.v-rate-bad.active i, .v-rate-bad.active em { color: #b91c1c; }

/* 채용정보·업체정보 테이블 */
.v-jobtable {
    width: 100%; border-collapse: collapse;
    border-top: 2px solid var(--text-dark);
}
.v-jobtable th, .v-jobtable td {
    padding: 12px 14px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    text-align: left;
}
.v-jobtable th {
    width: 110px;
    background: #fafafa;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.3px;
}
.v-jobtable td {
    color: var(--text-dark);
    font-weight: 500;
}

/* 상세 채용정보 */
.v-detail-list { display: flex; flex-direction: column; gap: 16px; }
.v-dl-row {
    display: grid; grid-template-columns: 110px 1fr;
    gap: 14px; padding: 12px 0;
    border-bottom: 1px dashed var(--border-light);
}
.v-dl-row:last-child { border-bottom: none; }
.v-dl-label {
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    display: flex; align-items: center; gap: 6px;
}
.v-dl-label i { color: var(--primary); font-size: 13px; }
.v-dl-value {
    font-size: 14px; line-height: 1.7; color: var(--text-dark);
}

@media (max-width: 640px) {
    .v-jobtable th { width: 80px; font-size: 12px; padding: 10px; }
    .v-jobtable td { font-size: 12px; padding: 10px; }
    .v-dl-row { grid-template-columns: 90px 1fr; gap: 10px; }
    .v-dl-label { font-size: 12px; }
    .v-dl-value { font-size: 13px; }
    .v-rate-btn { font-size: 12px; padding: 10px; }
}

/* ============================================
   공고 상세 법적 안내 섹션 (waiternara 미니멀 스타일)
   ============================================ */
.job-legal-notice {
    margin: 24px 0 8px;
    padding: 0;
    background: transparent;
    border: none;
}
.job-legal-notice ul {
    list-style: none; padding: 0; margin: 0 0 16px;
    display: flex; flex-direction: column; gap: 8px;
}
.job-legal-notice li {
    font-size: 12px; line-height: 1.5;
    color: #6b7280;
    padding-left: 10px; position: relative;
}
.job-legal-notice li::before {
    content: 'ㆍ'; position: absolute; left: 0; top: 0;
    color: #9ca3af;
}
.job-legal-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.job-legal-btn {
    display: grid; grid-template-columns: 20px 1fr 10px;
    align-items: center; gap: 8px;
    padding: 10px 12px;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 500; color: var(--text-dark);
    transition: border-color 0.15s, background 0.15s;
    text-align: left; cursor: pointer;
}
.job-legal-btn:hover { border-color: var(--border); background: #fafafa; }
.job-legal-btn .jlb-emblem {
    width: 20px; height: 20px; display: block;
    object-fit: contain;
}
.job-legal-btn .jlb-warn {
    width: 20px; height: 20px; border-radius: 50%;
    border: 1.5px solid #ea580c; color: #ea580c;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 900;
}
.job-legal-btn > i:first-child {
    font-size: 13px; color: #9ca3af;
    text-align: center;
}
.job-legal-btn .jlb-label { white-space: normal; line-height: 1.3; }
.job-legal-btn .jlb-arrow {
    color: #9ca3af; font-size: 9px;
    transform: rotate(-90deg);
}

@media (max-width: 600px) {
    .job-legal-actions { grid-template-columns: 1fr; }
    .job-legal-btn { padding: 9px 10px; font-size: 11.5px; }
}

/* (tab-picker 구 스타일 제거 — daechul-hero로 통합) */

/* ============================================
   상단 위젯: 3-column (프리미엄 | 추천 | 검색)
   ============================================ */
.top-widgets { padding: 16px 0 8px; background: transparent; }
.tw-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    align-items: start;
}

/* 프리미엄 (더 강조) */
.tw-premium {
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 4px 16px rgba(236,143,163,0.18);
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tw-premium:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 12px 32px rgba(217,117,139,0.32), 0 2px 8px rgba(236,143,163,0.2);
    transform: translateY(-3px);
}

/* 추천 (보조) */
.tw-spad {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex; flex-direction: column;
}

.twp-header, .tws-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; color: #fff;
}
/* 프리미엄 헤더: 그라디언트 + 왕관 애니 */
.twp-header {
    background: linear-gradient(135deg, #e8799a 0%, var(--primary-dark) 100%);
    font-size: 14px;
}
/* 추천 헤더: 단색 보라 */
.tws-header { background: #8b5cf6; font-size: 13px; }

.twp-head-left, .tws-head-left { display: flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: -0.3px; }
.twp-head-left i { font-size: 14px; animation: crownPulse 2s infinite; }
.tws-head-left i { font-size: 12px; }
@keyframes crownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(-5deg); }
}

/* 프리미엄 이미지 카드 (완전 다른 레이아웃) */
.twp-img-ticker {
    flex: 1; display: flex; flex-direction: column;
    position: relative;
}
.twp-img-page { flex: 1; }
.twp-img-card {
    display: block; position: relative;
    height: 280px; overflow: hidden;
    color: #fff;
    isolation: isolate;
}
.twp-img-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.twp-img-card:hover .twp-img-bg {
    transform: scale(1.08);
    filter: brightness(1.05) saturate(1.15);
}
.twp-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.9) 100%);
    transition: background 0.35s ease;
}
.twp-img-card:hover .twp-img-overlay {
    background: linear-gradient(180deg, rgba(217,117,139,0.25) 0%, rgba(0,0,0,0.65) 55%, rgba(20,0,10,0.92) 100%);
}
/* 호버 시 광택 sheen */
.twp-img-card::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.twp-img-card:hover::after { transform: translateX(100%); }
.twp-img-body {
    position: relative; z-index: 1;
    height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 16px 18px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.twp-img-card:hover .twp-img-body { transform: translateY(-4px); }
.twp-img-meta {
    display: flex; gap: 6px; margin-bottom: 8px;
}
.twp-img-meta span {
    font-size: 11px; font-weight: 700;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
    padding: 3px 8px; border-radius: 3px;
    color: #fff;
}
.twp-img-title {
    font-size: 20px; font-weight: 900;
    line-height: 1.25; margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.twp-img-pay {
    display: inline-block;
    background: rgba(236,143,163,0.95);
    padding: 5px 12px; border-radius: 4px;
    font-size: 13px; font-weight: 600;
    margin-bottom: 10px; width: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.twp-img-card:hover .twp-img-pay {
    background: #fff; color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(255,255,255,0.4);
    transform: translateY(-1px);
}
.twp-img-pay strong { font-size: 16px; font-weight: 900; margin-left: 2px; }
.twp-img-tags {
    display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 10px;
}
.twp-img-tags span {
    font-size: 10px; font-weight: 600;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
    padding: 2px 7px; border-radius: 5px;
    transition: background 0.25s ease;
}
.twp-img-card:hover .twp-img-tags span {
    background: rgba(255,255,255,0.28);
}
.twp-img-cta {
    font-size: 12px; font-weight: 700;
    color: #fecdd3; letter-spacing: 0.3px;
    display: inline-flex; align-items: center; gap: 4px;
    transition: color 0.25s ease, gap 0.25s ease, letter-spacing 0.25s ease;
}
.twp-img-card:hover .twp-img-cta {
    color: #fff; gap: 9px; letter-spacing: 0.6px;
}

/* 추천(spad) 슬라이드 - 텍스트 리스트 유지 */
.twp-title { font-size: 15px; }
.tws-title { font-size: 14px; }

/* 커스텀 ticker */
.tw-ticker {
    flex: 1; display: flex; flex-direction: column;
    overflow: hidden;
}
.twt-page {
    display: flex; flex-direction: column;
    animation: twtFadeIn 0.35s ease;
}
@keyframes twtFadeIn { from { opacity: 0; } to { opacity: 1; } }

.twt-page .twp-slide,
.twt-page .tws-slide {
    overflow: hidden;
}
.twt-page .twp-slide:first-child,
.twt-page .tws-slide:first-child {
    border-bottom: 1px solid rgba(255,255,255,0.25);
}

/* 도트는 헤더에 위치 */
.twt-dots { display: flex; gap: 4px; align-items: center; }
.twt-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.35); cursor: pointer;
    border: none; padding: 0;
    transition: all 0.2s;
}
.twt-dot.active { background: #fff; width: 16px; border-radius: 3px; }
.twp-slide, .tws-slide {
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 14px; height: 100%; color: var(--text-dark);
    transition: background 0.12s;
    overflow: hidden;
}
.twp-slide:hover, .tws-slide:hover { background: #fafafa; }

.twp-meta, .tws-meta { display: flex; gap: 4px; font-size: 11px; flex-wrap: wrap; }
.twp-meta span, .tws-meta span {
    background: var(--bg-section); color: var(--text-muted);
    padding: 2px 6px; border-radius: 3px; font-weight: 600;
}
.twp-region, .tws-region { background: var(--primary-bg) !important; color: var(--primary) !important; }

.twp-title, .tws-title {
    font-size: 15px; font-weight: 800; letter-spacing: -0.3px;
    line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}

.twp-info, .tws-info { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.twp-info-row, .tws-info-row {
    font-size: 12px; color: var(--text-secondary);
    display: flex; align-items: center; gap: 5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.twp-info-row i, .tws-info-row i { color: var(--primary); font-size: 10px; flex-shrink: 0; }

.twp-footer, .tws-footer {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px;
    padding-top: 8px; border-top: 1px solid var(--border-light);
    margin-top: auto;
}
.twp-phone, .tws-phone { color: var(--text-dark); font-weight: 600; font-size: 12px; }
.twp-phone i, .tws-phone i { color: var(--primary); margin-right: 3px; font-size: 10px; }
.twp-more, .tws-more { color: var(--primary); font-weight: 700; font-size: 11px; }

/* pagination */
.twp-pagination, .tws-pagination { display: flex; gap: 3px; }
.twp-pagination .swiper-pagination-bullet,
.tws-pagination .swiper-pagination-bullet {
    width: 5px; height: 5px; background: rgba(255,255,255,0.4); opacity: 1;
}
.twp-pagination .swiper-pagination-bullet-active,
.tws-pagination .swiper-pagination-bullet-active {
    background: #fff; width: 14px; border-radius: 3px;
}

/* 검색 위젯 */
.tw-search {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex; flex-direction: column;
    min-width: 0;
}
.tws2-header {
    background: #374151; color: #fff;
    padding: 8px 12px;
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700;
}
.tws2-header i { font-size: 12px; }
.tws2-stats {
    display: flex; align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-light);
}
.tws2-stats a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 4px; padding: 2px 2px; min-width: 0;
    border-right: 1px solid var(--border-light);
    font-size: 11px; color: var(--text-secondary);
}
.tws2-stats a:last-child { border-right: none; }
.tws2-stats a strong { font-size: 13px; font-weight: 800; color: var(--text-dark); }
.tws2-stats a strong.hot { color: #dc2626; }
.tws2-stats a span { font-size: 10px; color: var(--text-muted); }

.tws2-tabs { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.tws2-tab-head {
    display: flex;
    border-bottom: 2px solid var(--border-light);
}
.tws2-tab {
    flex: 1; padding: 6px 8px; font-size: 12px; font-weight: 600;
    background: none; color: var(--text-muted);
    border: none; border-bottom: 2px solid transparent;
    cursor: pointer; transition: all 0.12s;
    margin-bottom: -2px; text-align: center;
}
.tws2-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tws2-tab:not(.active):hover { color: var(--text-dark); }

.tws2-grid {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
}
.tws2-grid-3 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tws2-item {
    padding: 5px 2px; font-size: 11px; font-weight: 600;
    text-align: center; color: var(--text-dark);
    background: #fafafa; border-radius: 3px;
    transition: all 0.12s; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tws2-item:hover { background: var(--primary); color: #fff; }

/* 빠른 혜택 찾기 (빈 공간 채움) */
.tws2-quick { padding: 0 10px 10px; }
.tws2-quick-title { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.tws2-quick-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tws2-qtag {
    font-size: 11px; padding: 3px 8px;
    background: var(--bg-section); color: var(--text-secondary);
    border-radius: var(--radius-pill);
    transition: all 0.12s; white-space: nowrap;
}
.tws2-qtag:hover { background: var(--primary); color: #fff; }

/* 반응형 */
@media (max-width: 1100px) {
    .tw-row { grid-template-columns: 1fr 1fr; }
    .tw-search { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .top-widgets { padding: 10px 0; }
    .tw-row { grid-template-columns: 1fr; gap: 10px; }
}

/* 반응형 */
@media (max-width: 1100px) {
    .tw-row { grid-template-columns: 1fr 1fr; }
    .tw-search { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .top-widgets { padding: 10px 0; }
    .tw-row { grid-template-columns: 1fr; gap: 10px; }
    .tw-premium, .tw-spad { min-height: 170px; }
    .tws2-grid { grid-template-columns: repeat(6, 1fr); }
    .tws2-grid-3 { grid-template-columns: repeat(5, 1fr); }
}
/* 초소형(380px 이하 — iPhone SE 등) */
@media (max-width: 380px) {
    .top-widgets { padding: 8px 0; }
    .tw-row { gap: 8px; }
    .tw-premium, .tw-spad, .tw-search { border-radius: 6px; }
    .twp-header, .tws-header { padding: 8px 10px; font-size: 12px; }
    .twp-title, .tws-title { font-size: 13px; padding: 0 10px; }
    .twp-info-row, .tws-info-row { font-size: 11px; }
    .twp-footer, .tws-footer { font-size: 11px; padding: 6px 10px; }
    .twp-phone, .tws-phone { font-size: 11px; }

    /* 공고 찾기 — 320px 대응 */
    .tws2-header { padding: 8px 12px; font-size: 13px; gap: 6px; }
    .tws2-header i { font-size: 12px; }

    /* 통계 4칸: 가로 유지 + 세로 스택 (숫자 위, 라벨 아래) */
    .tws2-stats { padding: 6px 4px; }
    .tws2-stats a {
        flex-direction: column; gap: 1px;
        padding: 4px 2px;
    }
    .tws2-stats a strong { font-size: 13px; line-height: 1.1; }
    .tws2-stats a span { font-size: 9px; }

    .tws2-tabs { padding: 8px; gap: 6px; }
    .tws2-tab { font-size: 12px; padding: 7px 4px; }

    /* 지역/업종 그리드 3열 (3글자 지역명 수용) */
    .tws2-grid,
    .tws2-grid-3 {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }
    .tws2-item {
        font-size: 11px; padding: 7px 4px;
        min-width: 0;
    }

    .tws2-quick { padding: 0 8px 8px; }
    .tws2-quick-title { font-size: 10px; margin-bottom: 4px; }
    .tws2-qtag { font-size: 10px; padding: 2px 7px; }
}

/* 얇은 카테고리·통계 스트립 */
.hb-strip {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
}
.hbs-row {
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap; margin-bottom: 8px;
}
.hbs-stats {
    display: inline-flex; gap: 14px; flex-wrap: wrap;
    padding-right: 14px; border-right: 1px solid var(--border-light);
    flex-shrink: 0;
}
.hbs-stats a {
    display: inline-flex; align-items: baseline; gap: 4px;
    font-size: 12px; color: var(--text-muted);
}
.hbs-stats a strong {
    color: var(--text-dark); font-size: 13px; font-weight: 800;
}
.hbs-stats a strong.hot { color: #dc2626; }

.hbs-nav {
    display: inline-flex; gap: 4px; flex-wrap: wrap;
    flex: 1; min-width: 0;
}
.hbs-tag {
    padding: 5px 12px; border-radius: var(--radius-pill);
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
    transition: all 0.12s;
}
.hbs-tag:hover { background: var(--primary-bg); color: var(--primary); }
.hbs-tag-all { background: var(--primary); color: #fff; }
.hbs-tag-all:hover { background: var(--primary-dark); color: #fff; }

.hbs-regions {
    display: flex; gap: 2px; flex-wrap: wrap; align-items: center;
    padding-top: 8px; border-top: 1px dashed var(--border-light);
    font-size: 12px;
}
.hbs-regions-label {
    color: var(--text-muted); font-weight: 700; margin-right: 8px;
    font-size: 12px;
}
.hbs-regions a {
    padding: 4px 10px; color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.12s;
}
.hbs-regions a:hover { background: var(--primary-bg); color: var(--primary); }

@media (max-width: 768px) {
    .hero-banner { padding: 36px 0; }
    .hb-text h1 { font-size: 22px; }
    .hb-text p { font-size: 12px; }
    .hbs-row { flex-direction: column; align-items: stretch; gap: 10px; }
    .hbs-stats { border-right: none; padding-right: 0; justify-content: space-around; }
    .hbs-nav { justify-content: center; }
    .hbs-regions { gap: 1px; }
    .hbs-regions a { padding: 3px 7px; font-size: 11px; }
}

/* ============================================
   대출나라 스타일 히어로 (배경 + 탭 카드) — legacy
   ============================================ */
.daechul-hero {
    position: relative;
    padding: 32px 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fff5f7 0%, #fefafb 100%);
    border-bottom: 1px solid var(--border-light);
}
.dh-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(247,169,184,0.35), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(251,191,36,0.2), transparent 40%);
    pointer-events: none;
}
.dh-wrap {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 32px; align-items: center;
}

/* 좌측: 헤드라인 + 통계 */
.dh-left { color: var(--text-dark); }
.dh-headline {
    font-size: 28px; font-weight: 900;
    line-height: 1.3; letter-spacing: -0.8px;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.dh-headline span { color: var(--primary); }
.dh-sub {
    font-size: 13px; line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.dh-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;
}
.dh-stat {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 8px; text-align: center;
    transition: border-color 0.12s;
}
.dh-stat:hover { border-color: var(--primary); }
.dh-stat span { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 2px; font-weight: 500; }
.dh-stat strong { font-size: 18px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.5px; }
.dh-stat strong.hot { color: #dc2626; }

/* 우측: 탭 카드 */
.dh-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
}
.dhc-tabs {
    display: grid; grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-light);
}
.dhc-tab {
    padding: 14px; font-size: 14px; font-weight: 700;
    color: var(--text-muted); background: #fafafa; border: none;
    cursor: pointer; transition: all 0.12s;
    border-bottom: 3px solid transparent;
}
.dhc-tab i { margin-right: 4px; }
.dhc-tab:hover { color: var(--text-dark); background: #fff; }
.dhc-tab.active {
    color: var(--primary); background: #fff;
    border-bottom-color: var(--primary);
}

.dhc-body { padding: 16px; }
.dhc-pane {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 6px;
}
.dhc-btn {
    padding: 10px 4px; text-align: center;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; color: var(--text-dark);
    transition: all 0.12s;
}
.dhc-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.dhc-btn-all { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.dhc-btn-all:hover { background: var(--primary-dark); color: #fff; }

@media (max-width: 900px) {
    .daechul-hero { padding: 24px 0; }
    .dh-wrap { grid-template-columns: 1fr; gap: 20px; }
    .dh-headline { font-size: 22px; }
    .dh-sub { font-size: 13px; margin-bottom: 14px; }
    .dh-stat strong { font-size: 17px; }
}
@media (max-width: 640px) {
    .dh-headline { font-size: 19px; }
    .dh-stats { grid-template-columns: repeat(2, 1fr); }
    .dhc-tab { font-size: 13px; padding: 11px 8px; }
    .dhc-body { padding: 12px; }
    .dhc-pane { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px; }
    .dhc-btn { font-size: 12px; padding: 8px 2px; }
}

/* ============================================
   콤팩트 히어로 (legacy 2-column, 폴백)
   ============================================ */
.compact-hero {
    background: linear-gradient(180deg, var(--primary-bg) 0%, #fff 100%);
    padding: 20px 0 24px;
}
.ch-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}
.ch-left, .ch-right { min-width: 0; }

/* 좌측 슬라이드 */
.ch-left { display: flex; flex-direction: column; }
.ch-swiper {
    height: 100%; min-height: 240px;
    border-radius: var(--radius); overflow: hidden; position: relative;
    flex: 1;
}
.ch-slide { position: relative; height: 100%; }
.ch-slide a { display: block; position: relative; height: 100%; color: #fff; }
.ch-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-color: #1e293b;
    filter: brightness(0.55);
}
.ch-info {
    position: relative; z-index: 1;
    padding: 22px 24px; height: 100%;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.ch-grade {
    display: inline-block; align-self: flex-start;
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 800; padding: 3px 10px;
    border-radius: var(--radius-pill);
}
.ch-title { font-size: 22px; font-weight: 900; line-height: 1.2; text-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.ch-meta { font-size: 12px; opacity: 0.9; }
.ch-pay { font-size: 16px; font-weight: 800; color: #fecdd3; }
.ch-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ch-tags span {
    background: rgba(255,255,255,0.18); backdrop-filter: blur(6px);
    padding: 2px 7px; border-radius: var(--radius-pill);
    font-size: 10px; font-weight: 600;
}
.ch-pagination {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    z-index: 2; display: flex; gap: 4px;
}
.ch-pagination .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5); opacity: 1;
    width: 6px; height: 6px;
}
.ch-pagination .swiper-pagination-bullet-active { background: #fff; width: 18px; border-radius: 3px; }

.ch-placeholder {
    height: 100%; min-height: 240px;
    display: flex; flex-direction: column; justify-content: center; padding: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
    border-radius: var(--radius);
}
.ch-placeholder h2 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.ch-placeholder p { font-size: 13px; opacity: 0.9; }

/* 우측 위젯 */
.ch-right { display: flex; flex-direction: column; gap: 8px; min-height: 240px; }
.ch-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #fff;
    border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: 12px 4px;
    min-width: 0;
}
.chs-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 4px 2px; text-align: center;
    border-right: 1px solid var(--border-light);
    min-width: 0; overflow: hidden;
}
.chs-item:last-child { border-right: none; }
.chs-item strong {
    font-size: 17px; font-weight: 800; color: var(--primary);
    letter-spacing: -0.5px;
}
.chs-item span { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.chs-item:hover strong { color: var(--primary-dark); }

.ch-search {
    display: flex; align-items: center;
    background: #fff; border: 1.5px solid var(--border);
    border-radius: var(--radius-pill); padding: 4px;
}
.ch-search:focus-within { border-color: var(--primary); }
.ch-search input { flex: 1; border: none; outline: none; padding: 8px 14px; font-size: 13px; background: transparent; }
.ch-search button { border: none; background: var(--primary); color: #fff; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; }
.ch-search button:hover { background: var(--primary-dark); }

.ch-quick {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
    min-width: 0;
}
.ch-quick a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 6px; background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); font-size: 11px; font-weight: 600;
    color: var(--text-secondary); text-align: center;
    transition: all 0.12s;
}
.ch-quick a:hover { border-color: var(--primary); color: var(--primary); }
.ch-quick a i { font-size: 15px; color: var(--primary); }

@media (max-width: 900px) {
    .ch-grid { grid-template-columns: 1fr; }
    .ch-swiper, .ch-placeholder { min-height: 200px; }
    .ch-right { min-height: 0; }
    .ch-title { font-size: 18px; }
}
@media (max-width: 480px) {
    .compact-hero { padding: 14px 0; }
    .ch-swiper, .ch-placeholder { min-height: 170px; }
    .ch-info { padding: 14px 16px; }
    .ch-title { font-size: 16px; }
    .ch-pay { font-size: 14px; }
    .chs-item strong { font-size: 15px; }
    .chs-item span { font-size: 10px; }
    .ch-quick a { font-size: 10px; padding: 8px 4px; }
}

/* ============================================
   히어로 슬라이더 (legacy, 폴백용)
   ============================================ */
.hero-slider-section { position: relative; background: linear-gradient(180deg, #fef5f7 0%, #fff 100%); padding-bottom: 20px; }
.hero-swiper { position: relative; max-height: 340px; }
.hero-slide { position: relative; overflow: hidden; }
.hero-slide a { display: block; position: relative; height: 340px; color: #fff; }
.hero-slide .hs-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-color: #1e293b;
    filter: brightness(0.55);
    transition: transform 0.6s;
}
.hero-slide:hover .hs-bg { transform: scale(1.04); }
.hero-slide .hs-inner {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto;
    padding: 50px 30px; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
}
.hero-slide .hs-badge {
    display: inline-block; align-self: flex-start;
    background: var(--primary); color: #fff;
    font-size: 12px; font-weight: 800; padding: 4px 12px;
    border-radius: var(--radius-pill); margin-bottom: 12px;
}
.hero-slide .hs-title { font-size: 34px; font-weight: 900; line-height: 1.2; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-slide .hs-meta { font-size: 14px; opacity: 0.9; margin-bottom: 12px; }
.hero-slide .hs-pay { font-size: 22px; font-weight: 800; color: #fecdd3; margin-bottom: 12px; }
.hero-slide .hs-pay i { margin-right: 4px; }
.hero-slide .hs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-slide .hs-tags span {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    padding: 4px 10px; border-radius: var(--radius-pill);
    font-size: 12px; font-weight: 600;
}

.hero-pagination { bottom: 12px !important; text-align: center; }
.hero-pagination .swiper-pagination-bullet { background: rgba(255,255,255,0.5); opacity: 1; }
.hero-pagination .swiper-pagination-bullet-active { background: #fff; }
.hero-prev, .hero-next { color: #fff !important; }
.hero-prev::after, .hero-next::after { font-size: 22px !important; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }

.hero-search-bar { margin-top: -30px; position: relative; z-index: 10; }
.hero-search-bar .search-form {
    background: #fff; border: 1.5px solid var(--border);
    border-radius: var(--radius-pill); padding: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    display: flex; align-items: center;
}
.hero-search-bar .search-select,
.hero-search-bar .search-input { border: none; padding: 10px 14px; font-size: 14px; outline: none; background: transparent; }
.hero-search-bar .search-select { border-right: 1px solid var(--border-light); }
.hero-search-bar .search-input { flex: 1; }
.hero-search-bar .search-btn {
    background: var(--primary); color: #fff; border: none;
    padding: 10px 24px; border-radius: var(--radius-pill);
    font-weight: 700; cursor: pointer;
}

@media (max-width: 768px) {
    .hero-swiper, .hero-slide a { height: 260px; max-height: 260px; }
    .hero-slide .hs-inner { padding: 30px 20px; }
    .hero-slide .hs-title { font-size: 22px; }
    .hero-slide .hs-pay { font-size: 16px; }
    .hero-slide .hs-tags span { font-size: 11px; }
    .hero-search-bar .search-form { flex-direction: column; border-radius: var(--radius); }
    .hero-search-bar .search-select { width: 100%; border-right: none; border-bottom: 1px solid var(--border-light); }
    .hero-search-bar .search-btn { width: 100%; border-radius: var(--radius); }
}

/* ============================================
   공고 검색 필터 (bamfox 스타일)
   ============================================ */
.jf-wrap { background: var(--bg-light); border-bottom: 1px solid var(--border-light); }
.jf-form {
    background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: 14px 16px; display: flex; flex-direction: column; gap: 12px;
    max-width: 1280px; margin: 0 auto;
}
.jf-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jf-sel {
    flex: 1; min-width: 130px;
    padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; color: var(--text-dark); background: #fff;
    cursor: pointer;
}
.jf-sel:focus { outline: none; border-color: var(--primary); }

.jf-tags {
    padding: 6px 0 4px;
    border-top: 1px dashed var(--border-light);
}
.jf-chip {
    cursor: pointer;
}
.jf-chip input { display: none; }
.jf-chip span {
    display: inline-block; padding: 5px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
    background: #fff;
    transition: all 0.12s;
}
.jf-chip:hover span { border-color: var(--primary); color: var(--primary); }
.jf-chip.on span { background: var(--primary); border-color: var(--primary); color: #fff; }

.jf-bottom { border-top: 1px dashed var(--border-light); padding-top: 12px; }
.jf-search {
    flex: 1; min-width: 200px;
    display: flex; align-items: center; gap: 8px;
    border: 1.5px solid var(--border); border-radius: var(--radius-pill);
    padding: 8px 14px; background: var(--bg-section);
}
.jf-search:focus-within { border-color: var(--primary); background: #fff; }
.jf-search i { color: var(--text-muted); font-size: 13px; }
.jf-search input { flex: 1; border: none; outline: none; font-size: 13px; background: transparent; }
.jf-btn {
    padding: 9px 18px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 700; cursor: pointer; border: none;
    display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
    white-space: nowrap;
}
.jf-btn-primary { background: var(--primary); color: #fff; }
.jf-btn-primary:hover { background: var(--primary-dark); }
.jf-btn-reset { background: var(--bg-section); color: var(--text-secondary); border: 1px solid var(--border); }
.jf-btn-reset:hover { background: var(--border-light); }

@media (max-width: 768px) {
    .jf-form { padding: 12px; gap: 10px; }
    .jf-selects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .jf-sel { min-width: 0; width: 100%; font-size: 12px; padding: 8px; }
    .jf-chip span { font-size: 11px; padding: 4px 10px; }
    .jf-btn { padding: 8px 14px; font-size: 12px; }
}
/* 초소형 (≤500px) */
@media (max-width: 500px) {
    .jf-form { padding: 10px; }
    .jf-selects { grid-template-columns: 1fr 1fr; }
    .jf-sel { font-size: 11px; padding: 7px 6px; }
    .jf-chip span { font-size: 10px; padding: 3px 8px; }
    .jf-search { min-width: 0; padding: 6px 10px; }
    .jf-search input { font-size: 12px; }
    .jf-bottom { display: flex; flex-wrap: wrap; gap: 6px; }
    .jf-bottom .jf-search { flex: 1 1 100%; min-width: 0; }
    .jf-btn { flex: 1; justify-content: center; }
}


/* 19+ 연령 경고 배너 */
.age-warning-bar {
    background: linear-gradient(90deg, #dc2626, #991b1b);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
}
.age-warning-bar .container {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.age-warning-bar i { margin-right: 4px; color: #fef3c7; }
.age-warning-bar strong { font-weight: 700; }
.age-warning-close {
    background: none; border: none; color: #fff;
    font-size: 20px; line-height: 1; cursor: pointer;
    padding: 0 6px; opacity: 0.85;
}
.age-warning-close:hover { opacity: 1; }
@media (max-width: 600px) {
    .age-warning-bar { font-size: 11px; padding: 6px 0; }
    .age-warning-bar strong { display: block; }
}
.header-search { flex: 1; max-width: 520px; margin: 0 auto; }
.search-form {
    display: flex; align-items: center;
    background: var(--bg-section); border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    overflow: hidden; transition: all 0.2s; height: 40px;
}
.search-form:focus-within { border-color: var(--text-dark); background: #fff; }
.search-select {
    padding: 0 12px; border: none; background: transparent;
    color: var(--text-secondary); font-size: 13px;
    border-right: 1px solid var(--border); outline: none;
    height: 100%; min-width: 90px;
}
.search-input {
    flex: 1; padding: 0 14px; border: none; background: transparent;
    outline: none; font-size: 14px; height: 100%; color: var(--text-primary);
}
.search-input::placeholder { color: var(--text-light); }
.search-btn {
    width: 40px; height: 40px; background: var(--primary); color: #fff;
    font-size: 14px; border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background 0.15s;
}
.search-btn:hover { background: var(--primary-dark); }

/* Header Utils */
.header-utils { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-util-btn {
    display: flex; align-items: center; gap: 4px;
    padding: 7px 14px; border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    transition: all 0.15s; white-space: nowrap;
}
.header-util-btn:hover { background: var(--bg-section); color: var(--text-dark); }
.header-util-btn i { font-size: 13px; }
.header-register {
    background: var(--primary); color: #fff !important;
}
.header-register:hover { background: var(--primary-dark); color: #fff !important; }

/* Mobile header buttons */
.mobile-search-btn {
    display: none; width: 36px; height: 36px;
    align-items: center; justify-content: center;
    font-size: 17px; color: var(--text-dark);
    flex-shrink: 0;
}
/* 햄버거 → X 애니메이션 */
.mobile-menu-btn {
    display: none; width: 36px; height: 36px;
    align-items: center; justify-content: center;
    flex-shrink: 0; position: relative;
}
.mobile-menu-btn span {
    display: block; width: 18px; height: 2px;
    background: var(--text-dark); border-radius: 1px;
    position: absolute; left: 9px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-btn span:nth-child(1) { top: 12px; }
.mobile-menu-btn span:nth-child(2) { top: 17px; }
.mobile-menu-btn span:nth-child(3) { top: 22px; }
.mobile-menu-btn.active span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* ======== MOBILE SIDE MENU ======== */
.mobile-side-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 2000; opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(2px);
}
.mobile-side-overlay.open { opacity: 1; visibility: visible; }

.mobile-side-menu {
    position: fixed; top: 0; right: -300px; width: 300px; height: 100%;
    background: #fff; z-index: 2001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; display: flex; flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.mobile-side-menu.open { right: 0; }

.msm-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
}
.msm-header .logo { font-size: 17px; }
.msm-header .logo-icon { width: 28px; height: 28px; font-size: 13px; }
.msm-close {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--text-muted); border-radius: 50%;
    background: var(--bg-section); transition: all 0.15s;
}
.msm-close:hover { background: var(--border); color: var(--text-dark); }

.msm-user {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; margin: 0 12px 8px;
    background: var(--bg-dark); border-radius: var(--radius-lg);
    color: #fff;
}
.msm-user-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.msm-user strong { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.msm-user span { font-size: 12px; color: rgba(255,255,255,0.5); }

.msm-login-area {
    padding: 16px 20px; margin: 0 12px 8px;
    background: var(--bg-section); border-radius: var(--radius-lg);
    text-align: center;
}
.msm-login-area .btn { margin-bottom: 0; }
.msm-register-link {
    display: block; text-align: center; margin-top: 10px;
    font-size: 13px; color: var(--text-muted);
}

.msm-nav {
    flex: 1; padding: 4px 12px;
}
.msm-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; font-size: 14px; font-weight: 600;
    color: var(--text-primary); border-radius: var(--radius);
    transition: background 0.1s, color 0.1s;
    margin-bottom: 2px;
}
.msm-nav a:hover { background: var(--primary-bg); color: var(--primary); }
.msm-nav a i {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--bg-section);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: var(--text-muted);
    transition: all 0.15s;
}
.msm-nav a:hover i { background: var(--primary); color: #fff; }

.msm-footer {
    padding: 16px 20px; margin: 0 12px 12px;
    background: var(--bg-section); border-radius: var(--radius);
    font-size: 12px; color: var(--text-muted); text-align: center;
}
.msm-footer p { line-height: 1.6; }

/* ======== MOBILE SEARCH OVERLAY ======== */
.mobile-search-overlay {
    position: fixed; inset: 0; background: #fff;
    z-index: 3000; transform: translateY(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.mobile-search-overlay.open { transform: translateY(0); }

.mso-header {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}
.mso-back {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--text-dark); flex-shrink: 0;
}
.mso-form {
    flex: 1; display: flex; align-items: center;
    background: var(--bg-section); border-radius: var(--radius-pill);
    height: 40px; overflow: hidden;
}
.mso-input {
    flex: 1; border: none; background: transparent; outline: none;
    padding: 0 14px; font-size: 15px; height: 100%; color: var(--text-primary);
}
.mso-input::placeholder { color: var(--text-light); }
.mso-submit {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 15px; flex-shrink: 0;
}

.mso-body { flex: 1; overflow-y: auto; padding: 0; }
.mso-section { padding: 20px; }
.mso-section + .mso-section { border-top: 6px solid var(--bg-section); }
.mso-section-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px;
}
.mso-section-head strong { font-size: 15px; font-weight: 700; color: var(--text-dark); }

.mso-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mso-tag {
    padding: 7px 14px; border-radius: var(--radius-sm);
    background: var(--bg-section); font-size: 13px; font-weight: 500;
    color: var(--text-secondary);
}
.mso-tag:hover { background: var(--text-dark); color: #fff; }

.mso-regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mso-region {
    padding: 10px 4px; text-align: center;
    border-radius: var(--radius-sm); border: 1px solid var(--border-light);
    font-size: 13px; font-weight: 600; color: var(--text-primary);
}
.mso-region:hover { border-color: var(--text-dark); color: var(--text-dark); }

/* ======== NAV ======== */
.main-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: relative; z-index: 50;
}
.nav-list {
    display: flex; align-items: center; height: 46px; gap: 0;
}
.nav-item > a {
    display: flex; align-items: center; gap: 5px;
    padding: 0 18px; height: 46px;
    color: var(--text-secondary);
    font-size: 15px; font-weight: 600; white-space: nowrap;
    transition: color 0.15s;
}
.nav-item > a:hover {
    color: var(--text-dark);
}
.nav-item.active > a {
    color: var(--primary);
    box-shadow: inset 0 -2px 0 var(--primary);
    font-weight: 700;
}

/* ======== NAV SUBMENU (드롭다운) ======== */
.nav-has-sub { position: relative; }
.nav-has-sub > a::after {
    content: ""; display: inline-block; margin-left: 4px;
    border: 4px solid transparent; border-top-color: currentColor;
    transform: translateY(2px); opacity: 0.6;
    transition: transform 0.2s;
}
.nav-has-sub:hover > a::after { transform: translateY(2px) rotate(180deg); }
.nav-sub {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 200px; padding: 6px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    list-style: none; margin: 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.18s, visibility 0.18s, transform 0.2s;
    z-index: 60;
}
.nav-has-sub:hover .nav-sub,
.nav-has-sub:focus-within .nav-sub {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-sub li a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    font-size: 13px; font-weight: 600;
    color: var(--text-dark); text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.nav-sub li a:hover { background: var(--primary-bg); color: var(--primary-dark); }
.nav-sub li a i { width: 16px; font-size: 12px; flex-shrink: 0; }

/* ======== MEGA MENU ======== */
.mega-panels {
    position: absolute; top: 100%; left: 0; right: 0;
    z-index: 49;
}
.mega-panel {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.mega-panel.open { display: block; }

.mega-inner {
    display: flex; gap: 0;
    padding: 28px 0;
}

/* 왼쪽 설명 영역 */
.mega-side {
    width: 200px; flex-shrink: 0;
    padding-right: 28px;
    border-right: 1px solid var(--border-light);
}
.mega-side h3 {
    font-size: 20px; font-weight: 800; color: var(--text-dark);
    margin-bottom: 8px;
}
.mega-side p {
    font-size: 13px; color: var(--text-muted); line-height: 1.6;
    margin-bottom: 16px;
}
.mega-all {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--primary);
}
.mega-all:hover { gap: 10px; }
.mega-all i { font-size: 11px; transition: transform 0.15s; }
.mega-all:hover i { transform: translateX(3px); }

/* 오른쪽 링크 영역 */
.mega-content {
    flex: 1;
    display: flex; flex-wrap: wrap;
    align-content: flex-start;
    padding-left: 28px;
    gap: 0;
}
.mega-content a {
    display: inline-flex; align-items: center;
    width: 25%;
    padding: 10px 16px;
    font-size: 14px; font-weight: 500;
    color: var(--text-primary);
    border-radius: 6px;
    transition: background 0.1s, color 0.1s;
}
.mega-content a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* 메가메뉴 SVG 아이콘 */
.mi {
    width: 18px; height: 18px; flex-shrink: 0;
    vertical-align: -3px; margin-right: 6px;
    opacity: 0.45; transition: opacity 0.15s;
}
a:hover .mi { opacity: 0.8; }
.mega-side h3 .mi { width: 22px; height: 22px; opacity: 0.7; color: var(--primary); vertical-align: -4px; margin-right: 4px; }

/* 지역 9열 x 2행 가로 일자 */
.mega-region-list {
    flex: 1; display: grid !important;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px; padding-left: 28px;
}
.mega-region-list .rg-item {
    display: flex; align-items: center; gap: 5px;
    width: 100% !important;
    padding: 8px 6px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.12s;
}
.mega-region-list .rg-item:hover {
    background: var(--primary-bg);
}
.rg-map {
    display: block; flex-shrink: 0;
    width: 22px; height: 20px;
    background: var(--map-img) no-repeat center top;
    background-size: 100% 200%;
}
.rg-item:hover .rg-map {
    background-position: center bottom;
}
.rg-name {
    font-size: 13px; font-weight: 600;
    color: var(--text-primary);
}
.rg-item:hover .rg-name { color: var(--primary); }


/* 테마: pill 스타일 */
.mega-content-pills {
    gap: 8px;
    align-items: flex-start;
}
.mega-content-pills a {
    width: auto;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center;
}
.mega-content-pills a:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
}
.mega-content-pills .mi { margin-right: 4px; }

/* 커뮤니티: 리스트형 */
.mega-content-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding-left: 28px;
}
.mega-content-list a {
    display: flex; align-items: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px; font-weight: 600;
    color: var(--text-primary);
    transition: background 0.1s, color 0.1s;
}
.mega-content-list a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}
.mega-content-list a span {
    margin-left: auto;
    font-size: 12px; font-weight: 400;
    color: var(--text-muted);
}
.mega-content-list a:hover span { color: var(--primary); opacity: 0.6; }
.mega-content-list .mi { opacity: 0.5; }

/* ======== ALERT ======== */
.alert {
    padding: 10px 14px; border-radius: var(--radius-sm); margin: 12px auto;
    max-width: 1200px; font-size: 13px;
}
.alert-info { background: #e8f4fd; color: #1565c0; }
.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-error { background: #ffebee; color: #c62828; }

.main-content { min-height: 60vh; padding-bottom: 40px; }

/* ======== HERO ======== */
.hero {
    position: relative; background: var(--bg-dark);
    overflow: hidden; min-height: 280px;
    display: flex; align-items: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.3;
}
.hero-inner {
    position: relative; z-index: 1;
    text-align: center; color: #fff;
    width: 100%; padding: 36px 20px;
    max-width: 560px; margin: 0 auto;
}
@keyframes hero-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
    font-size: 28px; font-weight: 800; margin-bottom: 6px;
    letter-spacing: -0.02em; line-height: 1.35;
    animation: hero-in 0.6s ease 0.1s both;
}
.hero p {
    font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 22px;
    animation: hero-in 0.6s ease 0.25s both;
}
.hero-search { animation: hero-in 0.6s ease 0.4s both; }
.hero-search { max-width: 460px; margin: 0 auto; }
.hero-search .search-form { background: #fff; border: none; box-shadow: var(--shadow-lg); height: 44px; }
.hero-search .search-input { font-size: 14px; color: var(--text-primary); }
.hero-search .search-btn { width: 44px; height: 44px; font-size: 15px; }
.quick-filters {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px; margin-top: 16px;
}
.quick-filter-btn {
    padding: 5px 14px; border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85);
    font-size: 12px; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.15);
}
.quick-filter-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ======== SECTION ======== */
.section { padding: 32px 0; }
.section-alt { background: var(--bg-section); }
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; gap: 12px;
}
.section-title {
    font-size: 18px; font-weight: 800; color: var(--text-dark);
    display: flex; align-items: center; gap: 8px;
}
.section-title .icon {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.section-header-right {
    display: flex; align-items: center; gap: 8px;
}
.section-more {
    font-size: 13px; font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 14px; border-radius: var(--radius-pill);
    background: var(--bg-section); transition: all 0.15s;
    display: flex; align-items: center; gap: 4px;
}
.section-more:hover {
    background: var(--primary-bg); color: var(--primary);
}
.section-more i { font-size: 10px; }

/* ======== VIEW SELECTION GRIDS (지역별/업종별/테마별 클릭 시) ======== */
.view-grid { display: grid; gap: 10px; }
.view-grid-region { grid-template-columns: repeat(9, 1fr); }
.view-grid-cat { grid-template-columns: repeat(6, 1fr); }
/* 세부 지역: 컴팩트 pill (flex-wrap) */
.view-grid-sub {
    display: flex; flex-wrap: wrap; gap: 6px;
    grid-template-columns: none;
}
.vg-sub {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    transition: all 0.12s;
    white-space: nowrap;
}
.vg-sub:hover { border-color: var(--primary); background: var(--primary-bg); }
.vg-sub strong { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.vg-sub:hover strong { color: var(--primary); }
.vg-sub em {
    font-size: 11px; font-style: normal; font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-section);
    padding: 1px 6px; border-radius: var(--radius-pill);
}
.vg-sub:hover em { background: #fff; color: var(--primary); }
.vg-sub-all { background: var(--primary-bg); border-color: var(--primary); }
.vg-sub-all strong { color: var(--primary); }
.vg-sub-all em { background: var(--primary); color: #fff; }
.view-grid-theme { display: flex; flex-wrap: wrap; gap: 8px; }

.vg-region {
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 8px 10px;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius); text-align: center;
    transition: all 0.15s;
}
.vg-region:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.vg-region-img {
    display: block; width: 36px; height: 34px; margin-bottom: 8px;
    background: var(--map-img) no-repeat center top;
    background-size: 100% 200%;
}
.vg-region:hover .vg-region-img { background-position: center bottom; }
.vg-region strong { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.vg-region em { font-size: 11px; font-style: normal; color: var(--text-muted); margin-top: 2px; }
.vg-region:hover strong, .vg-region:hover em { color: var(--primary); }

.vg-cat {
    display: flex; flex-direction: column; align-items: center;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden;
    text-align: center; padding-bottom: 12px;
    transition: all 0.15s;
}
.vg-cat:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.vg-cat-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-section); margin-bottom: 10px; }
.vg-cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.vg-cat:hover .vg-cat-img img { transform: scale(1.06); }
.vg-cat strong { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.vg-cat em { font-size: 11px; font-style: normal; color: var(--text-muted); margin-top: 2px; }

.vg-theme {
    padding: 10px 18px; border-radius: var(--radius-pill);
    background: #fff; border: 1px solid var(--border);
    font-size: 14px; font-weight: 600; color: var(--text-secondary);
    transition: all 0.12s;
    display: inline-flex; align-items: center; gap: 6px;
}
.vg-theme:hover { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }
.vg-theme em { font-size: 11px; font-style: normal; opacity: 0.6; }

@media (max-width: 1024px) {
    .view-grid-region { grid-template-columns: repeat(6, 1fr); }
    .view-grid-cat { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .view-grid-region { grid-template-columns: repeat(4, 1fr); }
    .view-grid-cat { grid-template-columns: repeat(2, 1fr); }
    .vg-sub { padding: 6px 10px; }
    .vg-sub strong { font-size: 12px; }
    .vg-theme { padding: 8px 14px; font-size: 13px; }
}

/* ======== AD SECTION ======== */
.ad-section { padding: 16px 0; }
.adsec-loc { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-left: 4px; }

/* 프리미엄 그리드 (6열) */
.ad-grid-premium {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

/* 추천+스마트+그랜드 통합 그리드 (6열) */
.ad-grid-mixed {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.ad-mixed-cell { position: relative; }
.ad-mixed-cell .shop-card { height: 100%; }

/* 등급 라벨 (좌상단 작은 태그) */
.ad-mc-tag {
    position: absolute; top: 8px; left: 8px; z-index: 5;
    padding: 3px 9px; border-radius: 6px;
    font-size: 10px; font-weight: 800; color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.ad-mc-recommend .ad-mc-tag { background: linear-gradient(135deg,#f472b6,#db2777); }
.ad-mc-smart .ad-mc-tag { background: linear-gradient(135deg,#38bdf8,#0284c7); }
.ad-mc-grand .ad-mc-tag { background: linear-gradient(135deg,#94a3b8,#475569); }

@media (max-width: 1024px) {
    .ad-grid-premium, .ad-grid-mixed { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .ad-grid-premium, .ad-grid-mixed { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Swiper 네비 버튼 */
.swiper-nav { display: flex; gap: 4px; }
.swiper-nav-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: #fff; border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s;
}
.swiper-nav-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.swiper-nav-btn.swiper-button-disabled {
    opacity: 0.4; cursor: not-allowed;
    background: #fff !important; color: var(--text-disabled) !important; border-color: var(--border-light) !important;
}
/* Shop Swiper */
.shop-swiper { overflow: hidden; padding: 4px 4px 8px; margin: 0 -4px; }
.shop-swiper .swiper-wrapper { align-items: stretch; }
.shop-swiper .swiper-slide {
    width: 240px;
    height: auto !important;
    display: flex;
    flex-shrink: 0;
}
.shop-swiper .swiper-slide .shop-card {
    width: 100%;
    min-width: 0; max-width: none;
    display: flex; flex-direction: column;
}
.shop-swiper .swiper-slide .shop-card-image { flex-shrink: 0; }
.shop-swiper .swiper-slide .shop-card-body { flex: 1; display: flex; flex-direction: column; }
.shop-swiper .swiper-slide .shop-card-meta { margin-top: auto; }
@media (max-width: 480px) {
    .shop-swiper .swiper-slide { width: calc(50% - 6px); }

    /* 모바일: auto-scroll → 2열 그리드 전환 */
    .auto-scroll-wrap { overflow: visible !important; padding: 0 !important; }
    .auto-scroll {
        animation: none !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: auto !important;
        flex-wrap: wrap !important;
    }
    .auto-scroll .review-card {
        min-width: 0 !important; max-width: none !important;
        padding: 12px; flex-shrink: 1 !important;
    }
    .auto-scroll .review-card-avatar { width: 24px; height: 24px; font-size: 10px; }
    .auto-scroll .review-card-content { font-size: 12px; -webkit-line-clamp: 2; }
    .auto-scroll .review-stars i { font-size: 9px; }
    .auto-scroll .review-card-header { margin-bottom: 6px; }
    /* 복제분 숨기기 (8개까지만 표시) */
    .auto-scroll .review-card:nth-child(n+9) { display: none !important; }
    .auto-scroll > div:nth-child(n+9) { display: none !important; }
    .auto-scroll .shop-card { min-width: 0 !important; max-width: none !important; }
    .auto-scroll > div,
    .auto-scroll-card { min-width: 0 !important; max-width: none !important; flex-shrink: 1 !important; }

    /* 모바일 게시판 카드형 */
    .bl-row { padding: 12px; }
    .bl-avatar { display: none; }
    .bl-title { font-size: 14px; }
    .bl-meta { font-size: 11px; flex-wrap: wrap; }
    .comm-board-posts li { padding: 10px 12px; }
    .comm-board-posts li a { font-size: 12px; }

    /* 모바일 커뮤니티 게시판 카드 */
    .comm-boards-full { gap: 12px; }
    .comm-board-card { border-radius: var(--radius); }
    .comm-board-head { padding: 10px 14px; }
    .comm-rank-item { padding: 10px 14px; }
}

/* ======== CATEGORY TABS + GRID ======== */
.cat-tabs {
    display: flex; gap: 0; margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.cat-tab {
    padding: 8px 20px; font-size: 14px; font-weight: 700;
    color: var(--text-disabled); border-bottom: 2px solid transparent;
    margin-bottom: -1px; cursor: pointer;
    background: none; font-family: inherit;
}
.cat-tab:hover { color: var(--text-secondary); }
.cat-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.cat-grid {
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: flex-start;
}
.cat-item {
    display: flex; flex-direction: column; align-items: center;
    width: 72px; text-align: center; color: var(--text-primary);
}
.cat-item:hover { color: var(--text-dark); }
.cat-img {
    width: 56px; height: 56px; border-radius: 50%;
    overflow: hidden; margin-bottom: 6px;
    background: var(--bg-section);
    transition: all 0.15s;
}
.cat-item:hover .cat-img { box-shadow: 0 0 0 2px var(--primary); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-label { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--text-secondary); }

/* ======== CATEGORY PILLS ======== */
.category-scroll {
    display: flex; gap: 8px;
    overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-pill {
    display: flex; flex-direction: column; align-items: center;
    min-width: 72px; padding: 12px 6px;
    border-radius: var(--radius); background: #fff;
    border: 1px solid var(--border);
    text-align: center; flex-shrink: 0;
    color: var(--text-primary);
}
.category-pill:hover {
    border-color: var(--text-dark);
    color: var(--text-dark);
}
.category-pill .pill-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-section); color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; margin-bottom: 6px;
}
.category-pill:hover .pill-icon { background: var(--text-dark); color: #fff; }
.category-pill .pill-label { font-size: 12px; font-weight: 500; white-space: nowrap; }

/* ======== REGION GRID ======== */
.region-grid {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.region-tag {
    padding: 7px 14px; border-radius: var(--radius-pill);
    background: #fff; border: 1px solid var(--border);
    font-size: 13px; font-weight: 600; color: var(--text-primary);
    transition: all 0.15s;
}
.region-tag:hover {
    border-color: var(--text-dark); color: var(--text-dark);
    background: #fff;
}
.region-tag .count {
    font-size: 11px; color: var(--text-light); font-weight: 400;
    margin-left: 2px;
}

/* ======== SHOP CARD SCROLL ======== */
.shop-scroll {
    display: flex; gap: 12px;
    overflow-x: auto; padding-bottom: 8px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.shop-scroll::-webkit-scrollbar { display: none; }
.shop-scroll .shop-card {
    min-width: 240px; max-width: 240px;
    scroll-snap-align: start; flex-shrink: 0;
}

/* ======== SHOP CARD ======== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.shop-card {
    background: #fff; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.shop-card-image {
    position: relative; aspect-ratio: 4/3;
    overflow: hidden; background: var(--bg-section); display: block;
}
.shop-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s;
}
.shop-card:hover .shop-card-image img { transform: scale(1.03); }
.shop-card-badges {
    position: absolute; top: 6px; left: 6px; z-index: 2;
    display: flex; flex-wrap: wrap; gap: 3px;
}
.shop-card-fav {
    position: absolute; top: 6px; right: 6px; z-index: 2;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.85);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-disabled); font-size: 12px; cursor: pointer;
}
.shop-card-fav:hover, .shop-card-fav.active { color: var(--primary); }
/* 할인 % 배지 */
.shop-card-discount {
    position: absolute; bottom: 8px; left: 8px; z-index: 3;
    padding: 4px 10px; border-radius: 6px;
    background: #ef4444; color: #fff;
    font-size: 12px; font-weight: 700;
}

/* 섹션별 하이라이트 리본 (이미지 좌상단 또는 하단) */
.card-highlight {
    position: absolute; bottom: 8px; right: 8px; z-index: 3;
    padding: 4px 10px; border-radius: var(--radius-sm);
    font-size: 11px; font-weight: 700; color: #fff;
    display: flex; align-items: center; gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.card-highlight i { font-size: 11px; }
.hl-popular { background: linear-gradient(135deg, rgba(239,68,68,0.95), rgba(220,38,38,0.95)); }
.hl-new { background: linear-gradient(135deg, rgba(34,197,94,0.95), rgba(22,163,74,0.95)); letter-spacing: 0.5px; }
.hl-rating { background: linear-gradient(135deg, rgba(251,191,36,0.95), rgba(245,158,11,0.95)); }
.hl-premium { background: linear-gradient(135deg, rgba(168,85,247,0.95), rgba(126,34,206,0.95)); }

/* 할인 카드 + popular은 두 배지 동시 표시 안되게: 할인 % 가 좌하단, hl이 우하단 */
.shop-card-discount + .card-highlight { right: 8px; }
.shop-card-body { padding: 12px; }
.shop-card-title {
    font-size: 14px; font-weight: 700; color: var(--text-dark);
    margin-bottom: 3px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.shop-card-title a { color: var(--text-dark); }
.shop-card-title a:hover { color: var(--primary); }
.shop-card-location {
    font-size: 12px; color: var(--text-muted); margin-bottom: 6px;
    display: flex; align-items: center; gap: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-card-location i { color: var(--primary); font-size: 9px; }
.shop-card-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.shop-card-tags .tag {
    padding: 1px 6px; border-radius: var(--radius-pill);
    background: var(--bg-section); color: var(--text-muted); font-size: 10px; font-weight: 500;
}
.shop-card-meta {
    display: flex; justify-content: space-between; align-items: flex-end;
    padding-top: 6px; border-top: 1px solid var(--border-light);
}
.shop-card-price { font-size: 14px; font-weight: 800; color: var(--primary); }
.shop-card-price { min-height: 38px; display: flex; flex-direction: column; justify-content: flex-end; }
.shop-card-price .original {
    font-size: 11px; color: var(--text-disabled);
    text-decoration: line-through; font-weight: 400; margin-right: 3px;
    display: block; line-height: 1.3;
}
.shop-card-rating {
    display: flex; align-items: center; gap: 2px;
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
}
.shop-card-rating i { color: #fbbf24; font-size: 10px; }
.shop-card-rating .count { color: var(--text-light); font-weight: 400; }
.shop-card-cat {
    display: inline-block; padding: 1px 5px; border-radius: var(--radius-pill);
    background: var(--bg-section); font-size: 10px; color: var(--text-muted);
    margin-left: 3px; font-weight: 500;
}
.shop-card-price .sale { font-size: 14px; font-weight: 800; color: var(--primary); }

/* Rank badge */
.shop-card-wrap { position: relative; flex-shrink: 0; }
.shop-card-wrap .shop-card { min-width: 240px; max-width: 240px; }
.rank-badge {
    position: absolute; top: 8px; left: 8px; z-index: 5;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; color: #fff;
    background: var(--text-dark);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    border: 2px solid #fff;
}
.rank-badge.rank-1 { background: #f59e0b; }
.rank-badge.rank-2 { background: #94a3b8; }
.rank-badge.rank-3 { background: #b45309; }
/* 랭크 배지 있을 때 광고 배지를 우측으로 밀어냄 */
.shop-card-wrap .rank-badge ~ .shop-card .shop-card-badges,
.shop-card-wrap:has(.rank-badge) .shop-card-badges {
    left: auto; right: 44px;
}

/* ======== STAR ======== */
.star-rating { display: inline-flex; align-items: center; gap: 1px; }
.star { display: inline-block; width: 12px; height: 12px; }
.star::before { content: '\f005'; font-family: 'Font Awesome 6 Free'; font-weight: 400; font-size: 11px; color: var(--border); }
.star.full::before { font-weight: 900; color: #fbbf24; }
.star.half::before { font-weight: 900; color: #fbbf24; }
.rating-num { font-size: 12px; color: var(--text-secondary); margin-left: 3px; }

/* ======== SHOP LIST ======== */
.shop-list-item {
    display: flex; gap: 14px; padding: 14px;
    background: #fff; border-radius: var(--radius);
    border: 1px solid var(--border-light); margin-bottom: 8px;
}
.shop-list-item:hover { box-shadow: var(--shadow-card); }
.shop-list-thumb {
    width: 160px; height: 120px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0; background: var(--bg-section);
}
.shop-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-list-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shop-list-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.shop-list-info h3 a { color: var(--text-dark); }
.shop-list-info h3 a:hover { color: var(--primary); }
.shop-list-desc {
    font-size: 13px; color: var(--text-secondary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 6px; line-height: 1.5;
}
.shop-list-bottom {
    display: flex; justify-content: space-between; align-items: center; margin-top: auto;
}

/* ======== TIER ======== */
.tier-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.tier-header .tier-badge {
    padding: 4px 12px; border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 800; color: #fff;
    display: flex; align-items: center; gap: 3px;
}
.tier-premium { background: #e65100; }
.tier-recommend { background: var(--primary); }
.tier-smart { background: #0097a7; }
.tier-grand { background: #78909c; }
.tier-header h2 { font-size: 16px; font-weight: 800; }
.tier-header .tier-count { font-size: 12px; color: var(--text-muted); margin-left: auto; }

/* ======== COMMUNITY ======== */
.comm-wrap { padding: 28px 20px; }
.comm-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.comm-title { font-size: 24px; font-weight: 800; }

/* 유저 카드 */
.comm-user-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; background: #fff;
    border: 1px solid var(--border-light); border-radius: var(--radius);
    margin-bottom: 20px;
}
.comm-user-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.comm-user-info { flex: 1; }
.comm-user-info strong { font-size: 15px; margin-right: 4px; }
.comm-user-info p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* 게시판 가로 네비 */
.comm-nav {
    display: flex; gap: 6px; margin-bottom: 24px;
    overflow-x: auto; scrollbar-width: none;
    padding-bottom: 4px;
}
.comm-nav::-webkit-scrollbar { display: none; }
.comm-nav-item {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    white-space: nowrap; transition: all 0.15s;
}
.comm-nav-item:hover {
    border-color: var(--primary); color: var(--primary); background: var(--primary-bg);
}
.comm-nav-item i { font-size: 12px; opacity: 0.6; }

/* 인기글 */
.comm-popular { margin-bottom: 24px; }
.comm-section-head { margin-bottom: 10px; }
.comm-section-head h2 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.comm-popular-list {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden;
}
.comm-popular-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px; color: var(--text-primary);
    transition: background 0.1s;
}
.comm-popular-item:last-child { border-bottom: none; }
.comm-popular-item:hover { background: var(--bg-light); }
.comm-rank {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--bg-section); color: var(--text-muted);
    font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.comm-popular-item:nth-child(1) .comm-rank { background: var(--primary); color: #fff; }
.comm-popular-item:nth-child(2) .comm-rank { background: var(--primary-light); color: var(--primary); }
.comm-pop-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.comm-pop-board { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.comm-pop-stat { font-size: 12px; color: var(--text-disabled); flex-shrink: 0; }

/* 게시판 카드 그리드 */
.comm-boards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.comm-board-card {
    background: #fff; border-radius: var(--radius);
    border: 1px solid var(--border-light); overflow: hidden;
}
.comm-board-head {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.comm-board-icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--primary-bg); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; flex-shrink: 0;
}
.comm-board-head h3 { flex: 1; font-size: 14px; font-weight: 700; }
.comm-board-head h3 a { color: var(--text-dark); }
.comm-board-more { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.comm-board-posts { list-style: none; }
.comm-board-posts li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 16px; border-bottom: 1px solid var(--border-light);
}
.comm-board-posts li:last-child { border-bottom: none; }
.comm-board-posts li:hover { background: var(--bg-light); }
.comm-board-posts li a {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px;
    font-size: 13px; color: var(--text-primary);
    overflow: hidden;
}
.comm-board-posts .post-title {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.comm-board-posts .post-title:hover { color: var(--primary); }
.comm-board-posts .post-cmt { color: var(--primary); font-size: 12px; font-style: normal; flex-shrink: 0; }
.comm-board-posts .post-date { font-size: 11px; color: var(--text-disabled); flex-shrink: 0; margin-left: 8px; }
.comm-board-posts .post-new {
    display: inline-block; width: 4px; height: 4px;
    border-radius: 50%; background: var(--primary); margin-left: 3px; vertical-align: middle; flex-shrink: 0;
}
.comm-empty { padding: 20px 16px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ======== COMM HERO ======== */
.comm-hero {
    background: var(--bg-dark); color: #fff;
    padding: 32px 0;
}
.comm-hero h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.comm-hero p { font-size: 14px; color: rgba(255,255,255,0.6); }
.comm-hero-user {
    display: flex; align-items: center; gap: 10px;
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px; color: rgba(255,255,255,0.8);
}
.comm-hero-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex-shrink: 0;
}

/* 게시판 카드 그리드 */
.comm-board-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin-bottom: 24px;
}
.comm-bcard {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.comm-bcard:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-card);
}
.comm-bcard-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
.comm-bcard-info { flex: 1; min-width: 0; padding-left: 2px; }
.comm-bcard-info strong { display: block; font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; }
.comm-bcard-info span { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.comm-bcard-cnt {
    font-size: 14px; font-weight: 800; color: var(--text-disabled);
    flex-shrink: 0; margin-left: 4px;
}

/* 2열 레이아웃 */
.comm-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.comm-section { margin-bottom: 20px; }
.comm-section-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.comm-section-head h2 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.comm-section-head a { font-size: 13px; color: var(--text-muted); }
.comm-section-icon {
    width: 24px; height: 24px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px;
}

/* 인기글 랭킹 */
.comm-rank-list {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden;
}
.comm-rank-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px; border-bottom: 1px solid var(--border-light);
    color: var(--text-primary); transition: background 0.1s;
}
.comm-rank-item:last-child { border-bottom: none; }
.comm-rank-item:hover { background: var(--bg-light); }
.comm-rank-num {
    width: 22px; height: 22px; border-radius: 6px;
    background: var(--bg-section); color: var(--text-muted);
    font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.comm-rank-num.top { background: var(--primary); color: #fff; }
.comm-rank-body { flex: 1; min-width: 0; }
.comm-rank-title { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-rank-meta { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.comm-rank-views { font-size: 12px; color: var(--text-disabled); flex-shrink: 0; }

/* 게시판별 최신글 */
.comm-boards-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.comm-simple-list {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden;
}
.comm-slist-item {
    display: flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-bottom: 1px solid var(--border-light);
    font-size: 13px; color: var(--text-primary); transition: background 0.1s;
}
.comm-slist-item:last-child { border-bottom: none; }
.comm-slist-item:hover { background: var(--bg-light); }
.comm-slist-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.comm-slist-title em { color: var(--primary); font-style: normal; font-size: 12px; }
.comm-slist-date { font-size: 11px; color: var(--text-disabled); flex-shrink: 0; }
.comm-empty-box { padding: 24px; text-align: center; color: var(--text-muted); font-size: 13px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); }

/* ======== BOARD (게시판 목록) ======== */
.board-layout { display: flex; gap: 24px; }
.board-side { width: 180px; flex-shrink: 0; }
.board-side-title { font-size: 16px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--text-dark); }
.board-side-nav { display: flex; flex-direction: column; gap: 2px; }
.board-side-nav a {
    padding: 9px 12px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    transition: background 0.1s, color 0.1s;
}
.board-side-nav a:hover { background: var(--bg-section); color: var(--text-dark); }
.board-side-nav a.active { background: var(--primary-bg); color: var(--primary); font-weight: 700; }

.board-main { flex: 1; min-width: 0; }

/* 보드 헤더 카드 */
.board-head-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; margin-bottom: 14px;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius);
}
.board-head-icon { font-size: 24px; flex-shrink: 0; }
.board-head-info { flex: 1; }
.board-head-info h1 { font-size: 20px; font-weight: 800; color: var(--text-dark); }
.board-head-info p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.board-head-stat { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.board-head-stat strong { color: var(--text-dark); }

/* 툴바 */
.board-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px; margin-bottom: 12px;
}
.board-search-box {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-section); border-radius: var(--radius-pill);
    padding: 0 14px; height: 36px;
}
.board-search-box i { font-size: 13px; color: var(--text-muted); }
.board-search-box input {
    border: none; background: transparent; outline: none;
    font-size: 13px; height: 100%; width: 180px; color: var(--text-primary);
}
.board-search-box input::placeholder { color: var(--text-light); }

/* 공지 */
.board-notices {
    background: #fffbf0; border: 1px solid #fde68a;
    border-radius: var(--radius); overflow: hidden; margin-bottom: 8px;
}
.board-notice-row {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-bottom: 1px solid rgba(253,230,138,0.5);
    font-size: 14px; color: var(--text-primary); transition: background 0.1s;
}
.board-notice-row:last-child { border-bottom: none; }
.board-notice-row:hover { background: rgba(253,230,138,0.2); }
.post-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: var(--radius-sm);
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.bn-title { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-date { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* 글 목록 (커뮤니티형) */
.board-list {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden;
}
.bl-row {
    display: flex; gap: 18px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    transition: background 0.1s;
}
.bl-row .bl-content { padding-left: 2px; }
.bl-row .bl-title-line { gap: 8px; margin-bottom: 6px; }
.bl-row .bl-preview { margin-bottom: 8px; line-height: 1.5; }
.bl-row:last-child { border-bottom: none; }
.bl-row:hover { background: var(--bg-light); }

.bl-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-section); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex-shrink: 0; margin-top: 2px;
}
.bl-content { flex: 1; min-width: 0; }
.bl-title-line { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.bl-title {
    font-size: 15px; font-weight: 600; color: var(--text-dark);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bl-row:hover .bl-title { color: var(--primary); }
.bl-cmt {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--primary);
    color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.bl-preview {
    font-size: 13px; color: var(--text-muted); line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    margin-bottom: 6px;
}
.bl-meta {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--text-disabled);
}
.bl-author { color: var(--text-secondary); font-weight: 600; }
.bl-dot { color: var(--text-disabled); }
.bl-meta i { font-size: 10px; margin-right: 1px; }

.post-new {
    display: inline-block; width: 5px; height: 5px;
    border-radius: 50%; background: var(--primary); flex-shrink: 0;
}
.post-empty { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.post-empty i { font-size: 32px; margin-bottom: 10px; display: block; opacity: 0.3; }

/* ======== POST VIEW (게시글 상세) ======== */
.post-view {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
}
.pv-header { padding: 24px 24px 16px; border-bottom: 1px solid var(--border-light); }
.pv-board {
    display: inline-block; padding: 3px 10px; border-radius: var(--radius-sm);
    background: var(--primary-bg); color: var(--primary);
    font-size: 12px; font-weight: 700; margin-bottom: 10px;
}
.pv-title { font-size: 20px; font-weight: 800; color: var(--text-dark); margin-bottom: 14px; line-height: 1.4; }
.pv-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.pv-author { display: flex; align-items: center; gap: 10px; }
.pv-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.pv-author strong { font-size: 14px; margin-right: 2px; }
.pv-author time { display: block; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.pv-stats { display: flex; gap: 12px; font-size: 13px; color: var(--text-muted); }
.pv-stats i { margin-right: 2px; font-size: 12px; }
.pv-content { padding: 24px; min-height: 180px; line-height: 1.8; font-size: 15px; color: var(--text-primary); word-break: break-word; }
.pv-content img { max-width: 100%; height: auto; border-radius: 5px; margin: 8px 0; }
.pv-content a { color: var(--primary); text-decoration: underline; }
.pv-content table { border-collapse: collapse; max-width: 100%; margin: 8px 0; }
.pv-content table td, .pv-content table th { border: 1px solid var(--border-light); padding: 6px 10px; }
.pv-content ul, .pv-content ol { margin: 8px 0 8px 24px; }
.pv-content p { margin: 8px 0; }
.pv-content blockquote { border-left: 3px solid var(--border); padding-left: 12px; color: var(--text-muted); margin: 8px 0; }
.pv-content iframe { display: none; }
@media (max-width: 600px) {
    .pv-content { padding: 16px; font-size: 14px; }
}
.pv-actions { padding: 16px 24px; border-top: 1px solid var(--border-light); display: flex; justify-content: space-between; }

/* 이전/다음 글 */
.pv-nav {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden; margin-bottom: 20px;
}
.pv-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--border-light);
    color: var(--text-primary); transition: background 0.1s;
}
.pv-nav-item:last-child { border-bottom: none; }
.pv-nav-item:hover { background: var(--bg-light); }
.pv-nav-label { font-size: 12px; font-weight: 700; color: var(--text-muted); white-space: nowrap; min-width: 60px; }
.pv-nav-label i { margin-right: 3px; font-size: 10px; }
.pv-nav-title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ======== COMMENTS ======== */
.comment-section { margin-top: 4px; }
.comment-title {
    font-size: 16px; font-weight: 800; margin-bottom: 14px;
    display: flex; align-items: center; gap: 6px;
}
.comment-title em { font-style: normal; color: var(--primary); font-size: 15px; }

.comment-form {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
}
.comment-form-inner { display: flex; gap: 12px; }
.comment-form-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0; margin-top: 2px;
}
.comment-form-inner .form-control { flex: 1; min-height: 60px; resize: vertical; }
.comment-form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.comment-point { font-size: 12px; color: var(--text-muted); }
.comment-point i { color: var(--secondary); margin-right: 2px; }

.comment-login {
    text-align: center; padding: 16px;
    background: var(--bg-section); border-radius: var(--radius);
    font-size: 14px; color: var(--text-muted); margin-bottom: 16px;
    word-break: keep-all; overflow-wrap: break-word;
}
.comment-login a { color: var(--primary); font-weight: 600; }

.comment-list {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden;
}
.comment-item {
    display: flex; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--bg-section); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px; flex-shrink: 0; margin-top: 2px;
}
.comment-body { flex: 1; min-width: 0; }
.comment-head { margin-bottom: 4px; }
.comment-head strong { font-size: 14px; margin-right: 3px; }
.comment-head time { font-size: 12px; color: var(--text-muted); margin-left: 6px; }
.comment-body p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.comment-empty { text-align: center; padding: 28px; color: var(--text-muted); font-size: 14px; }

/* ======== REVIEW SCROLL ======== */
.review-scroll {
    display: flex; gap: 12px;
    overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: none;
}
.review-scroll::-webkit-scrollbar { display: none; }
.review-card {
    min-width: 260px; max-width: 260px; flex-shrink: 0;
    padding: 14px; background: #fff;
    border-radius: var(--radius); border: 1px solid var(--border-light);
}
.review-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.review-card-user { display: flex; align-items: center; gap: 8px; }
.review-card-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.review-card-content {
    font-size: 13px; color: var(--text-secondary); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-stars { display: flex; gap: 1px; align-items: center; }
.review-stars i { font-size: 11px; color: #fbbf24; }
.review-card-date { font-size: 11px; color: var(--text-disabled); margin-top: 8px; }
.review-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.review-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

/* ======== AUTO SCROLL ======== */
@keyframes scroll-flow {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.auto-scroll-wrap {
    overflow: hidden;
    padding: 6px 0;
}
.auto-scroll {
    display: flex;
    width: max-content;
    animation: scroll-flow var(--scroll-speed, 30s) linear infinite;
}
.auto-scroll:hover { animation-play-state: paused; }
.auto-scroll-card { min-width: 240px; max-width: 240px; flex-shrink: 0; }
.auto-scroll .review-card { min-width: 260px; max-width: 260px; flex-shrink: 0; }
.auto-scroll .shop-card { min-width: 240px; max-width: 240px; }

/* ======== ENTRANCE ANIMATIONS ======== */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.section { animation: fade-up 0.5s ease both; }
.section:nth-child(2) { animation-delay: 0.05s; }
.section:nth-child(3) { animation-delay: 0.1s; }
.section:nth-child(4) { animation-delay: 0.15s; }
.shop-card, .review-card, .new-shop-card {
    animation: fade-up 0.4s ease both;
}
.shop-scroll .shop-card:nth-child(1) { animation-delay: 0s; }
.shop-scroll .shop-card:nth-child(2) { animation-delay: 0.05s; }
.shop-scroll .shop-card:nth-child(3) { animation-delay: 0.1s; }
.shop-scroll .shop-card:nth-child(4) { animation-delay: 0.15s; }
.shop-scroll .shop-card:nth-child(5) { animation-delay: 0.2s; }
.shop-grid .shop-card:nth-child(n) { animation-delay: calc(var(--i, 0) * 0.05s); }

/* ======== CTA POSTER (Magazine / Club Flyer) ======== */
.cta-wide.cta-poster {
    position: relative;
    background-color: #0a0608;
    background-size: cover; background-position: center;
    color: #fff; overflow: hidden;
    margin-bottom: -40px;
    isolation: isolate;
    min-height: 560px;
    display: flex; align-items: stretch;
}
@media (max-width: 768px) { .cta-wide.cta-poster { margin-bottom: -20px; min-height: 480px; } }

/* 노이즈/그레인 */
.ctp-grain {
    position: absolute; inset: 0; z-index: 1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.5; mix-blend-mode: overlay; pointer-events: none;
}
/* 비네트 (좌측 영역만 어둡게 - 텍스트 가독성용) */
.ctp-vignette {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.15) 70%, transparent 100%),
        linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.4) 100%);
}

/* 컨테이너 */
.ctp-container {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    padding-top: 50px; padding-bottom: 40px;
    width: 100%;
}

/* 상단 메타 */
.ctp-top {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 36px;
    font-family: 'Courier New', monospace;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
}
.ctp-line { flex: 1; max-width: 80px; height: 1px; background: rgba(255,255,255,0.4); }

/* 거대 타이틀 */
.ctp-title {
    font-size: 84px; font-weight: 900;
    line-height: 0.95; letter-spacing: -3px;
    margin: 0 0 auto 0;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.ctp-l1, .ctp-l2, .ctp-l3 { display: block; }
.ctp-l1 {
    font-size: 38px; font-weight: 700;
    letter-spacing: -1.2px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 8px;
}
.ctp-l2 { padding-left: 30px; }
.ctp-l3 { padding-left: 60px; }
.ctp-l3 em {
    font-style: normal;
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.ctp-l3 em::after {
    content: ""; position: absolute;
    left: -2px; right: -2px; bottom: 6px;
    height: 12px; background: rgba(236,143,163,0.25);
    z-index: -1;
}

/* 하단 영역 */
.ctp-bottom {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 30px; margin-top: 40px; flex-wrap: wrap;
}
.ctp-desc {
    font-size: 15px; line-height: 1.7;
    color: rgba(255,255,255,0.85);
    max-width: 380px;
    border-left: 2px solid var(--primary);
    padding: 4px 0 4px 16px;
}

.ctp-btn {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 18px 28px;
    background: #fff; color: #0a0608 !important;
    text-decoration: none;
    font-size: 17px; font-weight: 800;
    letter-spacing: -0.3px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    border: 2px solid #fff;
    flex-shrink: 0;
}
.ctp-btn:hover {
    background: var(--primary); color: #fff !important;
    border-color: var(--primary);
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 #fff;
}
.ctp-btn i { font-size: 14px; transition: transform 0.2s; }
.ctp-btn:hover i { transform: translateX(4px); }

/* 풋터 */
.ctp-foot {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-family: 'Courier New', monospace;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
    display: flex; gap: 12px; flex-wrap: wrap;
}

@media (max-width: 768px) {
    .ctp-container { padding-top: 30px; padding-bottom: 28px; }
    .ctp-top { margin-bottom: 24px; gap: 8px; font-size: 10px; }
    .ctp-line { max-width: 30px; }
    .ctp-title { font-size: 48px; letter-spacing: -1.5px; }
    .ctp-l1 { font-size: 22px; }
    .ctp-l2 { padding-left: 14px; }
    .ctp-l3 { padding-left: 28px; }
    .ctp-l3 em::after { height: 7px; bottom: 3px; }
    .ctp-bottom { flex-direction: column; align-items: stretch; gap: 18px; margin-top: 30px; }
    .ctp-desc { font-size: 13px; max-width: none; }
    .ctp-btn { justify-content: center; padding: 14px 22px; font-size: 15px; }
    .ctp-foot { font-size: 10px; gap: 8px; }
}
@media (max-width: 480px) {
    .ctp-title { font-size: 38px; }
    .ctp-l1 { font-size: 18px; }
}

/* ======== Review List Page ======== */
.rv-list { display: flex; flex-direction: column; gap: 12px; }
.rv-item {
    display: flex; gap: 14px;
    padding: 16px; background: #fff;
    border-radius: var(--radius); border: 1px solid var(--border-light);
}
.rv-item:hover { box-shadow: var(--shadow-card); }
.rv-thumb {
    width: 110px; height: 82px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0; background: var(--bg-section);
}
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-body { flex: 1; min-width: 0; }
.rv-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 6px;
}
.rv-user { display: flex; align-items: center; gap: 8px; }
.rv-stars { display: flex; gap: 1px; flex-shrink: 0; }
.rv-stars i { font-size: 12px; color: #fbbf24; }
.rv-shop {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 12px; color: var(--text-muted);
    margin-bottom: 6px;
}
.rv-shop:hover { color: var(--primary); }
.rv-shop i { font-size: 10px; }
.rv-shop span { color: var(--text-disabled); }
.rv-text { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.rv-reply {
    margin-top: 10px; padding: 10px 12px;
    background: var(--bg-section); border-radius: var(--radius-sm);
    font-size: 13px; line-height: 1.6;
}
.rv-reply strong {
    color: var(--primary); font-size: 12px;
    display: block; margin-bottom: 3px;
}
@media (max-width: 768px) {
    .rv-item { flex-direction: column; }
    .rv-thumb { width: 100%; height: 150px; }
}

/* ======== PAGINATION ======== */
.pagination { display: flex; justify-content: center; gap: 3px; padding: 24px 0; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 6px;
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
    color: var(--text-secondary); border: 1px solid var(--border); background: #fff;
}
.page-link:hover { border-color: var(--text-dark); color: var(--text-dark); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ======== BREADCRUMBS ======== */
.breadcrumbs { padding: 10px 0; font-size: 12px; }
.breadcrumbs ol { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.breadcrumbs li {
    display: flex; align-items: center; color: var(--text-muted);
}
.breadcrumbs li::after {
    content: '/'; color: var(--text-disabled); font-size: 11px;
    margin: 0 6px;
}
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs li:last-child { color: var(--text-secondary); font-weight: 600; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }

/* ======== FORMS ======== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.form-label .required { color: var(--danger); }
.form-control {
    display: block; width: 100%; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; background: #fff; transition: border-color 0.15s;
}
.form-control:focus { outline: none; border-color: var(--text-dark); box-shadow: 0 0 0 2px rgba(57,57,57,0.06); }
.form-control.is-invalid { border-color: var(--danger); }
.form-select { cursor: pointer; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.form-error { font-size: 11px; color: var(--danger); margin-top: 3px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

/* ======== BUTTONS ======== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 700; border: 1px solid transparent;
    cursor: pointer; white-space: nowrap; transition: all 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 6px rgba(238,81,159,0.18); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 4px 12px rgba(238,81,159,0.25); }
.btn-secondary { background: #fff; color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text-dark); color: var(--text-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; color: var(--text-dark); border-color: var(--text-dark); }
.btn-outline:hover { background: var(--text-dark); color: #fff; }
.btn-pink { background: var(--primary); color: #fff; }
.btn-pink:hover { background: var(--primary-dark); color: #fff; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }

/* ======== CARD ======== */
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border-light); overflow: hidden; }
.card-header { padding: 12px 16px; border-bottom: 1px solid var(--border-light); font-weight: 700; font-size: 14px; }
.card-body { padding: 16px; }

/* ======== TABS ======== */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab-link {
    padding: 10px 18px; font-size: 14px; font-weight: 600;
    color: var(--text-disabled); border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tab-link:hover { color: var(--text-secondary); }
.tab-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ======== AUTH ======== */
.auth-container { max-width: 400px; margin: 40px auto; padding: 0 20px; }
.auth-card {
    background: #fff; border-radius: var(--radius-lg); padding: 32px;
    border: 1px solid var(--border-light);
}
.auth-title { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 4px; color: var(--text-dark); }
.auth-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 24px; font-size: 13px; }
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 18px 0; color: var(--text-light); font-size: 12px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.sns-login-btns { display: flex; gap: 8px; margin-bottom: 18px; }
.btn-naver { flex: 1; padding: 10px; background: #03c75a; color: #fff; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; text-align: center; }
.btn-naver:hover { opacity: 0.9; color: #fff; }
.btn-kakao { flex: 1; padding: 10px; background: #fee500; color: #3c1e1e; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; text-align: center; }
.btn-kakao:hover { opacity: 0.9; color: #3c1e1e; }
.auth-links { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.auth-links a { color: var(--primary); font-weight: 600; }

/* ======== AUTOCOMPLETE DROPDOWN ======== */
.ac-dropdown {
    position: fixed;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    max-height: 400px; overflow-y: auto;
    z-index: 9999;
    display: none;
}
.ac-dropdown.open { display: block; }
.ac-group { padding: 6px 0; }
.ac-group + .ac-group { border-top: 1px solid var(--border-light); }
.ac-label {
    padding: 6px 16px 4px; font-size: 11px; font-weight: 700;
    color: var(--text-muted); letter-spacing: 0.3px;
}
.ac-label i { margin-right: 4px; font-size: 10px; color: var(--primary); }
.ac-row {
    display: block; padding: 10px 16px;
    color: var(--text-primary); transition: background 0.08s;
}
.ac-row:hover { background: var(--primary-bg); }
.ac-row-main { font-size: 14px; font-weight: 600; }
.ac-row-main mark { background: none; color: var(--primary); font-weight: 800; }
.ac-row-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.ac-all {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 16px; font-size: 13px; font-weight: 600;
    color: var(--primary); border-top: 1px solid var(--border-light);
}
.ac-all:hover { background: var(--primary-bg); }
.ac-all i { font-size: 12px; }
.ac-empty {
    padding: 24px 16px; text-align: center;
    font-size: 14px; color: var(--text-muted);
}
.ac-empty i { margin-right: 4px; }

/* 다크모드 토글 */
.theme-toggle-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.theme-toggle-btn:hover { background: var(--bg-section); color: var(--text-dark); }

/* ======== SCROLL TOP ======== */
.scroll-top-btn {
    position: fixed; bottom: 76px; right: 16px;
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; color: var(--text-secondary);
    box-shadow: var(--shadow-card); border: 1px solid var(--border);
    font-size: 14px; opacity: 0; visibility: hidden; z-index: 899;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.2s;
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { color: var(--text-dark); border-color: var(--text-dark); }

/* ======== FOOTER ======== */
.main-footer {
    background: var(--bg-section); color: var(--text-muted);
    padding: 32px 0 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex; justify-content: space-between; gap: 32px;
    padding-bottom: 20px;
}
.footer-logo { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.footer-logo i { margin-right: 4px; }
.footer-company p { font-size: 12px; line-height: 1.8; color: var(--text-light); }
.footer-links { display: flex; gap: 40px; }
.footer-link-group h4 { font-size: 12px; font-weight: 700; color: var(--text-secondary); margin-bottom: 10px; }
.footer-link-group a { display: block; font-size: 12px; color: var(--text-light); padding: 2px 0; }
.footer-link-group a:hover { color: var(--text-dark); }
.footer-link-group a.highlight { color: var(--primary); font-weight: 600; }
.footer-bottom {
    padding: 14px 0; text-align: center; font-size: 11px; color: var(--text-disabled);
    border-top: 1px solid var(--border);
}
.footer-disclaimer { margin-top: 2px; font-size: 10px; }

/* ======== BOTTOM NAV ======== */
.fixed-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-h);
    background: #fff;
    border-top: 1px solid var(--border);
    display: none; /* shown on mobile */
    justify-content: space-around; align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bnav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1; height: 100%;
    font-size: 10px; font-weight: 500; color: var(--text-light);
    gap: 3px; text-decoration: none;
    transition: color 0.15s;
}
.bnav-item i { font-size: 18px; }
.bnav-item.active { color: var(--text-dark); }
.bnav-item.active i { color: var(--text-dark); }
.bnav-center { position: relative; }
.bnav-center-btn {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #555 14%, #171717 66%, #262626 85%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-top: -20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.bnav-center span:last-child { margin-top: -2px; }
.bnav-center.active .bnav-center-btn { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }

/* ======== ADMIN (see admin.css for full styles) ======== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; align-items: center; justify-content: center; z-index: 10000; }
.modal-overlay.active { display: flex; }
.modal { background: #fff; border-radius: 6px; width: 90%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eaedf3; }
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #8896a8; }
.modal-close:hover { background: #f5f6f8; }
.modal-body { padding: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid #eaedf3; }
.signature-pad { border: 2px dashed #dde2eb; border-radius: 8px; background: #fafbfc; cursor: crosshair; touch-action: none; }

/* ======== VIEW PAGE ======== */
.view-page { padding-bottom: 70px; background: var(--bg-white); }
/* 인라인 갤러리 */
.v-gallery-swiper {
    border-radius: var(--radius); overflow: hidden;
    height: 280px;
}
.v-gallery-swiper .swiper-wrapper,
.v-gallery-swiper .swiper-slide { height: 100%; }
.v-gallery-swiper .swiper-slide img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.v-gallery-swiper .swiper-pagination-bullet { background: #fff; opacity: 0.5; }
.v-gallery-swiper .swiper-pagination-bullet-active { opacity: 1; }
/* 썸네일 네비게이션 */
.v-gallery-thumbs {
    margin-top: 6px; height: 56px;
    border-radius: var(--radius-sm); overflow: hidden;
}
.v-gallery-thumbs .swiper-slide {
    border-radius: var(--radius-sm); overflow: hidden;
    opacity: 0.5; cursor: pointer; border: 2px solid transparent;
    transition: opacity 0.15s, border-color 0.15s;
}
.v-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1; border-color: var(--primary);
}
.v-gallery-thumbs .swiper-slide img {
    width: 100%; height: 100%; object-fit: cover;
}

@media (max-width: 768px) { .v-gallery-swiper { height: 220px; } .v-gallery-thumbs { height: 48px; } }
@media (max-width: 480px) { .v-gallery-swiper { height: 180px; } .v-gallery-thumbs { height: 40px; } }
/* 상단 2단 레이아웃 */
.v-top-split {
    display: flex; gap: 24px;
    margin-bottom: 16px; padding-top: 8px;
    align-items: stretch;  /* 갤러리/정보 영역 같은 높이 */
}
.v-top-gallery {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    background: transparent;
}
/* 갤러리: 남은 세로 공간을 우측 정보 높이에 맞춰 자동 채움 (썸네일 높이 제외) */
.v-top-gallery .v-gallery-swiper {
    width: 100%;
    flex: 1;
    min-height: 280px;
    max-height: 400px;  /* 너무 길어지는 것만 방지 */
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-section);
}
.v-top-gallery .v-gallery-thumbs {
    width: 100%;
    margin-top: 8px; flex-shrink: 0;
    height: 64px;
    border-radius: var(--radius-sm);
}
.v-no-image {
    width: 100%;
    flex: 1; min-height: 280px; max-height: 400px;
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-section);
}
@media (max-width: 768px) {
    .v-top-gallery .v-gallery-swiper,
    .v-no-image { height: 240px; max-height: 240px; flex: none; }
    .v-top-gallery .v-gallery-thumbs { height: 52px; }
}
.v-no-image img { width: 100%; height: 100%; object-fit: cover; }

.v-top-info {
    width: 360px; flex-shrink: 0;
    display: flex; flex-direction: column;
}
.v-top-info .v-title { font-size: 22px; margin-bottom: 6px; }
.v-top-info .v-badges { margin-bottom: 8px; }
.v-top-info .v-meta { margin-bottom: 16px; }

/* 정보 리스트 */
.v-info-list { flex: 1; }
.v-il-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.v-il-row:last-child { border-bottom: none; }
.v-il-row i { width: 16px; text-align: center; font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.v-il-row span { font-size: 13px; color: var(--text-muted); min-width: 56px; flex-shrink: 0; }
.v-il-row strong { flex: 1; font-size: 14px; color: var(--text-dark); font-weight: 600; }
.v-il-row strong del { color: var(--text-disabled); font-weight: 400; font-size: 12px; margin-right: 4px; }
.v-il-row strong a { color: var(--primary); }

.v-top-actions {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 16px;
}
.v-top-actions .btn {
    flex: 1 1 auto; min-width: 0;
    white-space: nowrap;
}
.v-top-actions .btn-favorite { flex: 0 0 auto; }
.v-top-actions .btn-report { flex: 0 0 auto; }

@media (max-width: 768px) {
    .v-top-split { flex-direction: column; gap: 16px; align-items: stretch; }
    .v-top-info { width: 100%; }
    .v-top-gallery { width: 100%; }
    .v-top-gallery .v-gallery-swiper,
    .v-no-image { height: 220px; min-height: 220px; max-height: 220px; flex: none; }
    .v-top-gallery .v-gallery-thumbs { height: 48px; }
}
@media (max-width: 480px) {
    .v-top-gallery .v-gallery-swiper,
    .v-no-image { height: 180px; min-height: 180px; max-height: 180px; }
    .v-top-gallery .v-gallery-thumbs { height: 40px; }
}
.view-discount {
    position: absolute; top: 12px; left: 12px;
    background: var(--primary); color: #fff;
    padding: 5px 14px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 800;
}
.view-fav-btn {
    position: absolute; top: 12px; right: 12px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.9); color: var(--text-disabled);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; cursor: pointer; border: none;
}
.view-fav-btn:hover, .view-fav-btn.active { color: var(--primary); }

.v-header { padding: 20px 0 0; }
.v-badges { display: flex; gap: 5px; margin-bottom: 8px; }
.v-title { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.v-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-muted);
}
.v-meta i { margin-right: 2px; font-size: 11px; }
.v-rating { color: var(--text-dark); font-weight: 700; }
.v-rating i { color: #fbbf24; }
.v-rating span { color: var(--text-muted); font-weight: 400; }

.v-info-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    margin: 16px 0 20px;
}
.v-info-item {
    display: flex; align-items: center; gap: 10px;
    padding: 14px; background: #fff;
    border-radius: var(--radius); border: 1px solid var(--border-light);
}
.v-info-item > i {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg-section); color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
}
.v-info-item small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 600; margin-bottom: 1px; }
.v-info-item strong { font-size: 13px; color: var(--text-dark); display: block; }
.v-info-item strong del { color: var(--text-disabled); font-weight: 400; font-size: 11px; margin-right: 3px; }
.v-info-item strong a { color: var(--primary); }

.v-section {
    background: #fff; border-radius: var(--radius);
    padding: 20px; margin-bottom: 8px;
    border: 1px solid var(--border-light);
}
.v-stitle {
    font-size: 16px; font-weight: 800; color: var(--text-dark);
    margin-bottom: 14px; display: flex; align-items: center; gap: 5px;
}
.v-stitle i { color: var(--primary); font-size: 14px; }
.v-stitle-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.v-stitle-row .v-stitle { margin-bottom: 0; }
.v-cnt {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 700;
    min-width: 22px; height: 20px; padding: 0 6px;
    border-radius: var(--radius-pill); margin-left: 5px;
}

.v-facilities { display: flex; flex-wrap: wrap; gap: 6px; }
.v-facility {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: var(--radius-pill);
    background: var(--bg-section); border: 1px solid var(--border-light);
    font-size: 13px; font-weight: 500; color: var(--text-secondary);
}
.v-facility i { color: var(--text-muted); font-size: 11px; }

.v-menus { display: flex; flex-direction: column; }
.v-menu {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--border-light);
}
.v-menu:last-child { border-bottom: none; }
.v-menu strong { font-size: 14px; color: var(--text-dark); }
.v-menu p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.v-dur {
    display: inline-flex; align-items: center; gap: 2px;
    margin-top: 3px; font-size: 11px; color: #fff;
    background: var(--text-muted); padding: 2px 7px;
    border-radius: var(--radius-pill);
}
.v-mprice { text-align: right; flex-shrink: 0; margin-left: 14px; }
.v-mprice del { display: block; font-size: 12px; color: var(--text-disabled); }
.v-mprice em { font-style: normal; font-size: 16px; font-weight: 800; color: var(--primary); }

.v-coupons { display: flex; gap: 8px; flex-wrap: wrap; }
.v-coupon {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius);
    border: 1.5px dashed var(--primary); background: var(--primary-bg);
    flex: 1; min-width: 200px;
}
.vc-val { font-size: 20px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.vc-info strong { display: block; font-size: 13px; color: var(--text-dark); }
.vc-info span { font-size: 11px; color: var(--text-muted); }
.v-desc { font-size: 14px; line-height: 1.8; color: var(--text-secondary); }

.v-rating-box {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; background: var(--bg-section);
    border-radius: var(--radius); margin-bottom: 14px;
}
.v-rbig { font-size: 40px; font-weight: 800; color: var(--text-dark); line-height: 1; }
.v-rstars { font-size: 14px; }
.v-rstars i { margin: 0 1px; }
.v-rstars span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.v-reviews { display: flex; flex-direction: column; }
.v-rv { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.v-rv:last-child { border-bottom: none; }
.v-rv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.v-rv-user { display: flex; align-items: center; gap: 8px; }
.v-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.v-rv-user strong { font-size: 14px; }
.v-rv-right { display: flex; align-items: center; gap: 6px; }
.v-rv-stars { display: flex; gap: 1px; }
.v-rv-stars i { font-size: 11px; }
.v-rv-date { font-size: 12px; color: var(--text-muted); }
.v-rv-text { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.v-rv-reply {
    margin-top: 10px; padding: 10px 14px;
    background: var(--bg-section); border-radius: var(--radius-sm);
    font-size: 13px;
}
.v-rv-reply strong { color: var(--primary); font-size: 12px; display: block; margin-bottom: 3px; }
.v-empty {
    text-align: center; padding: 36px; color: var(--text-muted);
    font-size: 14px; background: var(--bg-section); border-radius: var(--radius);
}

.v-bottom {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--border);
    box-shadow: 0 -1px 8px rgba(0,0,0,0.04);
    z-index: 900; padding: 8px 0;
}
.v-bottom-inner { display: flex; justify-content: space-between; align-items: center; }
.v-bottom-price small { display: block; font-size: 11px; color: var(--text-muted); }
.v-bottom-price strong { font-size: 18px; font-weight: 800; color: var(--primary); }
.v-bottom-btns { display: flex; gap: 6px; }

/* ======== STAT STRIP ======== */
.stat-strip { background: #fff; border-bottom: 1px solid var(--border-light); padding: 14px 0; }
.stat-strip-inner { display: flex; justify-content: center; gap: 40px; }
.stat-item { text-align: center; }
.stat-item strong {
    display: block; font-size: 20px; font-weight: 800;
    color: var(--text-dark); line-height: 1.2;
}
.stat-item span { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ======== CATEGORY SCROLL (메인) ======== */
.cat-scroll-section {
    background: #fff; border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}
.cat-scroll {
    display: flex; gap: 4px;
    overflow-x: auto; scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll-item {
    display: flex; flex-direction: column; align-items: center;
    min-width: 76px; padding: 8px 4px;
    border-radius: var(--radius); text-align: center;
    transition: background 0.12s;
    flex-shrink: 0;
}
.cat-scroll-item:hover { background: var(--primary-bg); }
.cat-scroll-img {
    width: 48px; height: 48px; border-radius: 50%;
    overflow: hidden; margin-bottom: 6px;
    background: var(--bg-section);
    transition: transform 0.2s, box-shadow 0.2s;
}
.cat-scroll-item:hover .cat-scroll-img {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(238,81,159,0.2);
}
.cat-scroll-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-scroll-item span {
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
    line-height: 1.2; transition: color 0.15s;
}
.cat-scroll-item:hover span { color: var(--primary); }

@media (max-width: 480px) {
    .cat-scroll-item { min-width: 64px; }
    .cat-scroll-img { width: 42px; height: 42px; }
    .cat-scroll-item span { font-size: 11px; }
}

/* ======== NOTICE BAR (히어로 하단) ======== */
.notice-bar {
    background: var(--bg-dark); border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 8px 0;
}
.notice-bar-inner {
    display: flex; align-items: center; gap: 10px;
}
.notice-bar-badge {
    padding: 3px 10px; border-radius: var(--radius-sm);
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.notice-bar-list {
    flex: 1; display: flex; gap: 6px; overflow: hidden;
    min-width: 0;
}
.notice-bar-item {
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap;
}
.notice-bar-item + .notice-bar-item::before {
    content: '|'; color: rgba(255,255,255,0.15); font-size: 12px;
}
.notice-bar-title {
    font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7);
    overflow: hidden; text-overflow: ellipsis;
}
.notice-bar-item:hover .notice-bar-title { color: #fff; }
.notice-bar-more {
    font-size: 12px; color: rgba(255,255,255,0.4); white-space: nowrap; flex-shrink: 0;
}
.notice-bar-more:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 768px) {
    .notice-bar-list { gap: 0; }
    .notice-bar-item:not(:first-child) { display: none; }
}


/* ======== TRENDING STRIP ======== */
.trending-strip { padding: 12px 0; background: #fff; border-bottom: 1px solid var(--border-light); }
.trending-inner { display: flex; align-items: center; gap: 10px; }
.trending-label {
    font-size: 13px; font-weight: 700; color: var(--text-dark);
    white-space: nowrap; display: flex; align-items: center; gap: 3px;
}
.trending-label i { color: var(--primary); }
.trending-tags {
    display: flex; gap: 6px; overflow-x: auto;
    scrollbar-width: none;
}
.trending-tags::-webkit-scrollbar { display: none; }
.trending-tag {
    padding: 4px 12px; border-radius: var(--radius-pill);
    background: var(--bg-section); border: 1px solid var(--border-light);
    font-size: 12px; font-weight: 500; color: var(--text-secondary);
    white-space: nowrap;
}
.trending-tag:hover {
    border-color: var(--text-dark); color: var(--text-dark);
}

/* ======== SHOP TOOLBAR ======== */
.shop-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; gap: 10px;
}
.shop-toolbar-count { font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.shop-toolbar-count strong { color: var(--primary); }
.shop-toolbar-sorts { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.shop-toolbar-sorts::-webkit-scrollbar { display: none; }
.sort-btn {
    padding: 6px 12px; border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 600; white-space: nowrap;
    color: var(--text-muted); background: none;
    border: 1px solid transparent;
    transition: all 0.12s;
}
.sort-btn:hover { color: var(--text-dark); }
.sort-btn.active {
    color: var(--primary); background: var(--primary-bg);
    border-color: var(--primary);
}
@media (max-width: 480px) {
    .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 6px; }
    .shop-toolbar-sorts { width: 100%; }
    .sort-btn { padding: 5px 10px; font-size: 12px; }
}

/* ======== SHOP FILTER ======== */
.filter-toggle {
    display: none; /* PC에서는 숨김 */
    width: 100%; justify-content: space-between; align-items: center;
    padding: 12px 16px; font-size: 14px; font-weight: 600;
    color: var(--text-dark); background: none; border: none;
    border-bottom: 1px solid var(--border-light);
}
.filter-toggle i:last-child { font-size: 11px; color: var(--text-muted); transition: transform 0.2s; }
.filter-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); vertical-align: middle; margin-left: 4px; }
.filter-body { padding: 16px; }
.filter-selects { display: flex; gap: 8px; margin-bottom: 12px; }
.filter-selects .form-control { flex: 1; }
.filter-search-row { display: flex; gap: 6px; flex: 1; }
.filter-search-row .form-control { flex: 1; }
.filter-themes { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-theme-item { cursor: pointer; }
.filter-theme-item input { display: none; }
.filter-theme-item span {
    display: inline-block; padding: 5px 12px; border-radius: var(--radius-pill);
    border: 1px solid var(--border); font-size: 13px; font-weight: 600;
    color: var(--text-secondary); transition: all 0.12s;
}
.filter-theme-item span:hover { border-color: var(--text-muted); }
.filter-theme-item input:checked + span {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.filter-theme-reset {
    padding: 5px 12px; border-radius: var(--radius-pill);
    background: #fef2f2; color: var(--danger);
    font-size: 13px; font-weight: 600;
}

@media (max-width: 768px) {
    .filter-toggle { display: flex; }
    .filter-body { display: none; padding: 12px; }
    .filter-body.open { display: block; }
    .filter-selects { flex-direction: column; gap: 6px; margin-bottom: 10px; }
    .filter-themes { gap: 4px; }
    .filter-theme-item span { padding: 4px 10px; font-size: 12px; }
}

/* ======== PRICE RANGE ======== */
.price-range-grid { display: flex; gap: 8px; }
.price-range-card {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 16px 8px; background: #fff;
    border-radius: var(--radius); border: 1px solid var(--border-light);
    text-align: center; color: var(--text-primary);
    transition: border-color 0.15s;
}
.price-range-card:hover { border-color: var(--text-dark); }
.prc-emoji { font-size: 24px; margin-bottom: 6px; }
.price-range-card strong { font-size: 14px; font-weight: 800; color: var(--text-dark); margin-bottom: 2px; }
.price-range-card span { font-size: 11px; color: var(--text-muted); }

/* ======== GUIDE ======== */
.guide-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.guide-step {
    flex: 1; text-align: center; padding: 0 12px;
    position: relative;
}
.guide-num {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
}
.guide-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--bg-section); color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin: 0 auto 10px;
}
.guide-step:hover .guide-icon { background: var(--text-dark); color: #fff; }
.guide-step strong { display: block; font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.guide-step p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.guide-arrow {
    display: flex; align-items: center; padding-top: 36px;
    color: var(--text-disabled); font-size: 14px;
}

/* ======== FAQ ======== */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
    border: 1px solid var(--border-light); border-radius: var(--radius);
    margin-bottom: 6px; overflow: hidden;
    background: #fff;
}
.faq-item:hover { border-color: var(--border); }
.faq-q {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 14px 16px;
    font-size: 14px; font-weight: 600; color: var(--text-dark);
    text-align: left; cursor: pointer;
    background: none; border: none; font-family: inherit;
}
.faq-q:hover { color: var(--text-dark); }
.faq-q i { font-size: 11px; color: var(--text-light); transition: transform 0.2s; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
    max-height: 0; overflow: hidden;
    padding: 0 16px;
    font-size: 13px; line-height: 1.7; color: var(--text-secondary);
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
    max-height: 200px;
    padding: 0 16px 14px;
}

/* ======== SKELETON LOADING ======== */
@keyframes skeleton-shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton {
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 20%, #f0f0f0 40%, #f0f0f0 100%);
    background-size: 800px 100%;
    background-repeat: no-repeat;
    border-radius: 4px;
    animation: skeleton-shimmer 1.5s infinite linear;
    pointer-events: none;
    user-select: none;
}

.skeleton-text {
    height: 14px;
    width: 80%;
    margin-bottom: 8px;
}
.skeleton-text:nth-child(2n) { width: 60%; }
.skeleton-text:nth-child(3n) { width: 45%; }
.skeleton-text:last-child { margin-bottom: 0; }

.skeleton-title {
    height: 20px;
    width: 50%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius, 8px);
}

.skeleton-card {
    background: #fff;
    border-radius: var(--radius, 8px);
    overflow: hidden;
    border: 1px solid var(--border-light, #F4F4F4);
}
.skeleton-card .skeleton-image {
    border-radius: 0;
}
.skeleton-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.skeleton-card-body .skeleton-title {
    width: 65%;
}
.skeleton-card-body .skeleton-text:nth-child(2) { width: 40%; }
.skeleton-card-body .skeleton-text:nth-child(3) { width: 55%; }

.skeleton-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light, #F4F4F4);
}
.skeleton-row .skeleton-avatar {
    flex-shrink: 0;
}
.skeleton-row-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Skeleton dark mode */
[data-theme="dark"] .skeleton {
    background: #2a2a2a;
    background-image: linear-gradient(90deg, #2a2a2a 0%, #3a3a3a 20%, #2a2a2a 40%, #2a2a2a 100%);
    background-size: 800px 100%;
    background-repeat: no-repeat;
}
[data-theme="dark"] .skeleton-card {
    background: #1e1e1e;
    border-color: #333;
}
[data-theme="dark"] .skeleton-row {
    border-bottom-color: #333;
}

/* ======== RESPONSIVE ======== */

/* Tablet */
@media (max-width: 1024px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .header-search { display: none; }
    .header-utils { display: none; }
    .mobile-search-btn { display: flex; }
    .mobile-menu-btn { display: flex; }
    .main-nav { display: none; }
    .main-header { border-bottom: 1px solid var(--border-light); }
    .header-inner { height: 48px; gap: 0; }
    .logo { flex: 1; }
    .logo-icon { width: 28px; height: 28px; font-size: 13px; border-radius: 7px; }
    .logo-text { font-size: 16px; }
    .hero h1 { font-size: 22px; }
    .hero { min-height: 220px; }
    .hero-inner { padding: 28px 16px; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (max-width: 500px) {
    .shop-grid { grid-template-columns: 1fr; gap: 10px; }
    .shop-scroll .shop-card { min-width: 85%; max-width: 85%; }
    .comm-board-grid { grid-template-columns: 1fr; }
    .comm-two-col { grid-template-columns: 1fr; }
    .comm-boards-full { grid-template-columns: 1fr; }
    .comm-hero { padding: 24px 0; }
    .comm-hero h1 { font-size: 22px; }
    .board-layout { flex-direction: column; gap: 0; }
    .board-side { width: 100%; margin-top: 12px; margin-bottom: 4px; }
    .board-side-title { display: none; }
    .board-side-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; padding-bottom: 4px; }
    .board-side-nav::-webkit-scrollbar { display: none; }
    .board-side-nav a { white-space: nowrap; padding: 7px 14px; font-size: 13px; }
    .board-head-card { padding: 14px 16px; }
    .board-head-icon { font-size: 20px; }
    .board-head-info h1 { font-size: 18px; }
    .board-toolbar { flex-wrap: wrap; }
    .board-search-box input { width: 140px; }
    .bl-row { padding: 14px 14px; gap: 10px; }
    .bl-avatar { width: 32px; height: 32px; font-size: 13px; }
    .bl-title { font-size: 14px; }
    .bl-preview { display: none; }
    .pv-header { padding: 18px 16px 14px; }
    .pv-title { font-size: 18px; }
    .pv-content { padding: 18px 16px; }
    .pv-actions { padding: 12px 16px; }
    .comment-form-avatar { display: none; }
    .comment-login { font-size: 12px; padding: 12px; }
    .comment-section { padding: 0 !important; }
    .comment-title { font-size: 15px; }
    .shop-list-item { flex-direction: column; }
    .shop-list-thumb { width: 100%; height: 160px; }
    .footer-inner { flex-direction: column; gap: 20px; }
    .footer-links { flex-wrap: wrap; gap: 20px; }
    .auth-card { padding: 24px; }
    .form-row { flex-direction: column; gap: 0; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .section { padding: 16px 0; }
    .comm-wrap { padding: 16px 14px; }
    .main-content { padding-bottom: 20px; }
    .section-title { font-size: 16px; }
    .stat-strip-inner { gap: 16px; }
    .stat-item strong { font-size: 17px; }
    .trending-inner { flex-wrap: wrap; }
    .price-range-grid { flex-wrap: wrap; }
    .price-range-card { flex: 0 0 calc(50% - 4px); }
    .guide-steps { flex-wrap: wrap; gap: 16px; }
    .guide-arrow { display: none; }
    .guide-step { flex: 0 0 calc(50% - 8px); }
    .v-info-bar { grid-template-columns: repeat(2, 1fr); }
    .v-title { font-size: 18px; }
    .v-section { padding: 16px; margin-bottom: 6px; }
    .view-gallery-main { height: 240px; }

    /* Show bottom nav */
    .fixed-bottom-nav { display: flex; }
    .main-footer { padding-bottom: calc(var(--bottom-nav-h) + 8px); }
    .main-content { padding-bottom: 0; }
    .scroll-top-btn { bottom: calc(var(--bottom-nav-h) + 12px); }
    .view-page { padding-bottom: calc(var(--bottom-nav-h) + 10px); }
    .v-bottom { bottom: var(--bottom-nav-h); }
}

/* Small mobile */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .section { padding: 14px 0; }
    .section-header { margin-bottom: 12px; }
    .section-title { font-size: 15px; }
    .section-title .icon { width: 24px; height: 24px; font-size: 11px; }

    .hero { min-height: 200px; }
    .hero-inner { padding: 20px 14px; }
    .hero h1 { font-size: 19px; }
    .hero p { font-size: 13px; margin-bottom: 16px; }

    .stat-strip { padding: 10px 0; }
    .stat-strip-inner { gap: 0; justify-content: space-around; }
    .stat-item strong { font-size: 15px; }
    .stat-item span { font-size: 10px; }

    .notice-inner { font-size: 12px; gap: 6px; }
    .trending-strip { padding: 8px 0; }
    .trending-tag { padding: 3px 10px; font-size: 11px; }

    .cat-tabs { margin-bottom: 12px; }
    .cat-tab { padding: 7px 14px; font-size: 13px; }
    .cat-grid { gap: 8px; }
    .cat-item { width: 60px; }
    .cat-img { width: 48px; height: 48px; }
    .cat-label { font-size: 11px; }

    .region-grid { gap: 5px; }
    .region-tag { padding: 5px 10px; font-size: 12px; }

    .shop-scroll { gap: 8px; }
    .shop-scroll .shop-card { min-width: 200px; max-width: 200px; }
    .shop-card-wrap .shop-card { min-width: 200px; max-width: 200px; }
    .shop-card-body { padding: 10px; }
    .shop-card-title { font-size: 13px; }
    .shop-card-location { font-size: 11px; margin-bottom: 4px; }
    .shop-card-tags { gap: 2px; margin-bottom: 4px; }
    .shop-card-meta { padding-top: 5px; }
    .shop-card-price { font-size: 13px; }

    .review-scroll { gap: 8px; }
    .review-card { min-width: 220px; max-width: 220px; padding: 12px; }
    .review-card-avatar { width: 28px; height: 28px; font-size: 12px; }
    .review-card-content { font-size: 12px; }

    .price-range-grid { gap: 6px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .price-range-grid::-webkit-scrollbar { display: none; }
    .price-range-card { flex: 0 0 auto; min-width: 100px; padding: 12px 8px; }
    .prc-emoji { font-size: 20px; margin-bottom: 4px; }
    .price-range-card strong { font-size: 12px; }
    .price-range-card span { font-size: 10px; }

    .guide-steps { gap: 10px; }
    .guide-step { flex: 0 0 100%; padding: 0; }
    .guide-icon { width: 40px; height: 40px; font-size: 16px; margin-bottom: 6px; }
    .guide-step strong { font-size: 13px; }

    .faq-q { padding: 11px 14px; font-size: 13px; }
    .faq-a { font-size: 12px; }

    .auth-container { margin: 20px auto; padding: 0 14px; }
    .auth-card { padding: 20px; }
    .auth-title { font-size: 20px; }

    .main-footer { padding: 20px 0 0; margin-top: 24px; }
    .footer-inner { gap: 16px; padding-bottom: 14px; }

    .v-title { font-size: 16px; }
    .v-info-bar { gap: 5px; margin: 12px 0 16px; }
    .v-info-item { padding: 10px; gap: 6px; }
    .v-info-item > i { width: 28px; height: 28px; font-size: 11px; }
    .v-section { padding: 14px; }
    .v-stitle { font-size: 14px; margin-bottom: 10px; }

    .pagination { padding: 18px 0; }
    .page-link { min-width: 30px; height: 30px; font-size: 12px; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .stat-card { padding: 12px; }
    .stat-card .stat-value { font-size: 20px; }
    .admin-main { padding: 10px; }
}

/* Extra small (320px) */
@media (max-width: 360px) {
    .container { padding: 0 10px; }
    .hero h1 { font-size: 17px; }
    .hero p { font-size: 12px; }
    .section { padding: 16px 0; }
    .section-title { font-size: 14px; }

    .stat-strip-inner { flex-wrap: wrap; }
    .stat-item { flex: 0 0 50%; padding: 3px 0; }
    .stat-item strong { font-size: 14px; }

    .cat-grid { gap: 6px; justify-content: center; }
    .cat-item { width: 52px; }
    .cat-img { width: 42px; height: 42px; }
    .cat-label { font-size: 10px; }

    .shop-scroll .shop-card,
    .shop-card-wrap .shop-card { min-width: 170px; max-width: 170px; }
    .shop-card-body { padding: 8px; }
    .shop-card-title { font-size: 12px; }
    .shop-card-price { font-size: 12px; }

    .review-card { min-width: 200px; max-width: 200px; padding: 10px; }
    .review-card-content { font-size: 11px; -webkit-line-clamp: 2; }

    .region-tag { padding: 4px 8px; font-size: 11px; }
    .trending-tag { padding: 3px 7px; font-size: 10px; }

    .auth-card { padding: 16px; }
    .auth-title { font-size: 18px; }
    .sns-login-btns { gap: 6px; }
    .btn-naver, .btn-kakao { padding: 9px 4px; font-size: 12px; min-width: 0; }
    .btn-naver i, .btn-kakao i { margin-right: 3px; }
    .v-title { font-size: 15px; }
    .v-section { padding: 12px; }
    .v-info-item { padding: 8px; }

    .footer-inner { gap: 12px; }
    .price-range-card { min-width: 90px; padding: 10px 6px; }
    .price-range-card strong { font-size: 11px; }
}
