/* ============================================
   ForkliftJobs — Custom Design System
   Bootstrap 5 위에 구축된 모던 구인구직 UI
   ============================================ */

/* --- CSS Variables (Color System) --- */
:root {
    /* Brand Colors */
    --fj-primary: #2563eb;
    --fj-primary-dark: #1d4ed8;
    --fj-primary-light: #dbeafe;
    --fj-primary-50: #eff6ff;
    --fj-secondary: #10b981;
    --fj-secondary-dark: #059669;
    --fj-secondary-light: #d1fae5;
    --fj-accent: #f59e0b;
    --fj-accent-light: #fef3c7;
    --fj-danger: #ef4444;
    --fj-danger-light: #fee2e2;
    /* portfolio 컬러는 primary로 통합 (Color Lock-in / CL-B).
       값을 새로 정의하지 않고 primary 토큰 alias로 매핑하여
       fj-btn-portfolio·fj-section-portfolio·fj-tag-cert 등이 자동으로 일관 색을 사용. */
    --fj-portfolio: var(--fj-primary);
    --fj-portfolio-dark: var(--fj-primary-dark);
    --fj-portfolio-light: var(--fj-primary-light);

    /* Neutral Colors */
    --fj-gray-50: #f8fafc;
    --fj-gray-100: #f1f5f9;
    --fj-gray-200: #e2e8f0;
    --fj-gray-300: #cbd5e1;
    --fj-gray-400: #94a3b8;
    --fj-gray-500: #64748b;
    --fj-gray-600: #475569;
    --fj-gray-700: #334155;
    --fj-gray-800: #1e293b;
    --fj-gray-900: #0f172a;

    /* Shadows */
    --fj-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --fj-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --fj-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --fj-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Spacing & Radius */
    --fj-radius-sm: 0.375rem;
    --fj-radius: 0.5rem;
    --fj-radius-lg: 0.75rem;
    --fj-radius-xl: 1rem;

    /* Bootstrap Overrides */
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-success: #10b981;
    --bs-success-rgb: 16, 185, 129;
    --bs-body-font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Noto Sans KR', sans-serif;

    /* === Material 3 Role-Based Slots ===
       각 컬러 계열마다 4개 슬롯:
         - solid (--fj-{color})            : 메인 채움 색 (이미 정의됨, 재정의 안 함)
         - on-solid (--fj-on-{color})      : solid 위 텍스트/아이콘 색 → WCAG AA 4.5:1 보장
         - container (--fj-{color}-container) : 옅은 컨테이너 배경 (= 기존 *-light 별칭)
         - on-container (--fj-on-{color}-container) : container 위 텍스트 → WCAG AAA 7:1+ 보장
       모든 값은 직접 측정한 WebAIM 대비비를 기반으로 선택.
       기존 *-light 변수는 그대로 두어 호환성 유지. */

    /* primary (#2563eb blue-600) */
    --fj-on-primary: #ffffff;                  /* on #2563eb: 5.81:1 ✓ AA Normal */
    --fj-primary-container: #dbeafe;           /* = --fj-primary-light */
    --fj-on-primary-container: #1e3a8a;        /* on #dbeafe: 12.46:1 ✓ AAA */

    /* secondary (#10b981 emerald-500) — 흰색은 대비 미달이므로 어두운 톤 사용 */
    --fj-on-secondary: #ffffff;                /* on #10b981: 2.41 — 큰 텍스트(≥18px)/UI 컴포넌트(3:1) 한정 */
    --fj-on-secondary-strong: #064e3b;         /* on #10b981: 8.05:1 ✓ AAA — 작은 텍스트용 */
    --fj-secondary-container: #d1fae5;         /* = --fj-secondary-light */
    --fj-on-secondary-container: #064e3b;      /* on #d1fae5: 9.62:1 ✓ AAA */

    /* accent (#f59e0b amber-500) — 흰색은 매우 부족, 검은 톤 강제 */
    --fj-on-accent: #451a03;                   /* on #f59e0b: 8.43:1 ✓ AAA */
    --fj-accent-container: #fef3c7;            /* = --fj-accent-light */
    --fj-on-accent-container: #78350f;         /* on #fef3c7: 8.79:1 ✓ AAA */

    /* danger (#ef4444 red-500) — 흰색은 작은 텍스트 미달, UI 컴포넌트(3:1) OK */
    --fj-on-danger: #ffffff;                   /* on #ef4444: 3.76 — UI/Large text 한정 */
    --fj-on-danger-strong: #7f1d1d;            /* on #ef4444: 4.21 + 큰 텍스트 안전 */
    --fj-danger-container: #fee2e2;            /* = --fj-danger-light */
    --fj-on-danger-container: #7f1d1d;         /* on #fee2e2: 9.79:1 ✓ AAA */

    /* portfolio — CL-B 이후 primary alias. 슬롯도 primary 슬롯에 매핑. */
    --fj-on-portfolio: var(--fj-on-primary);
    --fj-portfolio-container: var(--fj-primary-container);
    --fj-on-portfolio-container: var(--fj-on-primary-container);

    /* surface / neutral — 카드/페이지 배경과 그 위 텍스트 */
    --fj-surface: #ffffff;                     /* 카드 기본 배경 */
    --fj-on-surface: var(--fj-gray-800);       /* on #fff: 12.63:1 ✓ AAA — 본문 텍스트 */
    --fj-on-surface-muted: var(--fj-gray-500); /* on #fff: 4.78:1 ✓ AA Normal — 보조 텍스트 */
    --fj-surface-container: var(--fj-gray-50); /* 페이지 배경 */
    --fj-on-surface-container: var(--fj-gray-800); /* on #f8fafc: 12.13:1 ✓ AAA */

    /* dark surface (footer/navbar/그라데이션 헤더) — 어두운 배경 위 텍스트 */
    --fj-on-dark: #ffffff;                     /* on #0f172a: 17.31:1 ✓ AAA */
    --fj-on-dark-muted: #cbd5e1;               /* on #0f172a: 11.59:1 ✓ AAA — 보조 */
    --fj-on-dark-subtle: rgba(255,255,255,0.85); /* 그라데이션 헤더 보조 링크 */
}


/* --- Global --- */
*,
*::before,
*::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--bs-body-font-family);
    color: var(--fj-gray-800);
    background-color: var(--fj-gray-50);
    line-height: 1.7;
    padding-top: 64px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--fj-gray-900);
    line-height: 1.3;
}

a {
    color: var(--fj-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--fj-primary-dark);
}


/* --- Navbar --- */
nav.navbar.fj-navbar,
.fj-navbar {
    background: #0f172a !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    padding: 0;
    border-bottom: 3px solid #2563eb;
    z-index: 1050;
    min-height: 64px;
}

.fj-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    padding: 0.75rem 0;
    color: #fff !important;
}
.fj-navbar .navbar-brand i {
    font-size: 1.5rem;
    color: #2563eb;
}

.fj-navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.938rem;
    padding: 1.25rem 0.875rem;
    position: relative;
    transition: color 0.2s ease;
}
.fj-navbar .nav-link:hover,
.fj-navbar .nav-link.active {
    color: #fff !important;
}
.fj-navbar .nav-link:hover::before,
.fj-navbar .nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.875rem;
    right: 0.875rem;
    height: 3px;
    background: #2563eb;
    border-radius: 3px 3px 0 0;
}

/* Bootstrap dropdown chevron이 hover/focus/show 상태에서도 유지되도록 방어 */
.fj-navbar .dropdown-toggle::after {
    display: inline-block !important;
    margin-left: 0.35em;
    vertical-align: 0.2em;
    content: "";
    border-top: 0.3em solid currentColor;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    position: static;
    background: transparent;
    width: 0;
    height: 0;
    opacity: 1;
}

.fj-navbar .btn-outline-light {
    border-color: #475569;
    color: #cbd5e1;
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
}
.fj-navbar .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #94a3b8;
    color: #fff;
}

.fj-navbar .fj-btn-primary,
.fj-navbar .btn-primary {
    background: #2563eb;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
}

.fj-navbar .dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
}
.fj-navbar .dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: background 0.15s ease;
}
.fj-navbar .dropdown-item:hover {
    background: #eff6ff;
    color: #2563eb;
}
.fj-navbar .dropdown-divider {
    margin: 0.375rem 0;
}

.fj-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.12);
    padding: 0.375rem 0.625rem;
}
.fj-navbar .navbar-toggler:hover,
.fj-navbar .navbar-toggler:focus {
    background-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}
/* Bootstrap navbar-dark의 기본 밝은색 SVG 아이콘 사용(필터 제거) */

/* Notification Badge */
.fj-notif-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--fj-gray-600);
    color: var(--fj-gray-300);
    transition: all 0.2s ease;
}
.fj-notif-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--fj-gray-400);
}
.fj-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.688rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    /* 알림 배지 (11px 글자) — red-500 위 흰색 3.76:1로 매우 부족.
       red-600 (#dc2626)로 한 단계 진하게 → 흰색 4.83:1 ✓ AA Normal */
    background: #dc2626;
    color: var(--fj-on-danger);
    border-radius: 9px;
}


/* --- Main Content --- */
.fj-main {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    min-height: 80vh;
}


/* --- Hero Section (Homepage) --- */
.fj-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a5f 100%);
    color: #fff;
    padding: 4rem 0 3.5rem;
    margin-top: -1.5rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--fj-primary);
}

.fj-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.fj-hero-title i {
    color: var(--fj-primary);
    margin-right: 0.25rem;
}

.fj-hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 0;
}

/* --- Home List Items --- */
.fj-home-list-item {
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid var(--fj-gray-100);
    transition: background-color 0.15s;
}

.fj-home-list-item:last-child {
    border-bottom: none;
}

.fj-home-list-item:hover {
    background-color: var(--fj-gray-50);
}

/* --- Page Header --- */
.fj-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--fj-gray-200);
}
.fj-page-header h2 {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.fj-page-header h2 i {
    color: var(--fj-primary);
}
.fj-page-header .fj-count-badge {
    background: var(--fj-primary-light);
    color: var(--fj-primary);
    font-size: 0.813rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}


/* --- Search Bar --- */
.fj-search {
    background: #fff;
    border-radius: var(--fj-radius-lg);
    box-shadow: var(--fj-shadow);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--fj-gray-200);
}
.fj-search .form-control {
    border: 1px solid var(--fj-gray-200);
    border-radius: var(--fj-radius) 0 0 var(--fj-radius);
    padding: 0.625rem 1rem;
    font-size: 0.938rem;
    background: var(--fj-gray-50);
    transition: all 0.2s ease;
}
.fj-search .form-control:focus {
    border-color: var(--fj-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #fff;
}
.fj-search .btn {
    border-radius: 0 var(--fj-radius) var(--fj-radius) 0;
    padding: 0.625rem 1.25rem;
}


/* --- Cards --- */
.fj-card {
    background: #fff;
    border: 1px solid var(--fj-gray-200);
    border-radius: var(--fj-radius-lg);
    box-shadow: var(--fj-shadow-sm);
    transition: all 0.2s ease;
    overflow: hidden;
}
.fj-card:hover {
    box-shadow: var(--fj-shadow-md);
    border-color: var(--fj-gray-300);
    transform: translateY(-1px);
}
.fj-card .card-body {
    padding: 1.25rem;
}

/* Job/Resume Listing Card */
.fj-listing-card .card-body {
    padding: 1.25rem;
}
.fj-listing-card .fj-listing-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fj-gray-900);
    margin-bottom: 0.625rem;
    display: block;
    line-height: 1.4;
}
.fj-listing-card .fj-listing-title:hover {
    color: var(--fj-primary);
}
.fj-listing-card .fj-listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
}
.fj-listing-card .fj-listing-salary {
    font-size: 1.063rem;
    font-weight: 700;
    color: var(--fj-primary);
}
.fj-listing-card .fj-listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.625rem;
    border-top: 1px solid var(--fj-gray-100);
    font-size: 0.813rem;
    color: var(--fj-gray-500);
}

