/* ==============================================
   개선된 헤더 CSS - 2025 Modern Dot Indicator
   ============================================== */

/* ==============================================
   CSS 변수 정의 - 헤더에서 총체적 제어
   🚨 다른 서비스에서 --header-height, --sidebar-width 수정 금지
   🚨 이 설정들을 오버라이드하지 말 것
   ============================================== */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --danger-color: #ef4444;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --header-height: 70px !important;
    --sidebar-width: 320px !important;
    --border-radius: 12px;
}

/* 기본 설정 */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* 🔥 스크롤바 생성/제거로 인한 레이아웃 변경 방지 */
    overflow-y: scroll;
    scrollbar-gutter: stable;
    /* 🔥 모바일 스크롤 공간 색상 문제 해결 */
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
    min-height: 100vh;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    position: relative;
    /* 🔥 모바일 스크롤 공간 색상 문제 해결 */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 메인 페이지 배경 */
body:not(.unified-search-page):not(.board-page) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    /* 🔥 모바일 스크롤 공간 색상 문제 해결 */
    overflow-x: hidden;
}

/* 글래스모피즘 페이지 배경 - 투명 */
body.unified-search-page,
body.insurance-platform-page {
    background: transparent !important;
    min-height: 100vh;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    /* 🔥 모바일 스크롤 공간 색상 문제 해결 */
    overflow-x: hidden;
}

/* ==============================================
   헤더 스타일
   ============================================== */

.improved-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: transparent;
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
    /* 🔥 헤더 레이아웃 안정화 - transform 제거 */
    /* 🔥 모바일 스크롤 공간 색상 문제 해결 */
    overflow: hidden;
}

.header-container {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 로고 */
.header-left {
    flex: 0 0 auto;
}

.logo-container .logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
}

/* 중앙 네비게이션 */
.header-center {
    flex: 0;
    display: flex;
    justify-content: center;
    margin: 0px;
}

.main-navigation {
    display: flex;
    gap: 16px;
    background: transparent;
    border: none;
    padding: 0;
    align-items: center;
    position: relative;
}

/* 도트 인디케이터 버튼 */
.nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 16px 20px 24px 20px;
    border-radius: 0;
    cursor: pointer;
    width: auto;
    min-width: 70px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    user-select: none;
    outline: none;
    flex-shrink: 0;
}

/* 도트 인디케이터 */
.nav-btn::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.nav-btn:hover::before {
    opacity: 0.4;
    transform: translateX(-50%) scale(1.2);
}

.nav-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-btn:visited,
.nav-btn:active {
    color: rgba(255, 255, 255, 0.7);
}

.nav-btn.active {
    background: transparent;
    color: var(--text-white);
    font-weight: 600;
    position: relative;
}

.nav-btn.active::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.nav-btn:active {
    transform: translateY(0) scale(0.98);
}

/* 우측 햄버거 메뉴 */
.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-width: 70px;
}

.hamburger-menu {
    background: transparent;
    border: none;
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    width: 60px;
    height: 50px;
    min-width: 60px;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
    user-select: none;
}

.hamburger-menu:hover {
    color: rgba(255, 255, 255, 0.9);
}

.hamburger-menu:active {
    color: var(--text-white);
}

.hamburger-menu i {
    font-size: 16px;
    color: var(--text-white);
    width: 16px;
    height: 16px;
    /* 🔥 FontAwesome 아이콘 안정화 */
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', 'FontAwesome' !important;
    font-weight: 900 !important;
    font-style: normal !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.menu-text {
    font-size: 14px;
    white-space: nowrap;
    margin-left: 5px;
}

/* 🔥 헤더 폰트 로딩 안정화 */
.improved-header .nav-btn,
.improved-header .hamburger-menu {
    /* 텍스트 렌더링 최적화 */
    text-rendering: optimizeLegibility;
    /* 폰트 크기 조정 방지 */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 우측 사이드바 메뉴 - 아이콘 중심 디자인 
   🚨 사이드바 너비는 헤더에서 총체적 제어 */
.right-sidebar-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width) !important;
    height: 100vh;
    z-index: 1001;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: none;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: none;
}

.right-sidebar-menu.active {
    display: block;
}

/* 🔥 사이드바 활성화 시 메인 헤더 햄버거 메뉴 숨김 */
body.sidebar-open .improved-header .hamburger-menu {
    z-index: 998;
    pointer-events: none;
    opacity: 0.3;
}

/* 🚨 사이드바 활성화 시 개발 중 뱃지 숨김 - 충돌 방지 */
body.sidebar-open .dev-badge {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.sidebar-overlay {
    display: none;
}

.sidebar-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 0;
}

.sidebar-header {
    padding: 15px 15px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1002;
    pointer-events: auto;
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1003;
    pointer-events: auto;
}

