/* Job Candidate Plugin — candidate.css
   All classes scoped with .jcand- prefix to avoid theme conflicts. */

/* ── Custom properties ──────────────────────────────────────────────────── */
:root {
    --jcand-primary:    #2563eb;
    --jcand-primary-d:  #1d4ed8;
    --jcand-secondary:  #64748b;
    --jcand-success:    #16a34a;
    --jcand-danger:     #dc2626;
    --jcand-warning:    #d97706;
    --jcand-info:       #0891b2;
    --jcand-bg:         #f8fafc;
    --jcand-surface:    #ffffff;
    --jcand-border:     #e2e8f0;
    --jcand-text:       #1e293b;
    --jcand-muted:      #64748b;
    --jcand-radius:     10px;
    --jcand-radius-sm:  6px;
    --jcand-shadow:     0 1px 4px rgba(0,0,0,.08);
    --jcand-shadow-md:  0 4px 16px rgba(0,0,0,.12);
    --jcand-font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --jcand-sidebar-w:  240px;
    --jcand-transition: .18s ease;
}

/* ── Base reset ──────────────────────────────────────────────────────────── */
.jcand-dashboard-wrap *, .jcand-auth-wrap *, .jcand-jobs-page-wrap *,
.jcand-modal * { box-sizing: border-box; }

/* ── Auth pages ──────────────────────────────────────────────────────────── */
.jcand-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jcand-bg);
    padding: 24px 16px;
    font-family: var(--jcand-font);
}

.jcand-auth-box {
    background: var(--jcand-surface);
    border: 1px solid var(--jcand-border);
    border-radius: var(--jcand-radius);
    box-shadow: var(--jcand-shadow-md);
    padding: 40px 36px;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}

.jcand-auth-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--jcand-primary);
    margin-bottom: 24px;
}

.jcand-auth-box h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    color: var(--jcand-text);
}

.jcand-auth-sub { color: var(--jcand-muted); margin: 0 0 24px; font-size: .95rem; }

.jcand-auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: .9rem;
    color: var(--jcand-muted);
}
.jcand-auth-links a { color: var(--jcand-primary); text-decoration: none; margin-left: 4px; }

.jcand-forgot-link { float: right; font-size: .85rem; color: var(--jcand-muted); text-decoration: none; }
.jcand-forgot-link:hover { color: var(--jcand-primary); }

