/* ========================================
   용한닷컴 - 밝은 테마 (사주나루 스타일)
   ======================================== */

/* 리셋 & 기본 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    zoom: 1.75;
}

@media (max-width: 768px) {
    html {
        zoom: 1;
    }
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #f8f9fa;
    color: #1a1a1a;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== 헤더 ========== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    min-height: 72px;
}

/* 로고 */
header .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 64px;
    width: auto;
}

/* 헤더 공통 버튼 */
.hdr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.hdr-btn-outline {
    border: 1px solid #ddd;
    color: #555;
    background: #fff;
}

.hdr-btn-outline:hover {
    border-color: #bbb;
    color: #333;
}

.hdr-btn-dark {
    background: #1a1a1a;
    color: #fff;
}

.hdr-btn-dark:hover {
    background: #333;
}

.hdr-btn-gold {
    background: linear-gradient(135deg, #d4a574, #c4956a);
    color: #fff;
}

.hdr-btn-gold:hover {
    background: linear-gradient(135deg, #c4956a, #b3845c);
}

.hdr-btn-sm {
    padding: 5px 14px;
    font-size: 0.75rem;
}

/* 비로그인 상태 */
.header-guest {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 로그인 상태 */
.header-user {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.hdr-user-row1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hdr-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hdr-profile-photo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 2px solid #e0d5c8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.hdr-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hdr-username {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
}

.hdr-noti-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.hdr-noti-btn:hover {
    color: #c4956a;
}

.hdr-noti-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid #fff;
}

.hdr-user-row2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hdr-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #888;
}

.hdr-balance-label {
    color: #999;
}

.hdr-balance-amount {
    font-weight: 700;
    color: #c4956a;
}

/* ========== 헤더 검색 ========== */
.hdr-search-area {
    margin-left: auto;
    margin-right: 12px;
    flex-shrink: 0;
}

.hdr-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.hdr-search-btn:hover {
    background: #eee;
    color: #c4956a;
}

/* 검색 오버레이 */
.search-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1002;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: searchSlideDown 0.2s ease;
}

.search-overlay.active {
    display: block;
}

@keyframes searchSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-overlay-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 72px;
}

.search-input-icon {
    flex-shrink: 0;
    color: #c4956a;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    color: #1a1a1a;
    background: transparent;
}

.search-input::placeholder {
    color: #bbb;
}

.search-close-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-close-btn:hover {
    background: #eee;
    color: #333;
}

/* 검색 결과 */
.search-results {
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid #f0f0f0;
}

.search-results:empty {
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #f8f8f8;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: #fdf8f3;
}

.search-result-photo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f5f5f5;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.search-result-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.search-result-name mark {
    background: none;
    color: #c4956a;
    font-weight: 700;
}

