/*
 * BHW Job Board — Main Stylesheet
 * Colors loaded via inline CSS vars from PHP config.
 * Default: BarberHelpWanted (navy/gold).
 */

/* ─── CSS Variables ──────────────────────────────────────────────────────── */
:root {
    --bhw-primary:    #1B3A4B;
    --bhw-secondary:  #C5A55A;
    --bhw-accent:     #D4380D;
    --bhw-bg:         #F5F0E8;
    --bhw-text:       #1A1A1A;
    --bhw-border:     #DACED5;
    --bhw-muted:      #6B7280;
    --bhw-white:      #FFFFFF;
    --bhw-success:    #389E0D;
    --bhw-warning:    #FAAD14;
    --bhw-error:      #CF1322;
    --bhw-radius:     6px;
    --bhw-shadow:     0 2px 8px rgba(0,0,0,0.08);
    --bhw-shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
    --bhw-font-head:  'Playfair Display', Georgia, serif;
    --bhw-font-body:  'Inter', -apple-system, sans-serif;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
.bhw-dashboard-wrap,
.bhw-browse-wrap,
.bhw-auth-wrap,
.bhw-shop-profile-wrap {
    font-family: var(--bhw-font-body);
    color: var(--bhw-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
.bhw-dashboard-wrap h1,
.bhw-auth-card h1,
.bhw-auth-card h2,
.bhw-modal-body h2,
.bhw-form-section h3,
.bhw-tab-content h3 {
    font-family: var(--bhw-font-head);
    color: var(--bhw-primary);
    margin-top: 0;
}

/* ─── Form Elements ──────────────────────────────────────────────────────── */
.bhw-form .bhw-field {
    margin-bottom: 16px;
}
.bhw-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--bhw-text);
    margin-bottom: 5px;
}
.bhw-form input[type="text"],
.bhw-form input[type="email"],
.bhw-form input[type="password"],
.bhw-form input[type="number"],
.bhw-form input[type="date"],
.bhw-form input[type="url"],
.bhw-form select,
.bhw-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--bhw-border);
    border-radius: var(--bhw-radius);
    font-family: var(--bhw-font-body);
    font-size: 14px;
    color: var(--bhw-text);
    background: var(--bhw-white);
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.bhw-form input:focus,
.bhw-form select:focus,
.bhw-form textarea:focus {
    outline: none;
    border-color: var(--bhw-primary);
    box-shadow: 0 0 0 3px rgba(27,58,75,0.1);
}
.bhw-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.bhw-field-row--spread {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bhw-required { color: var(--bhw-error); }
.bhw-hint { font-size: 11px; font-weight: 400; color: var(--bhw-muted); }
.bhw-char-count { font-size: 11px; color: var(--bhw-muted); text-align: right; margin-top: 3px; }
.bhw-form-section { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--bhw-border); }
.bhw-form-section:last-of-type { border-bottom: none; }
.bhw-checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.bhw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: var(--bhw-radius);
    font-family: var(--bhw-font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.bhw-btn-primary { background: var(--bhw-primary); color: var(--bhw-secondary); border-color: var(--bhw-primary); }
.bhw-btn-primary:hover { background: #142d3c; border-color: #142d3c; color: var(--bhw-secondary); }
.bhw-btn-outline { background: transparent; color: var(--bhw-primary); border-color: var(--bhw-primary); }
.bhw-btn-outline:hover { background: var(--bhw-primary); color: var(--bhw-white); }
.bhw-btn-danger { background: transparent; color: var(--bhw-error); border-color: var(--bhw-error); }
.bhw-btn-danger:hover { background: var(--bhw-error); color: var(--bhw-white); }
.bhw-btn-success { background: var(--bhw-success); color: var(--bhw-white); border-color: var(--bhw-success); }
.bhw-btn-full { width: 100%; }
.bhw-btn-sm { padding: 6px 14px; font-size: 12px; }
.bhw-btn-xs { padding: 4px 10px; font-size: 11px; }
.bhw-btn-icon { padding: 6px 10px; background: transparent; border-color: transparent; }
.bhw-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Feedback Boxes ──────────────────────────────────────────────────────── */
.bhw-error-box {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: var(--bhw-radius);
    padding: 12px 16px;
    color: var(--bhw-error);
    margin-bottom: 16px;
    font-size: 14px;
}
.bhw-error-box p { margin: 0 0 4px; }
.bhw-success-box {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: var(--bhw-radius);
    padding: 12px 16px;
    color: var(--bhw-success);
    margin-bottom: 16px;
    font-size: 14px;
}
.bhw-loading { text-align: center; color: var(--bhw-muted); padding: 40px; font-style: italic; }
.bhw-empty { text-align: center; padding: 40px; color: var(--bhw-muted); }
.bhw-empty p { font-size: 15px; }

/* ─── Auth Pages ──────────────────────────────────────────────────────────── */
.bhw-auth-wrap { display: flex; gap: 40px; align-items: flex-start; }
.bhw-auth-wrap--center { justify-content: center; }
.bhw-auth-card {
    background: var(--bhw-white);
    border-radius: 10px;
    box-shadow: var(--bhw-shadow-lg);
    padding: 40px;
    flex: 1;
    max-width: 540px;
}
.bhw-auth-card--wide { max-width: 600px; }
.bhw-auth-header { margin-bottom: 28px; }
.bhw-auth-header h1 { font-size: 24px; margin-bottom: 8px; }
.bhw-auth-header p { color: var(--bhw-muted); font-size: 14px; margin: 0; }
.bhw-auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--bhw-muted); }
.bhw-auth-footer--split { display: flex; gap: 12px; }
.bhw-auth-footer--split .bhw-btn { flex: 1; }
.bhw-auth-divider { text-align: center; margin: 20px 0; font-size: 13px; color: var(--bhw-muted); position: relative; }
.bhw-auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--bhw-border); z-index: 0; }
.bhw-auth-divider span, .bhw-auth-divider { background: var(--bhw-white); padding: 0 12px; position: relative; z-index: 1; }
.bhw-auth-benefits { background: var(--bhw-bg); border-radius: 10px; padding: 32px; flex: 0 0 280px; }
.bhw-auth-benefits h3 { color: var(--bhw-primary); font-family: var(--bhw-font-head); }
.bhw-auth-benefits ul { list-style: none; padding: 0; margin: 0; }
.bhw-auth-benefits li { padding: 8px 0; border-bottom: 1px solid var(--bhw-border); font-size: 14px; }
.bhw-legal { font-size: 11px; color: var(--bhw-muted); text-align: center; margin-top: 16px; }
.bhw-legal a { color: var(--bhw-primary); }