/* ── Form fields ─────────────────────────────────────────────────────────── */
.jcand-field-group { margin-bottom: 16px; }
.jcand-field-group label {
    display: block;
    font-size: .875rem;
    font-weight: 500;
    color: var(--jcand-text);
    margin-bottom: 6px;
}
.jcand-field-group input,
.jcand-field-group select,
.jcand-field-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--jcand-border);
    border-radius: var(--jcand-radius-sm);
    font-size: .95rem;
    color: var(--jcand-text);
    background: #fff;
    transition: border-color var(--jcand-transition);
    font-family: var(--jcand-font);
}
.jcand-field-group input:focus,
.jcand-field-group select:focus,
.jcand-field-group textarea:focus {
    outline: none;
    border-color: var(--jcand-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.jcand-field-group input[disabled],
.jcand-field-group select[disabled] { background: var(--jcand-bg); cursor: not-allowed; }
.jcand-field-hint { font-size: .8rem; color: var(--jcand-muted); margin: 4px 0 0; }
.jcand-field-error { font-size: .8rem; color: var(--jcand-danger); display: block; margin-top: 4px; }
.jcand-req { color: var(--jcand-danger); }
.jcand-optional { font-size: .8rem; color: var(--jcand-muted); }
.jcand-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jcand-field-sm { max-width: 120px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.jcand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--jcand-radius-sm);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--jcand-transition), opacity var(--jcand-transition);
    text-decoration: none;
    font-family: var(--jcand-font);
    white-space: nowrap;
}
.jcand-btn:disabled { opacity: .6; cursor: not-allowed; }
.jcand-btn-primary  { background: var(--jcand-primary); color: #fff; }
.jcand-btn-primary:hover:not(:disabled) { background: var(--jcand-primary-d); }
.jcand-btn-outline  { background: transparent; color: var(--jcand-primary); border: 1.5px solid var(--jcand-primary); }
.jcand-btn-outline:hover:not(:disabled) { background: rgba(37,99,235,.06); }
.jcand-btn-dark     { color: var(--jcand-text); border-color: var(--jcand-text); }
.jcand-btn-dark:hover:not(:disabled) { background: rgba(0,0,0,.06); }
.jcand-btn-danger   { background: var(--jcand-danger); color: #fff; }
.jcand-btn-danger:hover:not(:disabled) { background: #b91c1c; }
.jcand-btn-full     { width: 100%; }
.jcand-btn-sm       { padding: 6px 12px; font-size: .82rem; }
.jcand-btn-icon     { background: none; border: none; cursor: pointer; font-size: 1.1rem; padding: 4px; }
.jcand-btn-link     { background: none; border: none; cursor: pointer; color: var(--jcand-primary); font-size: .85rem; padding: 0; }
.jcand-btn-applied  { background: #dcfce7; color: var(--jcand-success); border: 1px solid #bbf7d0; }
.jcand-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: jcand-spin .6s linear infinite;
}
@keyframes jcand-spin { to { transform: rotate(360deg); } }

/* ── Password eye toggle ─────────────────────────────────────────────────── */
.jcand-password-wrap {
    position: relative;
}
.jcand-password-wrap input {
    padding-right: 42px !important;
}
.jcand-eye-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--jcand-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--jcand-transition);
    line-height: 1;
}
.jcand-eye-toggle:hover { color: var(--jcand-text); }

/* ── OTP input panel ─────────────────────────────────────────────────────── */
.jcand-otp-inputs-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}
/* Use high-specificity selector + !important so theme-global input rules can't override */
.jcand-auth-wrap .jcand-otp-inputs-row .jcand-otp-digit,
.jcand-otp-inputs-row .jcand-otp-digit {
    width: 44px !important;
    max-width: 44px !important;
    min-width: 0 !important;
    flex: 0 0 44px !important;
    height: 52px;
    padding: 0 !important;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    border: 2px solid var(--jcand-border, #e5e7eb);
    border-radius: 10px;
    background: var(--jcand-surface, #fff);
    color: var(--jcand-text, #1e293b);
    transition: border-color .15s;
    box-shadow: none;
}
.jcand-auth-wrap .jcand-otp-inputs-row .jcand-otp-digit:focus,
.jcand-otp-inputs-row .jcand-otp-digit:focus {
    outline: none;
    border-color: var(--jcand-primary, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
@media (max-width: 420px) {
    .jcand-otp-inputs-row { gap: 5px; }
    .jcand-auth-wrap .jcand-otp-inputs-row .jcand-otp-digit,
    .jcand-otp-inputs-row .jcand-otp-digit {
        width: 36px !important;
        max-width: 36px !important;
        flex: 0 0 36px !important;
        height: 44px;
        font-size: 1.15rem;
    }
}

/* ── Notices ─────────────────────────────────────────────────────────────── */
.jcand-notice {
    padding: 12px 16px;
    border-radius: var(--jcand-radius-sm);
    font-size: .9rem;
    margin-bottom: 16px;
}
.jcand-notice-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.jcand-notice-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.jcand-notice-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.jcand-verify-banner  { display: flex; align-items: center; gap: 10px; margin-bottom: 0; border-radius: 0; }
.jcand-notice-warning a.jcand-resend-verify-link { color: inherit; font-weight: 600; text-decoration: underline; margin-left: 4px; }

/* ── Dashboard layout ────────────────────────────────────────────────────── */
.jcand-dashboard-wrap {
    display: flex;
    min-height: 100vh;
    font-family: var(--jcand-font);
    background: var(--jcand-bg);
    color: var(--jcand-text);
}

.jcand-sidebar {
    width: var(--jcand-sidebar-w);
    min-width: var(--jcand-sidebar-w);
    background: var(--jcand-surface);
    border-right: 1px solid var(--jcand-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.jcand-sidebar-profile {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--jcand-border);
    text-align: center;
}

.jcand-avatar-wrap { margin-bottom: 10px; }
.jcand-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--jcand-primary); }
.jcand-avatar-placeholder {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--jcand-primary);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jcand-sidebar-name    { font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
.jcand-sidebar-headline { font-size: .8rem; color: var(--jcand-muted); margin-bottom: 10px; }

.jcand-completion-mini { display: flex; align-items: center; gap: 6px; }
.jcand-completion-bar-wrap {
    flex: 1; height: 6px; background: var(--jcand-border); border-radius: 3px; overflow: hidden;
}
.jcand-completion-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--jcand-warning), var(--jcand-success));
    border-radius: 3px;
    transition: width .5s ease;
}
.jcand-completion-pct { font-size: .8rem; font-weight: 600; color: var(--jcand-primary); white-space: nowrap; }

.jcand-sidebar-nav { padding: 12px 0; flex: 1; }
.jcand-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--jcand-text);
    text-decoration: none;
    font-size: .9rem;
    transition: background var(--jcand-transition), color var(--jcand-transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: var(--jcand-font);
}
.jcand-nav-item:hover       { background: var(--jcand-bg); color: var(--jcand-primary); }
.jcand-nav-active           { background: rgba(37,99,235,.08); color: var(--jcand-primary); font-weight: 600; border-right: 3px solid var(--jcand-primary); }
.jcand-nav-icon             { font-size: 1rem; width: 20px; }
.jcand-nav-logout:hover     { color: var(--jcand-danger); }

/* ── Main content ────────────────────────────────────────────────────────── */
.jcand-main { flex: 1; min-width: 0; padding: 28px; }
.jcand-main-inner { max-width: 900px; }

.jcand-tab-header { margin-bottom: 24px; }
.jcand-tab-header h1 { font-size: 1.6rem; font-weight: 700; margin: 0 0 4px; }
.jcand-tab-header p  { color: var(--jcand-muted); margin: 0; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.jcand-card {
    background: var(--jcand-surface);
    border: 1px solid var(--jcand-border);
    border-radius: var(--jcand-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--jcand-shadow);
}
.jcand-card h3 { margin: 0 0 16px; font-size: 1.05rem; font-weight: 600; }
.jcand-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.jcand-card-header h3 { margin: 0; }
.jcand-link-sm { font-size: .85rem; color: var(--jcand-primary); text-decoration: none; }
.jcand-card-warning { border-left: 4px solid var(--jcand-warning); }
.jcand-danger-zone { border-left: 4px solid var(--jcand-danger); }

/* ── Completion card ─────────────────────────────────────────────────────── */
.jcand-completion-card .jcand-completion-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .9rem; }
.jcand-completion-large { height: 12px; border-radius: 6px; margin-bottom: 12px; }
.jcand-completion-fields { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.jcand-completion-item { font-size: .82rem; padding: 4px 10px; border-radius: 20px; }
.jcand-done    { background: #f0fdf4; color: #166534; }
.jcand-missing { background: #fffbeb; color: #92400e; }
.jcand-missing-fields { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.jcand-missing-badge { background: var(--jcand-primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: .82rem; text-decoration: none; }
.jcand-missing-badge:hover { background: var(--jcand-primary-d); }

/* ── Stats grid ──────────────────────────────────────────────────────────── */
.jcand-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.jcand-stat-card {
    background: var(--jcand-surface);
    border: 1px solid var(--jcand-border);
    border-radius: var(--jcand-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--jcand-shadow);
}
.jcand-stat-num   { font-size: 2rem; font-weight: 700; color: var(--jcand-primary); }
.jcand-stat-label { font-size: .82rem; color: var(--jcand-muted); margin-top: 4px; }

/* ── Table ───────────────────────────────────────────────────────────────── */
.jcand-table-wrap { overflow-x: auto; }
.jcand-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.jcand-table th { text-align: left; padding: 10px 12px; font-size: .8rem; font-weight: 600; color: var(--jcand-muted); border-bottom: 1px solid var(--jcand-border); }
.jcand-table td { padding: 12px; border-bottom: 1px solid var(--jcand-bg); }
.jcand-table tr:last-child td { border-bottom: none; }

/* ── Status badges ───────────────────────────────────────────────────────── */
.jcand-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    text-transform: capitalize;
}
.jcand-status-applied     { background: #dbeafe; color: #1e40af; }
.jcand-status-reviewed    { background: #ccfbf1; color: #0f766e; }
.jcand-status-shortlisted { background: #ede9fe; color: #6d28d9; }
.jcand-status-interview   { background: #fef3c7; color: #b45309; }
.jcand-status-rejected    { background: #fee2e2; color: #b91c1c; }
.jcand-status-hired       { background: #dcfce7; color: #15803d; }
.jcand-badge              { display: inline-block; padding: 3px 8px; border-radius: 20px; font-size: .78rem; background: var(--jcand-bg); color: var(--jcand-muted); border: 1px solid var(--jcand-border); }

/* ── Profile photo ───────────────────────────────────────────────────────── */
.jcand-photo-wrap      { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.jcand-photo-preview   { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--jcand-border); }

/* ── Tag input ───────────────────────────────────────────────────────────── */
.jcand-tags-input-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--jcand-border);
    border-radius: var(--jcand-radius-sm);
    background: #fff;
    cursor: text;
    min-height: 44px;
    align-items: center;
}
.jcand-tags-input-wrap:focus-within { border-color: var(--jcand-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.jcand-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--jcand-primary);
    color: #fff;
    padding: 3px 8px 3px 10px;
    border-radius: 20px;
    font-size: .82rem;
}
.jcand-tag-remove { background: none; border: none; color: rgba(255,255,255,.8); cursor: pointer; font-size: .9rem; padding: 0; line-height: 1; }
.jcand-tag-remove:hover { color: #fff; }
.jcand-tags-input { border: none; outline: none; font-size: .9rem; padding: 2px 4px; flex: 1; min-width: 120px; background: transparent; }

/* ── Resume manager ──────────────────────────────────────────────────────── */
.jcand-upload-zone {
    border: 2px dashed var(--jcand-border);
    border-radius: var(--jcand-radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--jcand-transition);
}
.jcand-upload-zone:hover { border-color: var(--jcand-primary); }
.jcand-upload-icon { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.jcand-upload-zone p { color: var(--jcand-muted); margin: 0 0 12px; font-size: .9rem; }
.jcand-upload-progress { margin-top: 12px; }
.jcand-progress-bar { height: 8px; background: var(--jcand-border); border-radius: 4px; overflow: hidden; }
.jcand-progress-fill { height: 100%; background: var(--jcand-primary); border-radius: 4px; transition: width .2s; }
.jcand-resume-items { display: flex; flex-direction: column; gap: 12px; }
.jcand-resume-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--jcand-border);
    border-radius: var(--jcand-radius-sm);
    background: var(--jcand-bg);
}
.jcand-resume-icon { font-size: 1.8rem; }
.jcand-resume-info { flex: 1; min-width: 0; }
.jcand-resume-name { font-weight: 500; font-size: .9rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jcand-resume-meta { font-size: .8rem; color: var(--jcand-muted); margin-top: 2px; }
.jcand-resume-actions { display: flex; gap: 8px; flex-shrink: 0; }
.jcand-primary-badge { background: #dbeafe; color: var(--jcand-primary); padding: 2px 8px; border-radius: 10px; font-size: .75rem; font-weight: 600; }

/* ── Applications ────────────────────────────────────────────────────────── */
.jcand-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.jcand-filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--jcand-border);
    border-radius: 20px;
    background: #fff;
    font-size: .85rem;
    cursor: pointer;
    transition: all var(--jcand-transition);
    color: var(--jcand-text);
}
.jcand-filter-btn:hover { border-color: var(--jcand-primary); color: var(--jcand-primary); background: rgba(37,99,235,.04); }
.jcand-filter-btn.active { background: var(--jcand-primary); border-color: var(--jcand-primary); color: #fff; font-weight: 600; }

/* ── Applied Jobs card grid ─────────────────────────────────────────────── */
.jcand-applications-grid { display: flex; flex-direction: column; gap: 12px; }

.jcand-app-card {
    background: var(--jcand-surface);
    border: 1.5px solid var(--jcand-border);
    border-radius: var(--jcand-radius);
    padding: 16px 20px;
    box-shadow: var(--jcand-shadow);
    transition: box-shadow .2s, border-color .2s;
}
.jcand-app-card:hover { box-shadow: var(--jcand-shadow-md); border-color: #bfdbfe; }

.jcand-app-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.jcand-app-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--jcand-text);
    margin: 0 0 3px;
    line-height: 1.3;
}
.jcand-app-company {
    font-size: .82rem;
    color: var(--jcand-muted);
    margin: 0;
}
.jcand-app-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--jcand-muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--jcand-bg);
}
.jcand-cover-preview {
    margin-top: 10px;
    font-size: .82rem;
}
.jcand-cover-preview summary {
    cursor: pointer;
    color: var(--jcand-primary);
    font-weight: 500;
    padding: 4px 0;
    user-select: none;
    list-style: none;
}
.jcand-cover-preview summary::before { content: '▶ '; font-size: .7rem; }
details[open] .jcand-cover-preview summary::before,
.jcand-cover-preview[open] summary::before { content: '▼ '; font-size: .7rem; }
.jcand-cover-preview p {
    margin: 8px 0 0;
    line-height: 1.6;
    padding: 10px 12px;
    background: var(--jcand-bg);
    border-radius: var(--jcand-radius-sm);
    border: 1px solid var(--jcand-border);
    color: var(--jcand-text);
    font-size: .85rem;
    white-space: pre-wrap;
}

/* Loading state */
.jcand-loading {
    text-align: center;
    padding: 32px 16px;
    color: var(--jcand-muted);
    font-size: .9rem;
}
.jcand-loading::before {
    content: '';
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid var(--jcand-border);
    border-top-color: var(--jcand-primary);
    border-radius: 50%;
    animation: jcand-spin .7s linear infinite;
    margin-right: 8px;
    vertical-align: -4px;
}

/* Empty state */
.jcand-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--jcand-surface);
    border: 1px solid var(--jcand-border);
    border-radius: var(--jcand-radius);
}
.jcand-empty-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.jcand-empty-state p { color: var(--jcand-muted); margin: 0 0 16px; font-size: .9rem; }

/* Pagination */
#jcand-app-pagination { text-align: center; margin-top: 16px; }

/* ═══════════════════════════════════════════════════════════════════════════
 * JOB LISTING PAGE — Hero search bar + filters + cards
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero — dark navy gradient matching homepage hero ─────────────────────── */
.jcand-jobs-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    padding: 52px 24px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Dot grid overlay — matches homepage .hero-grid */
.jcand-jobs-hero::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 36px 36px;
}
/* Decorative radial blobs — matches homepage ::before / ::after */
.jcand-jobs-hero::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(96,165,250,.16) 0%, transparent 70%);
    top: -120px; right: -100px; pointer-events: none;
}
/* Ensure text sits above pseudo-elements */
.jcand-jobs-hero > * { position: relative; z-index: 1; }
.jcand-jobs-hero h1 { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -.02em; color: #fff; }
.jcand-hero-sub     { font-size: 1rem; margin: 0 0 28px; opacity: .85; color: #fff; }

/* ── Horizontal search bar ────────────────────────────────────────────────── */
.jcand-hbar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    max-width: 820px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
}
.jcand-hbar-field {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 16px;
    position: relative;
    min-width: 0;
}
.jcand-hbar-field input {
    border: none;
    outline: none;
    background: transparent;
    font-size: .95rem;
    color: #1e1b4b;
    width: 100%;
    padding: 16px 4px;
    line-height: 1.4;
}
.jcand-hbar-field input::placeholder { color: #9ca3af; }
/* Suppress the native browser "×" clear button on type="search" inputs —
   we provide our own #jcand-location-clear button instead */
#jcand-location-search::-webkit-search-cancel-button,
#jcand-location-search::-webkit-search-decoration { display: none; -webkit-appearance: none; }
#jcand-search-keyword::-webkit-search-cancel-button,
#jcand-search-keyword::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.jcand-hbar-icon { color: #6b7280; flex-shrink: 0; margin-right: 8px; }
.jcand-hbar-divider { width: 1px; background: #e5e7eb; margin: 12px 0; flex-shrink: 0; }
.jcand-hbar-clear {
    background: none; border: none; cursor: pointer; color: #9ca3af;
    font-size: 1.1rem; padding: 4px; border-radius: 50%; line-height: 1;
    flex-shrink: 0;
}
.jcand-hbar-clear:hover { background: #f3f4f6; color: #374151; }
.jcand-hbar-btn {
    border-radius: 0 14px 14px 0 !important;
    padding: 0 24px !important;
    font-size: .95rem !important;
    font-weight: 600 !important;
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 56px;
}

/* Location dropdown */
#jcand-location-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -16px; right: -16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.14);
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
}

/* ── Category field in search bar ────────────────────────────────────────── */
.jcand-hbar-category { flex: 0 0 auto; min-width: 180px; max-width: 220px; cursor: pointer; }
.jcand-hbar-category input { cursor: pointer; }

#jcand-category-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -16px; right: -16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.14);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    min-width: 220px;
}
.jcand-cat-search-wrap {
    padding: 10px 12px 8px;
    border-bottom: 1px solid #f3f4f6;
    position: sticky; top: 0; background: #fff;
}
.jcand-cat-search-input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: .83rem;
    color: #1e293b;
    outline: none;
}
.jcand-cat-search-input:focus { border-color: var(--jcand-primary); }
.jcand-cat-option {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 16px; font-size: .875rem; color: #374151;
    cursor: pointer; transition: background .12s;
}
.jcand-cat-option:hover { background: #f0f4ff; color: var(--jcand-primary); }
.jcand-cat-option.jcand-cat-selected { background: #eff6ff; color: var(--jcand-primary); font-weight: 600; }
.jcand-cat-option-icon { font-size: .95rem; width: 20px; text-align: center; }
.jcand-cat-no-results { padding: 14px 16px; font-size: .85rem; color: #9ca3af; text-align: center; }

/* ── Active filter chips ──────────────────────────────────────────────────── */
.jcand-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    min-height: 0;
}
.jcand-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
}
.jcand-chip-remove {
    background: none; border: none; color: rgba(255,255,255,.75); cursor: pointer;
    font-size: .95rem; line-height: 1; padding: 0; margin: 0;
}
.jcand-chip-remove:hover { color: #fff; }

/* ── Mobile filter toggle bar ─────────────────────────────────────────────── */
.jcand-mobile-filter-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--jcand-border);
    position: sticky; top: 0; z-index: 100;
}
.jcand-mobile-filter-btn {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1.5px solid var(--jcand-border);
    border-radius: 8px; padding: 8px 14px;
    font-size: .88rem; font-weight: 600; color: var(--jcand-text);
    cursor: pointer;
}
.jcand-mobile-filter-btn:hover { border-color: var(--jcand-primary); color: var(--jcand-primary); }
.jcand-filter-badge {
    background: var(--jcand-primary); color: #fff;
    border-radius: 50%; width: 18px; height: 18px;
    font-size: .7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.jcand-results-count-mobile { font-size: .82rem; color: var(--jcand-muted); }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.jcand-jobs-layout {
    display: flex; gap: 24px;
    padding: 28px 24px;
    max-width: 1260px; margin: 0 auto;
    align-items: flex-start;
}

/* ── Filter sidebar ───────────────────────────────────────────────────────── */
.jcand-filters-panel {
    width: 256px; flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--jcand-border);
    border-radius: 14px;
    padding: 0;
    position: sticky; top: 16px;
    overflow: hidden;
}
.jcand-filters-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--jcand-border);
}
.jcand-filters-head h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.jcand-filters-clear-all {
    background: none; border: none; color: var(--jcand-primary);
    font-size: .8rem; font-weight: 600; cursor: pointer; padding: 0;
}
.jcand-filters-clear-all:hover { text-decoration: underline; }

.jcand-filter-section { border-bottom: 1px solid var(--jcand-border); }
.jcand-filter-section:last-child { border-bottom: none; }

.jcand-filter-section-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; cursor: pointer; user-select: none;
    font-size: .88rem; font-weight: 600; color: var(--jcand-text);
}
.jcand-filter-section-head:hover { background: var(--jcand-bg); }
.jcand-filter-chevron { transition: transform .2s; color: var(--jcand-muted); }
.jcand-section-collapsed .jcand-filter-chevron { transform: rotate(-90deg); }
.jcand-section-collapsed .jcand-filter-section-body { display: none; }

.jcand-filter-section-body { padding: 4px 20px 16px; }

/* Custom checkbox */
.jcand-filter-option {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 0; cursor: pointer; font-size: .875rem; color: var(--jcand-text);
}
.jcand-filter-option input[type="checkbox"] { display: none; }
.jcand-filter-check {
    width: 18px; height: 18px; flex-shrink: 0;
    border: 2px solid #d1d5db; border-radius: 5px;
    background: #fff; transition: all .15s;
    display: flex; align-items: center; justify-content: center;
    /* Fix: relative positioning so ::after pseudo-element can be centered absolutely */
    position: relative;
}
.jcand-filter-option input:checked ~ .jcand-filter-check {
    background: var(--jcand-primary); border-color: var(--jcand-primary);
}
.jcand-filter-option input:checked ~ .jcand-filter-check::after {
    content: ''; display: block; width: 5px; height: 9px;
    border: 2px solid #fff; border-top: none; border-left: none;
    transform: rotate(45deg) translateY(-1px);
}
.jcand-filter-label { flex: 1; }
.jcand-filter-option:hover .jcand-filter-check { border-color: var(--jcand-primary); }

/* Radio check variant — circle indicator */
.jcand-filter-check--radio {
    border-radius: 50%;
    /* Fix: ensure flex centering is explicitly set for cross-browser consistency */
    display: flex; align-items: center; justify-content: center;
}
.jcand-filter-option input[type="radio"] { display: none; }
.jcand-filter-option input[type="radio"]:checked ~ .jcand-filter-check--radio {
    background: var(--jcand-primary); border-color: var(--jcand-primary);
}
/* Fix: use absolute centering instead of margin:auto — works reliably in
   Safari, Firefox, and Chrome without needing the parent to be a flex container */
.jcand-filter-option input[type="radio"]:checked ~ .jcand-filter-check--radio::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
}

/* Fix: ensure the selected state visually activates — the native radio
   :checked state is hidden (display:none on the input) so we rely solely
   on the sibling combinator; add an explicit focus-visible ring too */
.jcand-filter-option input[type="radio"]:focus-visible ~ .jcand-filter-check--radio {
    outline: 2px solid var(--jcand-primary);
    outline-offset: 2px;
}
.jcand-filter-option input[type="checkbox"]:focus-visible ~ .jcand-filter-check {
    outline: 2px solid var(--jcand-primary);
    outline-offset: 2px;
}

