@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

/* ==================== */
/* CSS Variables & Reset */
/* ==================== */
:root {
    --brand-color: rgb(140, 13, 4);
    --brand-light: rgba(139, 14, 4, 0.1);
    --brand-hover: rgb(120, 10, 3);
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --success-color: #10b981;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --warning-color: #f59e0b;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    --danger-color: #8b0e04;
    --danger-bg: #8b0e04;
    --danger-text: #8b0e04;
    --info-color: #3b82f6;
    --info-bg: #dbeafe;
    --info-text: #1e40af;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 6px;
    --radius-lg: 6px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* ==================== */
/* Utility Classes */
/* ==================== */
.hidden { display: none !important; }
.full-width { width: 100%; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.field-needs-attention {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.18) !important;
    background-color: #fff7f7 !important;
}

/* ==================== */
/* Radius Standardization */
/* ==================== */
button,
.btn,
input,
select,
textarea,
.card,
[class*="card"],
[class*="btn"] {
    border-radius: var(--radius-sm);
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0;
    color: inherit;
    text-decoration: none;
}

.logo-emblem,
.logo-icon {
    height: 48px;
    max-width: 100%;
    width: auto;
    margin: 0;
    padding: 0;
    display: block;
}

.mobile-nav-logo {
    display: none !important;
    object-fit: contain;
    background-color: var(--border-light);
    border: 1px solid var(--border-color);
    padding: 0.15rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.logo-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.view-toggle {
    display: flex;
    background-color: var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.toggle-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    background-color: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: small;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background-color: var(--brand-color);
    color: white;
}

.icon-btn {
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
}

.notification-dot {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 8px;
    height: 8px;
    background-color: var(--danger-color);
    border-radius: 50%;
}


.notification-menu {
    position: relative;
}

.notification-menu summary::-webkit-details-marker {
    display: none;
}


.notification-menu summary {
    list-style: none;
}

.notification-menu summary::marker {
    content: '';
    display: none;
}

.message-card {
    gap: 0.75rem;
}

.message-card-unread {
    border-left: 4px solid var(--brand-color);
}

.message-card-body {
    margin: 0;
    color: var(--text-secondary);
}

.notification-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: 320px;
    max-width: min(90vw, 320px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.75rem;
    z-index: 30;
}

.notification-dropdown-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
}

.notification-dropdown-subtitle {
    font-weight: 700;
    color: #374151;
    margin: 0.4rem 0 0.45rem;
    font-size: 0.78rem;
}

.notification-items {
    display: grid;
    gap: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 0.75rem;
}

.notification-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.45rem;
    background: #f9fafb;
}

.notification-item-unread {
    font-weight: 700;
}

.notification-item-title {
    margin: 0 0 0.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
}

.notification-item-message {
    margin: 0;
    font-size: 0.76rem;
    color: #4b5563;
}

.notification-empty {
    margin: 0;
    font-size: 0.76rem;
    color: #6b7280;
}

.notification-link {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    color: var(--brand-color);
}


.ai-assistant-btn {
    padding: 0.5rem 1rem;
    background-color: var(--brand-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1;
    transition: background-color 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.ai-assistant-btn:hover {
    background-color: var(--brand-hover);
}

.jobseeker-actions,
.employer-actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.role-shortcuts {
    margin-right: 0.25rem;
}

.role-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
}

.role-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.15rem;
    height: 3px;
    background-color: var(--brand-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.role-nav-link:hover::after,
.role-nav-link:focus-visible::after {
    transform: scaleX(1);
}


.role-nav-dropdown {
    position: relative;
}

.role-nav-dropdown summary {
    list-style: none;
}

.role-nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.role-nav-dropdown-trigger {
    cursor: pointer;
    gap: 0.25rem;
}

.role-nav-dropdown-chevron {
    display: inline-flex;
    transition: transform 0.2s ease;
}

.role-nav-dropdown[open] .role-nav-dropdown-chevron {
    transform: rotate(180deg);
}

.role-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    min-width: 220px;
    display: grid;
    gap: 0.25rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    z-index: 40;
}

.role-nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    border-radius: calc(var(--radius-sm) - 2px);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.role-nav-dropdown-link:hover,
.role-nav-dropdown-link:focus-visible {
    background-color: var(--bg-primary);
    color: var(--brand-color);
}

.role-nav-dropdown-link-icon {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--brand-color);
}

.role-nav-dropdown-link--featured {
    align-items: center;
    margin-bottom: 0.25rem;
    border: 1px solid rgba(139, 14, 4, 0.16);
    background: linear-gradient(135deg, rgba(139, 14, 4, 0.09), rgba(139, 14, 4, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.role-nav-dropdown-link--featured:hover,
.role-nav-dropdown-link--featured:focus-visible {
    border-color: rgba(139, 14, 4, 0.28);
    background: linear-gradient(135deg, rgba(139, 14, 4, 0.13), rgba(139, 14, 4, 0.06));
    color: var(--brand-hover);
}

.role-nav-dropdown-link--featured .role-nav-dropdown-link-icon {
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--brand-color);
    color: #fff;
    box-shadow: 0 8px 16px rgba(139, 14, 4, 0.18);
}

.role-nav-dropdown-link-copy {
    display: grid;
    gap: 0.1rem;
}

.role-nav-dropdown-link-copy small {
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
}

.role-nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: transparent;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.role-nav-toggle-icon,
.role-nav-toggle-icon::before,
.role-nav-toggle-icon::after {
    display: block;
    width: 1rem;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    content: '';
}

.role-nav-toggle-icon {
}

.role-nav-toggle-icon::before {
    position: absolute;
    top: -0.35rem;
    left: 0;
}

.role-nav-toggle-icon::after {
    position: absolute;
    top: 0.35rem;
    left: 0;
}

.role-nav-toggle[aria-expanded='true'] .role-nav-toggle-icon {
    background-color: transparent;
}

.role-nav-toggle[aria-expanded='true'] .role-nav-toggle-icon::before {
    transform: translateY(0.35rem) rotate(45deg);
}

.role-nav-toggle[aria-expanded='true'] .role-nav-toggle-icon::after {
    transform: translateY(-0.35rem) rotate(-45deg);
}

.login-btn {
    background-color: #4b5563;
    color: #fff;
    box-shadow: inset 0 0 0 1px #4b5563;
}

.login-btn:hover {
    background-color: #374151;
}

/* ==================== */
/* Main Content */
/* ==================== */
.main-content {
    padding-top: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ==================== */
/* Profile Banner */
/* ==================== */
.profile-banner {
    background-color: var(--warning-bg);
    border: 1px solid #fbbf24;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.banner-text {
    flex: 1;
}

.banner-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--warning-text);
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 8px;
    background-color: #fde68a;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--warning-color);
    transition: width 0.3s;
}

.banner-subtitle {
    font-size: 0.75rem;
    color: var(--warning-text);
}

.programs-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--brand-color);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
}

