/* HERA Career Portal — standalone app shell (no main website chrome) */
:root {
    --cp-green: #033517;
    --cp-green-mid: #0d4d2a;
    --cp-green-light: #e8f3ec;
    --cp-gold: #b8922a;
    --cp-gold-light: #f5ecd6;
    --cp-bg: #f0f2f5;
    --cp-surface: #ffffff;
    --cp-border: #dde3e8;
    --cp-text: #1a2e22;
    --cp-muted: #5c6b63;
    --cp-sidebar-w: 260px;
    --cp-radius: 12px;
    --cp-shadow: 0 4px 24px rgba(3, 53, 23, 0.08);
    --cp-font: 'Source Sans 3', system-ui, sans-serif;
}

.cp-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--cp-font);
    background: var(--cp-bg);
    color: var(--cp-text);
    font-size: 15px;
    line-height: 1.5;
}

.cp-body.hera-rtl { font-family: 'Noto Nastaliq Urdu', serif; }

/* —— Guest shell —— */
.cp-guest {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cp-guest-header {
    background: var(--cp-surface);
    border-bottom: 1px solid var(--cp-border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.cp-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--cp-green);
}
.cp-brand img { width: 48px; height: 48px; object-fit: contain; }
.cp-brand-text strong { display: block; font-size: 1rem; line-height: 1.2; }
.cp-brand-text span { font-size: 0.75rem; color: var(--cp-muted); font-weight: 500; }

.cp-guest-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cp-guest-nav a {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--cp-green);
    border: 1px solid transparent;
}
.cp-guest-nav a:hover { background: var(--cp-green-light); }
.cp-guest-nav a.is-active { background: var(--cp-green); color: #fff; }
.cp-btn-primary {
    background: var(--cp-green);
    color: #fff !important;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.cp-btn-primary:hover { background: var(--cp-green-mid); color: #fff; }
.cp-btn-outline {
    background: transparent;
    color: var(--cp-green) !important;
    border: 2px solid var(--cp-green);
    padding: 0.5rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}
.cp-btn-gold { background: var(--cp-gold); color: #fff !important; }
.cp-btn-gold:hover { filter: brightness(1.05); color: #fff; }

.cp-guest-main {
    flex: 1;
    padding: 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.cp-guest-main--auth { max-width: 440px; }
.cp-guest-main--auth-wide { max-width: 920px; }
.cp-guest-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8125rem;
    color: var(--cp-muted);
    border-top: 1px solid var(--cp-border);
    background: var(--cp-surface);
}

/* —— App shell (logged in) —— */
.cp-app {
    display: flex;
    min-height: 100vh;
}

.cp-sidebar {
    width: var(--cp-sidebar-w);
    background: linear-gradient(180deg, var(--cp-green) 0%, #022a12 100%);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}
.cp-sidebar-brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-align: center;
}
.cp-sidebar-brand img { width: 56px; margin-bottom: 0.5rem; }
.cp-sidebar-brand h2 { font-size: 0.9375rem; margin: 0; font-weight: 700; line-height: 1.3; }
.cp-sidebar-brand p { font-size: 0.6875rem; opacity: 0.85; margin: 0.25rem 0 0; }

.cp-sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    list-style: none;
    margin: 0;
}
.cp-sidebar-nav li { margin-bottom: 0.25rem; }
.cp-sidebar-nav a, .cp-sidebar-nav button {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.cp-sidebar-nav a:hover, .cp-sidebar-nav button:hover { background: rgba(255,255,255,0.1); }
.cp-sidebar-nav a.is-active { background: var(--cp-gold); color: #fff; }
.cp-sidebar-nav a.is-active .cp-nav-meta { opacity: 0.95; }
.cp-sidebar-nav i { width: 1.25rem; text-align: center; opacity: 0.9; flex-shrink: 0; }
.cp-nav-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}
.cp-nav-meta {
    font-size: 0.6875rem;
    font-weight: 600;
    opacity: 0.75;
}
.cp-nav-badge {
    flex-shrink: 0;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.6875rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cp-sidebar-nav a.is-active .cp-nav-badge {
    background: rgba(255, 255, 255, 0.28);
}

.cp-main-wrap {
    flex: 1;
    margin-left: var(--cp-sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cp-topbar {
    background: var(--cp-surface);
    border-bottom: 1px solid var(--cp-border);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
}
.cp-topbar h1 { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--cp-green); }
.cp-topbar-meta { font-size: 0.8125rem; color: var(--cp-muted); }
.cp-user-menu { position: relative; }
.cp-user-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cp-green);
    background: var(--cp-green-light);
    border: 1px solid var(--cp-border);
    border-radius: 999px;
    padding: 0.35rem 0.85rem 0.35rem 0.5rem;
    cursor: pointer;
    font-family: inherit;
}
.cp-user-menu .dropdown-toggle::after { margin-left: 0.15rem; }
.cp-user-menu .dropdown-toggle i.fa-user-circle { font-size: 1.35rem; }
.cp-user-menu .dropdown-toggle span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cp-user-menu .dropdown-menu {
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    box-shadow: var(--cp-shadow);
    padding: 0.35rem;
    min-width: 220px;
}
.cp-user-menu .dropdown-item {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    color: var(--cp-text);
}
.cp-user-menu .dropdown-item i { width: 1.25rem; color: var(--cp-green); }
.cp-user-menu .dropdown-item:hover { background: var(--cp-green-light); color: var(--cp-green); }
.cp-user-menu .dropdown-divider { margin: 0.35rem 0; }
.cp-user-menu .dropdown-item--logout {
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    font-family: inherit;
    color: #842029;
}
.cp-user-menu .dropdown-item--logout:hover { background: #f8d7da; color: #842029; }
.cp-user-menu .dropdown-header {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cp-muted);
    padding: 0.35rem 0.75rem;
}

.cp-main {
    flex: 1;
    padding: 1.5rem;
}

/* —— Cards & forms —— */
.cp-card {
    background: var(--cp-surface);
    border-radius: var(--cp-radius);
    box-shadow: var(--cp-shadow);
    border: 1px solid var(--cp-border);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.cp-card-title {
    margin: 0 0 1rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--cp-green);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cp-green-light);
}

.cp-alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.cp-alert--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.cp-alert--error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.cp-alert--warn { background: var(--cp-gold-light); color: #5c4a1a; border: 1px solid #e8d4a8; }

.cp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
}
.cp-form-grid--1 { grid-template-columns: 1fr; }
.cp-span-2 { grid-column: span 2; }
.cp-field label {
    display: block;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 0.35rem;
    color: var(--cp-text);
}
.cp-field label span { color: #c0392b; }
.cp-field input, .cp-field select, .cp-field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--cp-border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    box-sizing: border-box;
}
.cp-field input:focus, .cp-field select:focus, .cp-field textarea:focus {
    outline: none;
    border-color: var(--cp-green);
    box-shadow: 0 0 0 3px rgba(3, 53, 23, 0.12);
}
.cp-error { color: #c0392b; font-size: 0.8125rem; margin-top: 0.25rem; display: block; }
.cp-hint { font-size: 0.8125rem; color: var(--cp-muted); margin-top: 0.25rem; }

.cp-section-head {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--cp-green-mid);
    margin: 1.5rem 0 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--cp-green-light);
    border-radius: 8px;
    border-left: 4px solid var(--cp-gold);
}
.cp-section-head:first-child { margin-top: 0; }

.cp-radio-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.cp-radio-row label { font-weight: 500; display: inline-flex; align-items: center; gap: 0.35rem; }

/* Jobs layout HEC-style */
.cp-jobs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
    align-items: start;
}
.cp-filters {
    background: var(--cp-surface);
    border-radius: var(--cp-radius);
    border: 1px solid var(--cp-border);
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
}
.cp-filters h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--cp-green);
}
.cp-filter-group { margin-bottom: 1rem; }
.cp-filter-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cp-muted);
    display: block;
    margin-bottom: 0.35rem;
}