/* 🔥 사이드바 아이콘들 안정화 */
.sidebar-close i,
.menu-item i,
.quick-item i,
.community-item i,
.basic-info-item i {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', 'FontAwesome' !important;
    font-weight: 900 !important;
    font-style: normal !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-role {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.login-prompt .login-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1003;
    pointer-events: auto;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 사이드바 본문 - 아이콘 중심 카드 디자인 */
.sidebar-body {
    padding: 24px 16px;
    background: transparent;
}

.menu-section {
    margin-bottom: 32px;
}

.sidebar-section-title {
    color: #1e293b;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 8px 16px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
    padding: 0 8px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #475569;
    text-decoration: none;
    padding: 14px 8px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 75px;
}

.menu-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    border-color: transparent;
}

.menu-item i {
    font-size: 18px;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.menu-item:hover i {
    transform: scale(1.1);
}

.menu-item span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
}

.menu-item.logout-item {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
    color: #dc2626;
}

.menu-item.logout-item:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

/* FC-퀵메뉴 스타일 - 프리미엄 카드 */
.quick-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 8px;
}

.quick-item {
    padding: 16px 12px;
    text-align: center;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    margin: 0;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.quick-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.quick-item:hover::before {
    opacity: 1;
}

.quick-item i {
    font-size: 22px;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quick-item span {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 커뮤니티 그리드 - 컴팩트 카드 */
.community-grid-7 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 8px;
}

.community-grid-7 .community-item {
    padding: 12px 8px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 65px;
    color: #64748b;
}

.community-grid-7 .community-item:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
    border-color: transparent;
}

.community-grid-7 .community-item i {
    font-size: 16px;
    margin-bottom: 1px;
    transition: all 0.3s ease;
}

.community-grid-7 .community-item:hover i {
    transform: scale(1.1);
}

.community-grid-7 .community-item span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
}

/* 7번째 항목도 자연스럽게 왼쪽 정렬 */

/* 특정 커뮤니티 항목 색상 */
.community-grid-7 .community-item:nth-child(1) {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
    color: #92400e;
}

.community-grid-7 .community-item:nth-child(1):hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.community-grid-7 .community-item:nth-child(2) {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #22c55e;
    color: #166534;
}

.community-grid-7 .community-item:nth-child(2):hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.community-grid-7 .community-item:nth-child(3) {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #a855f7;
    color: #7c2d12;
}

.community-grid-7 .community-item:nth-child(3):hover {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
}

/* 개발중 배지 - 모던 스타일 
   🚨 사이드바와 충돌 방지 - z-index 제한 */
.dev-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    top: 8px;
    right: 8px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
    z-index: 100; /* 사이드바(z-index: 2147483648)보다 낮게 설정 */
}

@keyframes pulse-badge {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* 기본 정보 그리드 - 사용자 액션 카드 */
.basic-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 8px;
}

.basic-info-item {
    padding: 14px 10px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    margin: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 75px;
    color: #475569;
}

.basic-info-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.25);
    border-color: transparent;
}

.basic-info-item i {
    font-size: 18px;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.basic-info-item:hover i {
    transform: scale(1.1);
}

.basic-info-item span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
}

.basic-info-item.logout-item {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
    color: #dc2626;
}

.basic-info-item.logout-item:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.25);
}

/* 메인 컨텐츠 여백 */
body:not(.unified-search-page):not(.insurance-platform-page) .main-content {
    padding-top: 20px;
}

/* ==============================================
   모바일 반응형 디자인
   ============================================== */