.search-result-desc {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-cat {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.search-result-cat.sinjeom { background: #f3edf6; color: #7B2D8E; }
.search-result-cat.tarot { background: #e8f5f2; color: #0E7C6B; }
.search-result-cat.saju { background: #fdedf0; color: #A62639; }

.search-empty {
    padding: 32px 20px;
    text-align: center;
    color: #ccc;
    font-size: 0.88rem;
}

.search-empty-icon {
    margin-bottom: 8px;
    color: #ddd;
}

.search-hint {
    padding: 16px 4px;
    color: #bbb;
    font-size: 0.8rem;
}

.search-hint-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.search-hint-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 0.78rem;
    color: #777;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Noto Sans KR', sans-serif;
}

.search-hint-tag:hover {
    background: #f0ebe6;
    color: #c4956a;
}

/* 모바일 검색 오버레이 */
@media (max-width: 768px) {
    .search-overlay {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 9999;
    }

    .search-results {
        max-height: calc(100vh - 80px);
    }
}

/* 모바일 헤더 */
@media (max-width: 480px) {
    .hdr-btn {
        padding: 7px 10px;
        font-size: 0.75rem;
    }
    .hdr-username {
        font-size: 0.75rem;
    }
    .hdr-search-area {
        margin-right: 8px;
    }
    .hdr-search-btn {
        width: 34px;
        height: 34px;
    }
}

/* 메뉴 오버레이 */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* ========== (헤더 표시 - 간소화) ========== */

/* ========== 하단 탭바 ========== */
.bottom-tabbar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-top: none;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tabbar-inner {
    display: flex;
    align-items: stretch;
    height: 68px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0 6px;
    color: #b0b0b0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: all 0.25s ease;
    flex: 1 1 20%;
    width: 20%;
    text-align: center;
    position: relative;
}

.tabbar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background: linear-gradient(135deg, #d4a574, #c4956a);
    border-radius: 0 0 2px 2px;
    transition: width 0.25s ease;
}

.tabbar-item svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.6;
    transition: all 0.25s ease;
}

.tabbar-item:hover {
    color: #888;
}

.tabbar-item.active {
    color: #c4956a;
}

.tabbar-item.active::before {
    width: 32px;
}

.tabbar-item.active svg {
    stroke: #c4956a;
    transform: scale(1.1);
}

/* ========== 카테고리 메뉴 ========== */
.category-menu {
    background: #fff;
    padding: 20px 0;
}

.category-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 0 20px;
}

.category-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s;
}

.category-menu-item:hover {
    transform: translateY(-2px);
}

.category-menu-icon {
    width: 60px;
    height: 60px;
    background: #f8f8f8;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.category-menu-item:hover .category-menu-icon {
    background: #f0ebe6;
}

.category-menu-icon svg {
    width: 36px;
    height: 36px;
}

.category-menu-item span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
}

@media (max-width: 768px) {
    .category-menu-inner {
        gap: 16px;
    }
    .category-menu-icon {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }
    .category-menu-icon svg {
        width: 32px;
        height: 32px;
    }
    .category-menu-item span {
        font-size: 0.75rem;
    }
}

/* ========== 메인 배너 슬라이더 ========== */
.main-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.slider-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.slide-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.slide-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.slide-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.slide-desc {
    font-size: 0.85rem;
    color: #555;
}

/* 슬라이더 인디케이터 점 */
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #1a1a1a;
    width: 22px;
    border-radius: 4px;
}

/* 모바일 슬라이더 */
@media (max-width: 768px) {
    .slide-placeholder {
        aspect-ratio: 16 / 9;
    }
    .slide-title {
        font-size: 1.05rem;
    }
    .slide-desc {
        font-size: 0.78rem;
    }
}

/* ========== 이벤트 배너 ========== */
.event-banner {
    background: linear-gradient(135deg, #fdf6ee, #fff8f0);
    border-bottom: 1px solid #f0e6d8;
}

.event-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.event-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4a574, #c4956a);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.event-text {
    font-size: 0.88rem;
    color: #5a4a3a;
    font-weight: 500;
}

.event-text strong {
    color: #c4956a;
    font-weight: 700;
}

.event-link {
    flex-shrink: 0;
    color: #c4956a;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ========== 카테고리 탭 ========== */
.category-tabs {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 52px;
    z-index: 99;
}

.category-tabs-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 16px;
}

.category-tabs-inner::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #999;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    flex-shrink: 0;
}

.category-tab svg {
    width: 24px;
    height: 24px;
}

.category-tab:hover {
    color: #666;
}

.category-tab.active {
    color: #c4956a;
    border-bottom-color: #c4956a;
    font-weight: 600;
}

/* ========== 실시간 통계 바 ========== */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.stats-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 0.82rem;
    color: #888;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stats-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.stats-dot.green { background: #22c55e; }
.stats-dot.blue { background: #3b82f6; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.stats-number {
    font-weight: 700;
    color: #c4956a;
}

/* ========== 메인 컨텐츠 영역 ========== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== 섹션 헤더 ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
}

.section-title .badge {
    background: linear-gradient(135deg, #d4a574, #c4956a);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.view-all {
    color: #999;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s;
}

.view-all:hover {
    color: #c4956a;
}

/* ========== 상담사 카드 (사주나루 스타일) ========== */
.consultant-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 24px;
}