.cp-job-list { display: flex; flex-direction: column; gap: 0.75rem; }
.cp-job-card {
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.cp-job-card:hover {
    border-color: var(--cp-green);
    box-shadow: var(--cp-shadow);
}
.cp-job-card h3 { margin: 0 0 0.35rem; font-size: 1.0625rem; }
.cp-job-card h3 a { color: var(--cp-green); text-decoration: none; }
.cp-job-card h3 a:hover { text-decoration: underline; }
.cp-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: var(--cp-muted);
}
.cp-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
}
.cp-badge--open { background: #d4edda; color: #155724; }
.cp-badge--closed { background: #e9ecef; color: #495057; }

.cp-progress {
    height: 10px;
    background: var(--cp-green-light);
    border-radius: 999px;
    overflow: hidden;
    margin: 0.5rem 0;
}
.cp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--cp-green), var(--cp-gold));
    border-radius: 999px;
    transition: width 0.3s;
}

.cp-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.cp-table-wrap { overflow-x: auto; }
.cp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.cp-table th {
    text-align: left;
    padding: 0.75rem;
    background: var(--cp-green);
    color: #fff;
    font-weight: 600;
}
.cp-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--cp-border);
}
.cp-table tr:hover td { background: var(--cp-green-light); }

.cp-gate {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--cp-green-light);
    border-radius: var(--cp-radius);
    border: 1px dashed var(--cp-green);
}
.cp-gate i { font-size: 2.5rem; color: var(--cp-green); margin-bottom: 0.75rem; }
.cp-gate-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