/* Detail Card */
.fj-detail-card {
    background: #fff;
    border: 1px solid var(--fj-gray-200);
    border-radius: var(--fj-radius-lg);
    box-shadow: var(--fj-shadow);
    overflow: hidden;
}
.fj-detail-header {
    background: linear-gradient(135deg, var(--fj-primary) 0%, var(--fj-primary-dark) 100%);
    color: #fff;
    padding: 1.5rem;
}
.fj-detail-header h3 {
    color: #fff;
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}
.fj-detail-header .fj-detail-meta {
    font-size: 0.875rem;
    opacity: 0.85;
}
.fj-detail-body {
    padding: 1.5rem;
}

/* Info Grid (Detail Page) */
.fj-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.fj-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--fj-gray-50);
    border-radius: var(--fj-radius);
    border: 1px solid var(--fj-gray-100);
}
.fj-info-item i {
    font-size: 1.125rem;
    color: var(--fj-primary);
    width: 20px;
    text-align: center;
}
.fj-info-label {
    font-size: 0.75rem;
    color: var(--fj-gray-500);
    display: block;
    line-height: 1;
    margin-bottom: 0.125rem;
}
.fj-info-value {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--fj-gray-800);
}

/* Contact Bar */
.fj-contact-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--fj-primary-50);
    border: 1px solid var(--fj-primary-light);
    border-radius: var(--fj-radius);
    margin-bottom: 1.5rem;
}
.fj-contact-bar .fj-contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--fj-primary-dark);
}


/* --- Tags / Badges --- */
.fj-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 1rem;
    line-height: 1.4;
}
/* CL-C: 태그 컬러 다양화 폐지 — 모두 단일 회색 톤으로 통일.
   의미 구분은 아이콘과 텍스트가 담당. 단 의미가 매우 강한 두 종만 예외:
     - .fj-tag-dday: 마감 임박은 빨강 유지 (위험/긴급 — 통상적 의미 컬러)
   region/work/equip/salary는 시각 인상 통일을 위해 단일 회색. */
.fj-tag-region,
.fj-tag-work,
.fj-tag-equip,
.fj-tag-salary {
    background: var(--fj-gray-100);
    color: var(--fj-gray-700);
    border: 1px solid var(--fj-gray-200);
}
.fj-tag-dday {
    background: var(--fj-danger-light);
    color: var(--fj-on-danger-container);
    border: 1px solid #fecaca;
    font-weight: 700;
}

/* Member Type Badge */
.fj-member-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.813rem;
    font-weight: 600;
    border-radius: 1rem;
}
.fj-member-driver {
    background: var(--fj-primary-light);
    color: var(--fj-primary-dark);
}
.fj-member-company {
    background: var(--fj-secondary-light);
    color: var(--fj-secondary-dark);
}
.fj-member-admin {
    background: var(--fj-accent-light);
    color: #92400e;
}