.ccard {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 16px;
    transition: box-shadow 0.2s;
    align-items: stretch;
}

.ccard:hover {
    box-shadow: 0 3px 16px rgba(0,0,0,0.08);
}

/* 왼쪽: 네모 사진 */
.ccard-left {
    flex-shrink: 0;
}

.ccard-photo-wrap {
    position: relative;
    display: block;
    width: 100px;
    height: 100px;
}

.ccard-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f5f5;
}

.ccard-photo-empty {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccard-grade {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #d4a574, #c4956a);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 8px 0 10px 0;
    letter-spacing: 0.5px;
}

/* 오른쪽: 정보 */
.ccard-right {
    flex: 1;
    min-width: 0;
}

.ccard-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ccard-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.ccard-num {
    font-size: 0.72rem;
    color: #aaa;
    font-weight: 500;
}

/* 하트 - 카드 내 우측 정렬 */
.ccard-top .heart-btn {
    position: static;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
}

.heart-btn svg {
    width: 20px;
    height: 20px;
    fill: transparent;
    stroke: #ccc;
    stroke-width: 2;
    transition: all 0.2s;
}

.heart-btn:hover svg {
    stroke: #ff6b81;
}

.heart-btn.liked svg {
    fill: #ff4757;
    stroke: #ff4757;
}

.ccard-desc {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccard-price {
    font-size: 0.82rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ccard-coin-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ccard-price strong {
    color: #c4956a;
    font-weight: 700;
    font-size: 0.95rem;
}

.ccard-price span {
    color: #999;
    font-size: 0.75rem;
}

/* 상담 버튼 - 오른쪽 가로 배치 */
.ccard-action {
    display: none;
}

.ccard-btn-area {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ccard-consult-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

/* 상담하기 */
.ccard-consult-btn.available {
    background: #22c55e;
    color: #fff;
}

.ccard-consult-btn.available:hover {
    background: #1da851;
}

/* 상담중 */
.ccard-consult-btn.busy {
    background: #EF4444;
    color: #fff;
    cursor: default;
}

/* 부재중 */
.ccard-consult-btn.offline {
    background: #9CA3AF;
    color: #fff;
    cursor: default;
}

/* 태그 */
.ccard-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.ccard-tags span {
    font-size: 0.72rem;
    color: #999;
}

/* 후기 */
.ccard-reviews {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    color: #bbb;
}

.ccard-review-recent strong {
    color: #c4956a;
}

.ccard-review-total {
    color: #999;
}

/* 반응형 - PC에서도 1열 유지 */
@media (min-width: 769px) {
    .consultant-list {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .ccard-photo-wrap {
        width: 80px;
        height: 80px;
    }
    .ccard {
        gap: 10px;
        padding: 12px;
    }
    .ccard-name {
        font-size: 0.9rem;
    }
    .ccard-consult-btn {
        padding: 12px 16px;
        font-size: 0.82rem;
    }
}

/* ========== 인기 상담사 섹션 ========== */
.popular-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 0 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popular-scroll::-webkit-scrollbar {
    display: none;
}

.popular-card {
    flex-shrink: 0;
    width: 140px;
    background: #fff;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.popular-card:hover {
    transform: translateY(-2px);
}

.popular-rank {
    font-size: 0.7rem;
    font-weight: 700;
    color: #c4956a;
    margin-bottom: 8px;
}

.popular-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 8px;
    background: #f5f5f5;
    border: 2px solid #f0e6d8;
}

.popular-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.popular-tag {
    font-size: 0.7rem;
    color: #b08050;
    background: #fdf6ee;
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
}

/* ========== 상담사 모집 배너 ========== */
.recruit-section {
    padding: 24px 0 32px;
}

.recruit-banner {
    background: linear-gradient(135deg, #fdf6ee, #fff8f0);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    border: 1px solid #f0e6d8;
}

.recruit-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.recruit-desc {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 20px;
}

.recruit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #d4a574, #c4956a);
    color: #fff;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(196, 149, 106, 0.3);
}

.recruit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(196, 149, 106, 0.4);
}

/* ========== 푸터 ========== */
footer {
    background: #f8f8f8;
    border-top: 1px solid #eee;
    padding: 24px 20px 16px;
    margin-top: 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 2px;
}

.footer-biz-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 0.75rem;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.footer-biz-toggle:hover {
    border-color: #bbb;
    color: #555;
}

.footer-biz-toggle.active svg {
    transform: rotate(180deg);
}

.footer-biz-toggle svg {
    transition: transform 0.25s;
}

.footer-biz-detail {
    display: none;
    padding: 16px 0 8px;
    border-top: 1px solid #eee;
    margin-top: 14px;
}

.footer-biz-detail.active {
    display: block;
}

.footer-biz-detail p {
    font-size: 0.73rem;
    color: #999;
    line-height: 1.8;
}

.footer-copy {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #eee;
}

.footer-copy p {
    font-size: 0.7rem;
    color: #bbb;
    line-height: 1.6;
}

.footer-disclaimer {
    margin-top: 6px;
    font-size: 0.68rem !important;
    color: #ccc !important;
}

.footer-links {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    font-size: 0.75rem;
    color: #888;
}

.footer-links a:hover {
    color: #555;
}

.footer-divider {
    color: #ddd;
    font-size: 0.7rem;
}

/* ========== 상담 모달 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 380px;
    width: 90%;
    position: relative;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 20px;
}

.call-option {
    background: #fdf8f3;
    border: 1px solid #f0e6d8;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.call-option-number {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.call-option-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 14px;
}

.call-option-btn {
    display: inline-block;
    padding: 12px 36px;
    background: #22c55e;
    color: #fff;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.call-option-btn:hover {
    background: #1da851;
}

/* ========== 스크린리더 전용 ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== 알림 드롭다운 ========== */
.notification-area {
    position: relative;
}

.notification-bell {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: -40px;
    width: 360px;
    max-height: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid #eee;
    overflow: hidden;
    z-index: 1001;
}

.notification-dropdown.active {
    display: block;
}

.notification-drop-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-drop-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
}

.notification-drop-title svg {
    color: #c4956a;
}

.notification-mobile-back {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
}

.notification-list {
    overflow-y: auto;
    max-height: 380px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f8f8f8;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #fafafa;
}

.notification-item.unread {
    background: #fdf8f3;
}

.notification-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4956a;
}

.notification-item-body {
    flex: 1;
    min-width: 0;
}

.notification-item-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.notification-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
}