.cp-mobile-toggle {
    display: none;
    background: var(--cp-green);
    color: #fff;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .cp-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s;
    }
    .cp-sidebar.is-open { transform: translateX(0); }
    .cp-main-wrap { margin-left: 0; }
    .cp-mobile-toggle { display: inline-flex; }
    .cp-jobs-layout { grid-template-columns: 1fr; }
    .cp-filters { position: static; }
    .cp-form-grid { grid-template-columns: 1fr; }
    .cp-span-2 { grid-column: span 1; }
}

/* Reuse career dynamic tables inside portal */
.cp-card .hera-dynamic-table { width: 100%; font-size: 0.8125rem; }
.cp-card .hera-dynamic-table input, .cp-card .hera-dynamic-table select {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid var(--cp-border);
    border-radius: 6px;
}

.cp-card .hera-career-form-section {
    margin-bottom: 1.5rem;
}
.cp-card .hera-career-form-section > h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--cp-green-mid);
    margin: 0 0 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--cp-green-light);
    border-radius: 8px;
    border-left: 4px solid var(--cp-gold);
}
.cp-card .hera-career-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.cp-card .hera-form-group label { font-weight: 600; font-size: 0.8125rem; }
.cp-card .hera-form-group input,
.cp-card .hera-form-group select,
.cp-card .hera-form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--cp-border);
    border-radius: 8px;
}

/* Sidebar brand — no default link styling */
.cp-sidebar-brand__link {
    text-decoration: none !important;
    color: #fff !important;
    display: block;
}
.cp-sidebar-brand__link:hover { color: #fff !important; opacity: 0.95; }
.cp-sidebar-brand h2, .cp-sidebar-brand p { color: #fff; margin: 0; }
.cp-sidebar-brand a h2 { font-size: 0.9375rem; }

/* Auth / login card */
.cp-guest-main--auth .cp-card {
    max-width: 100%;
    width: 100%;
    margin: 2rem auto;
    padding: 2rem 2.25rem;
}
.cp-guest-main--auth-wide .cp-form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
}

.cp-auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.75rem !important;
}
.cp-guest-main--auth-wide .cp-auth-submit {
    margin-top: 1.5rem;
}
.cp-auth-submit.is-loading {
    opacity: 0.92;
    cursor: wait;
    pointer-events: none;
}
.cp-auth-submit .cp-btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.cp-field input, .cp-field select, .cp-field textarea {
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.cp-field input:-webkit-autofill,
.cp-field input:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
}
.cp-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
    font-size: 0.875rem;
}

/* Filters panel */
.cp-filters select,
.cp-filters input[type="search"] {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--cp-border);
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
    margin-top: 0.25rem;
}
.cp-filters label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cp-muted);
}

/* Profile wizard */
.cp-profile-wizard { padding: 1.75rem; }
.cp-profile-progress-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--cp-border);
}
.cp-progress--lg { height: 14px; }
.cp-wizard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.cp-wizard-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--cp-border);
    background: #fff;
    text-decoration: none !important;
    color: var(--cp-text) !important;
    font-size: 0.8125rem;
    font-weight: 600;
}
.cp-wizard-nav__item:hover { border-color: var(--cp-green); background: var(--cp-green-light); }
.cp-wizard-nav__item.is-active {
    background: var(--cp-green);
    border-color: var(--cp-green);
    color: #fff !important;
}
.cp-wizard-nav__item.is-done:not(.is-active) {
    border-color: #28a745;
    background: #f0fff4;
}
.cp-wizard-nav__num {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
}
.cp-wizard-nav__item.is-active .cp-wizard-nav__num { background: rgba(255,255,255,0.25); }
.cp-wizard-nav__optional { font-weight: 400; opacity: 0.75; font-size: 0.6875rem; }
.cp-wizard-nav__check { color: #28a745; font-size: 0.75rem; }
.cp-wizard-nav__item.is-active .cp-wizard-nav__check { color: #fff; }

.cp-wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cp-border);
}

.cp-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--cp-border);
    border-radius: 8px;
    margin: 0.75rem 0;
}
.cp-card .hera-dynamic-table-wrap {
    max-width: 100%;
    overflow: visible;
}
.cp-card .hera-dynamic-table-scroll {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}
.cp-card .hera-dynamic-table { min-width: 720px; }
.cp-card .hera-btn-add-row {
    background: var(--cp-green-light);
    border: 1px dashed var(--cp-green);
    color: var(--cp-green);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8125rem;
}