/* --- Buttons --- */
.fj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--fj-radius);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
.fj-btn-primary {
    background: var(--fj-primary);
    color: var(--fj-on-primary);
}
.fj-btn-primary:hover {
    background: var(--fj-primary-dark);
    color: var(--fj-on-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.fj-btn-secondary {
    background: var(--fj-gray-100);
    color: var(--fj-gray-700);
    border: 1px solid var(--fj-gray-200);
}
.fj-btn-secondary:hover {
    background: var(--fj-gray-200);
    color: var(--fj-gray-800);
}
/* success: 배경 emerald-500은 흰 텍스트 대비 2.41:1로 작은 글자 미달.
   hover에서 emerald-700(#047857)으로 진하게 가서 흰 텍스트 5.07:1(AA Normal) 확보.
   기본 상태(non-hover)는 시각 변화 최소를 위해 색상은 유지하되,
   UI 컴포넌트 기준(3:1)에 닿도록 배경 톤을 보존 — 텍스트는 슬롯 토큰만 명시화 */
.fj-btn-success {
    background: var(--fj-secondary-dark);  /* #059669: 흰 텍스트 위 3.85:1 — UI 컴포넌트 3:1 통과 + 시각 변화 최소 */
    color: var(--fj-on-secondary);
}
.fj-btn-success:hover {
    background: #047857;  /* emerald-700: 흰 텍스트 위 5.07:1 ✓ AA Normal */
    color: var(--fj-on-secondary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.fj-btn-bookmark {
    background: transparent;
    color: var(--fj-gray-500);
    border: 1px solid var(--fj-gray-300);
}
.fj-btn-bookmark:hover {
    color: #f59e0b;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}
.fj-btn-bookmark-active {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}
.fj-btn-bookmark-active:hover {
    background: #fde68a;
    color: #b45309;
}
/* danger: 배경 red-500은 흰 텍스트 3.76:1로 작은 글자 미달.
   기본 상태에서 red-600 (#dc2626)으로 바로 → 흰 텍스트 4.83:1 ✓ AA Normal.
   시각 변화: 약간 더 진한 빨강 (육안 거의 동일).  */
.fj-btn-danger {
    background: #dc2626;  /* red-600: 흰 텍스트 위 4.83:1 ✓ AA Normal */
    color: var(--fj-on-danger);
}
.fj-btn-danger:hover {
    background: #b91c1c;  /* red-700: 흰 텍스트 위 6.49:1 ✓ AAA */
    color: var(--fj-on-danger);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.fj-btn-outline {
    background: transparent;
    color: var(--fj-primary);
    border: 1px solid var(--fj-primary);
}
.fj-btn-outline:hover {
    background: var(--fj-primary);
    color: var(--fj-on-primary);
    border-color: var(--fj-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ── 의미별 버튼 변형 — 인라인 style 오버라이드를 대체 ──
   각 변형은 hover 시 충분한 대비(흰 텍스트 + 진한 배경)를 보장한다.
   기존 inline `style="color: var(--fj-portfolio); border-color: ..."` 패턴을 클래스로 대체. */

/* 채워진 포트폴리오 — CL-B 이후 primary alias. 그림자도 primary 톤으로. */
.fj-btn-portfolio {
    background: var(--fj-portfolio);
    color: var(--fj-on-portfolio);
    border: 1px solid var(--fj-portfolio);
}
.fj-btn-portfolio:hover {
    background: var(--fj-portfolio-dark);
    color: var(--fj-on-portfolio);
    border-color: var(--fj-portfolio-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* 아웃라인 포트폴리오 — CL-B 이후 primary alias */
.fj-btn-outline-portfolio {
    background: transparent;
    color: var(--fj-portfolio-dark);
    border: 1px solid var(--fj-portfolio);
}
.fj-btn-outline-portfolio:hover {
    background: var(--fj-portfolio);
    color: var(--fj-on-portfolio);
    border-color: var(--fj-portfolio);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* 아웃라인 성공(녹) — Resume(구직) 컨텍스트 보조 액션
   hover 시 emerald-500 위 흰색은 2.41:1 미달 → emerald-700(#047857)로 진하게 */
.fj-btn-outline-success {
    background: transparent;
    color: var(--fj-secondary-dark);
    border: 1px solid var(--fj-secondary);
}
.fj-btn-outline-success:hover {
    background: #047857;  /* emerald-700: 흰 텍스트 위 5.07:1 ✓ AA Normal */
    color: var(--fj-on-secondary);
    border-color: #047857;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* 아웃라인 위험(빨) — 삭제 보조
   hover 시 red-500 위 흰색 3.76:1 미달 → red-600(#dc2626)로 진하게 */
.fj-btn-outline-danger {
    background: transparent;
    color: var(--fj-danger);
    border: 1px solid var(--fj-danger);
}
.fj-btn-outline-danger:hover {
    background: #dc2626;  /* red-600: 흰 텍스트 위 4.83:1 ✓ AA Normal */
    color: var(--fj-on-danger);
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* 아웃라인 회색 — 차분한 보조 액션(취소/뒤로 등) */
.fj-btn-outline-secondary {
    background: transparent;
    color: var(--fj-gray-700);
    border: 1px solid var(--fj-gray-400);
}
.fj-btn-outline-secondary:hover {
    background: var(--fj-gray-700);
    color: var(--fj-on-dark);
    border-color: var(--fj-gray-700);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

/* 아웃라인 경고(앰버) — 마감/위험 동작 안내. accent 와 동일한 색상이므로 별칭 함께 노출.
   ★ 진짜 가시성 문제 — hover에서 amber-500 위 흰 텍스트 1.91:1 매우 심각 미달.
   배경을 amber-700(#b45309)로 진하게 → 흰 텍스트 5.43:1 ✓ AAA Normal. 시각 변화 최소. */
.fj-btn-outline-warning,
.fj-btn-outline-accent {
    background: transparent;
    color: #b45309;
    border: 1px solid var(--fj-accent);
}
.fj-btn-outline-warning:hover,
.fj-btn-outline-accent:hover {
    background: #b45309;  /* amber-700: 흰 텍스트 위 5.43:1 ✓ AAA */
    color: var(--fj-on-dark);
    border-color: #b45309;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

/* 부드러운 위험 — 위험 의미를 갖지만 색의 강도를 줄인 보조 액션
   (읽은 알림 삭제, 쪽지 삭제 등) */
.fj-btn-danger-soft {
    background: var(--fj-danger-light);
    color: var(--fj-on-danger-container);  /* on #fee2e2: 9.79:1 ✓ AAA */
    border: 1px solid #fecaca;
}
.fj-btn-danger-soft:hover {
    background: #dc2626;  /* red-600 — AA Normal 통과 */
    color: var(--fj-on-danger);
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* 고스트 — 가장 차분한 보조 액션(필터 해제, 신고 폴드 토글 등).
   모든 페이지 컬러 위에서 안전한 회색. */
.fj-btn-ghost {
    background: var(--fj-gray-100);
    color: var(--fj-gray-700);
    border: 1px solid transparent;
}
.fj-btn-ghost:hover {
    background: var(--fj-gray-200);
    color: var(--fj-gray-900);
    border-color: var(--fj-gray-300);
}

.fj-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.813rem;
}
/* QA-4 [B] — 버튼 안 Bootstrap Icons는 텍스트보다 약간 크게.
   14px(0.875rem) 라인 아이콘은 stroke 1~1.5px라 컬러 배경에서 묻혀 보이는 약점이 있어
   1.05em으로 자동 보강 + 작은 버튼(fj-btn-sm)에서는 시각적 무게가 더 부족하므로 1.15em.
   line-height를 1로 잠가야 inline-flex 정렬이 안정. */
.fj-btn > .bi {
    font-size: 1.05em;
    line-height: 1;
    flex-shrink: 0;
}
.fj-btn-sm > .bi {
    font-size: 1.15em;
}
.fj-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}


/* --- Forms --- */
.fj-form-card {
    background: #fff;
    border-radius: var(--fj-radius-lg);
    box-shadow: var(--fj-shadow);
    border: 1px solid var(--fj-gray-200);
    overflow: hidden;
}
.fj-form-card .card-header {
    background: var(--fj-gray-50);
    border-bottom: 1px solid var(--fj-gray-200);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.125rem;
}
.fj-form-card .card-body {
    padding: 1.5rem;
}

.fj-form-group {
    margin-bottom: 1.25rem;
}
.fj-form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--fj-gray-700);
    margin-bottom: 0.375rem;
}
.fj-form-group .form-control,
.fj-form-group .form-select {
    border: 1px solid var(--fj-gray-300);
    border-radius: var(--fj-radius);
    padding: 0.625rem 0.875rem;
    font-size: 0.938rem;
    transition: all 0.2s ease;
}
.fj-form-group .form-control:focus,
.fj-form-group .form-select:focus {
    border-color: var(--fj-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.fj-form-group .form-control::placeholder {
    color: var(--fj-gray-400);
}

/* Required indicator */
.fj-required::after {
    content: ' *';
    color: var(--fj-danger);
}


/* --- Profile / MyPage --- */
.fj-profile-card {
    background: #fff;
    border-radius: var(--fj-radius-lg);
    box-shadow: var(--fj-shadow);
    border: 1px solid var(--fj-gray-200);
    overflow: hidden;
}
.fj-profile-header {
    background: linear-gradient(135deg, var(--fj-gray-900) 0%, var(--fj-gray-700) 100%);
    padding: 2rem 1.5rem;
    text-align: center;
    color: #fff;
}
.fj-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}
.fj-profile-avatar i {
    font-size: 2.25rem;
    color: #fff;
}
.fj-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}
.fj-profile-body {
    padding: 1.25rem;
}

/* Activity Tabs */
.fj-tabs {
    border-bottom: 2px solid var(--fj-gray-200);
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0;
    overflow-x: auto;
}
.fj-tab {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--fj-gray-500);
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}
.fj-tab:hover {
    color: var(--fj-gray-800);
}
.fj-tab.active {
    color: var(--fj-primary);
}
.fj-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--fj-primary);
}
.fj-tab .fj-tab-count {
    font-size: 0.688rem;
    background: var(--fj-gray-200);
    color: var(--fj-gray-600);
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    margin-left: 0.375rem;
}
.fj-tab.active .fj-tab-count {
    background: var(--fj-primary-light);
    color: var(--fj-primary);
}


/* --- Activity List --- */
.fj-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--fj-gray-100);
    transition: background 0.15s ease;
    gap: 0.75rem;
}
.fj-activity-item:last-child {
    border-bottom: none;
}
.fj-activity-item:hover {
    background: var(--fj-gray-50);
}
.fj-activity-item .fj-activity-title {
    font-weight: 500;
    color: var(--fj-gray-800);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fj-activity-item .fj-activity-date {
    font-size: 0.75rem;
    color: var(--fj-gray-400);
    white-space: nowrap;
}


/* --- Empty State (base — enhanced styles below) --- */


/* --- Breadcrumb / Back Link (unified) ---
   기존 인라인 fj-breadcrumb 22곳과 Layout-rendered fj-back-link 13곳이 별도
   스타일이라 색·폰트·패딩이 달랐던 문제를 통합. 한 가지 디자인으로 모든
   백 링크가 동일하게 보이도록 함. iOS HIG / Material 표준 — 작은 회색
   텍스트 + 호버 시 강조, 터치 타깃 최소 높이 보강.
   .fj-back-link 는 backward-compat alias (Layout 코드 변경 최소화).
*/
.fj-breadcrumb,
.fj-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--fj-gray-600);
    text-decoration: none;
    padding: 0.375rem 0.625rem;
    margin: 0 0 1rem;
    border-radius: var(--fj-radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1;
    /* 최소 터치 타깃 — Apple HIG 44pt, Google Material 48dp 권장 (높이 보강) */
    min-height: 2.25rem;
    max-width: 100%;
    background: none;
}
.fj-breadcrumb:hover,
.fj-breadcrumb:focus,
.fj-back-link:hover,
.fj-back-link:focus {
    background: var(--fj-gray-100);
    color: var(--fj-primary);
    text-decoration: none;
}
.fj-breadcrumb i,
.fj-back-link i {
    font-size: 1rem;
    flex-shrink: 0;
}
.fj-back-label {
    /* 글 제목처럼 긴 라벨이 들어와도 한 줄로 줄여 표시 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 22rem;
}
@media (max-width: 575px) {
    .fj-breadcrumb,
    .fj-back-link {
        margin: 0 0 0.75rem;
    }
    .fj-back-label {
        /* 모바일 화면에서는 더 짧게 잘라 한 줄 유지 */
        max-width: 14rem;
    }
}


/* --- Pagination --- */
.fj-pagination .page-link {
    border: 1px solid var(--fj-gray-200);
    color: var(--fj-gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--fj-radius-sm);
    margin: 0 0.125rem;
    transition: all 0.15s ease;
}
.fj-pagination .page-link:hover {
    background: var(--fj-primary-50);
    border-color: var(--fj-primary);
    color: var(--fj-primary);
}
.fj-pagination .page-item.active .page-link {
    background: var(--fj-primary);
    border-color: var(--fj-primary);
    color: #fff;
}
.fj-pagination .page-item.disabled .page-link {
    color: var(--fj-gray-300);
    border-color: var(--fj-gray-100);
}


/* --- Comments --- */
.fj-comment {
    padding: 1rem;
    border-bottom: 1px solid var(--fj-gray-100);
}
.fj-comment:last-child {
    border-bottom: none;
}
.fj-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.fj-comment-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--fj-gray-800);
}
.fj-comment-date {
    font-size: 0.75rem;
    color: var(--fj-gray-400);
}
.fj-comment-body {
    font-size: 0.938rem;
    color: var(--fj-gray-700);
    line-height: 1.6;
}


/* --- Message / Notification List --- */
.fj-msg-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--fj-gray-100);
    gap: 0.75rem;
    transition: background 0.15s ease;
}
.fj-msg-item:hover {
    background: var(--fj-gray-50);
}
.fj-msg-item.unread {
    background: var(--fj-primary-50);
    border-left: 3px solid var(--fj-primary);
}
.fj-msg-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--fj-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--fj-gray-500);
}
.fj-msg-content {
    flex: 1;
    min-width: 0;
}
.fj-msg-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--fj-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fj-msg-preview {
    font-size: 0.813rem;
    color: var(--fj-gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fj-msg-date {
    font-size: 0.75rem;
    color: var(--fj-gray-400);
    white-space: nowrap;
}


/* --- Stats Card (Dashboard) --- */
.fj-stat-card {
    background: #fff;
    border-radius: var(--fj-radius-lg);
    box-shadow: var(--fj-shadow-sm);
    border: 1px solid var(--fj-gray-200);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}
.fj-stat-card:hover {
    box-shadow: var(--fj-shadow-md);
}
.fj-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--fj-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.fj-stat-icon-blue { background: var(--fj-primary-light); color: var(--fj-primary); }
.fj-stat-icon-green { background: var(--fj-secondary-light); color: var(--fj-secondary); }
.fj-stat-icon-amber { background: var(--fj-accent-light); color: var(--fj-accent); }
.fj-stat-icon-red { background: var(--fj-danger-light); color: var(--fj-danger); }

.fj-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fj-gray-900);
    line-height: 1;
}
.fj-stat-label {
    font-size: 0.75rem;
    color: var(--fj-gray-500);
    margin-top: 0.125rem;
}


/* --- Footer --- */
.fj-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2.5rem 0;
    font-size: 0.875rem;
    margin-top: 3rem;
    border-top: 3px solid #2563eb;
}
.fj-footer a {
    color: #cbd5e1;
    transition: color 0.15s ease;
}
.fj-footer a:hover {
    color: #fff;
}


/* --- Utilities --- */
.fj-divider {
    border: none;
    border-top: 1px solid var(--fj-gray-200);
    margin: 1.5rem 0;
}

.fj-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--fj-gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* 자손 i 셀렉터는 헤더 안 버튼 내부 아이콘까지 색을 강제하여 가시성 사고를 일으킴
   (특히 컬러 배경 버튼 위 같은 색 아이콘 = 보이지 않음).
   직계 자식(.bi)만 색을 칠하도록 좁혀 안전한 셀렉터 위생 확보. */
.fj-section-title > .bi,
.fj-section-title > i {
    color: var(--fj-primary);
}


/* --- Member Type Selection (Join Page) --- */
.fj-member-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1.25rem 0.75rem;
    text-align: center;
    border: 2px solid var(--fj-gray-200);
    border-radius: var(--fj-radius-lg);
    transition: all 0.25s ease;
    cursor: pointer;
    background: #fff;
}
.fj-member-select:hover {
    border-color: var(--fj-gray-300);
    box-shadow: var(--fj-shadow-md);
    transform: translateY(-2px);
}
.fj-member-select i {
    transition: transform 0.2s ease;
}
.fj-member-select small {
    color: var(--fj-gray-500);
    font-size: 0.75rem;
}
.fj-member-select-driver i {
    color: var(--fj-primary);
}
.fj-member-select-company i {
    color: var(--fj-secondary);
}

.btn-check:checked + .fj-member-select-driver {
    border-color: var(--fj-primary) !important;
    background: var(--fj-primary-50) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}
.btn-check:checked + .fj-member-select-driver i {
    transform: scale(1.15);
}
.btn-check:checked + .fj-member-select-company {
    border-color: var(--fj-secondary) !important;
    background: var(--fj-secondary-light) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}
.btn-check:checked + .fj-member-select-company i {
    transform: scale(1.15);
}


/* --- Listing Card Enhancements ---
   카드 좌측 색상 강조선 — border-left를 쓰면 border-radius와 결합 시 모서리가
   어색하게 잘려 보이는 문제가 있어, 라운드를 따라가는 inset box-shadow로 대체.
   구인(파랑 primary) / 구직(녹 secondary) 구분은 목록에서 즉시 시각적 인지를
   돕기에 의도적으로 보존 (사용자 결정 — 다른 다양화는 폐지하되 이 strip만 유지). */