/* ─── Step Registration ───────────────────────────────────────────────────── */
.bhw-steps { display: flex; align-items: center; margin-bottom: 32px; }
.bhw-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--bhw-muted); }
.bhw-step.active { color: var(--bhw-primary); }
.bhw-step.done { color: var(--bhw-success); }
.bhw-step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; font-size: 12px; }
.bhw-step.done .bhw-step-num::before { content: '✓'; }
.bhw-step.done .bhw-step-num span { display: none; }
.bhw-step-line { flex: 1; height: 1px; background: var(--bhw-border); margin: 0 8px; }
.bhw-sub { color: var(--bhw-muted); font-size: 14px; margin-bottom: 24px; }

/* ─── Radio cards ─────────────────────────────────────────────────────────── */
.bhw-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.bhw-radio-card input[type="radio"] { display: none; }
.bhw-radio-label {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--bhw-border);
    border-radius: var(--bhw-radius);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.bhw-radio-card input:checked + .bhw-radio-label {
    border-color: var(--bhw-primary);
    background: var(--bhw-primary);
    color: var(--bhw-white);
}

/* ─── Specialty Tags ──────────────────────────────────────────────────────── */
.bhw-specialty-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.bhw-specialty-tag { display: inline-block; cursor: pointer; }
.bhw-specialty-tag input[type="checkbox"] { display: none; }
.bhw-specialty-tag span,
.bhw-specialty-tag {
    padding: 6px 12px;
    border: 1.5px solid var(--bhw-border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--bhw-text);
    transition: all 0.15s;
}
.bhw-specialty-tag input:checked ~ *,
.bhw-specialty-tag:has(input:checked) {
    border-color: var(--bhw-primary);
    background: var(--bhw-primary);
    color: var(--bhw-white);
}
.bhw-specialty-grid--sm .bhw-specialty-tag { font-size: 11px; padding: 4px 10px; }