.upload-resume-btn {
    padding: 0.5rem 1rem;
    background-color: var(--brand-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.banner-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.profile-banner-hide {
    border: 1px solid #d97706;
    background: rgba(255, 255, 255, 0.7);
    color: #9a3412;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.profile-banner-hide:hover {
    background-color: #fff7ed;
    color: #7c2d12;
    transform: translateY(-1px);
}

.profile-banner-message {
    border: 1px solid #cbd5f5;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    color: #1f2937;
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin: -0.5rem 0 1.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.profile-banner-message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.profile-banner-message.is-fading {
    opacity: 0;
    transform: translateY(-4px);
}

/* ==================== */
/* Search Container */
/* ==================== */
.search-container {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.search-mode-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.search-mode-copy span {
    display: block;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.search-mode-copy p,
.search-mode-help {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.35;
    margin: 0;
}

.search-mode-options {
    background: var(--border-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
    padding: 0.25rem;
}

.search-mode-btn {
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    min-height: 2.6rem;
    padding: 0.7rem 1rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-mode-btn:hover {
    color: var(--text-primary);
}

.search-mode-btn--active {
    background: var(--bg-white);
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
    color: var(--text-primary);
}

.search-mode-btn--ai {
    color: var(--brand-color);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.search-mode-btn--ai.search-mode-btn--active {
    background: linear-gradient(135deg, #8b0e04 0%, #a9150a 55%, #8b0e04 100%);
    background-size: 200% auto;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 14, 4, 0.24);
    color: white;
}

.search-mode-btn--ai.search-mode-btn--active:hover {
    box-shadow: 0 8px 24px rgba(139, 14, 4, 0.32);
    background-position: right center;
}

.search-mode-btn--ai.search-mode-btn--active::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.34) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shine-sweep 3.6s infinite;
    pointer-events: none;
}

.search-mode-help {
    grid-column: 1 / -1;
    color: var(--brand-color);
    font-weight: 600;
}

.search-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem;
}

.search-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-submit-btn {
    padding: 0.5rem 1rem;
    background-color: var(--brand-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s;
}

.search-submit-btn:hover {
    background-color: var(--brand-hover);
}

.search-submit-btn--ai {
    background: linear-gradient(135deg, #8b0e04 0%, #a9150a 55%, #8b0e04 100%);
    box-shadow: 0 4px 14px rgba(139, 14, 4, 0.22);
}

.search-submit-btn--ai:hover {
    box-shadow: 0 6px 18px rgba(139, 14, 4, 0.3);
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: var(--border-light);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-btn.active {
    background-color: var(--brand-color);
    color: white;
}

.clear-btn {
    padding: 0.5rem;
    background-color: var(--border-light);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.ai-helper {
    padding: 0 1rem 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filter Dropdown */
.filter-dropdown {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    background-color: var(--bg-primary);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.filter-checkboxes {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ==================== */
/* Location Bar */
/* ==================== */
.location-bar {
    background-color: var(--bg-white);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.location-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.location-radius {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.location-actions {
    display: flex;
    gap: 0.5rem;
}

#show-all-locations-btn.is-active {
    background-color: var(--brand-color);
    color: #fff;
}

#show-all-locations-btn.is-active:hover {
    background-color: var(--brand-hover);
}

/* ==================== */
/* Buttons */
/* ==================== */
.btn-primary {
    padding: 0.5rem 1rem;
    background-color: var(--brand-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--brand-hover);
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background-color: var(--border-light);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

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

.btn-secondary.danger {
    background-color: var(--danger-bg);
    color: #fff;
    border: 1px solid var(--danger-bg);
}

.btn-secondary.danger:hover {
    background-color: var(--danger-color);
    color: #fff;
    border-color: var(--danger-color);
}

.btn-small {
    padding: 0.25rem 0.75rem;
    background-color: var(--border-light);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==================== */
/* View Controls */
/* ==================== */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.view-controls-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.view-controls-left h2 {
    margin: 0;
}

.btn-ai-shiny {
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, #8b0e04 0%, #8b0e04 50%, #8b0e04 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 4px 15px rgba(139, 14, 4, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    animation: shine-gradient 3s linear infinite;
}

.btn-ai-shiny:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 14, 4, 0.4);
    background-position: right center;
}

.btn-ai-shiny:active {
    transform: translateY(0);
}

.btn-ai-shiny::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shine-sweep 3s infinite;
}

@keyframes shine-gradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes shine-sweep {
    0% { left: -100%; top: -100%; }
    20% { left: 100%; top: 100%; }
    100% { left: 100%; top: 100%; }
}

.btn-ai-shiny.loading {
    opacity: 0.8;
    cursor: wait;
    pointer-events: none;
}

.btn-ai-shiny.loading svg {
    animation: spin 1s linear infinite;
}

.view-controls h2 {
    font-size: 1.5rem;
    font-weight: bold;
}

.view-buttons {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    background-color: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.view-btn.active {
    background-color: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
}

/* ==================== */
/* Jobs Container */
/* ==================== */
.jobs-container {
    display: grid;
    gap: 1rem;
}

.jobs-container.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Job Card */
.job-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
    position: relative;
}

.job-card-overlay-link {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    z-index: 1;
}


.job-card:focus-visible {
    outline: 2px solid var(--brand-color);
    outline-offset: 2px;
}

.job-card:hover {
    box-shadow: var(--shadow-md);
}

.job-card > *:not(.job-card-overlay-link) {
    position: relative;
    z-index: 2;
}

.job-card.pre-apprentice {
    border: 2px solid var(--brand-color);
}

.job-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

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

.job-header-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.company-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background-color: var(--border-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.company-logo--small {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.company-logo--medium {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
}

.company-logo--cta {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-sm);
    background-color: transparent;
    border: none;
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-secondary);
}

.company-logo-fallback svg {
    width: 60%;
    height: 60%;
}

.company-logo--has-image .company-logo-fallback {
    display: none;
}

.job-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--border-light);
    white-space: nowrap;
}

.job-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.job-company {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.match-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.match-badge.high { background-color: var(--success-color); }
.match-badge.medium { background-color: var(--warning-color); }
.match-badge.low { background-color: var(--text-secondary); }

.pre-apprentice-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--warning-bg);
    color: var(--warning-text);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    height: 22px;
    box-sizing: border-box;
    margin-bottom: 0.75rem;
}

.job-programs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.program-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    height: 22px;
    box-sizing: border-box;
    cursor: help;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background-color: #f3f4f6; /* Fallback */
    color: #374151; /* Fallback */
    border: 1px solid transparent;
}

/* Use CSS variables for dynamic coloring with better shades */
.program-pill[style*="--pill-color"] {
    color: var(--pill-color, #374151);
    border: 1px solid var(--pill-color, #9ca3af);
    background-color: color-mix(in srgb, var(--pill-color), white 94%);
    color: color-mix(in srgb, var(--pill-color), black 30%);
    border: 1px solid color-mix(in srgb, var(--pill-color), black 12%);
}

.program-pill:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.program-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.program-icon svg {
    width: 14px;
    height: 14px;
}

.job-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.jobs-container:not(.grid-view) .job-card {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.jobs-container:not(.grid-view) .job-header {
    margin-bottom: 0.5rem;
}

.job-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.job-detail--location {
    flex-wrap: wrap;
}

.job-detail--salary {
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.job-salary-inline,
.job-posted {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.job-detail-separator {
    width: 1px;
    height: 1rem;
    background: var(--border-color);
}

.job-match-tier-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.job-match-tier {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.625rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
}

.job-match-tier--excellent {
    background: #ecfdf3;
    color: #065f46;
    border-color: #a7f3d0;
}

.job-match-tier--strong {
    background: #effaf3;
    color: #166534;
    border-color: #bbf7d0;
}

.job-match-tier--possible {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.job-match-tier--limited {
    background: #f9fafb;
    color: #4b5563;
    border-color: #d1d5db;
}

.distance-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    height: 22px;
    box-sizing: border-box;
}

.distance-badge.within { background-color: var(--success-bg); color: var(--success-text); }
.distance-badge.outside { background-color: var(--danger-bg); color: var(--danger-text); }

.remote-badge {
    background-color: var(--info-bg);
    color: var(--info-text);
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    height: 22px;
    box-sizing: border-box;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

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

.job-quick-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.job-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.job-icon-btn:hover {
    border-color: var(--brand-color);
    color: var(--brand-color);
}

.job-icon-btn.is-active {
    color: var(--brand-color);
    border-color: color-mix(in srgb, var(--brand-color), black 10%);
    background-color: color-mix(in srgb, var(--brand-color), white 92%);
}

.salary-filter-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1rem;
}

.salary-filter-row .filter-group {
    min-width: 0;
    flex: 1 1 0;
}

.salary-filter-row .filter-group select,
.salary-filter-row .filter-group input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    height: auto;
}

.job-posted {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.job-detail--salary .btn-primary {
    flex-shrink: 0;
}

/* ==================== */
/* Map View */
/* ==================== */
.map-view {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-placeholder h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.25rem;
}

.map-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.map-box {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background-color: var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    gap: 0.5rem;
}

.map-job-count {
    font-weight: 600;
}

/* ==================== */
/* Employer View */
/* ==================== */
.post-job-section {
    background: #ffffff;
    border: 1px solid #eadedd;
    border-top: 4px solid #b9584d;
    box-shadow: 0 10px 24px rgba(32, 14, 12, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.post-job-section h2 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.post-job-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background-color: #fdf9f8;
    color: #8b0e04;
    border: 1px solid #eadedd;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(32, 14, 12, 0.08);
    background-color: #fff;
}

.pre-apprentice-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.pre-apprentice-option .checkbox-label {
    color: #000;
}

.info-btn {
    padding: 0.25rem 0.75rem;
    background-color: #f5ecea;
    color: #2b1a18;
    border: 1px solid #d8c1bc;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.info-btn:hover {
    background-color: #efe2df;
    border-color: #caa8a2;
}

/* Employer Tools */
.employer-tools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.tool-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.tool-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-color);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tool-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.tool-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.stat-card-link {
    cursor: pointer;
}

.stat-card-link:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-color);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: bold;
}

/* Active Postings */
.active-postings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.active-postings-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.job-posting-filters {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.35rem;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.job-filter-btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 0.42rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.job-filter-btn:hover {
    color: #111827;
    background: #f3f4f6;
}

.job-filter-btn.is-active {
    background: linear-gradient(135deg, #8c0d04 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(140, 13, 4, 0.25);
}

.employer-job-card.is-hidden-by-filter {
    display: none;
}

.employer-jobs-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.employer-job-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
    margin-bottom: 10px;
}

.employer-job-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8c0d04 0%, #b91c1c 100%);
}

.employer-job-card.is-expiring-soon {
    border-color: #f59e0b;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.16);
}

.employer-job-card.is-expiring-soon .employer-job-accent {
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
}

.employer-job-card.is-expired {
    border-color: #ef4444;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.16);
}

.employer-job-card.is-expired .employer-job-accent {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.employer-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.employer-job-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.employer-job-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.job-status-control {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.job-status-control label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.job-status-select {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    background: var(--bg-white);
    color: var(--text-primary);
}

.status-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge.active { background-color: var(--info-bg); color: var(--info-text); }
.status-badge.talentcentral { background-color: var(--success-bg); color: var(--success-text); }
.status-badge.external { background-color: var(--warning-bg); color: var(--warning-text); }

.employer-job-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.65rem;
}

.employer-job-stats .stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
}

.employer-job-stats .stat .stat-label {
    margin: 0;
    font-size: 0.78rem;
    color: #4b5563;
    letter-spacing: 0;
    text-transform: none;
}

.employer-job-stats .stat .stat-val {
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.job-expiry-warning {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid #f3d8a9;
    border-radius: 10px;
    background: #fffbeb;
    padding: 0.65rem 0.8rem;
    color: #92400e;
    font-size: 0.875rem;
}

.employer-job-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-edit-listing {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==================== */
/* Job Detail Page */
/* ==================== */
.job-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.job-hero-content {
    flex: 2 1 0;
}

.resource-ai-card {
    align-self: stretch;
    flex: 0 1 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(139, 14, 4, 0.08), rgba(249, 250, 251, 0.95));
    border: 1px solid rgba(139, 14, 4, 0.18);
    border-radius: var(--radius-lg);
}

.resource-ai-eyebrow {
    color: var(--brand-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.resource-ai-copy {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.resource-ai-button {
    justify-content: center;
    width: 100%;
}

.job-hero-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.job-breadcrumb {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.job-breadcrumb a {
    color: var(--brand-color);
    font-weight: 500;
}

.job-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.job-hero-meta {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 1.125rem;
}

.employer-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.employer-heading h2 {
    margin: 0;
}

.meta-dot {
    color: var(--text-muted);
}

.company-name {
    font-weight: 600;
    color: var(--text-primary);
}

.job-hero-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-salary {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-color);
    margin: 0;
}

.job-meta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.job-chip {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.job-chip.pre-apprentice {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: var(--warning-color);
}

.job-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1 1 0;
    min-width: 200px;
}

.job-cta .company-logo--cta {
    align-self: stretch;
    width: 100%;
}

.btn-large {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
}

/* Match Explanation */
.match-explanation-section {
    margin-bottom: 2rem;
}

.match-explanation-card {
    background: linear-gradient(to right, #fdf2f2, #fff);
    border: 1px solid #8b0e04;
    border-left: 4px solid var(--brand-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.match-explanation-content {
    flex: 1;
}

.match-explanation-actions {
    flex-shrink: 0;
}

.btn-deep-analysis {
    background: white;
    color: var(--brand-color);
    border: 2px solid var(--brand-color);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-deep-analysis:hover {
    background: var(--brand-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-deep-analysis.btn-locked {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #d1d5db;
    box-shadow: none;
}

.btn-deep-analysis.btn-locked:hover {
    transform: none;
    background: #e5e7eb;
    color: #4b5563;
}

.btn-sm.btn-locked {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
}

.btn-sm.btn-locked:hover {
    background: #e5e7eb;
}

.btn-deep-analysis svg {
    transition: transform 0.3s ease;
}

.btn-deep-analysis:hover svg {
    transform: rotate(15deg);
}

/* Employer Section Rebalance */
.employer-section {
    border-top: 4px solid var(--brand-color);
}

.employer-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.employer-details-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.employer-details-list li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.employer-details-list li strong {
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.pre-apprentice-tooltip-wrap {
    margin: 0 0 0 0.35rem;
    vertical-align: middle;
}

.pre-apprentice-tooltip {
    left: 50%;
    right: auto;
    width: min(320px, 78vw);
    transform: translate(-50%, -4px);
}

.pre-apprentice-tooltip::before {
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(45deg);
}

.pre-apprentice-tooltip.is-open {
    transform: translate(-50%, 0);
}

.employer-sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.employer-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* Sidebar Improvements */
.overview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.overview-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.overview-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.overview-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.overview-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 600;
}

.sticky-sidebar {
    position: sticky;
    top: calc(2rem + 5.5rem);
}

/* Deep Analysis Modal Styles */
.analysis-modal-content {
    padding: 1rem;
}

.analysis-header-summary {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.match-score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--brand-color);
    box-shadow: 0 0 0 4px rgba(139, 14, 4, 0.1);
    margin-bottom: 1rem;
}

.score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-color);
}

.analysis-intro {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .analysis-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.analysis-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.analysis-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.analysis-card .card-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.analysis-card.good-fit .card-header {
    background-color: #f0fdf4;
    border-bottom-color: #dcfce7;
}

.analysis-card.improvements .card-header {
    background-color: #fffbeb;
    border-bottom-color: #fef3c7;
}

.analysis-card.recommendations .card-header {
    background-color: #eff6ff;
    border-bottom-color: #dbeafe;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-wrapper.success {
    background-color: #dcfce7;
    color: #16a34a;
}

.icon-wrapper.warning {
    background-color: #fef3c7;
    color: #d97706;
}

.icon-wrapper.info {
    background-color: #dbeafe;
    color: #2563eb;
}

.analysis-card h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.analysis-card .card-body {
    padding: 1.5rem;
    flex: 1;
}

.styled-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.styled-list li {
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.styled-list li:last-child {
    margin-bottom: 0;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.styled-list.success-list li::before {
    background-color: #16a34a;
}

.styled-list.warning-list li::before {
    background-color: #d97706;
}

.styled-list.info-list li::before {
    background-color: #2563eb;
}



#deepAnalysisModal .modal-header {
    align-items: flex-start;
}

#deepAnalysisModal .header-with-icon {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'text score';
    align-items: center;
    gap: 0.75rem 1rem;
}

#deepAnalysisModal .header-with-icon > div:nth-child(1) {
    grid-area: text;
    min-width: 0;
}

#deepAnalysisModal .header-with-icon > div:nth-child(2) {
    grid-area: score;
}

#deepAnalysisModal .modal-subtitle {
    margin-top: 0.35rem;
    max-width: 620px;
}

#deepAnalysisModal .modal-body {
    padding-top: 1rem;
}

#deepAnalysisModal .analysis-modal-content {
    padding: 0.5rem 0 0;
}

#deepAnalysisModal .match-score-circle--header {
    width: 92px;
    height: 92px;
    min-width: 92px;
    margin-bottom: 0;
    box-shadow: 0 0 0 3px rgba(139, 14, 4, 0.08);
}

#deepAnalysisModal .match-score-circle--header .score-label {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;
    max-width: 72px;
    margin-bottom: 0.15rem;
}

#deepAnalysisModal .match-score-circle--header .score-value {
    font-size: 1.2rem;
}
/* Deep Match Analysis (job seeker): horizontal card layout + tighter spacing */
#deepAnalysisModal .analysis-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#deepAnalysisModal .analysis-card {
    flex-direction: row;
}

#deepAnalysisModal .analysis-card .card-header {
    width: 220px;
    min-width: 220px;
    padding: 0.9rem;
    margin-bottom: 0;
    border-bottom: 0;
    border-right: 1px solid var(--border-light);
    align-self: stretch;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.65rem;
}


#deepAnalysisModal .analysis-card h4 {
    font-size: 1rem;
    line-height: 1.25;
}
#deepAnalysisModal .analysis-card .card-body {
    padding: 1rem 1.1rem;
}

#deepAnalysisModal .styled-list li {
    padding-left: 0;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

#deepAnalysisModal .styled-list li::before {
    display: none;
}

@media (max-width: 768px) {
    #deepAnalysisModal .analysis-card {
        flex-direction: column;
    }

    #deepAnalysisModal .analysis-card .card-header {
        width: auto;
        min-width: 0;
        border-right: 0;
        border-bottom: 1px solid var(--border-light);
    }

    #deepAnalysisModal .header-with-icon {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: 'text score';
    }

    #deepAnalysisModal .match-score-circle--header {
        justify-self: flex-start;
    }

    #deepAnalysisModal .match-score-circle--header {
        width: 82px;
        height: 82px;
        min-width: 82px;
    }
}
@media (max-width: 768px) {
    .match-explanation-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .btn-deep-analysis {
        width: 100%;
        justify-content: center;
    }
    
    .employer-content {
        grid-template-columns: 1fr;
    }
}