.fj-listing-card-job {
    box-shadow: inset 4px 0 0 0 var(--fj-primary);
}
.fj-listing-card-resume {
    box-shadow: inset 4px 0 0 0 var(--fj-secondary);
}
.fj-listing-card-job:hover {
    box-shadow: inset 4px 0 0 0 var(--fj-primary), var(--fj-shadow-md);
}
.fj-listing-card-resume:hover {
    box-shadow: inset 4px 0 0 0 var(--fj-secondary), var(--fj-shadow-md);
}

.fj-listing-card .fj-listing-title {
    color: var(--fj-gray-900);
}
a:hover .fj-listing-card .fj-listing-title,
a:hover .fj-listing-title {
    color: var(--fj-primary);
}

/* CL-E: "신규" 배지는 단일 primary 색으로 통일. fj-badge-new-green은 alias로 호환만 유지.
   구분이 필요한 위치는 카드 헤더 아이콘 등 다른 시각 수단으로 처리. */
.fj-badge-new,
.fj-badge-new-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.625rem;
    font-weight: 800;
    color: var(--fj-on-primary);
    background: var(--fj-primary);
    border-radius: 4px;
    margin-right: 0.25rem;
    vertical-align: middle;
    line-height: 1;
}
/* fj-badge-open/closed 의 실제 정의는 통합 배지 시스템 블록(아래)에서 처리됨.
   여기 위치의 레거시 정의는 통합 시스템에 의해 완전히 대체된다. */
.fj-listing-closed {
    opacity: 0.6;
}
.fj-listing-closed:hover {
    opacity: 0.8;
}


/* --- Detail Page Enhancements --- */
.fj-detail-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.fj-detail-type-badge-green {
    background: rgba(255, 255, 255, 0.2);
}
.fj-detail-type-badge-dark {
    background: rgba(255, 255, 255, 0.15);
}

.fj-detail-header-green {
    background: linear-gradient(135deg, var(--fj-secondary) 0%, var(--fj-secondary-dark) 100%);
}
.fj-detail-header-dark {
    background: linear-gradient(135deg, var(--fj-gray-800) 0%, var(--fj-gray-700) 100%);
}

.fj-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fj-info-item-highlight {
    background: var(--fj-primary-50);
    border-color: var(--fj-primary-light);
}
.fj-info-item-highlight i {
    color: var(--fj-primary);
}
.fj-info-item-highlight-green {
    background: #ecfdf5;
    border-color: #d1fae5;
}
.fj-info-item-highlight-green i {
    color: var(--fj-secondary);
}

.fj-contact-bar-green {
    background: var(--fj-secondary-light);
    border-color: #a7f3d0;
}
.fj-contact-bar-green .fj-contact-info {
    color: var(--fj-secondary-dark);
}

.fj-detail-content {
    line-height: 1.85;
    font-size: 0.975rem;
    color: var(--fj-gray-700);
    min-height: 120px;
    padding: 0.5rem 0 1rem;
}
.fj-detail-content p {
    margin-bottom: 0.875rem;
}
.fj-detail-content ul,
.fj-detail-content ol {
    padding-left: 1.5rem;
    margin-bottom: 0.875rem;
}


/* --- Notice Table Styles --- */
.fj-notice-list .table {
    border-collapse: separate;
    border-spacing: 0;
}
.fj-table-header th {
    background: var(--fj-gray-50);
    font-size: 0.813rem;
    color: var(--fj-gray-500);
    font-weight: 600;
    padding: 0.75rem;
    border-bottom: 2px solid var(--fj-gray-200);
}
.fj-table-row {
    transition: background 0.15s ease;
}
.fj-table-row:hover {
    background: var(--fj-primary-50);
}
.fj-table-row td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid var(--fj-gray-100);
    vertical-align: middle;
}
.fj-table-num {
    color: var(--fj-gray-400);
    font-size: 0.875rem;
}
.fj-table-link {
    text-decoration: none;
    font-weight: 500;
    color: var(--fj-gray-800);
    transition: color 0.15s ease;
}
.fj-table-link:hover {
    color: var(--fj-primary);
}
.fj-table-date {
    color: var(--fj-gray-400);
    font-size: 0.813rem;
}


/* --- Comment Enhancements --- */
.fj-comments-section {
    border-top: 2px solid var(--fj-gray-200);
    padding-top: 1.5rem;
}

.fj-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fj-gray-100), var(--fj-gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--fj-gray-400);
    font-size: 0.938rem;
}

.fj-comment-form .form-control:focus {
    border-color: var(--fj-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fj-comment-login-prompt {
    background: var(--fj-gray-50);
    border: 1px solid var(--fj-gray-200);
    border-radius: var(--fj-radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--fj-gray-600);
}

.fj-comment-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--fj-gray-400);
}
.fj-comment-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}
.fj-comment-empty p {
    font-size: 0.875rem;
    margin: 0;
}

.fj-comment {
    padding: 1rem 1.25rem;
}
.fj-comment-body {
    margin-left: 48px;
    margin-top: 0.25rem;
}

.fj-comment-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--fj-gray-800);
    display: block;
    line-height: 1.2;
}
.fj-comment-date {
    font-size: 0.75rem;
    color: var(--fj-gray-400);
    display: block;
}

.fj-btn-icon-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    color: var(--fj-gray-400);
    border-radius: var(--fj-radius-sm);
    transition: all 0.15s ease;
}
.fj-btn-icon-delete:hover {
    color: var(--fj-danger);
    background: var(--fj-danger-light);
}
.fj-btn-icon-edit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    color: var(--fj-gray-400);
    border-radius: var(--fj-radius-sm);
    transition: all 0.15s ease;
}
.fj-btn-icon-edit:hover {
    color: var(--fj-primary);
    background: rgba(59, 130, 246, 0.1);
}
.fj-comment-edit-form {
    padding: 0.5rem 0;
}


/* --- Form Enhancements --- */
.fj-form-help {
    font-size: 0.75rem;
    color: var(--fj-gray-400);
    margin-top: 0.25rem;
}

.fj-input-icon-wrapper {
    position: relative;
}
.fj-input-icon-wrapper .form-control {
    padding-left: 2.5rem;
}
.fj-input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fj-gray-400);
    font-size: 0.938rem;
    pointer-events: none;
    z-index: 1;
}

.fj-char-count {
    font-size: 0.75rem;
    color: var(--fj-gray-400);
    text-align: right;
    margin-top: 0.25rem;
}
.fj-char-count.near-limit {
    color: var(--fj-accent);
}
.fj-char-count.at-limit {
    color: var(--fj-danger);
}

/* 금액 입력 input 아래 한글 단위 보조 텍스트 — site.js의 [data-fj-money]가 자동 생성 */
.fj-money-helper {
    font-size: 0.85rem;
    color: var(--fj-primary);
    margin-top: 0.25rem;
    min-height: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.fj-money-helper:empty { min-height: 0; }

.fj-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
}


/* --- Empty State Enhanced --- */
.fj-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--fj-gray-400);
}
.fj-empty-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--fj-gray-100);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.fj-empty-icon i {
    font-size: 2.25rem;
    opacity: 0.6;
    display: block;
}
.fj-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fj-gray-600);
    margin-bottom: 0.375rem;
}
.fj-empty-desc {
    font-size: 0.813rem;
    color: var(--fj-gray-400);
    margin-bottom: 1.25rem;
}
.fj-empty-action {
    margin-top: 0.25rem;
}


/* --- Toast Notifications --- */
.fj-toast-container {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 380px;
    pointer-events: none;
}
.fj-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--fj-radius-lg);
    box-shadow: var(--fj-shadow-lg);
    background: #fff;
    border-left: 4px solid var(--fj-primary);
    pointer-events: auto;
    animation: fjSlideIn 0.3s ease-out;
    font-size: 0.875rem;
    color: var(--fj-gray-800);
}
.fj-toast-success {
    border-left-color: var(--fj-secondary);
}
.fj-toast-success .fj-toast-icon {
    color: var(--fj-secondary);
}
.fj-toast-error {
    border-left-color: var(--fj-danger);
}
.fj-toast-error .fj-toast-icon {
    color: var(--fj-danger);
}
.fj-toast-info {
    border-left-color: var(--fj-primary);
}
.fj-toast-info .fj-toast-icon {
    color: var(--fj-primary);
}
.fj-toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}
.fj-toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--fj-gray-400);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}
.fj-toast-close:hover {
    color: var(--fj-gray-600);
}
.fj-toast.fj-toast-out {
    animation: fjSlideOut 0.25s ease-in forwards;
}

@keyframes fjSlideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fjSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}


/* --- Loading Indicators --- */
.fj-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.fj-page-loader.active {
    opacity: 1;
}
.fj-page-loader::after {
    content: '';
    display: block;
    width: 30%;
    height: 100%;
    background: var(--fj-primary);
    border-radius: 0 2px 2px 0;
    animation: fjProgress 1.2s ease-in-out infinite;
}

@keyframes fjProgress {
    0% { margin-left: -30%; }
    100% { margin-left: 100%; }
}

.fj-btn-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}
.fj-btn-loading .fj-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: fjSpin 0.6s linear infinite;
    vertical-align: -0.125em;
}

@keyframes fjSpin {
    to { transform: rotate(360deg); }
}