/* ── Job Type pill buttons ──────────────────────────────────────────────── */
.jcand-jobtype-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 2px 0 4px;
}
.jcand-jobtype-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border: 1.5px solid var(--jcand-border);
    border-radius: 30px;
    background: #fff;
    color: var(--jcand-text);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .16s ease;
    font-family: var(--jcand-font);
    line-height: 1;
    white-space: nowrap;
}
.jcand-jobtype-pill:hover {
    border-color: var(--jcand-primary);
    color: var(--jcand-primary);
    background: rgba(37,99,235,.04);
}
.jcand-jobtype-pill--active {
    background: var(--jcand-primary);
    border-color: var(--jcand-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.jcand-jobtype-pill--active:hover {
    background: var(--jcand-primary-d);
    border-color: var(--jcand-primary-d);
    color: #fff;
}
.jcand-jobtype-pill-icon { font-size: .85rem; }
.jcand-filter-type-hidden { display: none !important; }

/* ── Category badge on job card ─────────────────────────────────────────── */
.jcand-badge-category {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: .7rem;
    font-weight: 600;
    gap: 4px;
}

/* Category sidebar filter */
.jcand-category-filter-search-wrap {
    padding: 0 0 10px;
}
.jcand-category-filter-search {
    width: 100%;
    border: 1.5px solid var(--jcand-border);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: .82rem;
    color: var(--jcand-text);
    outline: none;
    font-family: var(--jcand-font);
    background: var(--jcand-bg);
}
.jcand-category-filter-search:focus { border-color: var(--jcand-primary); background: #fff; }
.jcand-sidebar-category-list { max-height: 220px; overflow-y: auto; }
.jcand-sidebar-category-list::-webkit-scrollbar { width: 4px; }
.jcand-sidebar-category-list::-webkit-scrollbar-track { background: transparent; }
.jcand-sidebar-category-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
.jcand-category-option[style*="display:none"] { display: none !important; }

/* Salary inputs */
.jcand-salary-inputs { display: flex; align-items: center; gap: 8px; }
.jcand-salary-input-wrap { position: relative; flex: 1; }
.jcand-salary-prefix { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: .8rem; color: var(--jcand-muted); }
.jcand-salary-inputs input { width: 100%; padding: 8px 8px 8px 24px; border: 1.5px solid var(--jcand-border); border-radius: 7px; font-size: .82rem; }
.jcand-salary-inputs input:focus { outline: none; border-color: var(--jcand-primary); }
.jcand-salary-sep { color: var(--jcand-muted); font-size: .8rem; }

/* Toggle switch */
.jcand-filter-section--inline .jcand-filter-section-head { display: none; }
.jcand-filter-section--inline .jcand-filter-section-body { padding: 14px 20px; }
.jcand-filter-toggle-label { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: .875rem; font-weight: 600; }
.jcand-toggle-switch { position: relative; }
.jcand-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.jcand-toggle-track {
    display: block; width: 40px; height: 22px;
    background: #d1d5db; border-radius: 11px; transition: background .2s; position: relative;
}
.jcand-toggle-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: left .2s;
}
.jcand-toggle-input:checked ~ .jcand-toggle-track { background: var(--jcand-primary); }
.jcand-toggle-input:checked ~ .jcand-toggle-track .jcand-toggle-thumb { left: 21px; }

/* ── Results area ─────────────────────────────────────────────────────────── */
.jcand-jobs-results { flex: 1; min-width: 0; }
.jcand-results-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; gap: 12px;
}
.jcand-results-meta { font-size: .88rem; color: var(--jcand-muted); font-weight: 500; }
.jcand-sort-select {
    border: 1.5px solid var(--jcand-border); border-radius: 8px;
    padding: 7px 10px; font-size: .82rem; color: var(--jcand-text);
    background: #fff; cursor: pointer;
}
.jcand-sort-select:focus { outline: none; border-color: var(--jcand-primary); }

/* ══════════════════════════════════════════════════════════════════
   JOB LISTING — Grid card layout (matches homepage "Latest Jobs")
══════════════════════════════════════════════════════════════════ */

/* Grid container — auto-fill cards */
.jcand-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    align-items: stretch; /* equal height cards per row */
}

@media (min-width: 900px) {
    .jcand-jobs-layout { gap: 32px; }
}

/* ═══════════════════════════════════════════════════════════════
   Job card — visual design matches homepage "Top Featured Jobs"
   ═══════════════════════════════════════════════════════════════ */

/* ── Card shell ── */
.jcand-job-card {
    background: var(--jcand-surface);
    border: 1.5px solid var(--jcand-border);
    border-radius: 16px;
    transition: transform .22s cubic-bezier(.4,0,.2,1),
                box-shadow .22s cubic-bezier(.4,0,.2,1),
                border-color .22s;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%; /* fill grid cell so all cards in a row are equal height */
}
/* Gradient overlay on hover — matches homepage jcand-job-card::before */
.jcand-job-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,.035) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .22s;
    pointer-events: none;
}
.jcand-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(37,99,235,.13);
    border-color: rgba(37,99,235,.35);
}
.jcand-job-card:hover::before { opacity: 1; }

/* ── Card inner — vertical flex ── */
.jcand-job-card-inner {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 2px;
    flex: 1;
}

/* ── Top row: logo (left) + badge (right) — matches homepage jc-card-top ── */
.jcand-job-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 10px;
}
.jcand-job-logo-wrap { flex-shrink: 0; }
.jcand-company-logo {
    width: 50px; height: 50px; object-fit: contain;
    border-radius: 10px; border: 1px solid var(--jcand-border);
    background: var(--jcand-bg);
}
.jcand-logo-placeholder {
    width: 50px; height: 50px; border-radius: 10px;
    background: var(--jcand-bg);
    border: 1px solid var(--jcand-border);
    color: var(--jcand-primary); font-size: 1.4rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ── Top-right badge (New / Urgent / type) — matches homepage jc-badge-top ── */
.jcand-top-badge {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; border-radius: 999px;
    padding: 3px 10px; white-space: nowrap; flex-shrink: 0;
}
.jcand-top-badge--new    { color: var(--jcand-success); background: #dcfce7; }
.jcand-top-badge--urgent { color: #b45309;              background: #fef3c7; }
.jcand-top-badge--type   { color: #6d28d9;              background: #ede9fe; }

/* ── Title row: title + save btn ── */
.jcand-job-title-wrap { min-width: 0; margin-bottom: 8px; }
.jcand-title-save-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
/* Job title — Sora font, matches homepage jc-title */
.jcand-job-title {
    font-family: 'Sora', sans-serif;
    font-size: 1rem; font-weight: 700; margin: 0 0 2px; line-height: 1.35;
    min-width: 0;
}
.jcand-job-title-link {
    color: var(--jcand-text); text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.jcand-job-title-link:hover { color: var(--jcand-primary); text-decoration: none; }
/* Company name in primary blue */
.jcand-job-company { font-size: .88rem; color: var(--jcand-primary); margin: 0px; font-weight: 500; }

/* Save / heart button — hidden on job listing page */
.jcand-save-job-btn { display: none; }

/* ── Meta row: location, type, exp, deadline — matches homepage jc-meta ── */
.jcand-card-meta { display: flex; flex-wrap: wrap; margin-bottom: 8px; gap: 4px 12px; align-items: center; }
.jcand-card-meta-item {
    display: flex; align-items: center; gap: 4px;
    font-size: .8rem; color: var(--jcand-muted); white-space: nowrap;
}
.jcand-card-meta-item svg { flex-shrink: 0; opacity: .7; }

/* Deadline chips inside meta */
.jcand-deadline { font-weight: 600; }
.jcand-deadline--ok   { color: #b45309; }
.jcand-deadline--warn { color: #b91c1c; }

/* ── Skills/tags — matches reference UI (rectangular pills) ── */
.jcand-card-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.jcand-skill-pill {
    background: transparent; color: var(--jcand-text);
    font-size: .78rem; font-weight: 500;
    padding: 4px 12px; border-radius: 6px;
    border: 1px solid var(--jcand-border);
}
.jcand-skill-more {
    font-size: .75rem; color: var(--jcand-muted);
    padding: 4px 8px; border-radius: 6px;
    background: var(--jcand-bg); border: 1px solid var(--jcand-border);
}

/* ── Card footer — salary + apply — matches homepage jc-footer ── */
.jcand-job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid var(--jcand-border);
    flex-wrap: wrap;
}
/* Salary — Sora bold, matches homepage jc-salary */
.jcand-job-card-footer-salary {
    font-family: 'Sora', sans-serif;
    font-size: .95rem; font-weight: 700; color: var(--jcand-text);
    white-space: nowrap;
}
.jcand-job-card-footer-salary span { font-weight: 400; font-size: .78rem; color: var(--jcand-muted); }

.jcand-job-card-footer-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Apply Now button — matches homepage jc-apply-btn */
.jcand-apply-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--jcand-primary); color: #fff;
    font-size: .8rem; font-weight: 700; border: none; cursor: pointer;
    padding: 7px 16px; border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    transition: background .18s;
    white-space: nowrap;
}
.jcand-apply-btn:hover { background: var(--jcand-primary-d, #1d4ed8); color: #fff; text-decoration: none; }

/* Keep .jcand-job-apply-btn alias for any other usage */
.jcand-job-apply-btn { }

/* View ghost button — kept for any usage outside cards */
.jcand-btn-ghost {
    background: transparent; color: var(--jcand-primary);
    border: 1.5px solid #c7d2fe;
}
.jcand-btn-ghost:hover { background: #ede9fe; }
.jcand-btn-sm { padding: 8px 16px !important; font-size: .82rem !important; font-weight: 600; }

/* ── Skeleton loading ── */
.jcand-jobs-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.jcand-job-card.jcand-skeleton { pointer-events: none; min-height: 180px; }
@keyframes jcandSkelPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.jcand-skel-logo, .jcand-skel-line {
    background: #e5e7eb; border-radius: 8px;
    animation: jcandSkelPulse 1.4s ease-in-out infinite;
}
.jcand-skel-logo  { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }
.jcand-skel-title { height: 16px; width: 60%; margin-bottom: 6px; }
.jcand-skel-sub   { height: 12px; width: 38%; margin-bottom: 6px; }
.jcand-skel-meta  { height: 12px; width: 80%; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .jcand-jobs-grid         { grid-template-columns: 1fr; gap: 14px; }
    .jcand-jobs-skeleton     { grid-template-columns: 1fr; }
    .jcand-job-card-inner    { padding: 2px; gap: 3px; }
    .jcand-job-card-footer   { flex-wrap: wrap; }
    .jcand-job-card-footer-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* Dark mode card */
html.jcand-dark .jcand-job-card { background: var(--jcand-surface); border-color: var(--jcand-border); }
html.jcand-dark .jcand-job-card:hover { box-shadow: 0 10px 36px rgba(0,0,0,.3); border-color: rgba(37,99,235,.4); }
html.jcand-dark .jcand-company-logo { background: rgba(255,255,255,.05); border-color: var(--jcand-border); }

/* ── Load more ────────────────────────────────────────────────────────────── */
.jcand-load-more-btn { min-width: 200px; }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.jcand-empty-state { text-align: center; padding: 56px 24px; }
.jcand-empty-icon-wrap { margin-bottom: 16px; color: #d1d5db; }
.jcand-empty-state h3 { font-size: 1.1rem; margin: 0 0 8px; }
.jcand-empty-state p  { color: var(--jcand-muted); font-size: .9rem; margin: 0 0 20px; }

/* ── Filter drawer overlay (mobile) ──────────────────────────────────────── */
.jcand-filter-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 199; backdrop-filter: blur(2px);
}
.jcand-filter-overlay.jcand-overlay-visible { display: block; }
.jcand-no-scroll { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════════════════
 * APPLY MODAL — Modern design
 * ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════
 * APPLY MODAL — full theme overhaul
 * ═══════════════════════════════════════════════════════════════════════════ */
.jcand-modal {
    position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
    z-index: 100000; padding: 16px;
}
.jcand-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(10, 8, 30, 0.65);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.jcand-modal-box {
    position: relative; z-index: 1;
    background: #ffffff;
    border-radius: 24px;
    width: 100%; max-width: 500px;
    max-height: 92vh; overflow-y: auto; overflow-x: visible;
    box-shadow: 0 32px 80px rgba(0,0,0,.30), 0 0 0 1px rgba(255,255,255,.06);
    padding: 0;
    animation: jcandModalIn .24s cubic-bezier(.34,1.4,.64,1);
    scroll-behavior: smooth;
}
/* Scrollbar styling inside modal */
.jcand-modal-box::-webkit-scrollbar { width: 5px; }
.jcand-modal-box::-webkit-scrollbar-thumb { background: #e0e0ee; border-radius: 8px; }

@keyframes jcandModalIn {
    from { opacity:0; transform:scale(.93) translateY(16px); }
    to   { opacity:1; transform:none; }
}

/* ── Modal close button ────────────────────────────────────────────────── */
.jcand-modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 100;
    background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.80); border-radius: 50%;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; line-height: 0;
    transition: background .15s, transform .15s, border-color .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.08);
    isolation: isolate;
    /* Ensure it stays on top of brand gradient AND white content */
    mix-blend-mode: normal;
}
.jcand-modal-close:hover {
    background: rgba(0,0,0,.70);
    border-color: #fff;
    transform: scale(1.08);
}
.jcand-modal-close svg { pointer-events: none; }

/* ── Gradient header strip (wraps brand + auth tabs) ───────────────────── */
.jcand-modal-brand {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    text-align: center;
    padding: 36px 32px 24px;
    border-radius: 24px 24px 0 0;
    margin-bottom: 0;
    position: relative;
    overflow: visible;
}
/* Decorative radial glow — clipped inside brand only */
.jcand-modal-brand::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,.18) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    z-index: 0;
}
.jcand-modal-brand-icon {
    font-size: 2.4rem; margin-bottom: 10px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
.jcand-modal-brand h2 {
    font-size: 1.4rem; font-weight: 800; margin: 0 0 6px;
    color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.jcand-modal-subtitle {
    font-size: .88rem; color: rgba(255,255,255,.82); margin: 0;
}

/* ── Auth tabs — sit inside gradient header ────────────────────────────── */
.jcand-auth-tabs {
    display: flex; gap: 0;
    background: rgba(255,255,255,.18);
    border-radius: 12px; padding: 4px; margin: 20px 0 0;
    position: relative; z-index: 1;
}
.jcand-auth-tab {
    flex: 1; text-align: center; padding: 10px 16px; border: none;
    background: transparent; border-radius: 9px;
    font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.80);
    cursor: pointer; transition: all .18s; position: relative; z-index: 1;
    letter-spacing: .01em;
}
.jcand-auth-tab:hover:not(.active) {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.jcand-auth-tab.active {
    background: #fff; color: #4f46e5;
    box-shadow: 0 2px 12px rgba(0,0,0,.20);
    font-weight: 700;
}

/* ── Auth form body (below header) ────────────────────────────────────── */
.jcand-auth-form {
    display: flex; flex-direction: column; gap: 13px;
    padding: 24px 28px 28px;
}
.jcand-input-icon-wrap {
    position: relative; display: flex; align-items: center;
    border: 1.5px solid #e5e7eb; border-radius: 12px;
    background: #f9fafb; transition: border-color .15s, box-shadow .15s, background .15s;
    overflow: visible;
}
.jcand-input-icon-wrap:focus-within {
    border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.14);
    background: #fff;
}
.jcand-input-icon { position: absolute; left: 14px; color: #9ca3af; pointer-events: none; flex-shrink: 0; }
.jcand-input-icon-wrap input {
    border: none; outline: none; background: transparent;
    padding: 14px 14px 14px 40px; font-size: .9rem; width: 100%;
    color: #111827; font-family: inherit;
}
.jcand-input-icon-wrap input::placeholder { color: #9ca3af; }
.jcand-pw-toggle {
    position: absolute; right: 12px;
    background: none; border: none; cursor: pointer;
    color: #9ca3af; font-size: .95rem; padding: 4px;
    transition: color .15s;
}
.jcand-pw-toggle:hover { color: #6366f1; }
.jcand-field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jcand-auth-row { display: flex; justify-content: flex-end; margin-top: -4px; }

/* ── Mini-register phone field (full-width, standalone) ── */
.jcand-mini-phone-wrap {
    border: 1.5px solid #e5e7eb; border-radius: 12px;
    background: #f9fafb; overflow: visible;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.jcand-mini-phone-wrap:focus-within {
    border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.14);
    background: #fff;
}
.jcand-mini-phone-wrap .jcand-phone-widget { width: 100%; }
.jcand-mini-phone-wrap .jcand-phone-input-row {
    border: none; border-radius: 0; box-shadow: none; background: transparent;
}
.jcand-mini-phone-wrap .jcand-phone-input-row:focus-within { box-shadow: none; }
.jcand-mini-phone-wrap .jcand-phone-selector {
    background: transparent; border-right: 1px solid #e5e7eb; border-radius: 0;
}
.jcand-mini-phone-wrap .jcand-phone-selector:hover { background: #f3f4f6; }
.jcand-mini-phone-wrap .jcand-phone-number-input { padding: 13px 14px 13px 10px !important; font-size: .9rem !important; }
.jcand-forgot-link { font-size: .8rem; color: #6366f1; text-decoration: none; font-weight: 500; }
.jcand-forgot-link:hover { text-decoration: underline; }

/* ── Hero / primary CTA button ─────────────────────────────────────────── */
.jcand-btn-hero {
    min-height: 50px; font-size: .95rem; font-weight: 700;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(99,102,241,.40);
    transition: transform .15s, box-shadow .15s, opacity .15s !important;
    letter-spacing: .01em;
}
.jcand-btn-hero:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,.50) !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%) !important;
}
.jcand-btn-hero:disabled {
    background: #d1d5db !important; box-shadow: none !important;
    cursor: not-allowed;
}

/* ── "Almost There!" — profile completion panel ────────────────────────── */
#jcand-panel-complete {
    padding: 0;
}
/* Gradient top strip identical to brand */
#jcand-panel-complete > h2 {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 60%, #ec4899 100%);
    color: #fff; font-size: 1.35rem; font-weight: 800;
    margin: 0; padding: 28px 28px 18px;
    border-radius: 24px 24px 0 0;
    text-align: center;
    position: relative;
}
#jcand-panel-complete > h2::after {
    content: '⚡'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem;
}
#jcand-panel-complete > .jcand-modal-subtitle {
    color: #4b5563; text-align: center;
    margin: 0; font-size: .88rem;
    padding: 14px 28px 0;
}
/* Progress bar */
.jcand-completion-bar-wrap.jcand-modal-completion {
    margin: 16px 28px 4px;
    background: #e5e7eb; border-radius: 99px; height: 10px; overflow: hidden;
}
.jcand-completion-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    border-radius: 99px;
    transition: width .4s ease;
}
.jcand-modal-completion-pct {
    text-align: right; font-size: .78rem; font-weight: 600;
    color: #6b7280; padding: 4px 28px 0;
}
/* Dynamic field rows */
#jcand-modal-fields {
    padding: 14px 28px 0;
    display: flex; flex-direction: column; gap: 10px;
}
#jcand-modal-fields input,
#jcand-modal-fields select,
#jcand-modal-fields textarea {
    width: 100%; padding: 11px 14px; border-radius: 10px;
    border: 1.5px solid #e5e7eb; font-size: .88rem;
    font-family: inherit; color: #111827; outline: none;
    transition: border-color .15s, box-shadow .15s;
    background: #f9fafb;
}
#jcand-modal-fields input:focus,
#jcand-modal-fields select:focus,
#jcand-modal-fields textarea:focus {
    border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.14);
    background: #fff;
}
#jcand-modal-fields label {
    font-size: .78rem; font-weight: 700; color: #374151;
    display: block; margin-bottom: 4px;
}
#jcand-continue-apply-btn {
    margin: 18px 28px 28px;
    width: calc(100% - 56px);
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%) !important;
    box-shadow: 0 4px 14px rgba(239,68,68,.35) !important;
}
#jcand-continue-apply-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706 0%, #dc2626 100%) !important;
    box-shadow: 0 6px 20px rgba(239,68,68,.45) !important;
}