/* ─── Tags & Badges ──────────────────────────────────────────────────────── */
.bhw-tag {
    display: inline-block;
    background: var(--bhw-bg);
    color: var(--bhw-primary);
    border: 1px solid var(--bhw-border);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.bhw-tag--location { background: var(--bhw-primary); color: var(--bhw-white); border-color: var(--bhw-primary); }
.bhw-spec-tag { background: rgba(197,165,90,0.12); color: var(--bhw-primary); border: 1px solid rgba(197,165,90,0.3); padding: 2px 8px; border-radius: 20px; font-size: 11px; display: inline-block; }
.bhw-spec-tag--sm { font-size: 10px; padding: 2px 6px; }
.bhw-spec-tag--more { background: var(--bhw-bg); }
.bhw-verified-badge { background: var(--bhw-success); color: var(--bhw-white); padding: 1px 6px; border-radius: 3px; font-size: 10px; }
.bhw-featured-badge { background: var(--bhw-secondary); color: var(--bhw-primary); padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.bhw-badge { background: var(--bhw-accent); color: var(--bhw-white); border-radius: 10px; padding: 1px 7px; font-size: 11px; font-weight: 700; margin-left: 4px; }

/* ─── Tabs ────────────────────────────────────────────────────────────────── */
.bhw-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--bhw-border); margin-bottom: 24px; flex-wrap: wrap; }
.bhw-tab { padding: 12px 20px; font-size: 13px; font-weight: 600; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--bhw-muted); cursor: pointer; margin-bottom: -2px; transition: all 0.15s; }
.bhw-tab:hover { color: var(--bhw-primary); }
.bhw-tab.active { color: var(--bhw-primary); border-bottom-color: var(--bhw-primary); }
.bhw-tab-content { display: none; }
.bhw-tab-content.active { display: block; }

/* ─── Dashboard Header ────────────────────────────────────────────────────── */
.bhw-dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.bhw-dashboard-header h1 { font-size: 28px; margin-bottom: 4px; }
.bhw-dashboard-tier { font-size: 13px; color: var(--bhw-muted); margin: 0; }
.bhw-dashboard-header-actions { display: flex; gap: 10px; }
.bhw-dashboard-banner { background: linear-gradient(135deg, var(--bhw-primary), #2c5a73); color: var(--bhw-white); border-radius: 10px; padding: 28px 32px; margin-bottom: 24px; }
.bhw-dashboard-banner h2 { color: var(--bhw-secondary); font-family: var(--bhw-font-head); margin: 0 0 8px; }
.bhw-dashboard-banner p { margin: 0 0 20px; opacity: 0.9; }

/* ─── Metric Cards ────────────────────────────────────────────────────────── */
.bhw-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.bhw-metric-card { background: var(--bhw-white); border-left: 3px solid var(--bhw-secondary); border-radius: var(--bhw-radius); padding: 20px; box-shadow: var(--bhw-shadow); }
.bhw-metric-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--bhw-muted); margin-bottom: 6px; }
.bhw-metric-value { font-size: 28px; font-weight: 800; color: var(--bhw-primary); font-family: var(--bhw-font-head); }
.bhw-metric-sub { font-size: 12px; margin-top: 4px; }