/* --- Mobile Responsive --- */
@media (max-width: 767.98px) {
    .fj-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fj-info-grid {
        grid-template-columns: 1fr;
    }

    .fj-listing-card .fj-listing-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }

    .fj-contact-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .fj-stat-card {
        padding: 1rem;
    }
    .fj-stat-value {
        font-size: 1.25rem;
    }

    .fj-msg-item {
        padding: 0.875rem 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    .fj-msg-item > a {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        width: 100%;
    }
    .fj-msg-item > a > .fj-msg-icon {
        display: none;
    }
    .fj-msg-content {
        flex: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    .fj-msg-title {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word;
        line-height: 1.5;
    }
    .fj-msg-preview {
        white-space: normal !important;
        overflow: visible !important;
    }
    .fj-msg-date {
        padding-left: 0;
        margin-top: 0;
        font-size: 0.75rem;
    }
    .fj-msg-item > form.ms-2 {
        position: absolute;
        right: 0.75rem;
        top: 0.75rem;
    }
    .fj-msg-item {
        position: relative;
        padding-right: 2.5rem;
    }

    .fj-detail-header {
        padding: 1.25rem;
    }
    .fj-detail-header h3 {
        font-size: 1.125rem;
    }

    /* Hero mobile */
    .fj-hero {
        padding: 2.5rem 0 2rem;
    }
    .fj-hero-title {
        font-size: 1.5rem;
    }
    .fj-hero-subtitle {
        font-size: 0.938rem;
    }

    /* Pagination wrap */
    .fj-pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .fj-pagination .page-link {
        font-size: 0.813rem;
        padding: 0.375rem 0.625rem;
    }

    /* Notice table number column */
    .fj-table-num,
    .fj-table-header th:first-child {
        display: none;
    }

    /* Tabs horizontal scroll */
    .fj-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .fj-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Navbar mobile */
    .fj-navbar .navbar-collapse {
        background: #0f172a;
        padding: 0.75rem 1rem;
        margin: 0 -0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .fj-navbar .nav-link {
        padding: 0.625rem 0 !important;
    }
    .fj-navbar .nav-link:hover::before,
    .fj-navbar .nav-link.active::before {
        display: none;
    }
    .fj-navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        background: #1e293b;
        border: none;
        box-shadow: none;
        width: 100%;
        margin-top: 0.25rem;
    }
    .fj-navbar .dropdown-menu .dropdown-item {
        color: #cbd5e1;
        padding: 0.5rem 1rem;
    }
    .fj-navbar .dropdown-menu .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    .fj-navbar .dropdown-menu .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.1);
    }

    /* Footer stack */
    .fj-footer .row {
        text-align: center;
    }
    .fj-footer .d-flex.justify-content-md-end {
        justify-content: center !important;
    }

    /* Toast mobile */
    .fj-toast-container {
        top: 72px;
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }

    /* Form actions stack */
    .fj-form-actions {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
    .fj-form-actions > * {
        width: 100%;
        text-align: center;
    }

    body {
        padding-top: 56px;
    }
}

@media (max-width: 575.98px) {
    .fj-main {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .fj-search {
        padding: 0.75rem;
    }

    .fj-listing-card .card-body {
        padding: 1rem;
    }

    .fj-form-card .card-header {
        padding: 1rem;
    }
    .fj-form-card .card-body {
        padding: 1rem;
    }

    .fj-hero-title {
        font-size: 1.25rem;
    }

    .fj-empty {
        padding: 2.5rem 1rem;
    }
    .fj-empty-icon {
        width: 4rem;
        height: 4rem;
    }
    .fj-empty-icon i {
        font-size: 1.75rem;
    }
}

/* ============================================
   포트폴리오 스타일
   ============================================ */

/* 동적 행 */
.fj-portfolio-entry {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--fj-gray-50);
    border: 1px solid var(--fj-gray-200);
    border-radius: var(--fj-radius);
    margin-bottom: 0.5rem;
}
.fj-portfolio-entry-wrap {
    flex-wrap: wrap;
}
.fj-portfolio-entry .form-control,
.fj-portfolio-entry .form-select {
    font-size: 0.875rem;
}

/* 숙련도 인디케이터 */
.fj-proficiency {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}
.fj-proficiency-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fj-gray-200);
    transition: background 0.2s;
}
.fj-proficiency-dot.active {
    background: var(--fj-portfolio);
}

/* 자격증 태그 — CL-C: 다른 태그와 일관성 위해 회색 톤 통일 */
.fj-tag-cert {
    background: var(--fj-gray-100);
    color: var(--fj-gray-700);
    border: 1px solid var(--fj-gray-200);
    padding: 0.5rem 0.75rem;
    border-radius: var(--fj-radius);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* 경력 타임라인 */
.fj-timeline-item {
    position: relative;
    padding-left: 1.5rem;
    padding-bottom: 1.25rem;
    border-left: 2px solid var(--fj-gray-200);
    margin-left: 0.25rem;
}
.fj-timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}
.fj-timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fj-portfolio);
    border: 2px solid white;
}

/* 포트폴리오 요약 카드 (이력서 상세 내) */
.fj-portfolio-summary {
    border-left: 3px solid var(--fj-portfolio);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--fj-radius) var(--fj-radius) 0;
    background: var(--fj-portfolio-light);
    margin-bottom: 1rem;
}
.fj-portfolio-summary-title {
    color: var(--fj-portfolio);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Quill 에디터 스타일 */
.ql-toolbar.ql-snow {
    border-color: var(--fj-gray-200) !important;
    background: var(--fj-gray-50);
    border-radius: var(--fj-radius) var(--fj-radius) 0 0;
}
.ql-container.ql-snow {
    border-color: var(--fj-gray-200) !important;
    background: white;
    border-radius: 0 0 var(--fj-radius) var(--fj-radius);
    color: var(--fj-gray-800);
    font-size: 0.95rem;
}
.ql-editor {
    min-height: 200px;
}
.ql-editor.ql-blank::before {
    color: var(--fj-gray-400) !important;
    font-style: normal !important;
}
.ql-snow .ql-active .ql-stroke {
    stroke: var(--fj-portfolio) !important;
}
.ql-snow .ql-active .ql-fill {
    fill: var(--fj-portfolio) !important;
}
.ql-snow .ql-active {
    color: var(--fj-portfolio) !important;
}

/* 포트폴리오 콘텐츠 내 이미지 */
.fj-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--fj-radius);
    margin: 0.5rem 0;
}

/* 모바일 반응형 */
@media (max-width: 767.98px) {
    .fj-portfolio-entry {
        flex-direction: column;
        align-items: stretch;
    }
    .fj-portfolio-entry .btn-outline-danger {
        align-self: flex-end;
    }
    .fj-portfolio-entry-wrap .d-flex {
        flex-direction: column;
    }
}

/* ========================================
 * 캘린더 (FullCalendar v6 커스텀)
 * ======================================== */

/* 월 요약 카드 */
.fj-cal-summary .fj-form-card {
    margin-bottom: 0;
}
.fj-cal-sum-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.fj-cal-sum-label {
    font-size: 0.75rem;
    color: var(--fj-gray-500);
    margin-bottom: 2px;
}
.fj-cal-sum-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fj-gray-800);
}

/* FullCalendar 테마 변수 오버라이드 */
#fjCalendar {
    --fc-border-color: var(--fj-gray-200);
    --fc-today-bg-color: var(--fj-primary-light);
    --fc-neutral-bg-color: var(--fj-gray-50);
    --fc-page-bg-color: #ffffff;
    --fc-event-border-color: transparent;
    --fc-event-text-color: #ffffff;
    font-size: 0.875rem;
}
#fjCalendar .fc-toolbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fj-gray-800);
}
#fjCalendar .fc-button {
    background: #ffffff;
    border: 1px solid var(--fj-gray-300);
    color: var(--fj-gray-700);
    box-shadow: none;
    text-transform: none;
    padding: 0.35rem 0.7rem;
    font-size: 0.813rem;
}
#fjCalendar .fc-button:hover {
    background: var(--fj-gray-50);
    border-color: var(--fj-gray-400);
    color: var(--fj-gray-800);
}
#fjCalendar .fc-button-primary:not(:disabled).fc-button-active,
#fjCalendar .fc-button-primary:not(:disabled):active {
    background: var(--fj-primary);
    border-color: var(--fj-primary);
    color: #ffffff;
}
#fjCalendar .fc-col-header-cell-cushion {
    padding: 0.4rem 0.3rem;
    color: var(--fj-gray-600);
    font-weight: 600;
    text-decoration: none;
}
#fjCalendar .fc-daygrid-day-number {
    color: var(--fj-gray-700);
    text-decoration: none;
    font-size: 0.813rem;
    padding: 0.3rem 0.4rem;
}
#fjCalendar .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: var(--fj-primary);
    font-weight: 700;
}
#fjCalendar .fc-day-sat .fc-daygrid-day-number { color: #2563eb; }
#fjCalendar .fc-day-sun .fc-daygrid-day-number { color: #dc2626; }

/* 이벤트 막대 기본 스타일 — 연한 배경 + 왼쪽 컬러 라인 (Linear/Notion 스타일) */
#fjCalendar .fc-daygrid-event {
    border: none !important;
    border-left: 3px solid transparent !important;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.72rem;
    line-height: 1.25;
    margin-bottom: 2px;
    background: #f1f5f9;
    color: var(--fj-gray-800);
    box-shadow: none;
    transition: background-color 0.15s, transform 0.15s;
}
#fjCalendar .fc-daygrid-event:hover {
    background: #e2e8f0;
    transform: translateX(1px);
}
#fjCalendar .fc-event-main { padding: 0; color: inherit; }
.fj-cal-ev-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}
.fj-cal-ev-amt {
    font-size: 0.68rem;
    opacity: 0.85;
    color: inherit;
    font-weight: 500;
}

/* 월 그리드 — 컬러 토큰 (배경 + border + 텍스트) */
#fjCalendar .fc-daygrid-event.fj-cal-ev-primary,
#fjCalendar .fc-daygrid-event.fj-cal-ev-income {
    background: #eff6ff;
    border-left-color: #2563eb !important;
    color: #1e40af;
}
#fjCalendar .fc-daygrid-event.fj-cal-ev-primary:hover,
#fjCalendar .fc-daygrid-event.fj-cal-ev-income:hover {
    background: #dbeafe;
}
#fjCalendar .fc-daygrid-event.fj-cal-ev-danger,
#fjCalendar .fc-daygrid-event.fj-cal-ev-expense {
    background: #fef2f2;
    border-left-color: #dc2626 !important;
    color: #b91c1c;
}
#fjCalendar .fc-daygrid-event.fj-cal-ev-danger:hover,
#fjCalendar .fc-daygrid-event.fj-cal-ev-expense:hover {
    background: #fee2e2;
}
#fjCalendar .fc-daygrid-event.fj-cal-ev-success,
#fjCalendar .fc-daygrid-event.fj-cal-ev-work {
    background: #ecfdf5;
    border-left-color: #059669 !important;
    color: #047857;
}
#fjCalendar .fc-daygrid-event.fj-cal-ev-success:hover,
#fjCalendar .fc-daygrid-event.fj-cal-ev-work:hover {
    background: #d1fae5;
}
#fjCalendar .fc-daygrid-event.fj-cal-ev-warning {
    background: #fffbeb;
    border-left-color: #d97706 !important;
    color: #92400e;
}
#fjCalendar .fc-daygrid-event.fj-cal-ev-warning:hover {
    background: #fef3c7;
}
#fjCalendar .fc-daygrid-event.fj-cal-ev-portfolio {
    background: var(--fj-portfolio-light);
    border-left-color: var(--fj-portfolio) !important;
    color: var(--fj-portfolio-dark);
}
#fjCalendar .fc-daygrid-event.fj-cal-ev-gray,
#fjCalendar .fc-daygrid-event.fj-cal-ev-memo {
    background: #f8fafc;
    border-left-color: #64748b !important;
    color: #475569;
}
#fjCalendar .fc-daygrid-event.fj-cal-ev-gray:hover,
#fjCalendar .fc-daygrid-event.fj-cal-ev-memo:hover {
    background: #f1f5f9;
}