@media (max-width: 767px) {
    .cp-profile-progress-header { grid-template-columns: 1fr; }
    .cp-wizard-nav__label { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Dashboard stats & profile summary */
.cp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 991px) {
    .cp-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
    .cp-stats-row { grid-template-columns: 1fr; }
}
.cp-stat-card {
    position: relative;
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    padding: 1.15rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--cp-shadow);
    overflow: hidden;
}
.cp-stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--cp-green), var(--cp-gold));
}
.cp-stat-card--pending::before { background: linear-gradient(180deg, var(--cp-gold), #d4a84b); }
.cp-stat-card--shortlisted::before { background: linear-gradient(180deg, #28a745, #5cb85c); }
.cp-stat-card--profile::before { background: linear-gradient(180deg, var(--cp-green-mid), var(--cp-green)); }
.cp-stat-card__icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cp-green-light);
    flex-shrink: 0;
}
.cp-stat-card--pending .cp-stat-card__icon-wrap { background: var(--cp-gold-light); }
.cp-stat-card--shortlisted .cp-stat-card__icon-wrap { background: #e8f5e9; }
.cp-stat-card__icon {
    font-size: 1.25rem;
    color: var(--cp-green);
}
.cp-stat-card--pending .cp-stat-card__icon { color: var(--cp-gold); }
.cp-stat-card--shortlisted .cp-stat-card__icon { color: #28a745; }
.cp-stat-card__body { min-width: 0; }
.cp-stat-card__value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cp-green);
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.cp-stat-card__label {
    display: block;
    font-size: 0.6875rem;
    color: var(--cp-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
}

.cp-dash-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.cp-profile-summary__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.cp-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cp-green), var(--cp-gold));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cp-profile-summary__name { font-size: 1.125rem; display: block; color: var(--cp-green); }
.cp-profile-summary__dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem 1rem;
    margin: 0 0 1rem;
    font-size: 0.875rem;
}
.cp-profile-summary__dl dt {
    font-weight: 700;
    color: var(--cp-muted);
    font-size: 0.6875rem;
    text-transform: uppercase;
}
.cp-profile-summary__dl dd { margin: 0; font-weight: 600; }
.cp-step-summary {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.8125rem;
}
.cp-step-summary li {
    padding: 0.35rem 0;
    color: var(--cp-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cp-step-summary li.is-done { color: var(--cp-green); font-weight: 600; }
.cp-step-summary li.is-done i { color: #28a745; }
.cp-app-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--cp-border);
}
.cp-empty-note { color: var(--cp-muted); text-align: center; padding: 1rem 0; }
.cp-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--cp-green) !important;
    text-decoration: none !important;
}
.cp-btn-sm { padding: 0.4rem 0.85rem !important; font-size: 0.8125rem !important; }

/* Job applied state */
.cp-applied-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #e8f5e9, #f0fff4);
    border: 1px solid #c3e6cb;
    border-radius: var(--cp-radius);
    margin-bottom: 1rem;
}
.cp-applied-banner__icon {
    font-size: 2rem;
    color: #28a745;
    line-height: 1;
}
.cp-applied-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.cp-back-link a {
    color: var(--cp-green) !important;
    font-weight: 600;
    text-decoration: none !important;
}

/* Tom Select in portal */
.cp-body .ts-wrapper {
    width: 100%;
    position: relative;
}
.cp-body .ts-wrapper.dropdown-active {
    z-index: 120;
}
.cp-body .ts-wrapper .ts-dropdown {
    z-index: 121;
    border: 1px solid var(--cp-border);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    max-height: 260px;
}
body.cp-body > .ts-dropdown {
    z-index: 10100 !important;
    border: 1px solid var(--cp-border);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    background: #fff;
}
body.cp-body > .ts-dropdown .ts-dropdown-content {
    max-height: inherit;
    overflow-y: auto;
}
body.cp-body > .ts-dropdown .no-results {
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
    color: var(--cp-muted);
}
.cp-body .ts-wrapper.single .ts-control {
    border: 1px solid var(--cp-border);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    min-height: 42px;
    background: #fff;
    box-shadow: none;
}
.cp-body .ts-wrapper.single.focus .ts-control {
    border-color: var(--cp-green);
    box-shadow: 0 0 0 3px rgba(3, 53, 23, 0.1);
}
.cp-body .ts-dropdown {
    z-index: 10050 !important;
    border: 1px solid var(--cp-border);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.cp-body .ts-dropdown .ts-dropdown-content {
    max-height: 260px;
    overflow-y: auto;
}
.cp-body .ts-dropdown .optgroup-header {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cp-muted);
    padding: 0.5rem 0.65rem 0.25rem;
    background: var(--cp-green-light);
}
.cp-body .ts-dropdown .option {
    padding: 0.45rem 0.65rem;
    font-size: 0.875rem;
}
.cp-body .ts-dropdown .option.active {
    background: var(--cp-green-light);
    color: var(--cp-green);
}
.cp-body .ts-dropdown .option.selected {
    background: var(--cp-green);
    color: #fff;
}
.cp-body .hera-dynamic-table .ts-wrapper {
    min-width: 140px;
}
.cp-body .ts-wrapper.dropdown-active.has-items .ts-control > .item {
    opacity: 0.35;
}
.cp-body .ts-wrapper.dropdown-active .ts-control input {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0;
    opacity: 1 !important;
}
.cp-body .cp-card,
.cp-body .cp-main,
.cp-body .hera-dynamic-table {
    overflow: visible;
}