@media (max-width: 480px) {
    /* 🔧 모바일 CSS 변수 재정의 - 헤더에서 총체적 제어 
       🚨 다른 서비스에서 이 설정들을 오버라이드하지 말 것 */
    :root {
        --header-height: 50px !important;
        --sidebar-width: 100% !important;
    }
    
    /* 🔧 모바일 헤더 고정 및 높이 최적화 */
    .improved-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: var(--header-height);
        z-index: 1000;
        background: rgba(102, 126, 234, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        margin: 0;
        padding: 0;
        border: none;
        box-sizing: border-box;
        pointer-events: auto;
        /* 🔥 모바일 스크롤 공간 색상 문제 해결 */
        overflow: hidden;
    }

    .header-container {
        height: var(--header-height);
        padding: 0 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }
    
    .header-right {
        gap: 0;
        justify-content: flex-end;
        flex-shrink: 0;
        min-width: 0px;
    }
    
    /* 🎨 모바일 네비게이션 - 컴팩트한 간격으로 조정 */
    .main-navigation {
        margin: 0 4px;
        gap: 1px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        position: relative;
        flex: 1;
        max-width: 100%;
        overflow: hidden;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        overscroll-behavior-x: none;
        -webkit-overflow-scrolling: auto;
        pointer-events: auto;
        z-index: 999;
    }
    
    /* 🎨 모바일 네비게이션 버튼 - 컴팩트하고 깔끔하게 */
    .nav-btn {
        background: transparent;
        border: none;
        outline: none;
        color: rgba(255, 255, 255, 0.7);
        font-family: 'Pretendard', sans-serif;
        font-size: 11px;
        font-weight: 500;
        padding: 8px 2px 12px 2px;
        border-radius: 0;
        cursor: pointer;
        width: auto;
        min-width: 40px;
        max-width: none;
        text-align: center;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 998;
        transition: all 0.3s ease;
        letter-spacing: 0.1px;
        box-sizing: border-box;
        user-select: none;
        flex-shrink: 1;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        pointer-events: auto;
    }
    
    /* 🎨 흰여백선 문제 해결 */
    .nav-btn:focus,
    .nav-btn:active,
    .nav-btn:visited,
    .nav-btn:target {
        outline: none;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    
    /* 🎨 모바일 도트 인디케이터 - 컴팩트하게 */
    .nav-btn::before {
        content: '';
        position: absolute;
        bottom: 3px;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 3px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .nav-btn:hover::before {
        opacity: 0.4;
        transform: translateX(-50%) scale(1.2);
    }
    
    .nav-btn:hover {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .nav-btn.active {
        background: transparent;
        color: var(--text-white);
        font-weight: 600;
        position: relative;
    }
    
    .nav-btn.active::before {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    
    /* 🎨 모바일에서 텍스트 표시 - 폰트 크기 증가 */
    .nav-btn span {
        display: block;
        font-size: 13px;
        font-weight: inherit;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 1px;
    }
    
    .header-left {
        flex: 0 0 auto;
    }
    
    .logo-container .logo {
        font-size: 18px;
        font-weight: 800;
        line-height: 1;
    }

    .login-prompt .login-btn {
        padding: 10px 15px;
    }
    
    /* 🎨 모바일 햄버거 메뉴 - 높이에 맞게 최적화 */
    .hamburger-menu {
        background: transparent;
        border: none;
        outline: none;
        padding: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        font-weight: 500;
        width: 38px;
        height: var(--header-height);
        min-width: 38px;
        flex-shrink: 0;
        box-sizing: border-box;
        transition: all 0.3s ease;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
    
    .hamburger-menu:focus,
    .hamburger-menu:active,
    .hamburger-menu:visited {
        outline: none;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    
    .hamburger-menu:hover {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .hamburger-menu:active {
        color: var(--text-white);
    }
    
    .hamburger-menu i {
        font-size: 16px;
        color: var(--text-white);
        width: 16px;
        height: 16px;
    }
    
    .hamburger-menu .menu-text {
        display: none;
    }
    
    /* 🔧 모바일 메인 컨텐츠 여백 조정 */
    body:not(.unified-search-page):not(.insurance-platform-page) .main-content {
        margin-top: 20px;
        padding-top: 1px;
    }

    /* 🔧 게시판 페이지 헤더 안정화 제거 - 다른 페이지와 동일하게 처리 */
    
    /* 🎨 모바일 사이드바 최적화 - 전체 화면 크기로 안정화 
       🚨 사이드바 너비는 헤더에서 총체적 제어 */
    .right-sidebar-menu {
        width: var(--sidebar-width) !important;
        max-width: 100%;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height)); /* 동적 뷰포트 높이 지원 */
    }
    
    .sidebar-content {
        font-size: 14px;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar-header {
        padding: 10px 20px;
    }
    
    .sidebar-close {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .user-profile {
        gap: 12px;
    }
    
    .user-info {
        gap: 1px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .user-role {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .sidebar-body {
        padding: 20px 12px;
    }
    
    .menu-section {
        margin-bottom: 24px;
    }
    
    .menu-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 0 4px;
    }
    
    .menu-item {
        padding: 12px 6px;
        min-height: 60px;
        font-size: 10px;
    }
    
    .menu-item i {
        font-size: 16px;
    }
    
    .quick-menu {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 0 4px;
    }
    
    .quick-item {
        padding: 14px 8px;
        min-height: 70px;
    }
    
    .quick-item i {
        font-size: 18px;
    }
    
    .community-grid-7 {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 0 4px;
    }
    
    .community-grid-7 .community-item {
        padding: 10px 6px;
        min-height: 55px;
    }
    
    .community-grid-7 .community-item i {
        font-size: 14px;
    }
    
    .community-grid-7 .community-item span {
        font-size: 11px;
    }
    
    .basic-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 0 4px;
    }
    
    .basic-info-item {
        padding: 12px 8px;
        min-height: 65px;
    }
    
    .basic-info-item i {
        font-size: 16px;
    }
    
    .basic-info-item span {
        font-size: 11px;
    }
}

/* 포커스 및 접근성 */
.nav-btn:focus,
.hamburger-menu:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* 스크롤바 스타일 */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}