/* 목록 뷰 — 좌측에 컬러 점 대신 3px 컬러 바 */
#fjCalendar .fc-list-event { background: #ffffff; }
#fjCalendar .fc-list-event td { border-color: var(--fj-gray-100); }
#fjCalendar .fc-list-event-dot {
    display: inline-block;
    width: 4px;
    height: 18px;
    border: none;
    border-radius: 2px;
    background: var(--fj-gray-400);
    vertical-align: middle;
}
#fjCalendar .fc-list-event.fj-cal-ev-primary .fc-list-event-dot,
#fjCalendar .fc-list-event.fj-cal-ev-income .fc-list-event-dot { background: #2563eb; }
#fjCalendar .fc-list-event.fj-cal-ev-danger .fc-list-event-dot,
#fjCalendar .fc-list-event.fj-cal-ev-expense .fc-list-event-dot { background: #dc2626; }
#fjCalendar .fc-list-event.fj-cal-ev-success .fc-list-event-dot,
#fjCalendar .fc-list-event.fj-cal-ev-work .fc-list-event-dot { background: #059669; }
#fjCalendar .fc-list-event.fj-cal-ev-warning .fc-list-event-dot { background: #d97706; }
#fjCalendar .fc-list-event.fj-cal-ev-portfolio .fc-list-event-dot { background: var(--fj-portfolio); }
#fjCalendar .fc-list-event.fj-cal-ev-gray .fc-list-event-dot,
#fjCalendar .fc-list-event.fj-cal-ev-memo .fc-list-event-dot { background: #64748b; }
#fjCalendar .fc-list-event-title { color: var(--fj-gray-800); font-weight: 600; }
/* 시간 단위가 없는 캘린더이므로 목록 뷰의 시간 컬럼 완전 숨김 */
#fjCalendar .fc-list-event-time { display: none; }

/* 셀 하단 일별 합계 — frame 내부 우측 하단에 절대 위치로 고정 */
#fjCalendar .fc-daygrid-day-frame { position: relative; padding-bottom: 16px; }
.fj-day-total {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 2px;
    font-size: 0.68rem;
    line-height: 1.1;
    text-align: right;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 6px;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}
.fj-day-total-i { color: var(--fj-primary); font-weight: 600; }
.fj-day-total-e { color: #dc2626; font-weight: 600; }

/* 모달 내 기록 유형 버튼 */
.fj-cal-type-btn {
    cursor: pointer;
    margin-bottom: 0;
}
.fj-cal-type-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.fj-cal-type-btn > span {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--fj-gray-300);
    border-radius: var(--fj-radius);
    background: #ffffff;
    color: var(--fj-gray-700);
    font-size: 0.813rem;
    font-weight: 500;
    transition: all 0.15s;
}
.fj-cal-type-btn input[type="radio"]:checked + span {
    border-color: var(--fj-primary);
    background: var(--fj-primary-light);
    color: var(--fj-primary-dark);
    font-weight: 600;
}

/* 리스트 뷰 */
#fjCalendar .fc-list-day-cushion {
    background: var(--fj-gray-50);
}
#fjCalendar .fc-list-event:hover td {
    background: var(--fj-primary-light);
}

/* 모바일 */
@media (max-width: 767.98px) {
    #fjCalendar { font-size: 0.78rem; }
    #fjCalendar .fc-toolbar.fc-header-toolbar {
        flex-direction: column;
        gap: 0.4rem;
    }
    #fjCalendar .fc-toolbar-chunk { display: flex; }
    .fj-day-total { font-size: 0.62rem; }
    .fj-cal-sum-value { font-size: 1.05rem; }
}

/* ── 작업 지역 다중선택 (경기 북부) ── */
.fj-region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
/* CL-F: 지역 chip — 사용자 결정(완전 일관화)에 따라 지역별 색 다양화 폐지.
   GyeonggiNorthRegions의 Color 데이터는 그대로 두되, CSS에서 --chip 변수 사용을
   primary 단일색으로 고정하여 모든 지역 chip이 동일 톤으로 표시. */