.match-explanation-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--brand-color);
}

.match-explanation-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.match-explanation-card p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
}

.job-body {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.job-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.job-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

.job-section p {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.job-summary {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.job-summary h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.job-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-summary ul li strong {
    font-weight: 600;
    margin-right: 0.25rem;
}

.employer-summary {
    border-top: 4px solid var(--brand-color);
}

.employer-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.employer-details {
    margin-bottom: 1.5rem !important;
}

.contact-card {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.contact-icon {
    width: 18px;
    height: 18px;
    color: var(--brand-color);
    flex-shrink: 0;
}

.contact-method a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-method a:hover {
    color: var(--brand-color);
}

.membership-badges {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.membership-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.membership-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.membership-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.membership-chip {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
    height: 22px;
    box-sizing: border-box;
    cursor: help;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background-color: #f3f4f6; /* Fallback */
    color: #374151; /* Fallback */
    border: 1px solid transparent;
}

.membership-chip[style*="--pill-color"] {
    color: var(--pill-color, #374151);
    border: 1px solid var(--pill-color, #9ca3af);
    background-color: color-mix(in srgb, var(--pill-color), white 94%);
    color: color-mix(in srgb, var(--pill-color), black 30%);
    border: 1px solid color-mix(in srgb, var(--pill-color), black 12%);
}


.membership-chip-link {
    cursor: pointer;
    text-decoration: none;
}

.membership-chip-link:hover,
.membership-chip-link:focus-visible {
    transform: translateY(-1px);
    filter: brightness(0.98);
    text-decoration: none;
}

.chip-icon {
    font-size: 0.75rem;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-action-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-action-label svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.full-width {
    width: 100%;
    justify-content: center;
}

.apply-section {
    scroll-margin-top: 2rem;
}

.apply-card {
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
}

.apply-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.apply-card p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.apply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.applicants-empty-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(139, 14, 4, 0.22);
    background:
        radial-gradient(circle at top left, rgba(139, 14, 4, 0.08), transparent 34rem),
        linear-gradient(135deg, var(--bg-primary) 0%, rgba(139, 14, 4, 0.03) 100%);
    box-shadow: var(--shadow-sm);
}

.applicants-empty-card::after {
    content: '';
    position: absolute;
    right: -3rem;
    bottom: -3rem;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    background: rgba(139, 14, 4, 0.06);
    pointer-events: none;
}

.applicants-empty-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-color);
    background: rgba(139, 14, 4, 0.1);
    border: 1px solid rgba(139, 14, 4, 0.16);
}

.applicants-empty-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    color: var(--brand-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.applicants-empty-card h3,
.applicants-empty-card p,
.applicants-empty-actions {
    position: relative;
    z-index: 1;
}

.applicants-empty-card p {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.applicants-empty-note {
    margin-top: 1.25rem;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.apply-modal-grid {
    display: grid;
    gap: 1.5rem;
}

.apply-resume-status {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.resume-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ecfdf5;
    color: #047857;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.resume-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resume-tip-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    color: #0369a1;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.resume-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.resume-tip-trigger:hover,
.resume-tip-trigger:focus-visible {
    text-decoration: underline;
}

.resume-pill.warning {
    background: #fef3c7;
    color: #92400e;
}

.apply-upload input[type="file"] {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.apply-upload input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    border: none;
    background: var(--brand-color);
    color: #fff;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.apply-upload input[type="file"]::file-selector-button:hover {
    filter: brightness(0.95);
}

.apply-status {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.apply-status.success {
    background: #dcfce7;
    color: #166534;
}

.apply-status.error {
    background: #8b0e04;
    color: #8b0e04;
}


.jobseeker-resume-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--brand-light), #fff7ed);
    border: 1px solid rgba(140, 13, 4, 0.16);
    border-radius: var(--radius-lg);
}

.jobseeker-resume-action p {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.jobseeker-resume-eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--brand-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jobseeker-resume-button {
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(140, 13, 4, 0.18);
}

.jobseeker-resume-button-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.modal-content.modal-xlarge.jobseeker-resume-modal-content {
    width: min(96vw, 1180px);
    max-width: none;
    height: min(92vh, 920px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    overflow: hidden;
}

.jobseeker-resume-modal-header {
    flex: 0 0 auto;
    margin-bottom: 1rem;
}

.jobseeker-resume-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 1rem;
}

.jobseeker-resume-frame {
    width: 100%;
    height: 100%;
    min-height: 560px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
}

.jobseeker-resume-modal-footer {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.jobseeker-resume-modal-footer .btn-primary,
.jobseeker-resume-modal-footer .btn-secondary {
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .jobseeker-resume-action {
        align-items: stretch;
        flex-direction: column;
    }

    .jobseeker-resume-button {
        justify-content: center;
        width: 100%;
    }
}

.apply-summary-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: grid;
    gap: 1rem;
}

.jobseeker-profile-summary-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-primary) 100%);
}

.apply-summary-row {
    display: grid;
    gap: 0.25rem;
}

.jobseeker-profile-summary-card .apply-summary-row {
    align-content: start;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.jobseeker-profile-summary-card .apply-summary-row--full {
    grid-column: 1 / -1;
}

@media (max-width: 700px) {
    .jobseeker-profile-summary-card {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

.apply-summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

.apply-summary-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.apply-summary-link:hover {
    text-decoration: underline;
}

.applicants-filters {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.applicants-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.applicants-filter-row label {
    font-weight: 700;
    color: var(--text-primary);
}

.applicants-filter-row select {
    font-weight: 600;
    color: var(--text-primary);
    border-color: var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    background-color: var(--bg-white);
}

.applicants-filter-row input[type="text"],
.applicants-filter-row select {
    min-height: 44px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    line-height: 1.2;
}

.applicants-filter-row input[type="text"] {
    min-width: 240px;
    padding: 0.75rem 0.9rem;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

.applicants-filter-row input[type="text"]:focus,
.applicants-filter-row select:focus {
    outline: none;
    border-color: #8b0e04;
    box-shadow: 0 0 0 3px rgba(139, 14, 4, 0.12);
}

.applicants-filter-row .btn-primary,
.applicants-filter-row .btn-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.find-talent-filters-primary-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: nowrap;
}

.find-talent-search-row {
    flex: 1 1 auto;
}

.find-talent-search-row input[type="text"] {
    width: 100%;
}

.find-talent-primary-actions {
    flex: 0 0 auto;
}

.find-talent-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    width: 44px;
    padding: 0;
    border-radius: 10px;
}

.find-talent-reset-btn svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.find-talent-advanced-filters {
    display: grid;
    gap: 0.75rem;
}

.find-talent-advanced-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.find-talent-advanced-row .applicants-filter-row {
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 0;
    min-width: 0;
}

.find-talent-advanced-row .applicants-filter-row select {
    width: 100%;
}

.applicants-filter-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-toggle {
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.filter-toggle.active,
.filter-toggle:hover {
    border-color: var(--brand-color);
    color: var(--brand-color);
    background: rgba(139, 14, 4, 0.08);
}

.applicants-list {
    display: grid;
    gap: 1.5rem;
}

.find-talent-view-toggle {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1rem;
    justify-content: flex-end;
}

.find-talent-view-toggle .is-active {
    border-color: var(--brand-color);
    color: var(--brand-color);
    background: rgba(139, 14, 4, 0.08);
}

.find-talent-view-btn {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.applicant-row {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.find-talent-results .applicant-row {
}

.find-talent-results .applicant-summary {
    padding-right: 8rem;
}

.find-talent-list-tags {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: calc(100% - 1.7rem);
    justify-content: flex-end;
}

.find-talent-list-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.find-talent-list-remove {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0.85;
}

.find-talent-list-remove:hover {
    opacity: 1;
}

.find-talent-results.card-view {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.suggested-results.card-view {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

#manage-applicants-results.card-view {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

#manage-applicants-results.card-view .applicant-summary {
    align-items: flex-start;
    flex-direction: column;
}

.applicant-row[open] .applicant-summary {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.applicant-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    cursor: pointer;
}

.applicant-summary::-webkit-details-marker {
    display: none;
}

.applicant-summary::marker {
    content: '';
}

.applicant-summary-main h3 {
    margin: 0;
    font-size: 1.1rem;
}

.applicant-role {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
}

.applicant-summary-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.applicant-chevron {
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.applicant-row[open] .applicant-chevron {
    transform: rotate(180deg);
}

.applicant-date {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f3f4f6;
    color: #374151;
    height: fit-content;
}

.status-pill.status-new {
    background: #e0f2fe;
    color: #0369a1;
}

.status-pill.status-invited {
    background: #fef3c7;
    color: #92400e;
}

.status-pill.status-interview {
    background: #ede9fe;
    color: #6d28d9;
}

.status-pill.status-offer {
    background: #dcfce7;
    color: #166534;
}

.status-pill.status-hired {
    background: #f0fdf4;
    color: #15803d;
}

.status-pill.status-rejected {
    background: #8b0e04;
    color: #ffffff;
}

.status-pill.status-withdrawn {
    background: #fef3c7;
    color: #92400e;
}

.applicant-details {
    display: grid;
    gap: 1rem;
}

.applicant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.applicant-message {
    background: #f9fafb;
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0;
}

.applicant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.applicant-status-strip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}


.applicant-analysis-panel {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: grid;
    gap: 0.75rem;
}

.analysis-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.analysis-panel-header h4 {
    margin: 0;
}

.analysis-panel-header p {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.analysis-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.analysis-status-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.analysis-score-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: #eef2ff;
    width: fit-content;
}

.analysis-score-label {
    font-size: 0.85rem;
    color: #4338ca;
    font-weight: 700;
    text-transform: uppercase;
}

.analysis-score-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #312e81;
}

.analysis-summary {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.analysis-last-updated {
    margin: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.applicant-analysis-results .analysis-grid {
    margin-top: 0.5rem;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1200px) {
    .applicant-analysis-results .analysis-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.applicant-analysis-results .analysis-card {
    min-height: 100%;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.applicant-analysis-results .analysis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.applicant-analysis-results .analysis-card .card-header {
    padding: 0.9rem 1rem;
    justify-content: center;
    margin-bottom: 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.applicant-analysis-results .analysis-card .card-body {
    padding: 1rem;
}

.applicant-analysis-results .analysis-card h5 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.applicant-analysis-results .analysis-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.applicant-analysis-results .analysis-card .styled-list li {
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.applicant-analysis-results .analysis-card .styled-list li:last-child {
    margin-bottom: 0;
}

.applicant-analysis-panel .icon-wrapper {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
}

.applicant-controls {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.applicant-status {
    width: 180px;
    min-height: 38px;
}

.applicant-status-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.applicant-message-form {
    display: grid;
    gap: 0.5rem;
}

.applicant-message-label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.applicant-send-btn {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
}

.applicant-status-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.applicant-row select,
.applicant-row textarea,
.applicant-row input {
    font-weight: 600;
    color: var(--text-primary);
    border-color: var(--border-color);
    font-size: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
}

.applicant-row textarea::placeholder {
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .job-body {
        grid-template-columns: 1fr;
    }
    
    .job-hero {
        flex-direction: column;
    }
    
    .job-cta {
        width: 100%;
    }
}

.employer-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.employer-description {
    color: var(--text-secondary);
    margin: 0;
}

.employer-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.contact-card {
    display: grid;
    gap: 0.25rem;
}

.contact-methods {
    display: grid;
    gap: 0.35rem;
}

.contact-method {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
}

.contact-method a {
    color: var(--text-primary);
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    color: var(--text-secondary);
}

.contact-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.membership-badges {
    display: grid;
    gap: 0.5rem;
}

.membership-group {
    display: grid;
    gap: 0.25rem;
}

.membership-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.membership-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.full-width {
    display: block;
    text-align: center;
    width: 100%;
}

.job-error {
    color: var(--danger-color);
}

@media (max-width: 900px) {
    .job-body {
        grid-template-columns: 1fr;
    }

    .job-hero {
        flex-direction: column;
    }
}

.job-stat {
    text-align: center;
}

.job-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.job-stat-value.success { color: var(--success-color); }

.job-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==================== */
/* AI Sidebar */
/* ==================== */
.ai-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

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

.ai-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-title h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.close-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0.25rem;
}

.ai-content {
    flex: 1;
    padding: 1.5rem;
    overflow: auto;
}

.ai-message {
    background-color: var(--border-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.ai-message p {
    font-size: 0.875rem;
}

.ai-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-btn {
    padding: 0.75rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s;
}

.suggestion-btn:hover {
    border-color: var(--brand-color);
}

.ai-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.ai-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
}

/* ==================== */
/* Modals */
/* ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal[hidden] {
    display: none !important;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
}

.modal-content.modal-large {
    max-width: 700px;
}

.modal-content.modal-small {
    max-width: 420px;
}

.modal-content.modal-xlarge {
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
}


.modal-content.modal-post-job {
    max-width: 960px;
    width: min(96vw, 960px);
    max-height: 86vh;
}

.modal-content.modal-autoimport {
    max-width: 900px;
    width: min(95vw, 900px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    flex: 1;
    justify-content: center;
}

.site-welcome-modal {
    background: rgba(15, 23, 42, 0.68);
    z-index: 1200;
    overscroll-behavior: contain;
}

.site-welcome-modal-content {
    width: min(92vw, 680px);
    max-height: min(86vh, 760px);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.site-welcome-modal-header {
    margin: 0;
    padding: 1.75rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.site-welcome-modal-header h3 {
    margin: 0.25rem 0 0;
    color: var(--text-primary);
}

.site-welcome-modal-eyebrow {
    color: var(--brand-color, var(--primary-color));
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-welcome-modal-body {
    padding: 1.5rem 2rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.site-welcome-modal-body :is(h2, h3, h4) {
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
}

.site-welcome-modal-body :is(ul, ol) {
    margin: 0.75rem 0 1rem;
    padding-left: 1.5rem;
}

.site-welcome-modal-body li {
    margin: 0.35rem 0;
    padding-left: 0.15rem;
}

.site-welcome-modal-body p:first-child,
.site-welcome-modal-body :is(h2, h3, h4):first-child {
    margin-top: 0;
}

.site-welcome-modal-body p:last-child,
.site-welcome-modal-body ul:last-child,
.site-welcome-modal-body ol:last-child {
    margin-bottom: 0;
}

.site-welcome-modal-body a {
    color: var(--brand-color, var(--primary-color));
    font-weight: 700;
}

.site-welcome-modal-footer {
    margin: 0;
    padding: 1rem 2rem 1.75rem;
    justify-content: flex-end;
    border-top: 1px solid var(--border-color);
}

.site-welcome-modal-footer .btn-primary {
    flex: 0 0 auto;
}

.auth-modal {
    max-width: 520px;
    padding: 1.75rem 1.75rem 1.5rem;
}

.auth-modal .auth-form {
    margin-top: 0.5rem;
}

.auth-modal .auth-submit {
    margin-top: 4px;
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.form-group input[type="range"] {
    width: 100%;
    max-width: none;
    display: block;
}

#radius-slider {
    --radius-slider-progress: 0%;
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    margin: 0.5rem 0 0;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--brand-color) 0%,
        var(--brand-color) var(--radius-slider-progress),
        #d1d5db var(--radius-slider-progress),
        #d1d5db 100%
    );
    accent-color: var(--brand-color);
}

#radius-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

#radius-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-color);
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.25);
    cursor: pointer;
}

#radius-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #d1d5db;
}

#radius-slider::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--brand-color);
}

#radius-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-color);
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.25);
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(139, 14, 4, 0.1);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}


.currency-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.currency-input-wrap .currency-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
    color: var(--text-secondary);
}

.currency-input-wrap input {
    flex: 1 1 auto;
}

.logo-preview {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    background-color: var(--bg-light);
}

.logo-preview-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-preview-placeholder {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius-md);
    padding: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.upload-zone:hover {
    border-color: var(--brand-color);
}

.upload-zone.is-dragover {
    border-color: var(--brand-color);
    background-color: rgba(139, 14, 4, 0.05);
}

.upload-zone.has-file {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.08);
}

.upload-text {
    font-weight: 500;
    margin: 1rem 0 0.5rem;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.upload-filename {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-weight: 500;
}

.resume-status {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background-color: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.resume-status.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.resume-status.error {
    background-color: rgba(239, 68, 68, 0.12);
    color: #8b0e04;
}

.resume-status.uploading {
    background-color: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.resume-analysis {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background-color: rgba(59, 130, 246, 0.08);
    color: var(--text-primary);
}

.resume-analysis h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.resume-analysis ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.resume-analysis li + li {
    margin-top: 0.5rem;
}

.upload-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.upload-info ul {
    margin: 0.5rem 0 0;
    padding-left: 1.5rem;
}

/* Info Box */
.info-box {
    background-color: var(--border-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.info-box-blue {
    background-color: var(--info-bg);
    border: 1px solid var(--info-color);
    color: var(--info-text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.info-box-yellow {
    background-color: var(--warning-bg);
    border: 1px solid #fbbf24;
    color: var(--warning-text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Programs */
.program-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 10px;
    transition: border-color 0.2s;
    cursor: pointer;
}

.program-card:hover {
    border-color: var(--brand-color);
}

.program-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.program-card .program-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.program-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.program-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.program-eligibility {
    display: inline-block;
    background-color: var(--border-light);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.program-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.benefit-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.benefit-tag.muted {
    background-color: var(--border-light);
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 1.5rem;
    font-size: 0.95rem;
}

.programs-tip {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--warning-bg);
    border-radius: var(--radius-md);
    border: 1px solid #fbbf24;
    font-size: 0.875rem;
    color: var(--warning-text);
}

/* Criteria List */
.criteria-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.criteria-item {
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
}

.criteria-info {
    margin-bottom: 0.5rem;
}

.criteria-label {
    font-weight: 500;
    font-size: 0.875rem;
}

.criteria-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.criteria-value {
    background-color: var(--brand-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    float: right;
    margin-top: -2rem;
}

.criteria-slider {
    width: 100%;
    margin-top: 0.5rem;
}

.threshold-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Questions Section */
.questions-section {
    margin-bottom: 1.5rem;
}

.questions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.question-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.question-num {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.question-text {
    flex: 1;
    font-size: 0.875rem;
}

.remove-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-secondary);
    padding: 0.25rem;
}

/* Radio Grid */
.radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.radio-option {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.radio-option.selected {
    border-color: var(--brand-color);
    background-color: var(--brand-light);
}

.app-method-grid {
    gap: 0.75rem;
}

.app-method-option {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-method-option:hover {
    border-color: #94a3b8;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.app-method-option input[type="radio"] {
    margin-top: 0.2rem;
    accent-color: var(--brand-color);
}

.app-method-title {
    display: inline-block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.app-method-option .form-hint {
    margin: 0;
    line-height: 1.35;
}

.app-method-option.selected {
    border-color: var(--brand-color);
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    box-shadow: 0 0 0 2px rgba(52, 120, 246, 0.15);
}

/* Import Methods */
.import-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.import-method {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
}

.import-method.selected {
    border-color: var(--brand-color);
}

.method-label {
    font-weight: 600;
    font-size: 0.875rem;
}

.import-method p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Schedule Options */
.schedule-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.schedule-option {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
}

.schedule-option.selected {
    border-color: var(--brand-color);
    background-color: var(--brand-light);
}

.schedule-option svg {
    margin: 0 auto 0.5rem;
    color: var(--text-secondary);
}

.schedule-option.selected svg {
    color: var(--brand-color);
}

.schedule-option span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Analytics */
.analytics-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.analytics-stat {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.analytics-stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.analytics-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.candidate-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.candidate-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 10px;
}

.candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.candidate-info h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.candidate-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sentiment-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

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

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

.insights-section {
    margin-bottom: 1rem;
}

.insights-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.insights-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.insight-tag {
    background-color: var(--border-light);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.transcript-details {
    margin-bottom: 1rem;
}

.transcript-details summary {
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-color);
    padding: 0.5rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.transcript-content {
    margin-top: 1rem;
    max-height: 300px;
    overflow: auto;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.transcript-message {
    margin-bottom: 1rem;
}

.message-speaker {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.message-speaker.ai {
    color: var(--brand-color);
}

.message-speaker.candidate {
    color: var(--text-primary);
}

.message-text {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.candidate-actions {
    display: flex;
    gap: 0.5rem;
}

.candidate-actions button {
    flex: 1;
}

/* ==================== */
/* Responsive */
/* ==================== */
@media (max-width: 1024px) {
    .employer-tools {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html,
    body,
    #app {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header {
        padding: 0.75rem 1rem;
    }

    .header-content {
        width: 100%;
        max-width: none;
        flex-direction: row;
        gap: 0.5rem;
    }

    .logo-section {
        flex: 1;
        min-width: 0;
    }

    .mobile-nav-logo {
        display: inline-flex !important;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .logo-emblem,
    .logo-icon {
        display: none;
    }
    
    .header-actions {
            margin-left: auto;
        width: auto;
        max-width: 100%;
        justify-content: flex-end;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .role-nav-toggle {
        display: inline-flex;
    }

    .role-shortcuts {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        min-width: 220px;
        max-width: min(92vw, 280px);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        z-index: 35;
    }

    .role-shortcuts.is-open {
        display: flex;
    }

    .role-nav-link {
        width: 100%;
        padding: 0.45rem 0.25rem;
    }

    .role-nav-link--cta {
        justify-content: center;
        padding: 0.7rem 0.9rem;
    }

    .role-nav-dropdown {
        width: 100%;
    }

    .role-nav-dropdown-trigger {
        justify-content: space-between;
    }

    .role-nav-dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 0.25rem;
        box-shadow: none;
    }

    .role-nav-dropdown-link {
        width: 100%;
        white-space: normal;
    }

    .jobs-container.grid-view {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .post-job-buttons {
        flex-direction: column;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .threshold-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ai-sidebar {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .candidate-actions {
        flex-direction: column;
    }
    
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .upload-resume-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .user-pill {
        padding: 0.5rem;
        border-radius: var(--radius-sm);
    }

    .user-name,
    .user-chevron {
        display: none;
    }

    .notification-dropdown,
    .user-menu-dropdown {
        right: 0;
        left: auto;
        max-width: min(92vw, 320px);
    }

    .header-content,
    .header-actions,
    .job-header-main,
    .applicant-summary-main,
    .view-controls-left {
        min-width: 0;
    }

    .job-card,
    .tool-card,
    .stat-card,
    .employer-job-card,
    .applicant-row,
    .candidate-card,
    .plan-card,
    .card {
        padding: 1rem;
    }

    .job-header,
    .employer-job-header,
    .candidate-header,
    .applicant-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .job-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .job-actions,
    .candidate-actions,
    .applicant-actions,
    .employer-job-actions {
        width: 100%;
    }

    .job-actions .btn-sm,
    .candidate-actions button,
    .applicant-actions .btn-primary,
    .applicant-actions .btn-secondary,
    .employer-job-actions .btn-secondary {
        flex: 1 1 auto;
        justify-content: center;
    }

    .job-title,
    .applicant-summary-main h3,
    .candidate-info h5,
    .user-name {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* Authentication */
.auth-body {
    background: linear-gradient(135deg, #8b0e04 0%, #8b0e04 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;
}

.auth-wrapper {
    width: 100%;
    max-width: 800px !important;
    padding: 24px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
    color: #8b0e04;
}

.auth-logo {
    height: 48px;
    width: auto;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.auth-brand-text .brand-name {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
}

.auth-content {
    padding: 32px;
}

.auth-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    color: #111827;
}

.auth-header p {
    margin: 0 0 16px;
    color: #6b7280;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form label {
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 6px;
}

.required-marker {
    color: #dc2626;
    font-weight: 800;
    margin-left: 2px;
}

.create-account-btn {
    position: relative;
    isolation: isolate;
    padding: 0.9rem 1.65rem;
    min-height: 52px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b0e04 0%, #d94f1f 52%, #f59e0b 100%);
    box-shadow: 0 16px 30px rgba(139, 14, 4, 0.25), 0 4px 10px rgba(245, 158, 11, 0.18);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.create-account-btn:hover {
    filter: saturate(1.08);
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(139, 14, 4, 0.3), 0 7px 14px rgba(245, 158, 11, 0.2);
}

.create-account-btn span[aria-hidden='true'] {
    font-size: 1.25rem;
    line-height: 1;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: #8b0e04;
    box-shadow: 0 0 0 3px rgba(139, 14, 4, 0.15);
}

.auth-form input:not([type='checkbox']):not([type='radio']),
.auth-form select,
.auth-form textarea {
    width: 100%;
}

.auth-form select[multiple] {
    min-height: 140px;
}

.input-helper {
    font-size: 14px;
    color: #6b7280;
}

.input-helper.positive {
    color: var(--success-text);
}

.input-helper.negative {
    color: var(--danger-text);
}

.input-helper.negative.email-exists {
    font-weight: 600;
}

.password-feedback {
    margin-top: 6px;
}

.password-input-wrap {
    position: relative;
    display: block;
}

.password-input-wrap input {
    width: 100%;
    padding-right: 42px;
}

.password-visibility-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 2px;
}

.password-visibility-toggle:hover {
    color: #111827;
}

.password-visibility-toggle:focus-visible {
    outline: 2px solid rgba(139, 14, 4, 0.35);
    outline-offset: 3px;
    border-radius: 8px;
}

.password-rules {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: grid;
    gap: 4px;
}

.password-rules li {
    padding-left: 24px;
    font-size: 13px;
    color: #6b7280;
}

.password-rules li::before {
    content: '○';
    position: absolute;
    left: 0;
    top: 0;
    color: #9ca3af;
}

.password-rules li.is-met {
    color: var(--success-text);
}

.password-rules li.is-met::before {
    content: '✓';
    color: var(--success-text);
}

.password-match {
    margin-top: 6px;
}

.register-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-nav {
    display: flex;
    gap: 8px;
    background: #f9fafb;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.step-toggle {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.step-toggle.active {
    background: #fff;
    color: #8b0e04;
    border: 1px solid #f3f4f6;
    box-shadow: var(--shadow-sm);
}

.register-step {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.register-step input:not([type='checkbox']):not([type='radio']) {
    width: 100%;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.register-step select,
.register-step textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-step select:focus,
.register-step textarea:focus {
    outline: none;
    border-color: #8b0e04;
    box-shadow: 0 0 0 3px rgba(139, 14, 4, 0.15);
}

.account-type {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.account-type p {
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 8px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.radio-pill input {
    accent-color: #8b0e04;
}

.radio-pill:hover {
    border-color: #8b0e04;
    box-shadow: 0 0 0 3px rgba(139, 14, 4, 0.08);
}

.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.conditional-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 16px;
}

.rca-memberships {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
}

.rca-memberships legend {
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.rca-memberships p {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 640px) {
    .input-grid {
        grid-template-columns: 1fr;
    }

    .step-actions {
        flex-direction: column;
    }

    .step-actions .btn-primary,
    .step-actions .btn-secondary {
        width: 100%;
    }
}

.auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 12px 16px;
}

.auth-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.auth-actions .btn-primary,
.auth-actions .btn-secondary {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
}

.auth-actions .auth-submit {
    width: auto;
    margin-top: 0;
}

.auth-hint {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.auth-alert {
    background: #8b0e04;
    color: #fff;
    border: 1px solid #8b0e04;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 600;
}

.admin-actions {
    display: flex;
    gap: 12px;
}

.admin-wrapper .auth-card {
    border-top: 6px solid #8b0e04;
}

.login-link,
.logout-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #8b0e04;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logout-link {
    background: #f3f4f6;
    color: #111827;
}

.user-menu {
    position: relative;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: var(--radius-sm);
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    list-style: none;
}

.user-menu[open] .user-pill {
    box-shadow: var(--shadow-sm);
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.role-icon svg {
    display: block;
}

.user-name {
    font-weight: 700;
    color: #111827;
}

.user-chevron {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 200px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    z-index: 20;
    display: grid;
    gap: 0.25rem;
}

.user-menu-link {
    color: #111827;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu-link:hover,
.user-menu-link:focus-visible {
    background: #f3f4f6;
}

@media (max-width: 640px) {
    .admin-actions {
        flex-direction: column;
    }
}

/* ==================== */
/* Admin Console */
/* ==================== */
.admin-body {
    background: radial-gradient(circle at 20% 30%, rgba(139, 14, 4, 0.03), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.035), transparent 28%),
        var(--bg-primary);
    min-height: 100vh;
}

.admin-header {
    box-shadow: var(--shadow-sm);
}

.admin-body .admin-header .header-content {
    max-width: none;
    padding-left: 10px;
    padding-right: 10px;
}

.admin-shell {
    max-width: none;
    width: 100%;
    margin: 0 auto 2rem;
    padding: 0 10px;
}

.admin-subnav-bar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 64px;
    z-index: 5;
    border-radius: 12px;
    margin-top: 1rem;
}

.admin-subnav-bar::before {
    content: none;
}

.admin-subnav {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1;
    width: 100%;
}

.subnav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1rem;
    border: 1px solid transparent;
    background: transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 650;
    color: #374151;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
    box-shadow: none;
    letter-spacing: 0;
}

.subnav-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: inherit;
}

.subnav-icon svg {
    width: 18px;
    height: 18px;
}

.subnav-label {
    white-space: nowrap;
}

.subnav-btn::after {
    content: none;
}

.subnav-btn:hover {
    color: var(--brand-hover);
    background-color: #f8f8f8;
    border-color: var(--border-color);
}

.subnav-btn.active {
    background: #8b0e04;
    color: var(--brand-color);
    border-color: rgba(139, 14, 4, 0.35);
}

.subnav-btn.active::after {
    content: none;
}

.subnav-btn:focus-visible {
    outline: 3px solid rgba(139, 14, 4, 0.25);
    outline-offset: 2px;
}

.admin-main {
    padding: 1.25rem 0 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.admin-section {
    display: none;
    gap: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem 1.5rem 1.75rem;
    box-shadow: 0 20px 35px rgba(17, 24, 39, 0.06);
}

.admin-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.section-subtext {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.eyebrow {
    color: var(--brand-color);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.section-grid.three-col {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.full-span {
    grid-column: 1 / -1;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.integration-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 10px;
}

.integration-status {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
}

.integration-state-title {
    font-weight: 700;
    margin: 0;
}

.card-header p {
    color: var(--text-secondary);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-full);
    background: var(--brand-light);
    color: var(--brand-color);
    font-weight: 600;
    font-size: 0.85rem;
}

.pill-muted {
    background: var(--border-light);
    color: var(--text-secondary);
}

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

.pill-outline {
    background: transparent;
    border: 1px solid var(--border-color);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compact-form {
    gap: 0.75rem;
}

.compact-form .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.field-help {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.form-alert {
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-weight: 600;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.form-alert-success {
    background: #ecfdf3;
    color: #0f5132;
    border-color: #a3e6bc;
}

.form-alert-error {
    background: #8b0e04;
    color: #ffffff;
    border-color: #8b0e04;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-row label {
    font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 100%;
}

.form-row.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.colour-row,
.upload-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem;
    align-items: center;
}

#brand-colour {
    height: 50px;
}

.branding-upload-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.branding-upload-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.preview-panel {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    background: linear-gradient(135deg, #fff, #f9fafb);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.preview-logo {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.preview-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--brand-light);
    color: var(--brand-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.preview-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preview-banner {
    background: var(--info-bg);
    color: var(--info-text);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--info-text);
}

.preview-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.status-badge {
    background: var(--success-bg);
    color: var(--success-text);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.65rem;
    font-weight: 700;
}

.plan-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    padding-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 10px;
}

.plan-card.highlight {
    border-color: var(--brand-color);
    box-shadow: var(--shadow-md);
}

.plan-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 800;
}

.plan-price span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.plan-list {
    list-style: none;
    color: var(--text-secondary);
    display: grid;
    gap: 0.25rem;
    padding-left: 0.25rem;
}

.plan-list li::before {
    content: '•';
    color: var(--brand-color);
    margin-right: 0.35rem;
}

.plan-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.plan-action-buttons {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.plan-tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.checkbox-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.input-with-prefix {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
}

.input-with-prefix input {
    border: none;
    padding: 0;
}

.input-with-prefix span {
    font-weight: 700;
    color: var(--text-secondary);
}

.table {
    display: grid;
    gap: 0.5rem;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.table-row.table-head {
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.table-row p.muted {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-actions .link {
    background: none;
    border: none;
    color: var(--brand-color);
    cursor: pointer;
    padding: 0;
    font-weight: 700;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.table-header input[type="search"] {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    width: 50%;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
}

.status-dot::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.success::before { background: var(--success-color); }
.status-dot.warning::before { background: var(--warning-color); }
.status-dot.danger::before { background: var(--danger-color); }

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.pill-outline.pill-muted { color: var(--text-secondary); }

/* Loading & Spinner */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    gap: 1.5rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--brand-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 960px) {
    .section-grid { grid-template-columns: 1fr; }
    .section-grid.three-col { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .form-row.two-col { grid-template-columns: 1fr; }
    .colour-row, .upload-row { grid-template-columns: 1fr; }
    .table-row { grid-template-columns: 1fr; align-items: flex-start; }
    .table-header { flex-direction: column; align-items: flex-start; }
    .table-header input[type="search"] { width: 100%; }
    .plan-actions { flex-direction: column; align-items: flex-start; }
}

/* ==================== */
/* Site Footer */
/* ==================== */
.site-footer {
    margin-top: 3rem;
    background: #333333;
    color: #ffffff;
}

.site-footer-main {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.footer-col {
    min-width: 0;
}

.footer-heading {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-brand-row {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
}

.footer-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.footer-logo--talentcentral {
    height: 52px;
    max-width: 280px;
}

.footer-logo--bcca {
    height: 42px;
    max-width: 220px;
}

.footer-logo-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.35);
}

.footer-text,
.footer-address,
.footer-legal-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-address {
    margin-top: 0.5rem;
    font-style: normal;
}

.site-footer a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.55);
    text-underline-offset: 2px;
}

.site-footer a:hover {
    text-decoration-color: rgba(255, 255, 255, 0.9);
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 9999px;
    padding: 0;
    line-height: 1;
}

.footer-social-links a svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.footer-social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.site-footer-legal .site-footer-inner {
    display: block;
    text-align: center;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

@media (max-width: 960px) {
    .site-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        gap: 1.5rem;
    }

    .footer-logo--talentcentral {
        height: 44px;
    }

    .footer-logo--bcca {
        height: 36px;
    }
}

/* My Applications compact cards + filters */
.applications-filters-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.applications-filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.applications-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.applications-filter-field label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.applications-filter-field input {
    min-width: 170px;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.applications-filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.applications-results-count {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.application-card-compact {
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.application-card-compact .job-header {
    margin-bottom: 0.5rem;
}

.application-card-compact .job-title {
    margin-bottom: 0.1rem;
    font-size: 1rem;
}

.application-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.application-card-compact .job-card-actions {
    gap: 0.5rem;
}

.application-card-compact .job-card-actions .btn-secondary {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .applications-filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .applications-filter-field input {
        width: 100%;
        min-width: 0;
    }

    .applications-filter-actions {
        width: 100%;
    }

    .application-date {
        margin-top: 0.3rem;
    }
}

@media (max-width: 720px) {
    .job-posting-filters {
        width: 100%;
        border-radius: 14px;
        justify-content: center;
    }

    .job-filter-btn {
        flex: 1 1 calc(50% - 0.45rem);
        text-align: center;
    }
}

@media (max-width: 640px) {
    .jobs-container.grid-view,
    .find-talent-results.card-view,
    .suggested-results.card-view,
    #manage-applicants-results.card-view {
        grid-template-columns: 1fr;
    }

    .search-mode-row {
        grid-template-columns: 1fr;
    }

    .search-mode-options {
        border-radius: 14px;
        flex-direction: column;
        justify-content: stretch;
    }

    .search-mode-btn {
        justify-content: center;
        width: 100%;
    }

    .search-bar,
    .location-bar,
    .view-controls,
    .view-controls-left {
        flex-direction: column;
        align-items: stretch;
    }

    .search-icons {
        align-self: flex-start;
    }

    .search-bar input {
        min-width: 0;
        width: 100%;
    }

    .location-actions,
    .view-buttons {
        width: 100%;
    }

    .location-actions .btn-secondary,
    .location-actions .btn-primary,
    .view-buttons .view-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .applications-filter-actions,
    .applicants-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .applicants-filter-row input[type="text"] {
        min-width: 0;
        width: 100%;
    }

    .find-talent-filters-primary-row,
    .find-talent-advanced-row {
        flex-wrap: wrap;
    }

    .find-talent-primary-actions {
        width: 100%;
    }

    .find-talent-results .applicant-summary {
        padding-right: 0;
    }

    .find-talent-list-tags {
        position: static;
        justify-content: flex-start;
        max-width: 100%;
    }
}

/* Resume Builder Page */
.resume-builder-form { display: grid; gap: 1rem; }
.rb-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1rem; }
.rb-card h3 { margin-top: 0; margin-bottom: 0.75rem; }
.rb-actions-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: stretch; }
.rb-actions-row .form-group { margin-bottom: 0; min-width: 280px; }
#rb-apply-template { align-self: flex-end; min-height: 42px; }
.rb-inline-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.rb-repeat-list { display: grid; gap: 0.75rem; }
.rb-repeat-item { border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.75rem; background: #f9fafb; }
.rb-repeat-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.resume-builder-form .form-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rb-contact-location-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rb-repeat-grid .rb-field-full { grid-column: 1 / -1; }
.rb-ai-suggestion { border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; padding: 0.75rem; margin-bottom: 0.75rem; }
.rb-version-row { display: grid; grid-template-columns: 1fr auto auto; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid #f3f4f6; font-size: 0.95rem; }
.rb-version-row:last-child { border-bottom: none; }
.rb-version-scroll { max-height: 230px; overflow-y: auto; padding-right: 0.25rem; }
.resume-builder-page input,
.resume-builder-page textarea,
.resume-builder-page select {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    background: #fff;
}
.resume-builder-page textarea {
    min-height: 120px;
    line-height: 1.45;
    resize: vertical;
}
.rb-add-btn { margin-top: 0.35rem; background: #8c0d04; border-color: #8c0d04; }
.rb-add-btn:hover { background: #a31008; border-color: #a31008; }
.rb-na-toggle { margin-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }

.rb-loading { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; color: #4b5563; font-size: 0.9rem; }
.rb-spinner { width: 14px; height: 14px; border: 2px solid #d1d5db; border-top-color: #8c0d04; border-radius: 50%; display: inline-block; animation: rb-spin 0.8s linear infinite; }
@keyframes rb-spin { to { transform: rotate(360deg); } }

.job-reports-modal-content {
    max-width: 760px;
    overflow: visible;
}
.job-reports-subtitle {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #475569;
    font-size: 0.95rem;
}
.job-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}
.job-report-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}
.job-report-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.job-report-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    position: relative;
}
.job-report-label-wrap .job-report-label {
    margin-bottom: 0;
}
.job-report-info {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.7rem;
    line-height: 1rem;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.job-report-info:hover,
.job-report-info:focus-visible {
    border-color: #94a3b8;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
}
.job-report-tooltip {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    width: min(260px, 70vw);
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1.4;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 120ms ease, transform 120ms ease;
}
.job-report-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: #0f172a;
    border-left: 1px solid #1e293b;
    border-top: 1px solid #1e293b;
    transform: rotate(45deg);
}
.job-report-tooltip.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.job-report-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}
.job-report-loading,
.job-report-error {
    padding: 1rem;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

/* ==================== */
/* Jobseeker profile completion nav widget */
/* ==================== */
.profile-completion-trigger {
    --profile-completion: 0;
    --profile-completion-color: #dc2626;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
}

.profile-completion-trigger:hover .profile-completion-ring,
.profile-completion-trigger:focus-visible .profile-completion-ring {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.16), 0 0 0 4px rgba(140, 13, 4, 0.08);
}

.profile-completion-ring {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: conic-gradient(var(--profile-completion-color) calc(var(--profile-completion) * 1%), #e5e7eb 0);
    display: inline-grid;
    place-items: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.10);
}

.profile-completion-ring::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.05);
}

.profile-completion-percent {
    position: relative;
    z-index: 1;
    color: #111827;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.profile-completeness-modal-content {
    overflow: hidden;
    border: 1px solid rgba(140, 13, 4, 0.16);
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.profile-completeness-header {
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(135deg, #8c0d04, #b91c1c 46%, #f97316);
    color: #fff;
    margin: -1.5rem -1.5rem 1.5rem;
    padding: 1.5rem;
}

.profile-completeness-header .modal-subtitle,
.profile-completeness-header .close-btn {
    color: rgba(255, 255, 255, 0.9);
}

.profile-completeness-eyebrow {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-completeness-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(135deg, #fff7ed, #fff, #f0fdf4);
    border: 1px solid #fed7aa;
    border-radius: 22px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.profile-completeness-score-ring {
    --profile-completion: 0;
    --profile-completion-color: #dc2626;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: conic-gradient(var(--profile-completion-color) calc(var(--profile-completion) * 1%), #e5e7eb 0);
    display: grid;
    place-items: center;
    position: relative;
    flex: 0 0 auto;
}

.profile-completeness-score-ring::before {
    content: '';
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #f3f4f6;
}

.profile-completeness-score-ring span {
    position: relative;
    z-index: 1;
    font-weight: 900;
    font-size: 1.1rem;
    color: #111827;
}

.profile-completeness-hero-copy {
    display: grid;
    gap: 0.35rem;
}

.profile-completeness-hero-copy strong {
    font-size: 1.05rem;
    color: #111827;
}

.profile-completeness-hero-copy span {
    color: #4b5563;
    font-size: 0.9rem;
}

.profile-completeness-meter {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
    margin-top: 0.35rem;
}

.profile-completeness-meter-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #dc2626, #f59e0b, #16a34a);
    transition: width 0.35s ease;
}

.profile-completeness-items {
    display: grid;
    gap: 0.85rem;
}

.profile-completeness-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 0.85rem;
    background: #fff;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.profile-completeness-item.is-complete {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4, #fff);
}

.profile-completeness-check {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 900;
}

.profile-completeness-item.is-complete .profile-completeness-check {
    background: #dcfce7;
    color: #166534;
}

.profile-completeness-item-copy {
    display: grid;
    gap: 0.18rem;
}

.profile-completeness-item-copy strong {
    color: #111827;
}

.profile-completeness-item-copy span {
    color: #6b7280;
    font-size: 0.86rem;
}

.profile-completeness-action {
    border: 0;
    border-radius: 999px;
    background: #8c0d04;
    color: #fff;
    padding: 0.55rem 0.9rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.profile-completeness-action:hover,
.profile-completeness-action:focus-visible {
    background: #6f0a03;
}

.profile-completeness-item.is-complete .profile-completeness-action {
    background: #ecfdf5;
    color: #166534;
    cursor: default;
}

.profile-completeness-loading {
    color: #6b7280;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 640px) {
    .profile-completeness-hero,
    .profile-completeness-item {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
}

/* ==================== */
/* Welcome Guide Tour */
/* ==================== */
.welcome-guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: grayscale(0.35);
}

.welcome-guide-header-active {
    z-index: 10002;
}

.welcome-guide-highlight {
    position: relative;
    z-index: 10002 !important;
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.95), 0 0 0 9px rgba(140, 13, 4, 0.55), var(--shadow-lg);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.welcome-guide-popover {
    position: fixed;
    z-index: 10003;
    width: min(92vw, 390px);
    padding: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.28);
}

.welcome-guide-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: var(--radius-full);
    background: var(--border-light);
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.welcome-guide-close:hover,
.welcome-guide-close:focus-visible {
    background: var(--brand-light);
    color: var(--brand-color);
}

.welcome-guide-kicker {
    margin: 0 2.25rem 0.35rem 0;
    color: var(--brand-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-guide-popover h2 {
    margin: 0 2.25rem 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    line-height: 1.25;
}

.welcome-guide-body {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.welcome-guide-progress {
    display: flex;
    gap: 0.35rem;
    margin-top: 1rem;
}

.welcome-guide-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background: var(--border-color);
}

.welcome-guide-dot.is-active {
    width: 1.5rem;
    background: var(--brand-color);
}

.welcome-guide-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.welcome-guide-back:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

button.user-menu-link {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-align: left;
}

@media (max-width: 640px) {
    .welcome-guide-popover {
        left: 1rem !important;
        right: 1rem;
        bottom: 1rem;
        top: auto !important;
        width: auto;
    }

    .welcome-guide-actions {
        justify-content: stretch;
    }

    .welcome-guide-actions button {
        flex: 1;
    }
}

/* Employer pending payment + checkout modal */
.employer-job-card.is-pending-payment {
    border-color: rgba(140, 13, 4, 0.42);
    box-shadow: 0 14px 34px rgba(140, 13, 4, 0.18);
    animation: pendingPaymentPulse 2.4s ease-in-out infinite;
}

@keyframes pendingPaymentPulse {
    0%,
    100% {
        box-shadow: 0 12px 28px rgba(140, 13, 4, 0.16), 0 0 0 0 rgba(140, 13, 4, 0.3);
    }

    50% {
        box-shadow: 0 18px 42px rgba(140, 13, 4, 0.28), 0 0 0 7px rgba(140, 13, 4, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .employer-job-card.is-pending-payment {
        animation: none;
    }
}

.employer-job-card.is-pending-payment .employer-job-accent {
    background: linear-gradient(90deg, #8c0d04 0%, #b91c1c 100%);
}

.pending-payment-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    background: #fff7f6;
    color: #8c0d04;
    border: 1px solid rgba(140, 13, 4, 0.22);
    font-weight: 800;
}

.job-pending-payment-callout {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid rgba(140, 13, 4, 0.22);
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    background: linear-gradient(135deg, #fff7f6 0%, #ffffff 100%);
    color: #5f0a03;
    font-size: 0.9rem;
}

.employer-payment-modal-content {
    position: relative;
    max-width: 1120px;
    width: min(97vw, 1120px);
    max-height: 90vh;
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(140, 13, 4, 0.16);
    box-shadow: 0 34px 100px rgba(15, 23, 42, 0.34);
}

.employer-payment-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    border: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: 1.5rem;
    cursor: pointer;
}

.employer-payment-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 2rem 2.75rem 1.8rem;
    color: #fff;
    background: #8c0d04;
}

.employer-payment-hero::before,
.employer-payment-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

.employer-payment-hero::before {
    width: 18rem;
    height: 18rem;
    right: -5rem;
    top: -8rem;
    background: rgba(255, 255, 255, 0.12);
}

.employer-payment-hero::after {
    width: 10rem;
    height: 10rem;
    right: 10rem;
    bottom: -6rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.employer-payment-kicker {
    display: inline-flex;
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 900;
}

.employer-payment-hero h3 {
    max-width: 720px;
    margin: 0 0 0.65rem;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1.08;
}

.employer-payment-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
}

.employer-payment-checkout-notice {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.25rem 1.35rem 0;
    border: 1px solid rgba(22, 101, 52, 0.22);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: #f0fdf4;
    color: #166534;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(22, 101, 52, 0.08);
}

.employer-payment-checkout-notice::before {
    content: '✓';
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 0.9rem;
}

.employer-payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    padding: 1.35rem;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.employer-payment-card {
    display: flex;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 1.35rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.employer-payment-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #8c0d04 0%, #b91c1c 100%);
}

.employer-payment-card-premium {
    border-color: rgba(140, 13, 4, 0.24);
    box-shadow: 0 18px 42px rgba(140, 13, 4, 0.12);
}

.employer-payment-card-head {
    position: relative;
}

.employer-payment-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.13);
}

.employer-payment-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    background: #8c0d04;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.employer-payment-badge-secondary {
    background: #111827;
}

.employer-payment-card h4 {
    margin: 0.65rem 0 0.25rem;
    font-size: 1.35rem;
}

.employer-payment-card p {
    color: #475569;
}

.employer-premium-plan-options {
    display: grid;
    gap: 0.75rem;
}

.employer-premium-plan-choice {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    background: #f9fafb;
}

.employer-premium-plan-choice:has(input:checked) {
    border-color: #8c0d04;
    background: #fff7f6;
    box-shadow: 0 10px 24px rgba(140, 13, 4, 0.12);
}

.employer-premium-plan-choice span {
    display: grid;
    gap: 0.2rem;
}

.employer-premium-plan-choice em,
.employer-payment-price {
    color: #8c0d04;
    font-size: 1.35rem;
    font-style: normal;
    font-weight: 900;
}

.employer-premium-plan-choice small {
    color: #475569;
}

.employer-payment-features {
    display: grid;
    gap: 0.45rem;
    padding-left: 1.1rem;
    color: #334155;
}

.employer-payment-cta {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.employer-payment-status {
    margin: 0 1.25rem 1.25rem;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    background: #fff7f6;
    color: #8c0d04;
    font-weight: 700;
}

@media (max-width: 820px) {
    .employer-payment-options {
        grid-template-columns: 1fr;
    }

    .employer-payment-hero {
        padding: 2rem 1.25rem 1.5rem;
    }

    .employer-payment-hero::before {
        right: -8rem;
    }
}

.job-card.is-boosted-listing {
    border: 1px solid rgba(245, 158, 11, 0.55);
    background:
        linear-gradient(135deg, rgba(255, 251, 235, 0.96), #ffffff 58%),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), transparent 35%);
    box-shadow: 0 22px 46px rgba(146, 64, 14, 0.16);
    position: relative;
    overflow: hidden;
}

.job-card.is-boosted-listing::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #f59e0b, #f97316, #8c0d04);
}

.boosted-listing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    margin-bottom: 0.45rem;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.25);
}

.btn-boost-listing {
    border: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 48%, #8c0d04 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.25);
}

.btn-boost-listing:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.32);
}

.boosted-listing-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-weight: 900;
}

.employer-payment-card-boost {
    border-color: rgba(245, 158, 11, 0.42);
    background:
        linear-gradient(135deg, #fffbeb 0%, #ffffff 64%),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 38%);
    box-shadow: 0 20px 46px rgba(146, 64, 14, 0.15);
}

.employer-payment-card-boost::before {
    background: linear-gradient(90deg, #f59e0b, #f97316, #8c0d04);
}

.employer-payment-badge-boost,
.employer-payment-boost-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 48%, #8c0d04 100%);
}

.employer-payment-card[hidden] {
    display: none !important;
}

.employer-payment-options.is-boost-only {
    grid-template-columns: minmax(0, 1fr);
}

.employer-payment-modal-content.is-boost-checkout,
#employer-payment-modal.is-boost-checkout .employer-payment-modal-content {
    max-width: 760px;
    width: min(94vw, 760px);
}

.support-page {
    max-width: 1400px;
}

.support-hero {
    background: linear-gradient(135deg, #8c0d04 0%, #b91c1c 52%, #f97316 100%);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(140, 13, 4, 0.14);
    color: #fff;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) 300px;
    margin: 1.25rem 0;
    overflow: hidden;
    padding: clamp(1.2rem, 3vw, 2rem);
    position: relative;
}

.support-hero::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 58%);
    content: '';
    height: 220px;
    position: absolute;
    right: -80px;
    top: -100px;
    width: 220px;
}

.support-hero-copy,
.support-hero-card {
    position: relative;
    z-index: 1;
}

.support-hero .job-breadcrumb,
.support-hero .job-breadcrumb a {
    color: rgba(255, 255, 255, 0.82);
}

.support-eyebrow,
.support-card-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
}

.support-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1;
    margin: 0 0 1rem;
}

.support-hero-copy > p:last-child {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 680px;
}

.support-hero-card,
.support-contact-card,
.support-form-card {
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.support-hero-card {
    align-self: center;
    color: #111827;
    padding: 1.1rem;
}

.support-hero-icon {
    align-items: center;
    background: #fef2f2;
    border-radius: 14px;
    color: #8c0d04;
    display: inline-flex;
    font-size: 1.5rem;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    margin-bottom: 0.75rem;
    width: 44px;
}

.support-hero-card h2,
.support-contact-card h2,
.support-form-card h2 {
    color: #111827;
    margin: 0 0 0.7rem;
}

.support-hero-card p,
.support-form-intro {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.support-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 360px minmax(0, 1fr);
    margin-bottom: 2.5rem;
}

.support-contact-card,
.support-form-card {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.support-card-kicker {
    color: #8c0d04;
}

.support-contact-item {
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 0.35rem;
    padding: 1rem 0;
}

.support-contact-item span {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.support-contact-item a,
.support-contact-item address {
    color: #111827;
    font-style: normal;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
}

.support-contact-item a:hover {
    color: #8c0d04;
}

.support-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.support-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-form label {
    color: #374151;
    display: grid;
    font-weight: 700;
    gap: 0.4rem;
}

.support-form input,
.support-form select,
.support-form textarea {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    color: #111827;
    font: inherit;
    padding: 0.8rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.support-form textarea {
    resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    border-color: #8c0d04;
    box-shadow: 0 0 0 3px rgba(140, 13, 4, 0.12);
    outline: none;
}

.support-honeypot {
    left: -9999px;
    position: absolute;
}

.support-ai-button {
    margin-top: 1rem;
}

.support-submit {
    align-items: center;
    display: inline-flex;
    gap: 0.65rem;
    justify-content: center;
    justify-self: start;
    min-width: 210px;
    padding: 0.95rem 1.45rem;
    font-size: 1rem;
}

.support-submit svg {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .support-hero,
    .support-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .support-form-grid {
        grid-template-columns: 1fr;
    }
}

.support-notice {
    border-radius: 12px;
    font-weight: 700;
    line-height: 1.5;
    padding: 0.85rem 1rem;
}

.support-notice--success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.support-notice--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