/* ── Application form panel ─────────────────────────────────────────────── */
#jcand-panel-apply {
    padding: 24px 28px 28px;
}
.jcand-apply-job-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
    padding-bottom: 18px; border-bottom: 2px solid #f3f4f6;
}
.jcand-apply-job-logo img,
.jcand-apply-job-logo .jcand-logo-placeholder {
    width: 52px; height: 52px; border-radius: 12px;
    border: 1.5px solid #e5e7eb;
}
.jcand-apply-job-header h2 {
    font-size: 1.05rem; margin: 0 0 2px; font-weight: 700; color: #111827;
}
.jcand-apply-company { font-size: .83rem; color: #6b7280; margin: 0; }
.jcand-apply-section-label {
    display: flex; align-items: center; gap: 7px;
    font-size: .82rem; font-weight: 700; color: #374151; margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: .04em;
}
.jcand-apply-section-label .jcand-optional {
    font-weight: 400; color: #9ca3af; font-size: .76rem;
    margin-left: 4px; text-transform: none; letter-spacing: 0;
}

/* Resume radio list */
.jcand-resume-radio-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.jcand-resume-radio {
    display: flex; align-items: center; gap: 12px;
    border: 1.5px solid #e5e7eb; border-radius: 12px;
    padding: 11px 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.jcand-resume-radio.selected { border-color: var(--jcand-primary); background: #eef2ff; }
.jcand-resume-radio-input { display: none; }
.jcand-resume-radio-content { display: flex; align-items: center; gap: 10px; }
.jcand-resume-radio-content svg { color: var(--jcand-primary); flex-shrink: 0; }
.jcand-resume-name { font-size: .85rem; font-weight: 600; }
.jcand-primary-badge, .jcand-new-badge {
    display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 7px;
    border-radius: 20px; text-transform: uppercase;
}
.jcand-primary-badge { background: #dcfce7; color: #15803d; }
.jcand-new-badge     { background: #dbeafe; color: #1d4ed8; }

/* Upload zone */
.jcand-resume-upload-zone { margin-top: 8px; }
.jcand-upload-drop-area {
    border: 2px dashed #c7d2fe; border-radius: 12px;
    padding: 20px 16px; text-align: center; cursor: pointer;
    transition: border-color .15s, background .15s; color: var(--jcand-muted);
}
.jcand-upload-drop-area:hover, .jcand-upload-drop-area.jcand-drop-active {
    border-color: var(--jcand-primary); background: #eef2ff;
}
.jcand-upload-drop-area svg { color: var(--jcand-primary); margin-bottom: 8px; }
.jcand-upload-drop-area p { font-size: .85rem; margin: 0 0 4px; color: var(--jcand-text); }
.jcand-upload-link { background: none; border: none; color: var(--jcand-primary); font-weight: 600; cursor: pointer; text-decoration: underline; }
.jcand-upload-new-link { display: inline-block; margin-top: 10px; background: none; border: none; padding: 0; font-size: .83rem; color: var(--jcand-primary); font-weight: 500; cursor: pointer; text-decoration: none; }
.jcand-upload-hint { font-size: .75rem; color: var(--jcand-muted); }
.jcand-upload-progress-wrap { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.jcand-upload-progress-bar { flex: 1; height: 6px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.jcand-upload-progress-fill { height: 100%; background: var(--jcand-primary); border-radius: 99px; transition: width .2s; }
.jcand-upload-pct { font-size: .75rem; color: var(--jcand-muted); min-width: 30px; text-align: right; }

/* Cover letter */
#jcand-cover-letter { width: 100%; resize: vertical; border: 1.5px solid var(--jcand-border); border-radius: 10px; padding: 12px; font-size: .88rem; }
#jcand-cover-letter:focus { outline: none; border-color: var(--jcand-primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }

/* Success panel */
.jcand-success-wrap { text-align: center; padding: 20px 0; }
.jcand-success-anim { width: 80px; height: 80px; margin: 0 auto 16px; }
.jcand-success-anim svg { width: 100%; height: 100%; }
@keyframes drawCircle { from { stroke-dashoffset: 238; } to { stroke-dashoffset: 0; } }
@keyframes drawCheck  { from { stroke-dashoffset: 60;  } to { stroke-dashoffset: 0;  } }
.jcand-check-circle { stroke-dasharray: 238; stroke-dashoffset: 238; animation: drawCircle .5s .1s ease forwards; }
.jcand-check-path   { stroke-dasharray: 60;  stroke-dashoffset: 60;  animation: drawCheck  .35s .5s ease forwards; }
.jcand-success-wrap h2 { font-size: 1.3rem; font-weight: 800; color: var(--jcand-success); margin: 0 0 8px; }
.jcand-success-wrap p  { color: var(--jcand-muted); font-size: .9rem; margin: 0 0 20px; }
.jcand-success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Notice info */
.jcand-notice-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Apply section total */
.jcand-apply-resume-section { margin-bottom: 18px; }

/* "Applying as…" candidate strip */
.jcand-apply-as-strip {
    display: flex; align-items: center; gap: 12px;
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
    padding: 10px 14px; margin-bottom: 16px;
}
.jcand-apply-as-avatar {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
    background: var(--jcand-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 700; letter-spacing: .02em;
}
.jcand-apply-as-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jcand-apply-as-name { font-size: .88rem; font-weight: 600; color: #166534; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jcand-apply-as-meta { font-size: .76rem; color: #15803d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═══════════════════════════════════════════════════════════════════════════
 * LOCATION SEARCH BOX (sidebar & hero bar shared styles)
 * ═══════════════════════════════════════════════════════════════════════════ */
.jcand-loc-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; cursor: pointer; font-size: .87rem; transition: background .1s; gap: 8px;
}
.jcand-loc-item:hover, .jcand-loc-item--active { background: #f5f3ff; }
.jcand-loc-name { flex: 1; color: var(--jcand-text); }
.jcand-loc-type {
    font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.jcand-loc-type--city     { background: #dbeafe; color: #1d4ed8; }
.jcand-loc-type--district { background: #dcfce7; color: #15803d; }
.jcand-loc-type--state    { background: #fef9c3; color: #a16207; }
.jcand-loc-no-results, .jcand-loc-searching { padding: 14px; font-size: .85rem; color: var(--jcand-muted); text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════════
 * JOB DETAIL PAGE
 * ═══════════════════════════════════════════════════════════════════════════ */
.jcand-job-detail-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }
.jcand-job-detail-back { margin-bottom: 20px; }
.jcand-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--jcand-primary); text-decoration: none; font-size: .88rem; font-weight: 600;
    background: #ede9fe; padding: 7px 14px; border-radius: 8px; transition: background .15s;
}
.jcand-back-link:hover { background: #ddd6fe; }
.jcand-detail-header-card {
    display: flex; align-items: flex-start; gap: 20px;
    background: #fff; border: 1.5px solid var(--jcand-border); border-radius: 16px;
    padding: 28px; margin-bottom: 24px; flex-wrap: wrap;
}
.jcand-detail-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 12px; border: 1px solid var(--jcand-border); padding: 6px; }
.jcand-logo-placeholder--lg { width: 80px; height: 80px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; background: linear-gradient(135deg, var(--jcand-primary), #7c3aed); color: #fff; }
.jcand-detail-headline { flex: 1; min-width: 0; }
.jcand-detail-job-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.jcand-detail-company-name { font-size: 1rem; color: var(--jcand-muted); margin: 0 0 12px; }
.jcand-detail-meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.jcand-badge-loc    { background: #f0fdf4; color: #15803d; }
.jcand-badge-remote { background: #eff6ff; color: #1d4ed8; }
.jcand-detail-apply-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.jcand-btn-lg { padding: 14px 30px !important; font-size: 1rem !important; font-weight: 700 !important; }
.jcand-deadline-badge { font-size: .82rem; }

.jcand-detail-body { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
/* ── Skills section on detail page ── */
.jcand-detail-skills-wrap .jcand-card-skills { gap: 8px; margin-bottom: 8px; }
.jcand-skill-pill--detail {
    font-size: .82rem;
    padding: 5px 14px;
}

.jcand-detail-section { background: #fff; border: 1.5px solid var(--jcand-border); border-radius: 14px; padding: 24px 26px; margin-bottom: 18px; }
.jcand-detail-section h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--jcand-border); }
.jcand-detail-description p { margin: 0 0 12px; line-height: 1.75; font-size: .92rem; }
.jcand-detail-description ul, .jcand-detail-description ol { padding-left: 20px; margin: 0 0 12px; }
.jcand-detail-description li { margin-bottom: 5px; line-height: 1.65; font-size: .92rem; }
.jcand-detail-info-card { background: #fff; border: 1.5px solid var(--jcand-border); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.jcand-detail-info-card h3 { font-size: .95rem; font-weight: 700; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--jcand-border); }
.jcand-detail-overview-list { list-style: none; margin: 0; padding: 0; }
.jcand-overview-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--jcand-border); font-size: .87rem; }
.jcand-overview-item:last-child { border-bottom: none; }
.jcand-overview-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.jcand-overview-label { display: block; font-weight: 600; margin-bottom: 1px; }
.jcand-overview-val   { display: block; color: var(--jcand-muted); }
.jcand-company-link { font-size: .86rem; color: var(--jcand-primary); text-decoration: none; }
.jcand-company-link:hover { text-decoration: underline; }

/* Change 4 + 5: Company card enhancements */
.jcand-company-card-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.jcand-company-card-logo {
    width: 48px; height: 48px; object-fit: contain; border-radius: 10px;
    border: 1px solid var(--jcand-border); padding: 4px; flex-shrink: 0;
}
.jcand-logo-placeholder--sm {
    width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--jcand-primary), #7c3aed);
    color: #fff; font-size: 1.2rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.jcand-company-category-badge {
    display: inline-block; font-size: .7rem; font-weight: 600;
    padding: 2px 10px; border-radius: 20px; letter-spacing: .03em;
    background: #e0f2fe; color: #0369a1; margin-top: 4px;
}
.jcand-company-desc-wrap { margin: 8px 0; }
.jcand-company-desc-short, .jcand-company-desc-full {
    font-size: .86rem; line-height: 1.65; margin: 0 0 6px; color: var(--jcand-muted);
}
.jcand-link-btn {
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--jcand-primary); font-size: .82rem; font-weight: 600;
    text-decoration: none;
}

/* Change 7: Similar Jobs section */
.jcand-similar-jobs { margin-top: 32px; }
.jcand-similar-title {
    font-size: 1.1rem; font-weight: 800; margin: 0 0 16px;
    padding-bottom: 10px; border-bottom: 2px solid var(--jcand-border);
}
.jcand-similar-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (max-width: 640px) { .jcand-similar-grid { grid-template-columns: 1fr; } }
.jcand-sim-card {
    display: block; background: #fff; border: 1.5px solid var(--jcand-border);
    border-radius: 12px; padding: 16px; text-decoration: none; color: var(--jcand-text);
    transition: box-shadow .2s, border-color .2s, transform .15s;
}
.jcand-sim-card:hover {
    box-shadow: 0 6px 20px rgba(79,70,229,.1); border-color: #c7d2fe;
    transform: translateY(-2px);
}
.jcand-sim-card-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.jcand-sim-logo {
    width: 40px; height: 40px; object-fit: contain; border-radius: 8px;
    border: 1px solid var(--jcand-border); padding: 3px;
}
.jcand-logo-placeholder--sim {
    width: 40px; height: 40px; border-radius: 8px;
    background: linear-gradient(135deg, var(--jcand-primary), #7c3aed);
    color: #fff; font-size: 1rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.jcand-sim-title { font-size: .9rem; font-weight: 700; margin: 0 0 3px; line-height: 1.3; }
.jcand-sim-company { font-size: .78rem; color: var(--jcand-muted); margin: 0 0 5px; }
.jcand-sim-loc { font-size: .76rem; color: #6b7280; margin: 0; }
.jcand-detail-bottom-cta { background: linear-gradient(135deg, var(--jcand-primary), #7c3aed); border-radius: 14px; padding: 28px; text-align: center; margin-top: 24px; }
.jcand-detail-bottom-cta p { color: rgba(255,255,255,.85); margin: 0 0 14px; }
.jcand-detail-bottom-cta .jcand-btn-primary { background: #fff; color: var(--jcand-primary); border-color: #fff; }
.jcand-detail-bottom-cta .jcand-btn-primary:hover { background: #f0f0ff; }

/* ── Share this job ──────────────────────────────────────────────────────── */
.jcand-detail-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding: 18px 20px;
    background: var(--jcand-bg);
    border: 1px solid var(--jcand-border);
    border-radius: 12px;
}
.jcand-share-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--jcand-text);
    white-space: nowrap;
    margin-right: 4px;
}
.jcand-share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.jcand-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: background .15s, border-color .15s, transform .1s;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}
.jcand-share-btn svg { flex-shrink: 0; }
.jcand-share-btn:hover { transform: translateY(-1px); }
.jcand-share-wa  { background: #e7f9ef; color: #128c3e; border-color: #b7e5cc; }
.jcand-share-wa:hover  { background: #d0f2e1; border-color: #128c3e; }
.jcand-share-fb  { background: #e8f0fb; color: #1877f2; border-color: #b8d0f7; }
.jcand-share-fb:hover  { background: #d5e5f9; border-color: #1877f2; }
.jcand-share-tw  { background: #f0f0f0; color: #0f0f0f; border-color: #d0d0d0; }
.jcand-share-tw:hover  { background: #e4e4e4; border-color: #0f0f0f; }
.jcand-share-li  { background: #e8f1f8; color: #0a66c2; border-color: #b3d0ea; }
.jcand-share-li:hover  { background: #d4e6f4; border-color: #0a66c2; }
.jcand-share-tg  { background: #e8f4fd; color: #0088cc; border-color: #b3d9f2; }
.jcand-share-tg:hover  { background: #d4ecf9; border-color: #0088cc; }
.jcand-share-em  { background: #f5f5f5; color: #444444; border-color: #dddddd; }
.jcand-share-em:hover  { background: #ebebeb; border-color: #999999; }
.jcand-share-copy { background: var(--jcand-surface); color: var(--jcand-muted); border-color: var(--jcand-border); }
.jcand-share-copy:hover { background: var(--jcand-bg); color: var(--jcand-text); border-color: var(--jcand-primary); }
.jcand-share-url-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--jcand-border); width: 100%; }
.jcand-share-url-box { flex: 1; font-size: 12px; color: var(--jcand-muted); background: var(--jcand-bg); border: 1px solid var(--jcand-border); border-radius: 6px; padding: 7px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: monospace; }
.jcand-share-url-copy { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
 * WORK EXPERIENCE section (profile page)
 * ═══════════════════════════════════════════════════════════════════════════ */
.jcand-experience-row { border: 1.5px solid var(--jcand-border); border-radius: 10px; padding: 18px; margin-bottom: 16px; background: var(--jcand-bg); transition: border-color .2s; }
.jcand-experience-row:focus-within { border-color: var(--jcand-primary); }
.jcand-exp-row-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--jcand-border); }
.jcand-exp-row-label { font-size: .88rem; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input[type="month"].jcand-exp-from,
input[type="month"].jcand-exp-to { width: 100%; }
.jcand-exp-dates-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2px; }
.jcand-exp-description { width: 100%; resize: vertical; font-size: .87rem; line-height: 1.5; }

/* ── Education rows ────────────────────────────────────────── */
.jcand-education-row { border: 1.5px solid var(--jcand-border); border-radius: 10px; padding: 18px; margin-bottom: 16px; background: var(--jcand-bg); transition: border-color .2s; }
.jcand-education-row:focus-within { border-color: var(--jcand-primary); }
.jcand-edu-row-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--jcand-border); gap: 8px; }
.jcand-edu-row-label { font-size: .88rem; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--jcand-text); }
.jcand-edu-fields { grid-template-columns: 1fr 1fr auto; align-items: end; }
.jcand-edu-year-group { width: 120px; min-width: 100px; }
.jcand-edu-year-group input { width: 100%; }

/* ── Salary row with currency dropdown ─────────────────────── */
.jcand-salary-row { grid-template-columns: 1fr 1fr auto; align-items: end; }
.jcand-currency-group { width: 200px; min-width: 160px; }
.jcand-currency-group select { width: 100%; font-size: .85rem; }

/* ── Checkbox group (preferred job types) ─────────────────── */
.jcand-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.jcand-checkbox-group .jcand-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .86rem;
  cursor: pointer;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * RESPONSIVE
 * ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .jcand-detail-body { grid-template-columns: 1fr 280px; }
}

@media (max-width: 900px) {
    .jcand-mobile-filter-bar { display: flex; }
    .jcand-jobs-layout { padding: 16px; gap: 0; }
    .jcand-filters-panel {
        position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 88vw;
        z-index: 200; border-radius: 0 16px 16px 0;
        transform: translateX(-110%); transition: transform .3s cubic-bezier(.4,0,.2,1);
        overflow-y: auto; border: none; box-shadow: none;
    }
    .jcand-filters-panel.jcand-filters-open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.2); }
    .jcand-detail-body { grid-template-columns: 1fr; }
    /* Change 4: At 900px sidebar still shows first (overview + company card together),
       at 640px we further reorder so company card is between description sections */
    .jcand-detail-sidebar { order: -1; }
    .jcand-detail-header-card { flex-direction: row; flex-wrap: wrap; }
    .jcand-detail-apply-wrap { flex-direction: row; justify-content: flex-start; }
    .jcand-hbar { border-radius: 12px; }
}

@media (max-width: 640px) {
    .jcand-jobs-hero { padding: 36px 16px 28px; }
    .jcand-jobs-hero h1 { font-size: 1.6rem; color: #fff; }
    .jcand-hero-sub { font-size: .9rem; color: #fff; }
    /* Stacked search bar on mobile */
    .jcand-hbar {
        flex-direction: column;
        border-radius: 12px;
        overflow: hidden;
        gap: 0;
    }
    .jcand-hbar-field { padding: 0 14px; border-bottom: 1px solid #f3f4f6; }
    .jcand-hbar-field input { padding: 14px 4px; }
    .jcand-hbar-divider { display: none; }
    .jcand-hbar-btn { border-radius: 0 !important; min-height: 50px; justify-content: center; }
    #jcand-location-dropdown { left: 0; right: 0; }
    #jcand-category-dropdown { left: 0; right: 0; min-width: unset; }
    .jcand-hbar-category { max-width: unset; min-width: unset; }

    .jcand-jobs-layout { padding: 12px; }
    .jcand-job-card-inner { padding: 2px; }

    /* Change 5: Mobile detail page — improved first section */
    .jcand-detail-header-card {
        padding: 16px; gap: 0; flex-direction: column; align-items: stretch;
        border-radius: 14px;
    }
    /* Row 1: Logo + Title side by side */
    .jcand-detail-logo-wrap {
        float: left; margin-right: 14px; margin-bottom: 4px;
    }
    .jcand-detail-logo { width: 58px; height: 58px; border-radius: 12px; }
    .jcand-logo-placeholder--lg { width: 58px; height: 58px; font-size: 1.4rem; border-radius: 12px; }
    .jcand-detail-headline { overflow: hidden; }
    .jcand-detail-job-title { font-size: 1.15rem; line-height: 1.3; margin-bottom: 4px; }
    .jcand-detail-company-name { font-size: .9rem; margin-bottom: 10px; }
    .jcand-detail-meta-row { clear: both; }
    /* Row 2: Apply button full-width below */
    .jcand-detail-apply-wrap {
        display: flex; flex-direction: row; width: 100%;
        justify-content: space-between; align-items: center;
        border-top: 1px solid var(--jcand-border); padding-top: 14px; margin-top: 14px;
        clear: both;
        gap: 10px;
    }
    .jcand-detail-apply-wrap .jcand-btn-lg {
        flex: 1; justify-content: center; text-align: center;
        padding: 13px 18px !important; font-size: .95rem !important;
        border-radius: 10px !important;
    }
    .jcand-detail-apply-wrap .jcand-save-job-btn {
        flex-shrink: 0; width: 44px; height: 44px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 10px; font-size: 1.1rem;
    }
    .jcand-deadline-badge { font-size: .78rem; }
    .jcand-detail-section { padding: 16px; }
    .jcand-detail-info-card { padding: 14px; }
    .jcand-detail-bottom-cta { padding: 20px 16px; }

    /* Change 4: Mobile — sidebar reorder so "About the Company" appears AFTER job description */
    .jcand-detail-sidebar { order: 0; }        /* reset the -1 set at 900px */
    .jcand-detail-sidebar .jcand-detail-info-card { order: 2; }   /* Job Overview */
    .jcand-detail-company-card { order: 1; }   /* About the Company — first in sidebar, which now appears below description on mobile */
    /* On mobile the body is a single column; we push company card between description and overview */
    .jcand-detail-main { order: 1; }
    .jcand-detail-sidebar { order: 2; }
    /* Within the stacked layout, company card comes right after description: */
    .jcand-detail-company-card { margin-top: 0; }
    /* Re-order within sidebar: company card first, then overview */
    .jcand-detail-sidebar { display: flex; flex-direction: column; }
    .jcand-detail-company-card { order: -1; }

    /* Modal mobile — bottom sheet style */
    .jcand-modal { align-items: flex-end; padding: 0; }
    /* Keep padding:0 on the box itself — each panel manages its own internal padding.
       The gradient brand header must bleed edge-to-edge to the rounded corners. */
    .jcand-modal-box {
        border-radius: 20px 20px 0 0;
        max-height: 88vh;   /* leave visible space above so users know they can dismiss */
        min-height: 50vh;   /* prevent a tiny sheet when content is short */
        padding: 0;
        max-width: 100%;
        width: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Sticky gradient brand header so it always shows while scrolling */
    .jcand-modal-brand { position: sticky; top: 0; z-index: 2; }
    /* Auth form body still needs horizontal padding on mobile */
    .jcand-auth-form { padding: 20px 18px 24px; }
    #jcand-panel-apply { padding: 20px 18px 24px; }
    #jcand-panel-complete > h2 { padding: 24px 18px 14px; }
    #jcand-panel-complete > .jcand-modal-subtitle { padding: 10px 18px 0; }
    .jcand-completion-bar-wrap.jcand-modal-completion { margin: 12px 18px 4px; }
    .jcand-modal-completion-pct { padding: 4px 18px 0; }
    #jcand-modal-fields { padding: 10px 18px 0; }
    #jcand-continue-apply-btn { margin: 14px 18px 20px; width: calc(100% - 36px); }
    .jcand-field-row-2 { grid-template-columns: 1fr; }
    .jcand-success-actions { flex-direction: column; }

}

/* Dashboard responsive */
@media (max-width: 900px) {
    .jcand-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .jcand-tab-header h1 { font-size: 1.35rem; }
}
@media (max-width: 720px) {
    .jcand-dashboard-wrap { flex-direction: column; }
    .jcand-sidebar { width: 100%; min-width: unset; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--jcand-border); }
    .jcand-sidebar-profile { display: none; }
    .jcand-sidebar-nav { display: flex; overflow-x: auto; padding: 4px 6px; gap: 2px; scrollbar-width: none; }
    .jcand-sidebar-nav::-webkit-scrollbar { display: none; }
    .jcand-nav-item { flex-direction: column; padding: 8px 12px; font-size: .75rem; text-align: center; gap: 3px; white-space: nowrap; min-width: 64px; border-radius: 8px; }
    .jcand-nav-icon { font-size: 1.15rem; }
    .jcand-nav-active { border-right: none; border-bottom: 3px solid var(--jcand-primary); background: rgba(37,99,235,.06); }
    .jcand-main { padding: 14px; }
    .jcand-card { padding: 18px 16px; }
    .jcand-field-row { grid-template-columns: 1fr; }
    .jcand-edu-fields { grid-template-columns: 1fr; }
    .jcand-edu-year-group { width: 100%; }
    .jcand-salary-row { grid-template-columns: 1fr; }
    .jcand-currency-group { width: 100%; }
    .jcand-modal-box { padding: 0; }
    /* Applied jobs filter bar — scroll horizontally on mobile */
    .jcand-filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .jcand-filter-bar::-webkit-scrollbar { display: none; }
    .jcand-filter-btn { flex-shrink: 0; }
    /* Overview table — horizontal scroll on mobile */
    .jcand-table-wrap { -webkit-overflow-scrolling: touch; }
    .jcand-table th, .jcand-table td { white-space: nowrap; }
    /* App card header stacks on small screen */
    .jcand-app-card-header { flex-direction: column; gap: 8px; }
    .jcand-app-card-header .jcand-status-badge { align-self: flex-start; }
}
@media (max-width: 480px) {
    .jcand-auth-box { padding: 28px 20px; }
    .jcand-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .jcand-stat-num { font-size: 1.5rem; }
    .jcand-stat-card { padding: 14px 10px; }
    /* Strength card compact on tiny screens */
    .jcand-strength-ring-wrap { width: 52px; height: 52px; }
    .jcand-strength-pct-text { font-size: .9rem; }
}

/* ── Job card improvements ───────────────────────────────────────────────── */
.jcand-card-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.jcand-card-remote { margin-left: 2px; }

/* Skills pills */
.jcand-card-skills { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 10px; margin-bottom: 8px; }
.jcand-skill-pill  {
    display: inline-block; padding: 2px 9px; border-radius: 20px;
    font-size: .72rem; font-weight: 500;
    background: #f1f5f9; color: #475569;
    border: 1px solid #e2e8f0;
}
.jcand-skill-more  {
    display: inline-block; padding: 2px 8px; border-radius: 20px;
    font-size: .72rem; color: var(--jcand-muted);
    background: transparent; border: 1px dashed var(--jcand-border);
}

/* ── SVG icon alignment in card meta & badges ───────────────────────────── */
.jcand-card-meta-item svg,
.jcand-badge svg,
.jcand-posted-ago svg,
.jcand-deadline svg,
.jcand-overview-icon svg,
.jcand-sim-loc svg {
    vertical-align: -2px;
    flex-shrink: 0;
}
.jcand-badge { display: inline-flex; align-items: center; gap: 4px; }
.jcand-badge-temporary { background: #fff7ed; color: #c2410c; }

/* ── Negotiable tag (detail page) ────────────────────────────────────────── */
.jcand-negotiable-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    margin-left: 4px;
    vertical-align: middle;
}

/* ── Category badge (detail page) ────────────────────────────────────────── */
.jcand-badge-category {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* ── Application Instructions section highlight ──────────────────────────── */
.jcand-detail-section--instructions {
    background: #fffbeb;
    border-color: #fde68a;
}
.jcand-detail-section--instructions h2 {
    color: #92400e;
    border-bottom-color: #fde68a;
}

/* ── Overview icon sizing for SVG (replaces emoji) ───────────────────────── */
.jcand-overview-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jcand-muted);
}

/* ── Location search dropdown (profile page) ────────────────────────────── */
.jcand-location-search-wrap {
    position: relative;
}
.jcand-location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--jcand-surface);
    border: 1px solid var(--jcand-border);
    border-top: none;
    border-radius: 0 0 var(--jcand-radius-sm) var(--jcand-radius-sm);
    box-shadow: var(--jcand-shadow-md);
    max-height: 240px;
    overflow-y: auto;
}
.jcand-loc-option {
    padding: 10px 14px;
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .15s;
}
.jcand-loc-option:hover {
    background: var(--jcand-bg);
}
.jcand-loc-type {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--jcand-muted);
    background: var(--jcand-bg);
    padding: 2px 6px;
    border-radius: 3px;
}
.jcand-loc-no-results {
    padding: 12px 14px;
    font-size: .85rem;
    color: var(--jcand-muted);
    text-align: center;
}

/* ── Location OR divider (profile page) ──────────────────────────────────── */
.jcand-location-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}
.jcand-location-or-divider::before,
.jcand-location-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--jcand-border);
}
.jcand-location-or-divider span {
    font-size: .82rem;
    font-weight: 700;
    color: var(--jcand-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ── Modal location text input ───────────────────────────────────────────── */
.jcand-modal-loc-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--jcand-border);
    border-radius: var(--jcand-radius-sm);
    font-size: .95rem;
    color: var(--jcand-text);
    background: #fff;
    font-family: var(--jcand-font);
    transition: border-color var(--jcand-transition);
}
.jcand-modal-loc-input:focus {
    outline: none;
    border-color: var(--jcand-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ── Posted ago pill — SVG alignment ─────────────────────────────────────── */
.jcand-posted-ago {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ── Deadline — SVG alignment ────────────────────────────────────────────── */
.jcand-deadline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * PROFILE STRENGTH INDICATOR
 * ═══════════════════════════════════════════════════════════════════════════ */
.jcand-strength-card { padding: 16px 20px; }
.jcand-strength-wrap { display: flex; align-items: center; gap: 16px; }
.jcand-strength-ring-wrap { flex-shrink: 0; width: 64px; height: 64px; }
.jcand-strength-ring { width: 100%; height: 100%; }
.jcand-strength-progress { transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1); }
.jcand-strength-pct-text { font-size: 1.1rem; font-weight: 800; fill: var(--jcand-text); }
.jcand-strength-label-text { font-size: .45rem; font-weight: 600; fill: var(--jcand-muted); text-transform: uppercase; letter-spacing: .05em; }
.jcand-strength-details { flex: 1; min-width: 0; }
.jcand-strength-details h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; }
.jcand-strength-checklist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jcand-strength-item {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .78rem; font-weight: 500; padding: 4px 10px;
    border-radius: 20px;
}
.jcand-strength-done { background: #f0fdf4; color: #166534; }
.jcand-strength-missing { background: #fffbeb; color: #92400e; }

@media (max-width: 720px) {
    .jcand-strength-wrap { flex-direction: column; text-align: center; }
    .jcand-strength-checklist { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * EDUCATION — New card UI
 * ═══════════════════════════════════════════════════════════════════════════ */
.jcand-edu-card {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 16px; border: 1px solid var(--jcand-border);
    border-radius: var(--jcand-radius-sm); margin-bottom: 10px;
    background: var(--jcand-bg); transition: border-color .2s, box-shadow .2s;
}
.jcand-edu-card:hover { border-color: var(--jcand-primary); box-shadow: 0 2px 8px rgba(37,99,235,.08); }
.jcand-edu-card-icon { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #ede9fe; border-radius: 8px; }
.jcand-edu-card-body { flex: 1; min-width: 0; }
.jcand-edu-card-title { font-size: .9rem; font-weight: 700; color: var(--jcand-text); line-height: 1.3; }
.jcand-edu-card-sub { font-size: .82rem; color: var(--jcand-muted); margin-top: 2px; }
.jcand-edu-card-meta { font-size: .78rem; color: var(--jcand-secondary); margin-top: 4px; }
.jcand-edu-card-activities { font-size: .78rem; color: var(--jcand-muted); margin-top: 4px; font-style: italic; }
.jcand-edu-card-actions { display: flex; gap: 4px; flex-shrink: 0; }
.jcand-edu-card-actions .jcand-btn-icon { color: var(--jcand-muted); transition: color .15s; }
.jcand-edu-card-actions .jcand-btn-icon:hover { color: var(--jcand-primary); }

/* Slide-down editor panel (shared for education & projects) */
.jcand-slide-editor {
    background: var(--jcand-surface); border: 1.5px solid var(--jcand-primary);
    border-radius: var(--jcand-radius); padding: 20px; margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(37,99,235,.08);
}
.jcand-slide-editor-inner { display: flex; flex-direction: column; gap: 4px; }
.jcand-slide-editor-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Empty section placeholder */
.jcand-empty-section { text-align: center; padding: 24px 16px; color: var(--jcand-muted); }
.jcand-empty-section svg { margin-bottom: 8px; }
.jcand-empty-section p { font-size: .85rem; margin: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
 * WORK EXPERIENCE — Improved desktop UI
 * ═══════════════════════════════════════════════════════════════════════════ */
.jcand-exp-row-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.jcand-exp-row-actions .jcand-btn-icon { color: var(--jcand-muted); transition: color .15s; }
.jcand-exp-row-actions .jcand-btn-icon:hover { color: var(--jcand-primary); }
.jcand-exp-row-header { cursor: pointer; user-select: none; }
.jcand-exp-body { overflow: visible; }
.jcand-exp-collapsed .jcand-exp-body { display: none; }
.jcand-exp-collapsed .jcand-chevron-icon { transform: rotate(-90deg); }
.jcand-chevron-icon { transition: transform .2s; }
/* Dates row: From | To — pure 2-col */
.jcand-exp-dates-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2px; align-items: end; }

/* "To" field — holds the month input + "Present" overlay badge */
.jcand-exp-to-group { position: relative; }
.jcand-exp-to-wrap  { position: relative; }
.jcand-exp-present-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: var(--jcand-radius-sm);
    font-size: .85rem;
    font-weight: 700;
    color: var(--jcand-success);
    letter-spacing: .04em;
    pointer-events: none;
}

/* ── "Currently working here" — toggle switch row ─────────────────────── */
.jcand-exp-current-wrap {
    margin-top: 10px;
}
.jcand-current-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 10px 14px;
    border: 1.5px solid var(--jcand-border);
    border-radius: 8px;
    background: var(--jcand-bg);
    transition: border-color .2s, background .2s;
    width: 100%;
    box-sizing: border-box;
}
.jcand-current-toggle.jcand-current-active {
    border-color: #86efac;
    background: #f0fdf4;
}
.jcand-current-toggle input[type="checkbox"] { display: none; }

/* Switch track */
.jcand-current-track {
    position: relative;
    width: 38px;
    height: 21px;
    background: #d1d5db;
    border-radius: 11px;
    flex-shrink: 0;
    transition: background .2s;
}
.jcand-current-thumb {
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: left .2s;
}
.jcand-current-active .jcand-current-track { background: var(--jcand-success); }
.jcand-current-active .jcand-current-thumb { left: 20px; }

/* Label text */
.jcand-current-text {
    flex: 1;
    font-size: .86rem;
    font-weight: 500;
    color: var(--jcand-muted);
    transition: color .2s;
}
.jcand-current-active .jcand-current-text {
    color: var(--jcand-success);
    font-weight: 600;
}

/* Active status pill */
.jcand-current-status {
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    background: #dcfce7;
    color: var(--jcand-success);
    letter-spacing: .03em;
    opacity: 0;
    transition: opacity .2s;
    flex-shrink: 0;
}
.jcand-current-active .jcand-current-status { opacity: 1; }

/* Dark mode */
html.jcand-dark .jcand-current-toggle { background: var(--jcand-surface); border-color: var(--jcand-border); }
html.jcand-dark .jcand-current-toggle.jcand-current-active { background: rgba(22,163,74,.1); border-color: rgba(22,163,74,.4); }
html.jcand-dark .jcand-current-active .jcand-current-text { color: #4ade80; }
html.jcand-dark .jcand-current-active .jcand-current-status { background: rgba(22,163,74,.15); color: #4ade80; }
html.jcand-dark .jcand-exp-present-badge { background: rgba(22,163,74,.1); border-color: rgba(22,163,74,.3); color: #4ade80; }

/* ═══════════════════════════════════════════════════════════════════════════
 * [jcand_search_bar] STANDALONE WIDGET
 * Used outside the full jobs page — renders the search bar as a card.
 * ═══════════════════════════════════════════════════════════════════════════ */

/* Outer wrapper — centres the widget and constrains its max-width */
.jcand-search-bar-widget {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Card variant of the hbar — visible shadow, no hero background required */
.jcand-hbar--widget {
    background: var(--jcand-surface, #fff);
    border: 1.5px solid var(--jcand-border, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 6px 6px 6px 6px;
    margin: 0;
    gap: 0;
}

/* Give the divider a contained height in card mode */
.jcand-hbar--widget .jcand-hbar-divider {
    height: 36px;
    align-self: center;
}

/* Make sure inputs fill their column properly inside the card */
.jcand-hbar--widget .jcand-hbar-field {
    flex: 1;
    min-width: 0;
}

/* Search button — same as hero but ensure consistent padding in card */
.jcand-hbar--widget .jcand-hbar-btn {
    flex-shrink: 0;
    border-radius: 10px;
    padding: 0 22px;
    height: 44px;
}

/* Responsive: stack vertically on mobile */
@media (max-width: 600px) {
    .jcand-hbar--widget {
        flex-direction: column;
        border-radius: 12px;
        padding: 10px;
        gap: 8px;
    }
    .jcand-hbar--widget .jcand-hbar-divider { display: none; }
    .jcand-hbar--widget .jcand-hbar-field   { width: 100%; border-radius: 8px; }
    .jcand-hbar--widget .jcand-hbar-btn     { width: 100%; justify-content: center; height: 46px; }
}

/* Location dropdown inside widget — override profile-page defaults for correct
   positioning, z-index, and border-radius */
.jcand-hbar--widget .jcand-location-dropdown {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border-top: 1px solid var(--jcand-border);   /* restore top border (profile strips it) */
    border-radius: 10px;                          /* fully rounded in card context */
    box-shadow: 0 12px 40px rgba(0,0,0,.14);
    z-index: 9999;
    max-height: 280px;
}

/* Dark mode */
html.jcand-dark .jcand-hbar--widget {
    background: var(--jcand-surface);
    border-color: var(--jcand-border);
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
html.jcand-dark .jcand-hbar--widget .jcand-location-dropdown {
    background: var(--jcand-surface);
    border-color: var(--jcand-border);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * LANGUAGES section
 * ═══════════════════════════════════════════════════════════════════════════ */
.jcand-lang-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border: 1px solid var(--jcand-border);
    border-radius: var(--jcand-radius-sm); margin-bottom: 8px;
    background: var(--jcand-bg); transition: border-color .15s;
}
.jcand-lang-item:hover { border-color: var(--jcand-primary); }
.jcand-lang-info { display: flex; align-items: center; gap: 10px; }
.jcand-lang-name { font-size: .9rem; font-weight: 600; color: var(--jcand-text); }
.jcand-lang-level {
    font-size: .72rem; font-weight: 600; padding: 2px 8px;
    border-radius: 20px; text-transform: uppercase; letter-spacing: .03em;
}
.jcand-lang-level--native       { background: #dcfce7; color: #15803d; }
.jcand-lang-level--fluent       { background: #dbeafe; color: #1d4ed8; }
.jcand-lang-level--intermediate { background: #fef3c7; color: #b45309; }
.jcand-lang-level--basic        { background: #f1f5f9; color: #64748b; }
.jcand-lang-add-form {
    display: flex; align-items: flex-end; gap: 10px;
    padding: 12px 14px; border: 1.5px dashed var(--jcand-border);
    border-radius: var(--jcand-radius-sm); margin-top: 8px;
    background: var(--jcand-bg);
}
.jcand-lang-add-form .jcand-field-group { margin-bottom: 0; flex: 1; }
.jcand-lang-add-form .jcand-btn { flex-shrink: 0; }

@media (max-width: 720px) {
    .jcand-lang-add-form { flex-wrap: wrap; }
    .jcand-lang-add-form .jcand-field-group { min-width: 120px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * PROJECTS / PORTFOLIO section
 * ═══════════════════════════════════════════════════════════════════════════ */
.jcand-project-card {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px; border: 1px solid var(--jcand-border);
    border-radius: var(--jcand-radius-sm); margin-bottom: 10px;
    background: var(--jcand-bg); transition: border-color .2s;
}
.jcand-project-card:hover { border-color: var(--jcand-primary); }
.jcand-project-card-body { flex: 1; min-width: 0; }
.jcand-project-title { font-size: .9rem; font-weight: 700; color: var(--jcand-text); display: flex; align-items: center; gap: 6px; }
.jcand-project-link { color: var(--jcand-primary); display: inline-flex; }
.jcand-project-link:hover { color: var(--jcand-primary-d); }
.jcand-project-desc { font-size: .82rem; color: var(--jcand-muted); margin: 6px 0 0; line-height: 1.5; }
.jcand-project-tech { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.jcand-tech-pill {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: .72rem; font-weight: 500;
    background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe;
}
.jcand-project-card-actions { display: flex; gap: 4px; flex-shrink: 0; }
.jcand-project-card-actions .jcand-btn-icon { color: var(--jcand-muted); transition: color .15s; }
.jcand-project-card-actions .jcand-btn-icon:hover { color: var(--jcand-primary); }

/* ═══════════════════════════════════════════════════════════════════════════
 * AUTO-SAVE INDICATOR
 * ═══════════════════════════════════════════════════════════════════════════ */
.jcand-autosave-indicator {
    position: fixed; bottom: 24px; right: 24px; z-index: 100;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--jcand-surface); border: 1px solid var(--jcand-border);
    border-radius: 8px; padding: 8px 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    font-size: .82rem; font-weight: 500; color: var(--jcand-success);
}
.jcand-autosave-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--jcand-success);
    animation: jcand-pulse 1.5s infinite;
}
@keyframes jcand-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ═══════════════════════════════════════════════════════════════════════════
 * FORM ACTIONS BAR
 * ═══════════════════════════════════════════════════════════════════════════ */
.jcand-form-actions {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-top: 8px;
}
.jcand-form-actions-left { display: flex; align-items: center; gap: 12px; }

/* ═══════════════════════════════════════════════════════════════════════════
 * DARK MODE TOGGLE
 * ═══════════════════════════════════════════════════════════════════════════ */
.jcand-dark-toggle { cursor: pointer; display: inline-flex; align-items: center; }
.jcand-dark-toggle input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden; clip: rect(0,0,0,0); }
.jcand-dark-toggle-track {
    position: relative; width: 48px; height: 26px;
    background: #e2e8f0; border-radius: 13px;
    transition: background .3s;
}
.jcand-dark-toggle-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: left .3s;
}
.jcand-dark-toggle input:checked ~ .jcand-dark-toggle-track { background: #475569; }
.jcand-dark-toggle input:checked ~ .jcand-dark-toggle-track .jcand-dark-toggle-thumb { left: 25px; }
.jcand-dark-toggle-icon {
    position: absolute; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; transition: opacity .3s;
}
.jcand-dark-toggle-sun { left: 5px; color: #f59e0b; }
.jcand-dark-toggle-moon { right: 5px; color: #94a3b8; }
.jcand-dark-toggle input:checked ~ .jcand-dark-toggle-track .jcand-dark-toggle-sun { opacity: .3; }
.jcand-dark-toggle input:not(:checked) ~ .jcand-dark-toggle-track .jcand-dark-toggle-moon { opacity: .3; }

/* ═══════════════════════════════════════════════════════════════════════════
 * DARK MODE THEME
 * ═══════════════════════════════════════════════════════════════════════════ */
html.jcand-dark {
    --jcand-bg:         #0f172a;
    --jcand-surface:    #1e293b;
    --jcand-border:     #334155;
    --jcand-text:       #e2e8f0;
    --jcand-muted:      #94a3b8;
    --jcand-shadow:     0 1px 4px rgba(0,0,0,.3);
    --jcand-shadow-md:  0 4px 16px rgba(0,0,0,.4);
}

html.jcand-dark .jcand-field-group input,
html.jcand-dark .jcand-field-group select,
html.jcand-dark .jcand-field-group textarea {
    background: #0f172a; color: var(--jcand-text); border-color: var(--jcand-border);
}
html.jcand-dark .jcand-field-group input:focus,
html.jcand-dark .jcand-field-group select:focus,
html.jcand-dark .jcand-field-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(37,99,235,.25);
}
html.jcand-dark .jcand-field-group input[disabled],
html.jcand-dark .jcand-field-group select[disabled] { background: #1e293b; }

html.jcand-dark .jcand-tags-input-wrap { background: #0f172a; border-color: var(--jcand-border); }
html.jcand-dark .jcand-tags-input { color: var(--jcand-text); }

html.jcand-dark .jcand-edu-card,
html.jcand-dark .jcand-lang-item,
html.jcand-dark .jcand-project-card,
html.jcand-dark .jcand-experience-row,
html.jcand-dark .jcand-resume-item { background: var(--jcand-surface); border-color: var(--jcand-border); }

html.jcand-dark .jcand-edu-card-icon { background: rgba(139,92,246,.15); }
html.jcand-dark .jcand-tech-pill { background: rgba(139,92,246,.15); color: #a78bfa; border-color: rgba(139,92,246,.25); }
html.jcand-dark .jcand-skill-pill { background: var(--jcand-surface); color: var(--jcand-muted); border-color: var(--jcand-border); }

html.jcand-dark .jcand-slide-editor { background: var(--jcand-surface); border-color: var(--jcand-primary); }
html.jcand-dark .jcand-lang-add-form { background: var(--jcand-surface); border-color: var(--jcand-border); }

html.jcand-dark .jcand-strength-pct-text { fill: var(--jcand-text); }
html.jcand-dark .jcand-strength-label-text { fill: var(--jcand-muted); }
html.jcand-dark .jcand-strength-done { background: rgba(22,163,74,.15); color: #4ade80; }
html.jcand-dark .jcand-strength-missing { background: rgba(217,119,6,.15); color: #fbbf24; }

html.jcand-dark .jcand-lang-level--native { background: rgba(22,163,74,.15); color: #4ade80; }
html.jcand-dark .jcand-lang-level--fluent { background: rgba(59,130,246,.15); color: #60a5fa; }
html.jcand-dark .jcand-lang-level--intermediate { background: rgba(217,119,6,.15); color: #fbbf24; }
html.jcand-dark .jcand-lang-level--basic { background: rgba(100,116,139,.15); color: #94a3b8; }

html.jcand-dark .jcand-notice-success { background: rgba(22,163,74,.15); color: #4ade80; border-color: rgba(22,163,74,.3); }
html.jcand-dark .jcand-notice-error { background: rgba(220,38,38,.15); color: #f87171; border-color: rgba(220,38,38,.3); }
html.jcand-dark .jcand-notice-warning { background: rgba(217,119,6,.15); color: #fbbf24; border-color: rgba(217,119,6,.3); }

html.jcand-dark .jcand-btn-outline { border-color: rgba(37,99,235,.5); color: #60a5fa; }
html.jcand-dark .jcand-btn-outline:hover:not(:disabled) { background: rgba(37,99,235,.1); }

html.jcand-dark .jcand-app-card { background: var(--jcand-surface); border-color: var(--jcand-border); }
html.jcand-dark .jcand-app-card:hover { border-color: rgba(37,99,235,.4); }
html.jcand-dark .jcand-cover-preview p { background: var(--jcand-bg); border-color: var(--jcand-border); }
html.jcand-dark .jcand-filter-btn { background: var(--jcand-surface); color: var(--jcand-text); border-color: var(--jcand-border); }
html.jcand-dark .jcand-filter-btn:hover { color: #60a5fa; border-color: rgba(37,99,235,.4); background: rgba(37,99,235,.08); }
html.jcand-dark .jcand-filter-btn.active { background: var(--jcand-primary); border-color: var(--jcand-primary); color: #fff; }
html.jcand-dark .jcand-empty-state { background: var(--jcand-surface); border-color: var(--jcand-border); }

html.jcand-dark .jcand-autosave-indicator { background: var(--jcand-surface); border-color: var(--jcand-border); }
html.jcand-dark .jcand-photo-preview { border-color: var(--jcand-border); }
html.jcand-dark .jcand-avatar-placeholder { background: var(--jcand-primary); }

/* Responsive fixes for new sections */
@media (max-width: 720px) {
    .jcand-edu-card { flex-wrap: wrap; }
    .jcand-project-card { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .jcand-exp-dates-row { grid-template-columns: 1fr; }
    .jcand-exp-current-wrap { grid-column: auto; }
}


/* ═══════════════════════════════════════════════════════════════════════════
 * v6 New Feature Styles
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ── Near Me button ─────────────────────────────────────────────────────── */
.jcand-near-me-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0;
    background: none; border: 1px solid var(--jcand-border);
    border-radius: 50%; cursor: pointer;
    color: var(--jcand-muted); transition: color .15s, border-color .15s, background .15s;
    flex-shrink: 0;
}
.jcand-near-me-btn:hover { color: var(--jcand-primary); border-color: var(--jcand-primary); background: rgba(37,99,235,.06); }
.jcand-near-me-btn--loading { animation: jcand-spin .8s linear infinite; }
@keyframes jcand-spin { to { transform: rotate(360deg); } }

/* ── Job Alert button ───────────────────────────────────────────────────── */
.jcand-alert-btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; padding: 0 12px; height: 40px;
    white-space: nowrap; flex-shrink: 0;
}
.jcand-alert-btn svg { flex-shrink: 0; }
.jcand-alert-btn.jcand-alert-active {
    background: #eff6ff; border-color: #2563eb; color: #1d4ed8;
}
.jcand-alert-btn.jcand-alert-active svg { fill: #2563eb; }
html.jcand-dark .jcand-alert-btn.jcand-alert-active {
    background: rgba(37,99,235,.15); border-color: #3b82f6; color: #60a5fa;
}

/* ── Infinite scroll sentinel + spinner ─────────────────────────────────── */
#jcand-scroll-sentinel { height: 1px; pointer-events: none; }
.jcand-scroll-spinner {
    text-align: center; padding: 20px 0;
    font-size: 13px; color: var(--jcand-muted);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.jcand-scroll-spinner::before {
    content: ''; display: inline-block;
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--jcand-border); border-top-color: var(--jcand-primary);
    animation: jcand-spin .7s linear infinite;
}

/* ── Toast notification ─────────────────────────────────────────────────── */
#jcand-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px);
    background: #1e293b; color: #f8fafc;
    font-size: 13px; padding: 10px 20px; border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    opacity: 0; pointer-events: none;
    transition: opacity .22s, transform .22s;
    z-index: 9999; white-space: nowrap;
}
#jcand-toast.jcand-toast--show {
    opacity: 1; transform: translateX(-50%) translateY(0);
}
html.jcand-dark #jcand-toast { background: #334155; }

/* ── Recently Viewed ────────────────────────────────────────────────────── */
.jcand-recently-viewed {
    margin: 0 0 24px;
    background: var(--jcand-bg);
    border: 1px solid var(--jcand-border);
    border-radius: 10px;
    overflow: hidden;
}
.jcand-rv-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-bottom: 1px solid var(--jcand-border);
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .04em; color: var(--jcand-muted);
}
.jcand-rv-head button {
    background: none; border: none; cursor: pointer;
    font-size: 12px; color: var(--jcand-muted); padding: 0;
}
.jcand-rv-head button:hover { color: var(--jcand-danger); }
.jcand-rv-list {
    display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
}
.jcand-rv-list::-webkit-scrollbar { display: none; }
.jcand-rv-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; text-decoration: none; color: inherit;
    border-right: 1px solid var(--jcand-border);
    min-width: 180px; flex: 1;
    transition: background .15s;
}
.jcand-rv-item:last-child { border-right: none; }
.jcand-rv-item:hover { background: rgba(37,99,235,.04); }
.jcand-rv-logo {
    width: 32px; height: 32px; border-radius: 6px; overflow: hidden;
    flex-shrink: 0; background: var(--jcand-surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--jcand-primary);
    border: 1px solid var(--jcand-border);
}
.jcand-rv-logo img { width: 100%; height: 100%; object-fit: contain; }
.jcand-rv-info { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.jcand-rv-title {
    font-size: 13px; font-weight: 500; color: var(--jcand-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jcand-rv-meta {
    font-size: 11px; color: var(--jcand-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Popular locations in dropdown ─────────────────────────────────────── */
.jcand-loc-group-label {
    padding: 8px 12px 4px;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .05em; color: var(--jcand-muted);
}
.jcand-loc-item--popular {
    display: flex; align-items: center; justify-content: space-between;
}
.jcand-loc-count {
    font-size: 11px; color: var(--jcand-muted);
    background: var(--jcand-surface); border-radius: 20px;
    padding: 1px 7px; flex-shrink: 0; margin-left: 6px;
    border: 1px solid var(--jcand-border);
}

/* ── Dark mode overrides for new elements ───────────────────────────────── */
html.jcand-dark .jcand-recently-viewed { background: var(--jcand-surface); border-color: var(--jcand-border); }
html.jcand-dark .jcand-rv-item:hover   { background: rgba(99,102,241,.06); }
html.jcand-dark .jcand-loc-count       { background: var(--jcand-bg); }

@media (max-width: 640px) {
    .jcand-rv-list { flex-direction: column; }
    .jcand-rv-item { border-right: none; border-bottom: 1px solid var(--jcand-border); min-width: auto; }
    .jcand-rv-item:last-child { border-bottom: none; }
    .jcand-alert-btn .jcand-alert-label { display: none; }
    .jcand-alert-btn { width: 40px; justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════
   JCAND Phone Country Selector
   ═══════════════════════════════════════════════════════════ */

.jcand-phone-widget {
    position: relative;
    width: 100%;
}

.jcand-phone-input-row {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--jcand-border);
    border-radius: var(--jcand-radius-sm);
    background: #fff;
    transition: border-color var(--jcand-transition), box-shadow var(--jcand-transition);
    position: relative;
}

.jcand-phone-input-row:focus-within {
    border-color: var(--jcand-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ── Selector button ── */
.jcand-phone-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px 0 12px;
    background: var(--jcand-bg, #f8fafc);
    border: none;
    border-right: 1px solid var(--jcand-border);
    border-radius: var(--jcand-radius-sm) 0 0 var(--jcand-radius-sm);
    cursor: pointer;
    font-family: var(--jcand-font);
    min-width: 90px;
    flex-shrink: 0;
    transition: background var(--jcand-transition);
    white-space: nowrap;
    outline: none;
}

.jcand-phone-selector:hover {
    background: #f1f5f9;
}

.jcand-phone-selector:focus-visible {
    outline: 2px solid var(--jcand-primary);
    outline-offset: -2px;
}

.jcand-phone-flag {
    font-size: 18px;
    line-height: 1;
    display: block;
}

.jcand-phone-dial {
    font-size: .875rem;
    font-weight: 600;
    color: var(--jcand-text);
    letter-spacing: .01em;
}

.jcand-phone-chevron {
    width: 10px;
    height: 10px;
    border-right: 1.5px solid var(--jcand-muted, #94a3b8);
    border-bottom: 1.5px solid var(--jcand-muted, #94a3b8);
    transform: rotate(45deg) translateY(-2px);
    flex-shrink: 0;
    transition: transform .15s;
    margin-left: 2px;
}

.jcand-phone-selector[aria-expanded="true"] .jcand-phone-chevron {
    transform: rotate(-135deg) translateY(-2px);
}

/* ── Number input ── */
.jcand-phone-number-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 10px 12px !important;
    font-size: .95rem !important;
    color: var(--jcand-text) !important;
    background: transparent !important;
    font-family: var(--jcand-font) !important;
    min-width: 0;
    border-radius: 0 var(--jcand-radius-sm) var(--jcand-radius-sm) 0 !important;
}

.jcand-phone-number-input::placeholder {
    color: #94a3b8;
}

/* ── Dropdown ── */
.jcand-phone-dropdown {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    background: #fff;
    border: 1px solid var(--jcand-border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.07);
    z-index: 100001;
    overflow: hidden;
}

.jcand-phone-search {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--jcand-border);
    outline: none;
    padding: 10px 14px;
    font-size: .875rem;
    font-family: var(--jcand-font);
    color: var(--jcand-text);
    background: var(--jcand-bg, #f8fafc);
    border-radius: 10px 10px 0 0;
}

.jcand-phone-search::placeholder { color: #94a3b8; }

.jcand-phone-list {
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
    scroll-behavior: smooth;
}

.jcand-phone-list::-webkit-scrollbar { width: 5px; }
.jcand-phone-list::-webkit-scrollbar-track { background: transparent; }
.jcand-phone-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }

.jcand-phone-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: .875rem;
    font-family: var(--jcand-font);
    transition: background .1s;
    outline: none;
}

.jcand-phone-list-item:hover,
.jcand-phone-list-item:focus {
    background: #f1f5f9;
}

.jcand-phone-list-item.is-active {
    background: #eff6ff;
    color: var(--jcand-primary);
}

.jcand-phone-list-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.jcand-phone-list-name {
    flex: 1;
    color: var(--jcand-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jcand-phone-list-dc {
    color: var(--jcand-muted, #64748b);
    font-size: .8rem;
    flex-shrink: 0;
    font-weight: 500;
}

.jcand-phone-list-empty {
    padding: 14px;
    text-align: center;
    font-size: .875rem;
    color: var(--jcand-muted, #94a3b8);
}

/* ── Validation hint ── */
.jcand-phone-hint {
    display: block;
    font-size: .8rem;
    margin-top: 5px;
    min-height: 1.2em;
    transition: color .15s;
}

.jcand-phone-hint--ok    { color: #16a34a; }
.jcand-phone-hint--error { color: var(--jcand-danger); }
.jcand-phone-hint--info  { color: var(--jcand-muted, #64748b); }

/* ── Compact variant (apply modal) ── */
.jcand-phone-widget--compact .jcand-phone-selector {
    min-width: 76px;
    padding: 0 8px 0 10px;
    gap: 4px;
}

.jcand-phone-widget--compact .jcand-phone-flag { font-size: 15px; }

.jcand-phone-widget--compact .jcand-phone-dial { font-size: .8rem; }

.jcand-phone-widget--compact .jcand-phone-number-input {
    padding: 10px 10px !important;
    font-size: .875rem !important;
}

.jcand-phone-widget--compact .jcand-phone-dropdown { width: 270px !important; }

/* ── apply-modal icon-wrap override ── */
.jcand-input-icon-wrap .jcand-phone-widget {
    flex: 1;
}
.jcand-input-icon-wrap .jcand-phone-input-row {
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.jcand-input-icon-wrap .jcand-phone-input-row:focus-within {
    box-shadow: none;
}
.jcand-input-icon-wrap:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.14);
}
.jcand-input-icon-wrap .jcand-phone-selector {
    background: transparent;
    border-right: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 0 8px 0 40px; /* leave room for the phone SVG icon */
    min-width: 100px;
}
.jcand-input-icon-wrap .jcand-phone-selector:hover { background: #f9fafb; }
.jcand-input-icon-wrap .jcand-phone-number-input {
    padding: 14px 14px 14px 12px !important;
}
.jcand-input-icon-wrap .jcand-phone-hint { padding: 0 14px 6px; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .jcand-phone-selector { min-width: 80px; }
}

/* ── Fix 3: SSR job-detail fallback block ───────────────────────────────────
 * Rendered server-side so Googlebot always sees real job content matching the
 * JobPosting schema.  JS adds .jcand-ssr-job-detail--hidden after a successful
 * fetch so the richer client-rendered UI takes over for human visitors.
 * ─────────────────────────────────────────────────────────────────────────── */
.jcand-ssr-job-detail--hidden {
    display: none !important;
}

/* ── [jc_footer] shortcode widget area ─────────────────────────────────────── */
.jc-footer-shortcode {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 32px 0 16px;
    border-top: 1px solid var(--jcand-border);
    margin-top: 40px;
}
.jc-footer-widget {
    flex: 1 1 200px;
    min-width: 160px;
}
.jc-footer-widget-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--jcand-text);
    margin: 0 0 12px;
}
.jc-footer-widget ul {
    list-style: none;
    margin: 0; padding: 0;
}
.jc-footer-widget ul li {
    margin-bottom: 6px;
    font-size: .88rem;
    color: var(--jcand-muted);
}
.jc-footer-widget ul li a {
    color: var(--jcand-muted);
    text-decoration: none;
    transition: color .15s;
}
.jc-footer-widget ul li a:hover { color: var(--jcand-primary); }
@media (max-width: 600px) {
    .jc-footer-shortcode { flex-direction: column; gap: 20px; }
    .jc-footer-widget { flex: 1 1 100%; }
}