.fj-region-chip {
    --chip: var(--fj-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    border: 1px solid var(--fj-gray-300);
    border-radius: 6px;
    background: #fff;
    color: var(--fj-gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.12s ease;
    margin: 0;
}
.fj-region-chip input[type=checkbox] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.fj-region-chip:hover {
    border-color: var(--fj-primary);
    color: var(--fj-primary);
}
.fj-region-chip.on {
    background: var(--fj-primary);
    border-color: var(--fj-primary);
    color: var(--fj-on-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.fj-region-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    vertical-align: middle;
}
/* CL-F: 지역 배지 — 단일 회색 톤으로 통일. 인라인 style="--chip:..." 무시됨. */
.fj-region-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background: var(--fj-gray-200);
    color: var(--fj-gray-700);
    border: 1px solid var(--fj-gray-300);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
}
@media (max-width: 480px) {
    .fj-region-grid {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
        gap: 0.375rem;
        padding: 0.5rem;
    }
    .fj-region-chip {
        padding: 0.45rem 0.2rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   Dashboard v2 — KPI / Trend / Chart / Role
   ============================================ */

/* 긴급 배너 */
.fj-dashboard-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    background: var(--fj-danger-light, #fee2e2);
    color: var(--fj-danger, #dc2626);
    border-left: 4px solid var(--fj-danger, #dc2626);
    border-radius: 6px;
    flex-wrap: wrap;
}

/* KPI 5칸 */
.fj-kpi-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.fj-kpi-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--fj-gray-200, #e5e7eb);
    border-radius: 8px;
    color: inherit;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fj-kpi-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.fj-kpi-card.fj-kpi-danger { border-color: var(--fj-danger, #dc2626); }
.fj-kpi-card.fj-kpi-warn   { border-color: #d97706; }
.fj-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.fj-kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--fj-gray-900, #111827);
}
.fj-kpi-label {
    font-size: 0.8125rem;
    color: var(--fj-gray-500, #6b7280);
    margin-top: 0.125rem;
}

/* 트렌드 배지 */
.fj-trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
    line-height: 1;
    white-space: nowrap;
}
.fj-trend-up   { background: #d1fae5; color: #065f46; }
.fj-trend-down { background: #fee2e2; color: #991b1b; }
.fj-trend-flat { background: #f3f4f6; color: #6b7280; }
.fj-trend-pct { font-weight: 500; opacity: 0.85; }

/* 스탯 카드 — 서브 텍스트 */
.fj-stat-sub {
    font-size: 0.75rem;
    color: var(--fj-gray-500, #6b7280);
    margin-top: 0.25rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fj-stat-card-linked {
    color: inherit;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fj-stat-card-linked:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: inherit;
}

/* 차트 카드 */
.fj-chart-card {
    padding: 1.25rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}
.fj-chart-card canvas {
    flex: 1;
    max-height: 280px;
}

/* Role 분포 바 */
.fj-role-bar {
    display: flex;
    width: 100%;
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    background: var(--fj-gray-100, #f3f4f6);
}
.fj-role-seg {
    height: 100%;
    transition: opacity 0.15s ease;
}
.fj-role-seg:hover { opacity: 0.85; }
.fj-role-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 운영 큐 카드 */
.fj-ops-card { min-height: 180px; }

/* 모바일 반응형 */
@media (max-width: 768px) {
    .fj-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .fj-chart-card { min-height: 280px; }
    .fj-chart-card canvas { max-height: 240px; }
}
@media (max-width: 480px) {
    .fj-kpi-card {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    .fj-kpi-icon { width: 34px; height: 34px; font-size: 1rem; }
    .fj-kpi-value { font-size: 1.25rem; }
}


/* ==========================================================================
   Nickname UserCard Popover (닉네임 클릭 → 유저카드)
   ========================================================================== */
.fj-nickname {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: inherit;
    line-height: inherit;
    border-radius: 3px;
    transition: opacity 120ms ease;
}
/* hover: 색은 부모에서 상속(currentColor) 유지. 밑줄 + 약간의 투명도로만 강조하여
   흰 카드 / 컬러풀한 헤더 / 어두운 그라디언트 등 어떤 배경 위에서도 자연스럽게 보이도록 함 */
.fj-nickname:hover {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    opacity: 0.85;
}
.fj-nickname:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fj-usercard {
    position: absolute;
    z-index: 1080;
    min-width: 220px;
    max-width: 280px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--fj-radius-lg, 12px);
    box-shadow: var(--fj-shadow-lg, 0 10px 30px rgba(0, 0, 0, 0.15));
    padding: 0.875rem;
    animation: fjUsercardIn 140ms ease-out;
}
@keyframes fjUsercardIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fj-usercard-header {
    padding-bottom: 0.625rem;
    margin-bottom: 0.625rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.fj-usercard-nick {
    font-weight: 700;
    font-size: 1rem;
    color: #212529;
    word-break: break-all;
}
.fj-usercard-id {
    color: #6c757d;
    font-size: 0.8125rem;
    margin-top: 2px;
    font-family: var(--bs-font-monospace, ui-monospace, SFMono-Regular, monospace);
    word-break: break-all;
}

.fj-usercard-actions {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.fj-usercard-btn {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: var(--fj-radius, 8px);
    background: #f1f3f5;
    color: #212529;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 120ms, color 120ms;
}
.fj-usercard-btn:hover,
.fj-usercard-btn:focus-visible {
    background: #e9ecef;
    color: #212529;
    text-decoration: none;
}
.fj-usercard-btn-primary {
    background: var(--fj-primary, #0d6efd);
    color: #fff;
}
.fj-usercard-btn-primary:hover,
.fj-usercard-btn-primary:focus-visible {
    background: var(--fj-primary-dark, #0a58ca);
    color: #fff;
}
.fj-usercard-note {
    padding: 0.25rem 0.125rem;
    color: #6c757d;
    font-size: 0.8125rem;
    text-align: center;
}

/* 모바일 bottom-sheet */
@media (max-width: 479.98px) {
    .fj-usercard.fj-usercard-mobile {
        position: fixed;
        top: auto;
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

/* ─────────────────────────────────────────────────
 * 작업 사례 (WorkCase) — 카드/썸네일/업로더/갤러리
 * ───────────────────────────────────────────────── */

/* 카드 */
.fj-workcase-card {
    background: #fff;
    border-radius: var(--fj-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.fj-workcase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.fj-workcase-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 썸네일 (4:3 비율) */
.fj-workcase-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--fj-gray-100);
    background-size: cover;
    background-position: center;
}
.fj-workcase-thumb-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fj-gray-300);
    font-size: 2.5rem;
}
.fj-workcase-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 500;
}

/* 프로필 페이지 미리보기 (1:1 비율) */
.fj-workcase-thumb-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.fj-workcase-thumb-sm {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--fj-gray-100);
    background-size: cover;
    background-position: center;
    border-radius: var(--fj-radius);
    overflow: hidden;
}
.fj-workcase-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, .75));
    opacity: 0;
    transition: opacity .2s ease;
    display: flex;
    align-items: flex-end;
    padding: 8px;
}
.fj-workcase-thumb-link:hover .fj-workcase-thumb-overlay { opacity: 1; }
.fj-workcase-thumb-link:hover .fj-workcase-thumb-sm { transform: none; }
.fj-workcase-thumb-title {
    color: #fff;
    font-size: .813rem;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 이미지 업로더 */
.fj-image-dropzone {
    border: 2px dashed var(--fj-gray-300);
    border-radius: var(--fj-radius);
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    color: var(--fj-gray-500);
}
/* fj-image-dropzone — CL-B 이후 primary 일관. fallback도 primary로. */
.fj-image-dropzone i {
    font-size: 2rem;
    color: var(--fj-portfolio, #2563eb);
    display: block;
    margin-bottom: 8px;
}
.fj-image-dropzone:hover,
.fj-image-dropzone.dragover {
    border-color: var(--fj-portfolio, #2563eb);
    background: rgba(37, 99, 235, .04);
}
.fj-image-progress {
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--fj-gray-100);
    border-radius: 6px;
    text-align: center;
    font-size: .875rem;
    color: var(--fj-gray-600);
}
.fj-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.fj-image-preview-item {
    position: relative;
    background: #fff;
    border: 1px solid var(--fj-gray-200);
    border-radius: 6px;
    overflow: hidden;
    padding: 6px;
}
.fj-image-preview-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--fj-gray-100);
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}
.fj-image-preview-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
}
.fj-image-btn {
    background: rgba(0, 0, 0, .65);
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .75rem;
    padding: 0;
    transition: background .15s;
}
.fj-image-btn:hover { background: rgba(0, 0, 0, .85); }
.fj-image-btn-remove:hover { background: #dc3545; }
.fj-image-caption {
    font-size: .75rem;
}

/* 상세 갤러리 */
.fj-workcase-gallery .fj-workcase-gallery-item {
    display: block;
    aspect-ratio: 1 / 1;
    background-color: var(--fj-gray-100);
    background-size: cover;
    background-position: center;
    border-radius: var(--fj-radius);
    overflow: hidden;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.fj-workcase-gallery .fj-workcase-gallery-item:hover {
    opacity: .9;
    transform: scale(1.01);
}

/* 상세 헤더 */
.fj-workcase-detail-header h2 {
    margin-bottom: 8px;
}
.fj-workcase-detail-meta {
    color: var(--fj-gray-500);
    font-size: .938rem;
}
.fj-workcase-detail-meta a {
    color: var(--fj-primary);
    text-decoration: none;
}
.fj-workcase-detail-meta a:hover { text-decoration: underline; }

/* ============================================
   구인 채용 트랜잭션 — 상태 배지 / 지원자 카드 / 별점 / 리뷰
   ============================================ */

/* ─────────────────────────────────────────────
   통합 배지 시스템
   ─────────────────────────────────────────────
   사이트 전체 상태/유형 배지의 사이즈·여백·라운드·폰트를 한곳에 정의.
   색상만 변형으로 분리하여 일관된 룩을 보장한다.

   대상:
   - fj-status-* (채용중/마감/종료)
   - fj-employment-* (일용직/정규직)
   - fj-app-* (applied/hired/rejected)
   - fj-close-reason-* (completed/cancelled)
   - fj-badge-open/closed (구직중/마감 — 레거시 명칭 유지)
   - fj-detail-type-badge (구인/구직 — 헤더 안)
*/
.fj-status-open,
.fj-status-closed,
.fj-status-ended,
.fj-employment-badge,
.fj-app-status-pill,
.fj-close-reason-badge,
.fj-badge-open,
.fj-badge-closed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    letter-spacing: 0;
    white-space: nowrap;
}

/* 상태 (3-state) */
.fj-status-open    { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.fj-status-closed  { background: var(--fj-gray-100); color: var(--fj-gray-700); border-color: var(--fj-gray-200); }
.fj-status-ended   { background: var(--fj-gray-200); color: var(--fj-gray-800); border-color: var(--fj-gray-300); }

/* 마감 사유 — completed(파란계열, 긍정) / cancelled(회색-앰버, 중립) */
.fj-close-reason-badge { background: #f1f5f9; color: #475569; border-color: #e2e8f0; } /* default */
.fj-close-reason-completed { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.fj-close-reason-cancelled { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

/* 고용형태 */
.fj-employment-daily    { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.fj-employment-fulltime { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }

/* 지원자 상태 */
.fj-app-applied  { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.fj-app-hired    { background: #d1fae5; color: #047857; border-color: #a7f3d0; }
.fj-app-rejected { background: var(--fj-gray-100); color: var(--fj-gray-600); border-color: var(--fj-gray-200); }

/* 구직 페이지 레거시(=fj-status-open/closed 와 시각적으로 동일) */
.fj-badge-open   { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.fj-badge-closed { background: var(--fj-gray-100); color: var(--fj-gray-700); border-color: var(--fj-gray-200); }

/* Detail 페이지 액션 바 */
.fj-job-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px;
    background: #fafafa;
    border: 1px solid var(--fj-gray-200);
    border-radius: var(--fj-radius);
}

/* 지원 상태 pill (open=blue, hired=green, rejected=gray) */
.fj-app-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.fj-app-applied { background: #dbeafe; color: #1d4ed8; }
.fj-app-hired { background: #d1fae5; color: #047857; }
.fj-app-rejected { background: var(--fj-gray-100); color: var(--fj-gray-600); }

/* 필터 탭 */
.fj-tab-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: var(--fj-gray-100);
    border-radius: var(--fj-radius);
    overflow-x: auto;
}
.fj-tab-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: calc(var(--fj-radius) - 4px);
    color: var(--fj-gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.fj-tab-filter-item:hover { background: white; color: var(--fj-gray-900); }
.fj-tab-filter-item.active { background: white; color: var(--fj-primary); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.fj-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--fj-gray-200);
    color: var(--fj-gray-700);
    font-size: 0.7rem;
    font-weight: 700;
}
.fj-tab-filter-item.active .fj-tab-badge { background: var(--fj-primary); color: white; }

/* 업체용 "내 구인글 지원자" — 글 카드 + 통계 알약 */
.fj-job-applicants-card {
    border: 1px solid var(--fj-gray-200);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.fj-job-applicants-card:hover {
    border-color: var(--fj-primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.fj-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    border: 1px solid transparent;
    line-height: 1.3;
}
.fj-stat-pill strong { font-weight: 700; }
.fj-stat-pill small { font-size: 0.72rem; }
.fj-stat-all { background: var(--fj-gray-100); color: var(--fj-gray-700); border-color: var(--fj-gray-200); }
.fj-stat-applied { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.fj-stat-applied i { color: #2563eb; }
.fj-stat-hired { background: #d1fae5; color: #047857; border-color: #a7f3d0; }
.fj-stat-hired i { color: #059669; }
.fj-stat-rejected { background: var(--fj-gray-100); color: var(--fj-gray-600); border-color: var(--fj-gray-300); }
.fj-stats-row { margin-top: 4px; }

/* 업체 평점 배지 — Job/Detail 메타 영역용 + 미니 버전(목록 카드용) */
.fj-owner-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #fde68a;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.fj-owner-rating-badge:hover { background: #fde68a; color: #b45309; border-color: #fbbf24; }
.fj-owner-rating-badge i { color: #d97706; font-size: 0.78rem; }
.fj-owner-rating-badge .text-muted { font-weight: 500; font-size: 0.7rem; }

.fj-owner-rating-badge-mini {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.fj-owner-rating-badge-mini:hover,
.fj-owner-rating-badge-mini:focus-visible { background: #fde68a; border-color: #fbbf24; outline: none; }
.fj-owner-rating-badge-mini i { color: #d97706; font-size: 0.7rem; }

/* Detail 메타의 외부 링크 아이콘 (프로필로 이동) — 흰 카드 본문 + 그라데이션 헤더 양쪽에서 사용 */
.fj-detail-meta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--fj-gray-500);
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.fj-detail-meta-link:hover { background: var(--fj-primary-light); color: var(--fj-primary); }
.fj-detail-meta-link i { font-size: 0.78rem; }
/* 그라데이션 헤더 안에서는 회색 500이 진한 파랑/녹색/다크 배경에 묻혀 보임 — 흰 톤으로 override */
.fj-detail-header .fj-detail-meta-link {
    color: rgba(255, 255, 255, 0.85);
}
.fj-detail-header .fj-detail-meta-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 받은 리뷰 미리보기 (Profile/Index / Company/Index 공용) */
.fj-review-preview {
    padding: 10px 12px;
    background: #fafafa;
    border: 1px solid var(--fj-gray-200);
    border-radius: 8px;
}
.fj-review-preview + .fj-review-preview { margin-top: 8px; }
.fj-review-preview-body {
    font-size: 0.85rem;
    color: var(--fj-gray-700);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 리뷰 아이콘 평가 — 입력(체크박스) + 표시 칩 */
.fj-review-icon-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.fj-review-icon-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--fj-gray-300);
    border-radius: 999px;
    background: white;
    cursor: pointer;
    color: var(--fj-gray-700);
    transition: all 0.15s ease;
    user-select: none;
    font-size: 0.9rem;
}
.fj-review-icon-radio i { font-size: 1rem; color: var(--fj-gray-500); transition: color 0.15s ease; }
.fj-review-icon-radio:hover { border-color: var(--fj-primary); color: var(--fj-primary); }
.fj-review-icon-radio input[type="checkbox"] { display: none; }
.fj-review-icon-radio:has(input:checked) {
    background: var(--fj-primary);
    color: white;
    border-color: var(--fj-primary);
    font-weight: 600;
}
.fj-review-icon-radio:has(input:checked) i { color: white; }

/* 리뷰 표시용 아이콘 칩 — ProfileReviews/CompanyReviews 카드 헤더 */
.fj-review-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.fj-review-icon-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    /* CL-F: indigo → primary container (일관화) */
    background: var(--fj-primary-light);
    color: var(--fj-on-primary-container);
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}
.fj-review-icon-pill i { font-size: 0.85rem; }

/* 작성 가능 리뷰 행 (MyReviews "작성 가능" 섹션) */
.fj-pending-review-row {
    padding: 10px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #fde68a;
}
.fj-pending-review-row + .fj-pending-review-row { margin-top: 4px; }

/* 커뮤니티 카테고리 — 배지/라디오/Detail 링크 */
/* CL-F: indigo → primary container (일관화) */
.fj-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--fj-primary-light);
    color: var(--fj-on-primary-container);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    border: 1px solid #bfdbfe;
    vertical-align: middle;
}

.fj-category-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--fj-gray-300);
    border-radius: 999px;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--fj-gray-700);
    transition: all 0.15s ease;
    user-select: none;
}
.fj-category-radio:hover { border-color: var(--fj-primary); color: var(--fj-primary); }
.fj-category-radio input[type="radio"] { margin: 0; accent-color: var(--fj-primary); }
.fj-category-radio:has(input:checked) {
    background: var(--fj-primary);
    color: white;
    border-color: var(--fj-primary);
    font-weight: 600;
}

.fj-detail-category-link {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.fj-detail-category-link:hover { background: rgba(255, 255, 255, 0.35); color: white; }

/* 지원자 카드 */
.fj-applicant-card {
    background: white;
    border: 1px solid var(--fj-gray-200);
    border-radius: var(--fj-radius);
    padding: 14px;
    height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fj-applicant-card:hover { border-color: var(--fj-gray-300); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.fj-applicant-hired { border-left: 3px solid #10b981; }
.fj-applicant-rejected { border-left: 3px solid var(--fj-gray-400); }
.fj-applicant-applied { border-left: 3px solid #3b82f6; }

.fj-applicant-nick {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fj-gray-900);
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
}
.fj-applicant-nick:hover { color: var(--fj-primary); }

.fj-applicant-portfolio {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 10px 0;
    color: var(--fj-gray-600);
    font-size: 0.82rem;
}
.fj-applicant-portfolio i { color: var(--fj-portfolio); margin-right: 3px; }

.fj-applicant-note {
    background: #f9fafb;
    border-left: 3px solid var(--fj-gray-300);
    padding: 8px 12px;
    margin: 10px 0;
    font-size: 0.85rem;
    color: var(--fj-gray-700);
    border-radius: 0 6px 6px 0;
    white-space: pre-wrap;
}

/* 지원자 연락처 (Owner/Admin/Mod만 조회 가능한 페이지에서만 노출) */
.fj-applicant-contact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f9ff;
    color: #075985;
    padding: 6px 10px;
    margin: 8px 0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #bae6fd;
}
.fj-applicant-contact i { color: #0284c7; }

.fj-applicant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--fj-gray-200);
}

/* 빈 상태 */
.fj-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: var(--fj-radius);
    border: 1px dashed var(--fj-gray-200);
}

/* 별점 (display) */
.fj-rating-stars {
    display: inline-flex;
    gap: 1px;
    color: #f59e0b;
}
.fj-rating-stars i { font-size: 1rem; }
.fj-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 0.95rem;
}
.fj-rating-summary .fj-rating-value {
    font-weight: 700;
    color: var(--fj-gray-900);
    font-size: 1.05rem;
}

/* 별점 (interactive — radio 5개를 거꾸로 정렬해서 hover 효과) */
.fj-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}
.fj-rating-input input[type="radio"] {
    display: none;
}
.fj-rating-input label {
    cursor: pointer;
    color: var(--fj-gray-300);
    font-size: 1.8rem;
    transition: color 0.1s ease;
}
.fj-rating-input label:hover,
.fj-rating-input label:hover ~ label,
.fj-rating-input input[type="radio"]:checked ~ label {
    color: #f59e0b;
}

/* 리뷰 카드 (ProfileReviews 페이지) */
.fj-review-card {
    background: white;
    border: 1px solid var(--fj-gray-200);
    border-radius: var(--fj-radius);
    padding: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fj-review-card:hover { border-color: var(--fj-gray-300); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.fj-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.fj-review-job-link {
    font-size: 0.85rem;
    color: var(--fj-gray-600);
    margin-bottom: 8px;
}
.fj-review-job-link a {
    color: var(--fj-primary);
    text-decoration: none;
}
.fj-review-job-link a:hover { text-decoration: underline; }
.fj-review-body {
    margin: 10px 0;
    color: var(--fj-gray-800);
    line-height: 1.6;
}
.fj-review-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 6px 0;
}
.fj-review-gallery a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: var(--fj-gray-100);
}
.fj-review-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.fj-review-gallery a:hover img { transform: scale(1.04); }

/* 리뷰 미리보기 (Profile 페이지 안) */
.fj-review-preview {
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 8px;
}
.fj-review-preview:last-child { margin-bottom: 0; }
.fj-review-preview-body {
    color: var(--fj-gray-700);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* 섹션 서브타이틀 */
.fj-section-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fj-gray-700);
    margin-bottom: 8px;
}

/* 리뷰 섹션 */
.fj-review-section {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--fj-radius);
    padding: 12px;
}

/* ============================================================
   소프트 삭제 — "삭제된 글" 페이지
   ============================================================ */
.fj-deleted-card {
    background: white;
    border: 1px solid var(--fj-gray-200);
    border-radius: var(--fj-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.fj-deleted-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: var(--fj-gray-100);
    color: var(--fj-gray-400);
    border-radius: 50%;
    font-size: 2rem;
}
.fj-deleted-title {
    color: var(--fj-gray-800);
    font-weight: 700;
    margin-bottom: 1rem;
}
.fj-deleted-original {
    background: var(--fj-gray-50);
    border: 1px dashed var(--fj-gray-200);
    border-radius: var(--fj-radius);
    padding: 0.75rem 1rem;
    margin: 0 auto 1.25rem;
    max-width: 90%;
    text-align: left;
}
.fj-deleted-original-label {
    display: block;
    font-size: 0.75rem;
    color: var(--fj-gray-500);
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.fj-deleted-original-text {
    font-size: 0.95rem;
    color: var(--fj-gray-700);
    text-decoration: line-through;
    text-decoration-color: var(--fj-gray-400);
}
.fj-deleted-desc {
    color: var(--fj-gray-600);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.fj-deleted-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* ============================================================
   디자인 시스템 — 헤더 타입 배지(구인/구직) 고대비 처리
   ============================================================
   상세 페이지의 컬러 그라데이션 헤더 위에 놓이는 "구인"/"구직" 배지는
   white-on-translucent 방식이 그라데이션과 섞여 가독성이 약했다.
   → 거의 흰 배경(95%) + 헤더 색과 일치하는 강한 색 텍스트로 변경하여
     그라데이션 위에서 또렷하게 돌출되도록 한다. */
.fj-detail-type-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--fj-primary-dark);
    text-shadow: none;
    font-weight: 700;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: none;
}
.fj-detail-type-badge i { color: inherit; }
.fj-detail-type-badge-green {
    background: rgba(255, 255, 255, 0.95);
    color: var(--fj-secondary-dark);
}
.fj-detail-type-badge-dark {
    background: rgba(255, 255, 255, 0.95);
    color: var(--fj-gray-800);
}

/* 카드/패널 섹션 헤더의 인라인 style="color: var(--fj-portfolio)" 제거용 */
.fj-section-portfolio {
    color: var(--fj-portfolio-dark) !important;
}
/* ★ CL-A: 광범위 자손 i 셀렉터로 인해 카드 헤더 안 버튼 내부의 아이콘까지
   보라색이 강제되어, fj-btn-portfolio(보라 배경) 위에서 비가시 사고 발생.
   직접 자식 span 안의 첫 아이콘(헤더 제목 옆 아이콘)에만 적용. */
.fj-section-portfolio > span > .bi:first-child,
.fj-section-portfolio > span > i:first-child,
.fj-section-portfolio > .bi:first-child,
.fj-section-portfolio > i:first-child {
    color: var(--fj-portfolio);
}

/* ============================================================
   타입 배지 (구인/구직) — 흰 카드 배경용
   ============================================================
   fj-detail-type-badge 는 컬러 그라데이션 헤더 위에 두는 용도(흰 알약 + 진한 색 텍스트)다.
   리스트/북마크 카드처럼 흰 배경 위에서는 배경이 비치지 않아 가시성이 떨어지므로
   소프트 컬러 배경 + 진한 색 텍스트의 별도 변형을 사용한다. */
.fj-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
    letter-spacing: 0;
}
.fj-type-pill-job {
    background: var(--fj-primary-light);
    color: var(--fj-primary-dark);
    border-color: rgba(37, 99, 235, 0.25);
}
.fj-type-pill-resume {
    background: var(--fj-secondary-light);
    color: var(--fj-secondary-dark);
    border-color: rgba(16, 185, 129, 0.3);
}

/* ============================================================
   텍스트 선택 시(::selection) 가독성 보존
   ============================================================
   기본 선택 색상이 진한 파랑이라, 흰 텍스트(컬러 배지/헤더의 흰 글자)를
   선택했을 때 글자가 사라져 보인다. 선택 시에도 본 색상을 유지하도록 강제. */
::selection {
    background: rgba(37, 99, 235, 0.25);  /* 연한 primary */
    color: inherit;
    text-shadow: none;
}
::-moz-selection {
    background: rgba(37, 99, 235, 0.25);
    color: inherit;
    text-shadow: none;
}

/* ──────────────────────────────────────────────────────
 * 작업 제안 (JobOffer, W7)
 *  - 상태 배지: fj-offer-{status} (6종) — fj-status-* 와 동일 라운드 필
 *  - 금액 강조: fj-offer-amount / fj-offer-amount-mini
 *  - 카드: fj-offer-card
 *  - 타입 필: fj-type-pill-offer (MyReviews에서 사용)
 * ────────────────────────────────────────────────────── */
.fj-offer-proposed,
.fj-offer-negotiating,
.fj-offer-accepted,
.fj-offer-completed,
.fj-offer-rejected,
.fj-offer-cancelled {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid transparent;
}
.fj-offer-proposed    { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.fj-offer-negotiating { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.fj-offer-accepted    { background: #d1fae5; color: #047857; border-color: #a7f3d0; }
.fj-offer-completed   { background: var(--fj-primary-light); color: var(--fj-on-primary-container); border-color: #bfdbfe; }  /* CL-F: indigo → primary container */
.fj-offer-rejected    { background: var(--fj-gray-100); color: var(--fj-gray-700); border-color: var(--fj-gray-200); }
.fj-offer-cancelled   { background: var(--fj-gray-100); color: var(--fj-gray-600); border-color: var(--fj-gray-200); }

/* 금액 강조 */
.fj-offer-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fj-primary);
}
.fj-offer-amount-mini {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fj-primary);
}

/* JobOffer 카드 (목록) */
.fj-offer-card {
    border-left: 1px solid var(--fj-gray-200);
    box-shadow: inset 4px 0 0 0 var(--fj-primary);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fj-offer-card:hover {
    transform: translateY(-1px);
    box-shadow: inset 4px 0 0 0 var(--fj-primary), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* MyReviews "작성 가능 리뷰" source 배지 — CL-F: indigo → primary container */
.fj-type-pill-offer {
    background: var(--fj-primary-light);
    color: var(--fj-on-primary-container);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
    display: inline-block;
}

/* 양방 합의 상태 표시 (Detail) — v21 */
.fj-agreement-status {
    padding: 10px 12px;
    background: var(--fj-gray-50);
    border-radius: 8px;
    border: 1px solid var(--fj-gray-200);
}
.fj-agree-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--fj-gray-100);
    color: var(--fj-gray-600);
    border: 1px solid var(--fj-gray-200);
    font-size: 0.8rem;
    font-weight: 600;
}
.fj-agree-pill.agreed {
    background: #d1fae5;
    color: #047857;
    border-color: #a7f3d0;
}
.fj-agree-pill i { font-size: 0.85rem; }