.notification-item-time {
    font-size: 0.72rem;
    color: #bbb;
    flex-shrink: 0;
}

.notification-item-message {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #ccc;
    font-size: 0.88rem;
}

.notification-empty-icon {
    margin-bottom: 12px;
    color: #ddd;
}

.notification-drop-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-size: 0.72rem;
    color: #ccc;
}

/* 유저 드롭다운 */
.user-mini-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    overflow: hidden;
    z-index: 1001;
    min-width: 160px;
}

.user-area.active .user-mini-dropdown {
    display: block;
}

.mini-drop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #555;
    transition: background 0.2s;
}

.mini-drop-item:hover {
    background: #f8f8f8;
}

.mini-drop-logout {
    color: #ef4444;
    border-top: 1px solid #f0f0f0;
}

/* ========== 반응형: 태블릿 (769px ~ 1200px) ========== */
@media (min-width: 769px) {
    .consultant-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }
}

/* ========== 반응형: PC (1200px+) ========== */
@media (min-width: 1200px) {
    .consultant-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 반응형: 모바일 (768px-) ========== */
@media (max-width: 768px) {
    /* 헤더 모바일 */
    .header-nav {
        display: none;
    }

    .header-nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        padding: 70px 24px 24px;
        z-index: 1000;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    }

    .header-nav.active a {
        height: auto;
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu-toggle {
        display: flex;
    }

    .header-right .header-login-btn,
    .header-right .header-balance,
    .header-right .header-charge-btn {
        display: none;
    }

    /* 탭바 여백은 전역 body에 이미 적용 */

    /* 카테고리 탭 - 최상단 고정 (헤더 숨김) */
    .category-tabs {
        top: 0;
    }

    /* 이벤트 배너 모바일 */
    .event-banner-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* 알림 드롭다운 모바일 풀스크린 */
    .notification-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        z-index: 9999;
    }

    .notification-mobile-back {
        display: block;
    }

    .notification-list {
        max-height: calc(100vh - 120px);
    }

    /* 상담사 카드 모바일 */
    .card {
        padding: 20px 16px;
    }

    .avatar {
        width: 70px;
        height: 70px;
    }

    /* 푸터 모바일 */
    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .footer-company-row {
        flex-direction: column;
        gap: 12px;
    }

    .footer-divider-v {
        display: none;
    }

    .footer-biz-info {
        text-align: center;
    }

    .footer-logo-wrap img {
        height: 50px;
    }
}