/* ─── Browse Layout ───────────────────────────────────────────────────────── */
.bhw-browse-wrap { display: flex; gap: 24px; align-items: flex-start; }
.bhw-filters-panel { width: 240px; flex-shrink: 0; background: var(--bhw-white); border-radius: var(--bhw-radius); padding: 20px; box-shadow: var(--bhw-shadow); position: sticky; top: 80px; }
.bhw-filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.bhw-filters-header h3 { margin: 0; font-size: 14px; color: var(--bhw-primary); }
.bhw-filters-reset { background: transparent; border: none; color: var(--bhw-muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.bhw-filter-group { margin-bottom: 16px; }
.bhw-filter-group label { font-size: 12px; font-weight: 600; color: var(--bhw-text); margin-bottom: 6px; display: block; }
.bhw-filter-input { width: 100%; padding: 7px 10px; border: 1.5px solid var(--bhw-border); border-radius: var(--bhw-radius); font-size: 13px; box-sizing: border-box; }
.bhw-filter-checks { display: flex; flex-direction: column; gap: 6px; }
.bhw-filter-checks label { font-weight: 400; font-size: 12px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.bhw-filter-checks--scroll { max-height: 160px; overflow-y: auto; }
.bhw-listings-main, .bhw-candidates-main { flex: 1; min-width: 0; }
.bhw-listings-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.bhw-listings-count { font-size: 14px; color: var(--bhw-muted); }
.bhw-mobile-filter-toggle { display: none; }

/* ─── Listing Cards ───────────────────────────────────────────────────────── */
.bhw-listings-grid { display: flex; flex-direction: column; gap: 12px; }
.bhw-listing-card { background: var(--bhw-white); border-radius: var(--bhw-radius); padding: 20px; box-shadow: var(--bhw-shadow); border: 1px solid var(--bhw-border); transition: box-shadow 0.15s; }
.bhw-listing-card:hover { box-shadow: var(--bhw-shadow-lg); }
.bhw-listing-card--featured { border-left: 3px solid var(--bhw-secondary); }
.bhw-listing-card-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; position: relative; }
.bhw-shop-logo { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.bhw-shop-logo-placeholder { width: 48px; height: 48px; background: var(--bhw-bg); border-radius: 6px; flex-shrink: 0; }
.bhw-listing-title { font-size: 17px; font-weight: 700; color: var(--bhw-primary); margin: 0 0 2px; }
.bhw-shop-name { font-size: 13px; color: var(--bhw-muted); margin: 0; }
.bhw-listing-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.bhw-listing-comp { font-size: 16px; font-weight: 700; color: var(--bhw-primary); margin-bottom: 8px; }
.bhw-listing-specialties { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.bhw-listing-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bhw-border); }
.bhw-listing-date { font-size: 12px; color: var(--bhw-muted); }

/* Listing rows (for dashboard) */
.bhw-listing-row { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--bhw-white); border: 1px solid var(--bhw-border); border-radius: var(--bhw-radius); margin-bottom: 8px; }
.bhw-listing-row--expiring { border-left: 3px solid var(--bhw-warning); }
.bhw-listing-row-info h4 { margin: 0 0 4px; font-size: 15px; color: var(--bhw-primary); }
.bhw-listing-row-info p { margin: 0 0 4px; font-size: 13px; color: var(--bhw-muted); }
.bhw-listing-stats { display: flex; gap: 16px; }
.bhw-listing-stats span { font-size: 12px; color: var(--bhw-muted); }
.bhw-listing-row-actions { display: flex; gap: 8px; }
.bhw-tab-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.bhw-tab-toolbar h3 { margin: 0; }

/* ─── Candidate Cards ─────────────────────────────────────────────────────── */
.bhw-candidate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.bhw-candidate-card { background: var(--bhw-white); border-radius: var(--bhw-radius); padding: 16px; box-shadow: var(--bhw-shadow); border: 1px solid var(--bhw-border); display: flex; flex-direction: column; gap: 10px; }
.bhw-ccard-photo-wrap { position: relative; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin: 0 auto; }
.bhw-ccard-photo { width: 100%; height: 100%; object-fit: cover; }
.bhw-ccard-photo-placeholder { width: 64px; height: 64px; background: var(--bhw-bg); border-radius: 50%; }
.bhw-blurred img, .bhw-blurred .bhw-ccard-photo { filter: blur(12px); }
.bhw-blur-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(27,58,75,0.4); border-radius: 50%; }
.bhw-blur-overlay p { color: var(--bhw-white); font-size: 10px; text-align: center; margin: 0; }
.bhw-ccard-info { flex: 1; }
.bhw-ccard-info h4 { margin: 0 0 4px; font-size: 15px; color: var(--bhw-primary); }
.bhw-ccard-location, .bhw-ccard-detail, .bhw-ccard-arrangement { font-size: 12px; color: var(--bhw-muted); margin: 0 0 3px; }
.bhw-ccard-bio { font-size: 12px; color: var(--bhw-text); margin: 6px 0; line-height: 1.5; }
.bhw-ccard-specs { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.bhw-ccard-contact-info { font-size: 12px; color: var(--bhw-primary); margin-top: 6px; }
.bhw-ccard-actions { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.bhw-ccard-completeness { margin-top: 4px; }
.bhw-comp-bar { height: 3px; background: var(--bhw-border); border-radius: 2px; }
.bhw-comp-fill { height: 100%; background: var(--bhw-success); border-radius: 2px; transition: width 0.3s; }

/* ─── Profile Completeness (candidate dashboard) ─────────────────────────── */
.bhw-dashboard-header-left { display: flex; gap: 16px; align-items: center; }
.bhw-cand-photo-wrap { position: relative; width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; }
.bhw-cand-photo-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.bhw-cand-photo-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--bhw-bg); }
.bhw-photo-upload-btn { position: absolute; bottom: 0; right: 0; background: var(--bhw-primary); color: var(--bhw-white); border: none; border-radius: 50%; width: 24px; height: 24px; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bhw-completeness-bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.bhw-completeness-track { height: 8px; width: 200px; background: var(--bhw-border); border-radius: 4px; overflow: hidden; }
.bhw-completeness-fill { height: 100%; background: var(--bhw-success); border-radius: 4px; transition: width 0.4s; }
.bhw-completeness-tip { font-size: 12px; color: var(--bhw-warning); margin: 4px 0 0; }

/* ─── Portfolio ───────────────────────────────────────────────────────────── */
.bhw-portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bhw-portfolio-item { position: relative; border-radius: var(--bhw-radius); overflow: hidden; aspect-ratio: 1; }
.bhw-portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.bhw-portfolio-delete { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.6); color: var(--bhw-white); border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bhw-upload-area { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; border: 2px dashed var(--bhw-border); border-radius: var(--bhw-radius); cursor: pointer; color: var(--bhw-muted); font-size: 13px; transition: border-color 0.15s; }
.bhw-upload-area:hover { border-color: var(--bhw-primary); }
.bhw-upload-icon { font-size: 28px; }

/* ─── Kanban ──────────────────────────────────────────────────────────────── */
.bhw-kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; }
.bhw-kanban-col { flex: 0 0 200px; background: var(--bhw-bg); border-radius: var(--bhw-radius); padding: 12px; }
.bhw-kanban-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--bhw-muted); margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.bhw-col-count { background: var(--bhw-border); border-radius: 10px; padding: 1px 7px; font-size: 11px; }
.bhw-kanban-cards { display: flex; flex-direction: column; gap: 8px; }
.bhw-kanban-card { background: var(--bhw-white); border-radius: 4px; padding: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.bhw-kcard-header { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.bhw-kcard-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.bhw-kcard-photo-placeholder { width: 32px; height: 32px; border-radius: 50%; background: var(--bhw-bg); }
.bhw-kcard-name { font-size: 12px; font-weight: 600; margin: 0; }
.bhw-kcard-meta { font-size: 11px; color: var(--bhw-muted); margin: 0; }
.bhw-kcard-detail { font-size: 11px; color: var(--bhw-muted); margin: 0 0 4px; }
.bhw-kcard-listing { font-size: 10px; color: var(--bhw-muted); margin: 0 0 8px; font-style: italic; }
.bhw-kcard-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.bhw-kanban-empty { color: var(--bhw-muted); font-size: 12px; text-align: center; padding: 12px 0; }

/* ─── Messages ────────────────────────────────────────────────────────────── */
.bhw-messages-list { display: flex; flex-direction: column; gap: 12px; }
.bhw-message-item { background: var(--bhw-white); border: 1px solid var(--bhw-border); border-radius: var(--bhw-radius); padding: 16px; }
.bhw-message-item--unread { border-left: 3px solid var(--bhw-primary); }
.bhw-message-header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.bhw-msg-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.bhw-msg-photo-placeholder { width: 36px; height: 36px; border-radius: 50%; background: var(--bhw-bg); }
.bhw-msg-time { font-size: 11px; color: var(--bhw-muted); margin-left: 8px; }
.bhw-message-body { font-size: 14px; line-height: 1.6; color: var(--bhw-text); margin-bottom: 12px; }
.bhw-reply-form textarea { width: 100%; border: 1.5px solid var(--bhw-border); border-radius: var(--bhw-radius); padding: 10px; font-size: 13px; box-sizing: border-box; margin-bottom: 8px; }
.bhw-replied-badge { font-size: 12px; color: var(--bhw-success); font-weight: 600; }

/* ─── Modal ───────────────────────────────────────────────────────────────── */
.bhw-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.bhw-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.bhw-modal-content { position: relative; background: var(--bhw-white); border-radius: 10px; max-width: 640px; width: 92%; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: var(--bhw-shadow-lg); }
.bhw-modal-content--form { max-width: 700px; }
.bhw-modal-close { position: absolute; top: 16px; right: 16px; background: transparent; border: none; font-size: 22px; cursor: pointer; color: var(--bhw-muted); line-height: 1; }
.bhw-modal-shop-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.bhw-modal-logo { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.bhw-modal-body h2 { margin: 0 0 4px; font-size: 22px; }
.bhw-modal-shop-name { font-size: 15px; color: var(--bhw-muted); margin: 0 0 4px; }
.bhw-modal-location { font-size: 14px; color: var(--bhw-muted); margin: 0; }
.bhw-modal-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.bhw-modal-section { margin-bottom: 20px; }
.bhw-modal-section h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--bhw-muted); margin: 0 0 8px; }
.bhw-modal-desc { font-size: 14px; line-height: 1.7; color: var(--bhw-text); }
.bhw-modal-apply { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--bhw-border); }
.bhw-modal-apply textarea { width: 100%; border: 1.5px solid var(--bhw-border); border-radius: var(--bhw-radius); padding: 10px; font-size: 13px; margin-bottom: 12px; box-sizing: border-box; }
.bhw-modal-apply-cta { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--bhw-border); text-align: center; }
.bhw-modal-apply-cta p { margin-bottom: 16px; color: var(--bhw-muted); }

