/* Pretendard 가변 폰트 (한국어 최적화) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

/* ============================================
   판매왕 (SellMaster) - 공통 스타일
   ============================================ */

/* CSS 변수 - 다크모드 지원 */
:root {
    /* 기본 색상 */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #10b981;
    --success-hover: #059669;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --gray-color: #6b7280;
    --gray-hover: #4b5563;
    
    /* 배경 색상 */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    /* 텍스트 색상 */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    
    /* 테두리 색상 */
    --border-color: #e5e7eb;
    --border-hover: #d1d5db;
    
    /* 그림자 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* 배지 색상 */
    --badge-primary-bg: #dbeafe;
    --badge-primary-text: #1e40af;
    --badge-success-bg: #d1fae5;
    --badge-success-text: #065f46;
    --badge-warning-bg: #fef3c7;
    --badge-warning-text: #92400e;
    --badge-danger-bg: #fee2e2;
    --badge-danger-text: #991b1b;
    --badge-gray-bg: #f3f4f6;
    --badge-gray-text: #374151;

    /* 모바일 실제 가시 높이 (JS에서 visualViewport 기반으로 업데이트) */
    --app-height: 100dvh;
    
    /* 알림 색상 */
    --alert-success-bg: #d1fae5;
    --alert-success-text: #065f46;
    --alert-success-border: #a7f3d0;
    --alert-error-bg: #fee2e2;
    --alert-error-text: #991b1b;
    --alert-error-border: #fecaca;
    --alert-info-bg: #dbeafe;
    --alert-info-text: #1e40af;
    --alert-info-border: #bfdbfe;
    --alert-warning-bg: #fef3c7;
    --alert-warning-text: #92400e;
    --alert-warning-border: #fde68a;
    
    /* 카드 배경 색상 */
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --card-hover-bg: #f9fafb;
    
    /* 폼 레이블 색상 */
    --label-color: #374151;
    
    /* 인풋/버튼 hover 배경 */
    --hover-primary-bg: #eff6ff;
    --hover-danger-bg: #fef2f2;
    --hover-warning-bg: #fef3c7;

    /* 인증 화면 공통 배경 */
    --auth-bg: linear-gradient(135deg, #f8fafc 0%, #eef2ff 52%, #eff6ff 100%);

    /* Navigation UI Tokens */
    --nav-item-height: 44px;
    --nav-icon-size: 20px;
    --nav-icon-size-compact: 18px;
    --nav-label-size: 0.9375rem;
    --nav-group-label-size: 0.75rem;
    --nav-active-bg: rgba(37, 99, 235, 0.1);
    --nav-active-text: #1d4ed8;
    --nav-hover-bg: var(--hover-primary-bg);
    --nav-danger-text: #dc2626;

    /* Warning / Accent 색상 (배지 외 실사용 토큰) */
    --warning-color: #f59e0b;
    --warning-hover: #d97706;
    --warning-soft-bg: #fffbeb;
    --warning-soft-border: #fcd34d;
    --warning-soft-text: #b45309;

    /* 간격 스케일 (8pt grid 기반) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* 라디우스 스케일 */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 999px;

    /* 타입 스케일 (rem 단일) */
    --fs-xs: 0.75rem;      /* 12px */
    --fs-sm: 0.8125rem;    /* 13px */
    --fs-base: 0.875rem;   /* 14px */
    --fs-md: 1rem;         /* 16px */
    --fs-lg: 1.125rem;     /* 18px */
    --fs-xl: 1.25rem;      /* 20px */
    --fs-2xl: 1.5rem;      /* 24px */
    --lh-tight: 1.25;
    --lh-normal: 1.5;
    --lh-relaxed: 1.6;

    /* 역할 테마 기본값(무역할 = 구직자 기준 blue). data-role 로 오버라이드 */
    --role-primary: var(--primary-color);
    --role-primary-dark: var(--primary-hover);
    --role-sub: var(--success-color);
    --role-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --role-stripe: linear-gradient(90deg, #2563eb, #10b981);
    --role-bg: #f3f7ff;
    --role-border: #dbeafe;
    --role-soft-bg: rgba(37, 99, 235, 0.1);
}

/* ============================================
   역할(Role) 테마 - 대시보드 전역 적용
   data-role 를 <body> 또는 레이아웃 래퍼에 부여
   ============================================ */
[data-role="jobseeker"] {
    --role-primary: #2563eb;
    --role-primary-dark: #1d4ed8;
    --role-sub: #10b981;
    --role-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --role-stripe: linear-gradient(90deg, #2563eb, #10b981);
    --role-bg: #f3f7ff;
    --role-border: #dbeafe;
    --role-soft-bg: rgba(37, 99, 235, 0.1);
}

[data-role="employer"] {
    --role-primary: #4f46e5;
    --role-primary-dark: #4338ca;
    --role-sub: #7c3aed;
    --role-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --role-stripe: linear-gradient(90deg, #4f46e5, #7c3aed);
    --role-bg: #f8f9ff;
    --role-border: #ede9fe;
    --role-soft-bg: rgba(79, 70, 229, 0.1);

    /* 구인자 = 딥 퍼플 정체성: 기반 프라이머리 토큰을 역할색으로 이원화.
       (--primary-color 를 참조하는 공용 컴포넌트가 구인자 화면에서 자동으로 퍼플이 된다) */
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --hover-primary-bg: #f5f3ff;
    --badge-primary-bg: #ede9fe;
    --badge-primary-text: #4338ca;
    --nav-active-bg: rgba(79, 70, 229, 0.1);
    --nav-active-text: #4338ca;
}

/* 다크모드 자동 감지 */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        /* 배경 색상 */
        --bg-primary: #1f2937;
        --bg-secondary: #111827;
        --bg-tertiary: #374151;
        
        /* 텍스트 색상 */
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-tertiary: #9ca3af;
        
        /* 테두리 색상 */
        --border-color: #374151;
        --border-hover: #4b5563;
        
        /* 그림자 */
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
        
        /* 배지 색상 (다크모드) */
        --badge-primary-bg: #1e3a8a;
        --badge-primary-text: #bfdbfe;
        --badge-success-bg: #065f46;
        --badge-success-text: #d1fae5;
        --badge-warning-bg: #78350f;
        --badge-warning-text: #fef3c7;
        --badge-danger-bg: #7f1d1d;
        --badge-danger-text: #fee2e2;
        --badge-gray-bg: #374151;
        --badge-gray-text: #d1d5db;
        
        /* 알림 색상 (다크모드) */
        --alert-success-bg: #064e3b;
        --alert-success-text: #d1fae5;
        --alert-success-border: #065f46;
        --alert-error-bg: #7f1d1d;
        --alert-error-text: #fee2e2;
        --alert-error-border: #991b1b;
        --alert-info-bg: #1e3a8a;
        --alert-info-text: #dbeafe;
        --alert-info-border: #1e40af;
        --alert-warning-bg: #78350f;
        --alert-warning-text: #fef3c7;
        --alert-warning-border: #92400e;
        
        /* 카드 배경 색상 (다크모드) - 밝은 회색으로 변경 */
        --card-bg: #2d3748;
        --card-border: #4a5568;
        --card-hover-bg: #3a4556;
        
        /* 폼 레이블 색상 (다크모드) - 밝게 */
        --label-color: #e2e8f0;
        
        /* 인풋/버튼 hover 배경 (다크모드) */
        --hover-primary-bg: #1e3a8a;
        --hover-danger-bg: #7f1d1d;
        --hover-warning-bg: #78350f;

        /* Navigation UI Tokens (dark) */
        --nav-active-bg: rgba(59, 130, 246, 0.24);
        --nav-active-text: #93c5fd;
        --nav-hover-bg: rgba(59, 130, 246, 0.18);
        --nav-danger-text: #fca5a5;
    }
}

/* 수동 다크모드 */
[data-theme="dark"] {
    /* 배경 색상 */
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #374151;
    
    /* 텍스트 색상 */
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    
    /* 테두리 색상 */
    --border-color: #374151;
    --border-hover: #4b5563;
    
    /* 그림자 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    
    /* 배지 색상 (다크모드) */
    --badge-primary-bg: #1e3a8a;
    --badge-primary-text: #bfdbfe;
    --badge-success-bg: #065f46;
    --badge-success-text: #d1fae5;
    --badge-warning-bg: #78350f;
    --badge-warning-text: #fef3c7;
    --badge-danger-bg: #7f1d1d;
    --badge-danger-text: #fee2e2;
    --badge-gray-bg: #374151;
    --badge-gray-text: #d1d5db;
    
    /* 알림 색상 (다크모드) */
    --alert-success-bg: #064e3b;
    --alert-success-text: #d1fae5;
    --alert-success-border: #065f46;
    --alert-error-bg: #7f1d1d;
    --alert-error-text: #fee2e2;
    --alert-error-border: #991b1b;
    --alert-info-bg: #1e3a8a;
    --alert-info-text: #dbeafe;
    --alert-info-border: #1e40af;
    --alert-warning-bg: #78350f;
    --alert-warning-text: #fef3c7;
    --alert-warning-border: #92400e;
    
    /* 카드 배경 색상 (다크모드) - 밝은 회색으로 변경 */
    --card-bg: #2d3748;
    --card-border: #4a5568;
    --card-hover-bg: #3a4556;
    
    /* 폼 레이블 색상 (다크모드) - 밝게 */
    --label-color: #e2e8f0;
    
    /* 인풋/버튼 hover 배경 (다크모드) */
    --hover-primary-bg: #1e3a8a;
    --hover-danger-bg: #7f1d1d;
    --hover-warning-bg: #78350f;

    /* Navigation UI Tokens (dark) */
    --nav-active-bg: rgba(59, 130, 246, 0.24);
    --nav-active-text: #93c5fd;
    --nav-hover-bg: rgba(59, 130, 246, 0.18);
    --nav-danger-text: #fca5a5;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px; /* 가이드: 모바일도 16px 기본(줌 방지/가독성) */
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    transition: background-color 0.3s, color 0.3s;
}

/* ============================================
   Spacing Utilities (8pt Grid)
   ============================================ */
.sm-divider {
    height: 1px;
    background: var(--bg-tertiary);
    margin: 32px 0; /* desktop section divider */
}
.sm-divider--tight {
    margin: 24px 0;
}
.sm-muted-center {
    text-align: center;
    padding: 2rem;
    color: var(--text-tertiary);
}

/* 섹션 단위(모달/페이지 공통): 8pt grid 기반 */
.sm-section {
    margin-bottom: 32px;
}
.sm-section--divider-strong {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

/* ============================================
   Typography / Panels (Job detail, forms, etc.)
   ============================================ */
.sm-section-title {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem; /* 16px */
}

.sm-kv-label {
    font-size: 0.875rem; /* 14px */
    color: var(--text-tertiary);
    margin-bottom: 0.5rem; /* 8px */
    font-weight: 500;
}

.sm-kv-value {
    font-size: 1rem; /* 16px */
    color: var(--text-primary);
    font-weight: 600;
}

.sm-kv-value--primary {
    color: var(--primary-color);
    font-weight: 700;
}

.sm-kv-value--success {
    color: var(--success-color);
    font-weight: 700;
}

.sm-panel {
    padding: 1rem; /* 16px */
    border-radius: 0.75rem; /* 12px */
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.sm-panel--warning {
    background: var(--alert-warning-bg);
    border-color: var(--alert-warning-border);
    color: var(--alert-warning-text);
}

.sm-panel--success {
    background: var(--alert-success-bg);
    border-color: var(--alert-success-border);
    color: var(--alert-success-text);
}

.sm-prewrap {
    white-space: pre-wrap;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .sm-section-title {
        margin-bottom: 0.75rem; /* 12px */
    }
    .sm-panel {
        padding: 0.875rem; /* 14px */
        border-radius: 0.75rem;
    }
}
.sm-section--divider {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 767px) {
    .sm-section {
        margin-bottom: 16px;
    }
    .sm-section--divider-strong {
        margin-bottom: 16px;
        padding-bottom: 14px;
    }
    .sm-section--divider {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    .sm-section-title {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    .sm-kv-label {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 767px) {
    .sm-divider {
        margin: 24px 0;
    }
    .sm-divider--tight {
        margin: 16px 0;
    }
}

/* ============================================
   Mobile Bottom Navigation (Dashboard IA)
   ============================================ */
.sm-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* 콘텐츠 위에 항상 보이되, 각종 모달(보통 9999+) 아래에 있도록 적당히 높은 값 */
    z-index: 9000;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    transform: translateZ(0); /* 일부 모바일에서 fixed 레이어 안정화 */
}

.sm-bottom-nav__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    min-height: var(--nav-item-height);
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
}

.sm-bottom-nav__item:hover {
    background: var(--nav-hover-bg);
    color: var(--text-primary);
}

.sm-bottom-nav__item.is-active {
    color: var(--nav-active-text);
    background: var(--nav-active-bg);
}

.sm-bottom-nav__item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

.sm-bottom-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sm-bottom-nav__icon i {
    width: var(--nav-icon-size);
    height: var(--nav-icon-size);
}

.sm-bottom-nav__badge {
    position: absolute;
    top: 6px;
    right: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--danger-color);
    color: #fff;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.has-bottom-nav {
    padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important; /* nav height + safe area */
}

/* 페이지 메인 컨텐츠(대시보드): 세로 패딩은 여기서 통일(인라인 padding 제거) */
.container.has-bottom-nav {
    padding-top: 32px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 767px) {
    .sm-bottom-nav {
        display: grid;
    }
}

/* ============================================
   Matching Pipeline UI (chips + counts)
   ============================================ */
.sm-pipeline__title{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:1rem;
    margin-bottom:0.75rem;
}
.sm-pipeline__hint{
    font-size:0.8125rem;
    color:var(--text-tertiary);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.sm-pipeline__chips{
    display:flex;
    flex-wrap:nowrap;
    gap:0.5rem;
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width:none;
}
.sm-pipeline__chips::-webkit-scrollbar{ display:none; }
.sm-chip{
    display:inline-flex;
    align-items:center;
    gap:0.5rem;
    padding:0.5rem 0.75rem;
    border-radius:999px;
    border:1px solid var(--border-color);
    background:var(--bg-secondary);
    color:var(--text-secondary);
    font-size:0.875rem;
    cursor:pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space:nowrap;
}
.sm-chip:hover{
    background:var(--hover-primary-bg);
    color:var(--text-primary);
}
.sm-chip.is-active{
    background:var(--role-soft-bg);
    border-color:var(--role-primary);
    color:var(--role-primary-dark);
    font-weight:700;
}
.sm-chip__count{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:20px;
    height:20px;
    padding:0 6px;
    border-radius:999px;
    background:var(--bg-tertiary);
    color:var(--text-secondary);
    font-size:0.75rem;
}
.sm-chip.is-active .sm-chip__count{
    background:var(--role-soft-bg);
    color:var(--role-primary-dark);
}

/* badge-primary/secondary가 없을 수 있어 보조 정의(기존 스타일 보존) */
.badge-primary {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.25);
}
.badge-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* PRMS 연동 CTA로 스크롤 유도 시 하이라이트 */
.sm-attention-ring {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 4px;
    border-radius: 10px;
    animation: smAttentionPulse 1.1s ease-in-out 0s 2;
}

@keyframes smAttentionPulse {
    0% { outline-color: rgba(37, 99, 235, 0.10); }
    50% { outline-color: rgba(37, 99, 235, 0.65); }
    100% { outline-color: rgba(37, 99, 235, 0.10); }
}


/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    /* 가이드(데스크탑 좌우 24-32px) */
    padding: 0 24px;
}

/* Header */
.header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--role-primary, var(--primary-color));
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.nav a:hover {
    color: var(--primary-color);
    background-color: var(--hover-primary-bg);
}

.nav a:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* Buttons */
.btn {
    /* 2024-2025 UI 가이드: 데스크탑 최소 40px, 권장 44-48px */
    min-height: 44px;
    padding: 0.625rem 1.25rem; /* ~10px 20px */
    border: none;
    /* 2024-2025 트렌드: radius 8px (토큰) */
    border-radius: var(--radius-md);
    /* 버튼 텍스트: 14-16px 권장 (토큰) */
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    /* 아이콘+텍스트 정렬 안정화 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.btn i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* 프로덕트 룩: focus-visible(키보드 사용자)만 더 명확하게 */
.btn:focus-visible,
button:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

/* ============================================
   Security Panel (shared: jobseeker/employer)
   ============================================ */
.header-icon-btn.security-btn:hover {
    background: var(--alert-info-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.security-slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: none;
}
.security-slide-panel.active {
    display: block;
}
.security-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}
.security-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--bg-primary);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s;
}
.security-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.security-panel-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.panel-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-tertiary);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.panel-close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
.security-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    /* 드롭다운이 패널 하단에서 잘리지 않도록 스크롤 여유 확보 */
    padding-bottom: 2rem;
}
/* 설정 패널 내 select 드롭다운 — 패널 경계를 넘지 않도록 z-index 격리 */
.security-panel-body select.form-input {
    position: relative;
    z-index: 1;
}
.security-section {
    margin-bottom: 1.5rem;
}
.security-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.security-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
}
.security-card-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}
.security-card-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Toggle switch (shared) */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    display: inline-block;
    flex-shrink: 0;
}
.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}
.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 26px;
    z-index: 1;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: #16a34a;
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* 회원 탈퇴 섹션 (jobseeker/employer 동일) */
.withdrawal-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}
.withdrawal-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.withdrawal-warning-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.withdrawal-warning-text {
    font-size: 0.875rem;
    color: #991b1b;
    line-height: 1.5;
}
.withdrawal-checklist {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.withdrawal-checklist-item {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.withdrawal-checklist-item:last-child {
    margin-bottom: 0;
}
.withdrawal-checklist-item input[type="checkbox"] {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    /* 역할 테마가 있으면 역할색, 없으면 기본 primary */
    background-color: var(--role-primary, var(--primary-color));
    color: white;
}

.btn-primary:hover {
    background-color: var(--role-primary-dark, var(--primary-hover));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background-color: var(--gray-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--gray-hover);
}

.btn-outline {
    background-color: transparent;
    /* 가이드: 기본 border 1px(포커스에서 강조) */
    border: 1px solid var(--role-primary, var(--primary-color));
    color: var(--role-primary, var(--primary-color));
}

.btn-outline:hover {
    background-color: var(--role-primary, var(--primary-color));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.btn-outline:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: var(--success-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: var(--warning-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.btn-warning:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: var(--fs-md);
    /* Large 버튼: 데스크탑 48px+ 권장 */
    min-height: 52px;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: var(--fs-xs);
    /* Small 버튼: 데스크탑 32-36px 권장 */
    min-height: 36px;
}

/* Form */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--label-color);
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    /* 2024-2025 UI 가이드: 데스크탑 입력 44-48px + 본문 16px */
    min-height: 44px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem; /* 16px: 모바일 줌 방지 + 가독성 */
    transition: all 0.2s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:hover {
    border-color: var(--border-hover);
}

.form-input.error {
    border-color: var(--danger-color);
}

.form-error {
    color: var(--danger-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select:hover {
    border-color: var(--border-hover);
}

.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    min-height: 100px;
    resize: vertical;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea:hover {
    border-color: var(--border-hover);
}

/* Card */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    /* 2024-2025 트렌드: radius 12px + subtle shadow */
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem; /* 24px */
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    background-color: var(--card-hover-bg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
}

.badge-primary {
    background-color: var(--badge-primary-bg);
    color: var(--badge-primary-text);
}

.badge-success {
    background-color: var(--badge-success-bg);
    color: var(--badge-success-text);
}

.badge-warning {
    background-color: var(--badge-warning-bg);
    color: var(--badge-warning-text);
}

.badge-danger {
    background-color: var(--badge-danger-bg);
    color: var(--badge-danger-text);
}

.badge-gray {
    background-color: var(--badge-gray-bg);
    color: var(--badge-gray-text);
}

/* Alert */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: var(--alert-success-bg);
    color: var(--alert-success-text);
    border: 1px solid var(--alert-success-border);
}

.alert-error {
    background-color: var(--alert-error-bg);
    color: var(--alert-error-text);
    border: 1px solid var(--alert-error-border);
}

.alert-info {
    background-color: var(--alert-info-bg);
    color: var(--alert-info-text);
    border: 1px solid var(--alert-info-border);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    /* 하단 바(sm-bottom-nav: 9000)보다 위에 위치 */
    z-index: 9100;
}

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

.modal {
    background-color: var(--bg-primary);
    border-radius: 1rem;
    max-width: 90%;
    max-height: 90vh;
    /* flex column: 헤더/푸터 고정 + 바디 스크롤 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-tertiary);
}

.modal-body {
    padding: 1.5rem;
    /* 헤더/푸터는 고정하고 본문만 스크롤 (데스크탑 포함) */
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-footer {
    padding: 1.5rem;
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Utility */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
    display: none !important;
}

/* Loading Spinner */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   새로운 UI 컴포넌트
   ============================================ */

/* 다크모드 토글 버튼 */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.2s, background-color 0.3s;
    display: none !important;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle svg,
.theme-toggle i {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

/* Toast 알림 시스템 */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    /* 근무일정 모달(z-index ~10020) 등 오버레이보다 위 */
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 500px;
    padding: 12px 20px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.toast-success {
    background-color: var(--success-color);
    color: white;
}

.toast.toast-error {
    background-color: var(--danger-color);
    color: white;
}

.toast.toast-info {
    background-color: var(--primary-color);
    color: white;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    opacity: 1;
}

/* Custom dialog (alert / confirm) */
.sm-dialog-host {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
}

.sm-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.52);
    backdrop-filter: blur(2px);
    display: grid;
    place-items: center;
    padding: 1.25rem;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.16s ease;
    pointer-events: auto;
}

.sm-dialog-overlay.show {
    opacity: 1;
}

.sm-dialog {
    width: min(440px, 100%);
    max-width: 100%;
    min-width: 0;
    margin: 0;
    justify-self: center;
    align-self: center;
    border-radius: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 1.1rem 1rem 0.95rem;
    box-sizing: border-box;
}

.sm-dialog__icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    margin: 0 auto 0.7rem;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-color);
}

.sm-dialog--warning .sm-dialog__icon,
.sm-dialog--danger .sm-dialog__icon {
    background: rgba(220, 38, 38, 0.12);
    color: var(--danger-color);
}

.sm-dialog--danger .sm-dialog__btn.js-sm-dialog-ok {
    background: var(--danger-color);
    color: #fff;
    border: none;
}
.sm-dialog--danger .sm-dialog__btn.js-sm-dialog-ok:hover {
    filter: brightness(0.95);
}

.sm-dialog--logout .sm-dialog__icon {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}
.sm-dialog--logout .sm-dialog__btn.js-sm-dialog-ok {
    background: #475569;
    color: #fff;
    border: none;
}
.sm-dialog--logout .sm-dialog__btn.js-sm-dialog-ok:hover {
    background: #334155;
}

.sm-dialog__icon svg,
.sm-dialog__icon i {
    width: 20px;
    height: 20px;
}

.sm-dialog__title {
    margin: 0 0 0.45rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sm-dialog__message {
    margin: 0;
    text-align: center;
    font-size: 0.915rem;
    color: var(--text-secondary);
    line-height: 1.45;
    white-space: normal;
    max-height: min(44vh, 320px);
    overflow: auto;
}

.sm-dialog__actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.sm-dialog__input-wrap {
    margin-top: 0.8rem;
}

.sm-dialog__input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-size: 0.92rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.sm-dialog__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.sm-dialog__input::placeholder {
    color: #b0bac5;
    font-size: 0.85rem;
    font-style: italic;
}

.sm-dialog__btn {
    flex: 1;
    min-width: 0;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--border-color) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.large {
    height: 24px;
}

.skeleton-text.small {
    height: 12px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-button {
    height: 40px;
    width: 120px;
}

.skeleton-card {
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

/* Skeleton 카드 레이아웃 */
.skeleton-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ============================================
   개선된 반응형 디자인
   ============================================ */

/* 초소형 모바일 (320px ~ 374px) */
@media (max-width: 374px) {
    .container {
        padding: 0 12px;
    }
    
    .btn {
        min-height: 44px;
        font-size: var(--fs-base);
        padding: 0 1rem;
    }
    
    .form-input,
    .form-select {
        font-size: var(--fs-md); /* iOS 자동 줌 방지(16px) */
        min-height: 44px;
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: var(--fs-xl);
    }
    
    .nav {
        font-size: 0.75rem;
        gap: 0.75rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .theme-toggle {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 16px;
    }
    
    .toast {
        min-width: 280px;
        font-size: 0.8125rem;
        padding: 10px 16px;
    }
}

/* 모바일 (375px ~ 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }

    .container.has-bottom-nav {
        padding-top: 8px;
    }
    
    .btn {
        min-height: 48px;
        font-size: 0.9375rem; /* 15px, 모바일 가독성 */
    }
    
    .form-input,
    .form-select {
        font-size: var(--fs-md); /* iOS 자동 줌 방지(16px) */
        min-height: 48px;
        padding: 0.75rem 1rem; /* 12px/16px */
    }

    /* Small 버튼도 모바일 터치 영역 확보 */
    .btn-sm {
        min-height: 44px;
        font-size: var(--fs-base);
        padding: 0 0.875rem;
    }
    
    .modal {
        width: 100%;
        height: 100vh;
        height: var(--app-height, 100dvh);
        max-height: none;
        max-width: none;
        border-radius: 0;
        /* 모바일: flex column → 헤더/푸터 고정, 바디 스크롤 */
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .modal-body {
        flex: 1 1 0;
        min-height: 0;
        overflow-y: auto;
    }
    .modal-header,
    .modal-footer {
        flex-shrink: 0;
    }

    /* 2차 UI 정리: 모바일 모달 내부 패딩(20~24px 권장) */
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.25rem; /* 20px */
    }

    /* 3차 UI 정리: 모바일 모달 footer 버튼 정렬 안정화(한 줄/두 줄 모두 자연스럽게) */
    .modal-footer {
        flex-wrap: wrap;
        /* safe-area 확보 (모달이 하단 바 위에 표시될 때 버튼이 가리지 않도록) */
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }
    .modal-footer .btn {
        flex: 1 1 140px; /* 2열로 자연스럽게, 좁으면 줄바꿈 */
        min-width: 0;
    }

    /* 2차 UI 정리: 모바일 카드 밀도(16~20px 권장) */
    .card {
        padding: 1.25rem; /* 20px */
        margin-bottom: 1rem; /* 16px */
        border-radius: 0.75rem;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* 터치 영역 확대 */
    .nav a,
    .btn,
    .form-input,
    .form-select {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* 모바일 햄버거 메뉴 - 모바일에서만 표시 */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-primary);
        z-index: 101;
    }
    
    .mobile-menu-toggle svg,
    .mobile-menu-toggle i {
        width: 24px;
        height: 24px;
    }
    
    .mobile-menu-toggle:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* 데스크탑에서는 기본 네비게이션 표시 */
    .user-info {
        display: flex;
    }
    
    /* 모바일 메뉴 오버레이 - 모바일에서만 표시 */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 9500; /* 하단 탭바(9000) 위 */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        display: block !important;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 모바일 메뉴 컨테이너 - 오른쪽에서 왼쪽으로 열림 */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        height: var(--app-height, 100dvh);
        background: var(--bg-primary);
        box-shadow: -2px 0 16px rgba(0, 0, 0, 0.12);
        z-index: 9600; /* 오버레이(9500)보다 위, 탭바(9000)보다 위 */
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(.23, 1, .32, 1);
        overflow: hidden; /* 헤더 고정 위해 부모 overflow 제거, 리스트에서 처리 */
        display: flex !important;
        flex-direction: column;
    }
    
    .mobile-menu.active {
        transform: translateX(0);
    }
    
    /* 모바일 메뉴 헤더 */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-secondary);
    }
    
    .mobile-menu-header h3 {
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0;
    }

    /* ── 통합 드로어 헤더 (구직자·구인자 공통) ── */
    .js-mobile-menu-head,
    .em-mobile-menu-head {
        display: flex;
        align-items: center;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--border-color);
        gap: 0;
        min-height: 60px;
        flex-shrink: 0; /* 헤더는 항상 상단 고정, 압축 금지 */
    }
    
    .mobile-menu-close {
        width: 40px;
        height: 40px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.375rem;
        transition: background-color 0.2s;
    }
    
    .mobile-menu-close:hover {
        background-color: var(--hover-primary-bg);
    }
    
    .mobile-menu-close:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .mobile-menu-close svg,
    .mobile-menu-close i {
        width: 24px;
        height: 24px;
    }
    
    /* 모바일 메뉴 리스트 */
    .mobile-menu-list {
        list-style: none;
        padding: 0;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
        margin: 0;
        flex: 1 1 0;
        min-height: 0; /* flex 자식 overflow 필수 */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-menu-item {
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-group-title {
        list-style: none;
        padding: 0.4rem 1rem;
        font-size: var(--nav-group-label-size);
        font-weight: 700;
        letter-spacing: 0.04em;
        color: var(--text-tertiary);
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-item:last-child {
        border-bottom: none;
    }

    .mobile-menu-link {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.65rem 1rem;
        color: var(--text-primary);
        text-decoration: none;
        transition: background-color 0.2s;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .mobile-menu-link:hover,
    .mobile-menu-link:focus {
        background-color: var(--nav-hover-bg);
        outline: none;
    }
    
    .mobile-menu-link.active {
        background-color: var(--nav-active-bg);
        color: var(--nav-active-text);
        font-weight: 600;
    }

    .mobile-menu-link:focus-visible {
        outline: none;
        box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.35);
        background-color: var(--nav-hover-bg);
    }
    
    .mobile-menu-link svg,
    .mobile-menu-link i {
        width: var(--nav-icon-size);
        height: var(--nav-icon-size);
        flex-shrink: 0;
    }

    .mobile-menu-link[data-nav="logout"] {
        color: var(--danger-color);
    }

    .mobile-menu-link[data-nav="logout"]:hover,
    .mobile-menu-link[data-nav="logout"].active {
        color: var(--nav-danger-text);
        background-color: var(--hover-danger-bg);
    }
    
    /* 모바일에서 기본 user-info 숨김 */
    .user-info {
        display: none !important;
    }
    
    .user-info.mobile-visible {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
}

/* 기본: 햄버거 메뉴 숨김 (데스크탑 기본값) */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-overlay,
.mobile-menu {
    display: none;
}

/* 데스크탑에서는 햄버거 메뉴 완전히 숨김 */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu-overlay,
    .mobile-menu {
        display: none !important;
    }
    
    .user-info {
        display: flex !important;
    }
}

/* 실시간 검색 제안 스타일 */
.search-autocomplete-container {
    position: relative;
    width: 100%;
}

.sm-search-block {
    margin-bottom: 1.5rem;
}

.search-autocomplete-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-autocomplete-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-autocomplete-input::placeholder {
    color: var(--text-tertiary);
}

.search-autocomplete-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    pointer-events: none;
}

/* ============================================
   Toolbar / Filter Card (dashboard)
   ============================================ */
.sm-toolbar-card {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.sm-toolbar-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.sm-toolbar-search {
    flex: 1;
    min-width: 220px;
}

.sm-toolbar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sm-filter-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem;
    margin-bottom: 0.85rem;
}

.sm-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
}

.sm-toolbar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.sm-toolbar-total {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.sm-toolbar-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sm-toolbar-sort label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sm-toolbar-sort-select {
    width: auto;
    min-height: 38px;
    padding: 0.45rem 0.7rem;
}

.sm-pagination-row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

/* ============================================
   Section Header / Empty State
   ============================================ */
.sm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sm-section-head--spacious {
    margin-bottom: 2rem;
}

.sm-section-head__title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sm-section-head__title i {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.sm-section-head__sub {
    margin: 0.2rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sm-section-head__meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sm-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
    border-radius: 14px;
    background: var(--bg-primary);
}

.sm-empty-state__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-tertiary);
}

.sm-empty-state__icon i {
    width: 22px;
    height: 22px;
}

.sm-empty-state__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sm-empty-state__desc {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-suggestions-dropdown.active {
    display: block;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.highlighted {
    background-color: var(--hover-primary-bg);
}

.search-suggestion-item svg,
.search-suggestion-item i {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-suggestion-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.search-suggestion-keyword {
    font-weight: 600;
    color: var(--primary-color);
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.search-recent-searches {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.search-recent-searches-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.search-recent-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.15s;
}

.search-recent-item:hover {
    background-color: var(--hover-primary-bg);
}

.search-recent-item-remove {
    width: 16px;
    height: 16px;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.15s, color 0.15s;
}

.search-recent-item-remove:hover {
    background-color: var(--hover-primary-bg);
    color: var(--text-primary);
}

/* 모바일에서 검색 제안 스타일 조정 */
@media (max-width: 767px) {
    .search-suggestions-dropdown {
        max-height: 250px;
    }
    
    .search-suggestion-item {
        padding: 0.625rem 0.875rem;
    }
}

/* 태블릿 세로 (768px ~ 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 720px;
        padding: 0 24px;
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal {
        max-width: 600px;
    }
}

/* 태블릿 가로 / 소형 노트북 (1024px ~ 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 960px;
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modal {
        max-width: 800px;
    }
}

/* 데스크탑 (1440px 이상) */
@media (min-width: 1440px) {
    .container {
        max-width: 1280px;
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modal {
        max-width: 900px;
    }
    
    /* 대형 화면 호버 효과 강화 */
    .card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
        transition: box-shadow 0.3s, transform 0.3s;
    }
    
    .btn:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);
    }
}

/* iOS 안전 영역 대응 */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .toast-container {
        bottom: max(20px, calc(20px + env(safe-area-inset-bottom)));
    }
    
    .theme-toggle {
        bottom: max(20px, calc(20px + env(safe-area-inset-bottom)));
        right: max(20px, calc(20px + env(safe-area-inset-right)));
    }
}

/* Capacitor 앱 / ?client=app — 홈 인디케이터 여유 (StatusBar overlay=false라 top은 OS가 처리) */
html.sm-native-app,
html.sm-client-app {
    --sm-safe-bottom: env(safe-area-inset-bottom, 0px);
}
html.sm-native-app .sm-footer,
html.sm-client-app .sm-footer {
    padding-bottom: max(0.75rem, calc(0.5rem + var(--sm-safe-bottom, 0px)));
}

/* 가로 모드 최적화 */
@media (orientation: landscape) and (max-height: 428px) {
    .modal {
        max-height: 95vh;
    }
    
    .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* 인쇄 최적화 */
@media print {
    .header,
    .theme-toggle,
    .toast-container,
    .btn {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* ============================================
   Footer (modern + lucide)
   ============================================ */
/* ── 컴팩트 푸터 (단일 바 형태) ── */
.sm-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.sm-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* 브랜드 영역 (좌측) */
.sm-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.sm-footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.sm-footer__logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    color: #fff;
    flex-shrink: 0;
}

.sm-footer__logo-icon i {
    width: 14px;
    height: 14px;
}

.sm-footer__logo-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sm-footer__logo-sub {
    display: none;
}

.sm-footer__brand-text {
    display: none;
}

/* 구분선 */
.sm-footer__divider {
    width: 1px;
    height: 14px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* 바로가기 링크 영역 (중앙) */
.sm-footer__section {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sm-footer__section h4 {
    display: none;
}

.sm-footer__links {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.sm-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    transition: background-color .15s ease, color .15s ease;
    white-space: nowrap;
}

.sm-footer__link:hover {
    background: var(--hover-primary-bg);
    color: var(--primary-color);
}

.sm-footer__link i {
    width: 13px;
    height: 13px;
}

/* 고객지원 (데스크탑: 우측 flex 가로 나열) */
.sm-footer__info-list {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.sm-footer__info-list p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
}

.sm-footer__info-list i {
    width: 13px;
    height: 13px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* 카피라이트 바 */
.sm-footer__bottom {
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    text-align: center;
    background: var(--bg-secondary);
}

.sm-footer__bottom p {
    margin: 0;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* ── 모바일: 세로 블록, 하단 탭바 높이만큼 여백 확보 ── */
@media (max-width: 767px) {
    .sm-footer {
        /* 하단 고정 탭바(~70px) + 안전 영역 + 여유 여백 */
        padding-bottom: calc(70px + env(safe-area-inset-bottom) + 0.5rem);
        margin-top: 1.5rem;
    }

    .sm-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1rem 1rem 0.6rem;
    }

    /* 브랜드 로고 */
    .sm-footer__brand {
        margin-bottom: 0.7rem;
    }

    /* 구분선 → 가로 실선 */
    .sm-footer__divider {
        width: 100%;
        height: 1px;
        margin: 0.55rem 0;
    }

    /* 바로가기 섹션 */
    .sm-footer__section {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .sm-footer__links {
        flex-wrap: wrap;
        gap: 0.1rem 0.15rem;
    }

    /* 고객지원: 2열 그리드 */
    .sm-footer__info-list {
        margin-left: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem 0.6rem;
        width: 100%;
    }

    /* 긴 항목(통신판매·주소·이메일·보호책임자 등)은 전체 폭 */
    .sm-footer__info-list p:nth-child(n+3) {
        grid-column: 1 / -1;
        white-space: normal;
        word-break: keep-all;
    }

    /* 카피라이트 */
    .sm-footer__bottom {
        padding: 0.45rem 1rem 0.5rem;
        text-align: left;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Auth Role Design Token System
   ============================================ */

/* 구직자 — Blue & Mint */
.auth-shell[data-role="jobseeker"] {
    --role-primary:      #2563eb;
    --role-primary-dark: #1d4ed8;
    --role-sub:          #10b981;
    --role-sub-dark:     #059669;
    --role-gradient:     linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --role-blob-a:       rgba(37, 99, 235, 0.13);
    --role-blob-b:       rgba(14, 165, 233, 0.09);
    --role-light:        rgba(37, 99, 235, 0.07);
    --role-border:       rgba(37, 99, 235, 0.18);
    --role-focus-ring:   rgba(37, 99, 235, 0.16);
    --role-accent-bar:   linear-gradient(135deg, #2563eb, #0ea5e9);
    --role-logo-grad:    linear-gradient(130deg, #1d4ed8 20%, #0ea5e9 85%);
    --role-badge-bg:     rgba(16, 185, 129, 0.1);
    --role-badge-text:   #059669;
    --role-badge-border: rgba(16, 185, 129, 0.22);
    --role-label:        "구직자";
}

/* 구인자 — Indigo & Purple */
.auth-shell[data-role="employer"] {
    --role-primary:      #4f46e5;
    --role-primary-dark: #4338ca;
    --role-sub:          #7c3aed;
    --role-sub-dark:     #6d28d9;
    --role-gradient:     linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --role-blob-a:       rgba(79, 70, 229, 0.13);
    --role-blob-b:       rgba(124, 58, 237, 0.09);
    --role-light:        rgba(79, 70, 229, 0.07);
    --role-border:       rgba(79, 70, 229, 0.18);
    --role-focus-ring:   rgba(79, 70, 229, 0.16);
    --role-accent-bar:   linear-gradient(135deg, #4f46e5, #7c3aed);
    --role-logo-grad:    linear-gradient(130deg, #4f46e5 20%, #7c3aed 85%);
    --role-badge-bg:     rgba(124, 58, 237, 0.1);
    --role-badge-text:   #7c3aed;
    --role-badge-border: rgba(124, 58, 237, 0.22);
    --role-label:        "구인자";
}

/* ── 공통 Auth Shell 배경 ── */
.auth-shell {
    min-height: 100vh;
    background: #f3f7ff;
    position: relative;
    overflow-x: hidden;
}

.auth-shell .auth-blob {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #f3f7ff;
}
.auth-shell .auth-blob::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    top: -200px; left: -180px;
    background: radial-gradient(circle, var(--role-blob-a, rgba(37,99,235,0.12)) 0%, transparent 68%);
    animation: authBlobA 11s ease-in-out infinite alternate;
}
.auth-shell .auth-blob::after {
    content: '';
    position: absolute;
    width: 540px; height: 540px;
    border-radius: 50%;
    bottom: -130px; right: -110px;
    background: radial-gradient(circle, var(--role-blob-b, rgba(14,165,233,0.08)) 0%, transparent 68%);
    animation: authBlobB 13s ease-in-out infinite alternate;
}
@keyframes authBlobA {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(70px, 60px) scale(1.14); }
}
@keyframes authBlobB {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-55px, -45px) scale(1.1); }
}

/* ── 공통 Auth 카드 ── */
.auth-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 24px;
    box-shadow:
        0 2px 0 rgba(37, 99, 235, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    width: 100%;
    animation: authCardIn 0.7s cubic-bezier(.23, 1, .32, 1) both;
}
@keyframes authCardIn {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 카드 상단 역할 컬러 바 */
.auth-card::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--role-accent-bar, linear-gradient(135deg, #2563eb, #0ea5e9));
}

/* ── 공통 Auth 로고 ── */
.auth-logo {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: var(--role-logo-grad, linear-gradient(130deg, #1d4ed8, #0ea5e9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

/* 역할 배지 */
.auth-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: var(--role-badge-bg, rgba(37,99,235,0.08));
    color: var(--role-badge-text, #2563eb);
    border: 1px solid var(--role-badge-border, rgba(37,99,235,0.18));
}
.auth-role-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

/* ── 공통 Auth 인풋 ── */
.auth-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #334155;
    background: #ffffff;
    font-family: inherit;
    transition: border-color .18s, box-shadow .18s;
}
.auth-input::placeholder { color: #94a3b8; }
.auth-input:focus {
    outline: none;
    border-color: var(--role-primary, #2563eb);
    box-shadow: 0 0 0 3px var(--role-focus-ring, rgba(37,99,235,0.14));
}
.auth-input.verified {
    border-color: #10b981;
    background: #f0fdf4;
}

/* ── 공통 Auth 버튼 ── */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--role-gradient, linear-gradient(135deg, #2563eb, #0ea5e9));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 16px var(--role-focus-ring, rgba(37,99,235,0.25));
    transition: transform .2s, box-shadow .2s, opacity .2s;
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--role-focus-ring, rgba(37,99,235,0.32));
}
.auth-btn:active  { transform: translateY(0); }
.auth-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Auth 보조 버튼 */
.auth-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.72rem 1.1rem;
    background: var(--role-light, rgba(37,99,235,0.07));
    color: var(--role-primary, #2563eb);
    border: 1px solid var(--role-border, rgba(37,99,235,0.18));
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .18s;
    white-space: nowrap;
}
.auth-btn-ghost:hover {
    background: var(--role-border, rgba(37,99,235,0.14));
}
.auth-btn-ghost:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Auth 폼 ── */
.auth-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.45rem;
}
.auth-form-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.3rem;
}
.auth-form-group { margin-bottom: 1.1rem; }

/* 뒤로가기 링크 */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color .18s;
}
.auth-back:hover { color: var(--role-primary, #2563eb); }
.auth-back svg, .auth-back i { width: 16px; height: 16px; }

/* 링크 텍스트 */
.auth-link {
    color: var(--role-primary, #2563eb);
    font-weight: 600;
    text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

/* 에러 알림 */
.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1.2rem;
}

/* Step Indicator (구인자 6단계) */
.auth-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    position: relative;
}
.auth-steps::before {
    content: '';
    position: absolute;
    top: 18px; left: 10%; right: 10%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    position: relative;
    z-index: 1;
}
.auth-step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all .3s;
}
.auth-step.active .auth-step-circle {
    background: var(--role-gradient, linear-gradient(135deg, #2563eb, #0ea5e9));
    color: #ffffff;
    box-shadow: 0 4px 12px var(--role-focus-ring, rgba(37,99,235,0.3));
}
.auth-step.completed .auth-step-circle {
    background: var(--role-sub, #10b981);
    color: #ffffff;
}
.auth-step-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    line-height: 1.2;
}
.auth-step.active .auth-step-label { color: var(--role-primary, #2563eb); }
.auth-step.completed .auth-step-label { color: var(--role-sub, #10b981); }

/* SM-P0-04: 알림 · 안전 패널 */
.notification-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-secondary, #f9fafb);
}

.notification-tabs {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
}

.notification-tab {
    border: none;
    background: transparent;
    color: var(--text-secondary, #6b7280);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
}

.notification-tab.is-active {
    background: var(--role-primary, #2563eb);
    color: #fff;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: var(--card-bg, #fff);
    transition: background 0.2s;
}

.notification-item--unread {
    background: rgba(37, 99, 235, 0.04);
}

.notification-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.notification-item__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

.notification-item__title {
    color: var(--text-primary, #111827);
    font-size: 0.9375rem;
}

.notification-item__time {
    font-size: 0.75rem;
    color: var(--text-tertiary, #9ca3af);
    white-space: nowrap;
}

.notification-item__message {
    color: var(--text-secondary, #6b7280);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.notification-item__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.625rem;
}

.sp-section-icon--shield {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.sp-section-icon--shield i {
    color: #059669;
}

.trust-safety-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trust-safety-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.625rem;
    background: var(--bg-primary, #fff);
}

.trust-safety-item__main {
    min-width: 0;
    flex: 1;
}

.trust-safety-item__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    line-height: 1.35;
}

.trust-safety-item__detail {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.4;
}

.trust-safety-item__meta {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-tertiary, #9ca3af);
}

.trust-safety-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    margin-right: 0.35rem;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary-color);
    font-size: 0.6875rem;
    font-weight: 700;
}