/* ========== 유저 영역 (헤더 내 로그인 상태) ========== */
#guest-menu {
    list-style: none;
}

#user-menu {
    display: none;
    list-style: none;
    position: relative;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-hello {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-hello:hover {
    background: #f5f5f5;
}

.user-hello-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0e6d8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #c4956a;
}

.user-hello-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-hello-text {
    font-size: 0.85rem;
    color: #333;
}

.user-hello-name {
    font-weight: 600;
    color: #c4956a;
}

.user-hello-msg {
    color: #888;
    font-size: 0.78rem;
}

.user-sep {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
}

.user-balance-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.user-balance-top {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: #8a6d50;
    font-weight: 600;
}

.bujuk-icon-header {
    width: 16px;
    height: 16px;
}

.user-charge-link {
    font-size: 0.72rem;
    color: #c4956a;
    font-weight: 600;
}

/* nav ul 기본 리스트 스타일 제거 */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

nav ul li {
    list-style: none;
}

/* 로그인 버튼 (nav 내) */
.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #c4956a;
    color: #fff !important;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s;
}

.login-btn:hover {
    background: #b3845c;
}

/* ========== 기존 헤더 호환 ========== */
nav {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        padding: 70px 24px 24px;
        z-index: 1000;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.95rem;
        color: #333;
    }

    nav ul li a:hover {
        color: #c4956a;
    }

    .user-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
    }

    .user-sep {
        display: none;
    }

    .user-mini-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid #f0f0f0;
        border-radius: 0;
        width: 100%;
    }

    .user-area .user-mini-dropdown {
        display: block;
    }
}

/* ========== 로그인 모달 (밝은 버전) ========== */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.login-modal-overlay.active {
    display: flex;
}

.login-modal {
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.login-modal-close:hover {
    background: #eee;
    color: #333;
}

.login-modal-logo {
    margin-bottom: 20px;
}

.login-modal-logo img {
    height: 80px;
    width: auto;
}

.login-modal-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #c4956a;
    margin: 0 0 10px;
}

.login-modal-desc {
    font-size: 0.92rem;
    color: #888;
    margin: 0 0 24px;
    line-height: 1.6;
}

.login-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
}

.login-modal-btn.kakao {
    background: #FEE500;
    color: #3C1E1E;
}

.login-modal-btn.kakao:hover {
    background: #F5DC00;
    transform: translateY(-1px);
}

.login-modal-btn.naver {
    background: #03C75A;
    color: #fff;
}

.login-modal-btn.naver:hover {
    background: #02b351;
    transform: translateY(-1px);
}

/* ========== QR 배너 ========== */
.qr-section {
    padding: 16px 0;
}

.qr-banner-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #f0e6d8;
    border-radius: 14px;
    padding: 16px 20px;
}

.qr-banner-box {
    flex-shrink: 0;
    padding: 6px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
}

#main-qr-code img,
#main-qr-code canvas {
    display: block;
    width: 64px !important;
    height: 64px !important;
}

.qr-banner-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.qr-banner-desc {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .qr-section {
        display: none;
    }
}