.cp-job-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem 1.25rem;
    margin: 0;
    padding: 1rem;
    background: var(--cp-green-light);
    border-radius: var(--cp-radius);
}
.cp-job-detail-meta dt {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cp-muted);
    margin: 0 0 0.15rem;
}
.cp-job-detail-meta dd {
    margin: 0;
    font-weight: 600;
    color: var(--cp-green);
}

.cp-input-month,
.cp-input-year {
    min-width: 120px;
    max-width: 100%;
}
.cp-card .cp-input-month,
.cp-card .cp-input-year {
    padding: 0.45rem 0.5rem;
    border: 1px solid var(--cp-border);
    border-radius: 6px;
    font-size: 0.8125rem;
}

/* Applications list */
.cp-app-list { display: flex; flex-direction: column; gap: 1rem; }
.cp-app-list-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--cp-shadow);
    border-left: 4px solid var(--cp-gold);
}
.cp-app-list-card__main { flex: 1; min-width: 220px; }
.cp-app-list-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}
.cp-app-list-card__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}
.cp-app-list-card__title a {
    color: var(--cp-green);
    text-decoration: none;
}
.cp-app-list-card__title a:hover { text-decoration: underline; }
.cp-app-list-card__meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    font-size: 0.8125rem;
    color: var(--cp-muted);
}
.cp-app-list-card__meta i {
    width: 1rem;
    color: var(--cp-gold);
    margin-right: 0.2rem;
}
.cp-app-list-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.cp-badge--pending { background: #fff3cd; color: #856404; }
.cp-badge--reviewed { background: #cce5ff; color: #004085; }
.cp-badge--shortlisted { background: #d4edda; color: #155724; }
.cp-badge--rejected { background: #f8d7da; color: #721c24; }
.cp-app-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.cp-app-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.cp-empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.cp-empty-state__icon {
    font-size: 2.5rem;
    color: var(--cp-muted);
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

/* Job alerts */
.cp-alert-intro {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, var(--cp-green-light), #fff);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
}
.cp-alert-intro__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--cp-gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.cp-alert-intro p { margin: 0; color: var(--cp-text); font-size: 0.9375rem; }
.cp-alert-form-card .cp-field label i { margin-right: 0.35rem; color: var(--cp-gold); }
.cp-alert-toggle { margin-top: 0.25rem; }
.cp-checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--cp-border);
    border-radius: 8px;
    background: var(--cp-green-light);
    cursor: pointer;
    margin: 0;
}
.cp-checkbox-card input { margin-top: 0.2rem; accent-color: var(--cp-green); }
.cp-form-actions { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--cp-border); }

/* Avatars & account */
.cp-avatar {
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cp-green), var(--cp-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cp-avatar--sm { width: 32px; height: 32px; font-size: 0.75rem; }
.cp-avatar--md { width: 40px; height: 40px; font-size: 0.875rem; }
.cp-avatar--lg { width: 56px; height: 56px; font-size: 1.25rem; }
.cp-avatar--xl { width: 96px; height: 96px; font-size: 2rem; }
.cp-avatar__img { width: 100%; height: 100%; object-fit: cover; }
.cp-avatar__initial { color: #fff; font-weight: 800; }
.cp-user-menu__photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.cp-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.cp-account-profile-card { grid-column: 1 / -1; max-width: 640px; }
.cp-account-photo-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.cp-profile-photo-field__row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}
.cp-profile-photo-field input[type="file"] {
    max-width: 100%;
    font-size: 0.875rem;
}
.cp-account-grid .cp-auth-submit {
    width: auto;
    margin-top: 0.75rem;
}