/* ─── Pagination ──────────────────────────────────────────────────────────── */
.bhw-pager { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 24px; }
.bhw-pager-btn { padding: 8px 18px; border: 1.5px solid var(--bhw-primary); border-radius: var(--bhw-radius); background: transparent; color: var(--bhw-primary); font-size: 13px; cursor: pointer; transition: all 0.15s; }
.bhw-pager-btn:hover { background: var(--bhw-primary); color: var(--bhw-white); }
.bhw-pager-info { font-size: 13px; color: var(--bhw-muted); }

/* ─── Upsell ──────────────────────────────────────────────────────────────── */
.bhw-upsell-note { background: #fffbe6; border: 1px solid #ffe58f; border-radius: var(--bhw-radius); padding: 12px 16px; font-size: 13px; color: #614700; margin-bottom: 16px; }

/* ─── Utility ─────────────────────────────────────────────────────────────── */
.bhw-link { color: var(--bhw-primary); text-decoration: underline; cursor: pointer; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .bhw-auth-wrap { flex-direction: column; }
    .bhw-auth-benefits { flex: none; width: 100%; box-sizing: border-box; }
    .bhw-metric-grid { grid-template-columns: 1fr 1fr; }
    .bhw-browse-wrap { flex-direction: column; }
    .bhw-filters-panel { width: 100%; position: static; display: none; }
    .bhw-filters-panel.open { display: block; }
    .bhw-mobile-filter-toggle { display: inline-flex; }
    .bhw-field-row { grid-template-columns: 1fr; }
    .bhw-dashboard-header { flex-direction: column; gap: 16px; }
    .bhw-kanban { min-width: 0; }
    .bhw-kanban-col { flex: 0 0 180px; }
    .bhw-candidate-grid { grid-template-columns: 1fr 1fr; }
    .bhw-completeness-track { width: 140px; }
}

@media (max-width: 480px) {
    .bhw-metric-grid { grid-template-columns: 1fr; }
    .bhw-candidate-grid { grid-template-columns: 1fr; }
    .bhw-modal-content { padding: 20px; }
    .bhw-steps { display: none; }
}
