/* ============================================================
   PinDoulia Dashboards -- dashboards.css
   Compatible with existing theme variables
   ============================================================ */

/* ---- Variables ---- */
:root {
    --pd-primary:     #1a3c6e;
    --pd-primary-lt:  #2a5298;
    --pd-employer:    #d4621b;
    --pd-employer-lt: #e8783a;
    --pd-white:       #ffffff;
    --pd-gray-50:     #f8f9fc;
    --pd-gray-100:    #eef0f5;
    --pd-gray-200:    #dde2ee;
    --pd-gray-400:    #9099b4;
    --pd-gray-600:    #545f80;
    --pd-gray-800:    #1e2440;
    --pd-green:       #16a34a;
    --pd-red:         #dc2626;
    --pd-shadow-sm:   0 1px 4px rgba(30,36,64,0.08);
    --pd-shadow-md:   0 4px 20px rgba(30,36,64,0.12);
    --pd-shadow-lg:   0 12px 40px rgba(30,36,64,0.16);
    --pd-radius:      10px;
    --pd-radius-sm:   6px;
    --pd-sidebar-w:   260px;
}

/* ============================================================
   BUTTONS
============================================================ */
.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--pd-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.18s ease;
    line-height: 1.2;
    white-space: nowrap;
}
.pd-btn--primary {
    background: var(--pd-primary);
    color: var(--pd-white) !important;
    border-color: var(--pd-primary);
}
.pd-btn--primary:hover { background: var(--pd-primary-lt); border-color: var(--pd-primary-lt); }
.pd-btn--employer {
    background: var(--pd-employer);
    color: var(--pd-white) !important;
    border-color: var(--pd-employer);
}
.pd-btn--employer:hover { background: var(--pd-employer-lt); border-color: var(--pd-employer-lt); }
.pd-btn--outline {
    background: transparent;
    color: var(--pd-primary) !important;
    border-color: var(--pd-primary);
}
.pd-btn--outline:hover { background: var(--pd-primary); color: var(--pd-white) !important; }
.pd-btn--employer-outline {
    color: var(--pd-employer) !important;
    border-color: var(--pd-employer);
}
.pd-btn--employer-outline:hover { background: var(--pd-employer); color: var(--pd-white) !important; }
.pd-btn--ghost { background: transparent; color: var(--pd-primary) !important; border-color: transparent; }
.pd-btn--ghost:hover { background: var(--pd-gray-100); }
.pd-btn--white { background: var(--pd-white); color: var(--pd-primary) !important; }
.pd-btn--white:hover { background: var(--pd-gray-100); }
.pd-btn--danger { background: var(--pd-red); color: var(--pd-white) !important; border-color: var(--pd-red); font-size: 0.8rem; }
.pd-btn--lg { padding: 13px 30px; font-size: 1.05rem; }
.pd-btn--sm { padding: 6px 14px; font-size: 0.82rem; }
.pd-btn--full { width: 100%; }
.pd-btn--half { flex: 1; }

/* ============================================================
   FORMS
============================================================ */
.pd-form { display: flex; flex-direction: column; gap: 18px; }
.pd-form__group { display: flex; flex-direction: column; gap: 6px; }
.pd-form__group label { font-size: 0.88rem; font-weight: 600; color: var(--pd-gray-600); }
.pd-form__group input,
.pd-form__group select,
.pd-form__group textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--pd-gray-200);
    border-radius: var(--pd-radius-sm);
    font-size: 0.95rem;
    color: var(--pd-gray-800);
    background: var(--pd-white);
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.pd-form__group input:focus,
.pd-form__group select:focus,
.pd-form__group textarea:focus {
    outline: none;
    border-color: var(--pd-primary);
    box-shadow: 0 0 0 3px rgba(26,60,110,0.1);
}
.pd-form__row { display: flex; gap: 16px; }
.pd-form__row--2col > * { flex: 1; }
.pd-form__row--3col > * { flex: 1; }
.pd-form__row--spread { display: flex; align-items: center; justify-content: space-between; }
.pd-form__help { font-size: 0.8rem; color: var(--pd-gray-400); margin-top: 2px; }
.pd-form__footer-note { font-size: 0.88rem; color: var(--pd-gray-600); text-align: center; margin: 4px 0; }
.pd-form__footer-note a { color: var(--pd-primary); font-weight: 600; }
.pd-form__actions { display: flex; gap: 12px; align-items: center; }
.pd-form-section { background: var(--pd-gray-50); border: 1px solid var(--pd-gray-100); border-radius: var(--pd-radius); padding: 24px; }
.pd-form-section__title { font-size: 1rem; font-weight: 700; color: var(--pd-primary); margin: 0 0 18px 0; padding-bottom: 12px; border-bottom: 1px solid var(--pd-gray-200); }
.pd-form--dashboard { gap: 20px; }
.pd-required { color: var(--pd-red); }
.pd-checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; cursor: pointer; }

.pd-form-message { padding: 12px 16px; border-radius: var(--pd-radius-sm); font-size: 0.9rem; font-weight: 500; }
.pd-form-message--success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.pd-form-message--error   { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }

/* ============================================================
   AUTH (Registration / Login)
============================================================ */
.pd-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 80px;
    min-height: 60vh;
}
.pd-auth-card {
    background: var(--pd-white);
    border-radius: 14px;
    box-shadow: var(--pd-shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 520px;
}
.pd-auth-card__header { text-align: center; margin-bottom: 28px; }
.pd-auth-card__icon { font-size: 2.8rem; margin-bottom: 10px; }
.pd-auth-card__icon--employer { }
.pd-auth-card__header h2 { font-size: 1.6rem; color: var(--pd-gray-800); margin: 0 0 6px; }
.pd-auth-card__header p { color: var(--pd-gray-400); margin: 0; }
.pd-auth-divider { display: flex; align-items: center; gap: 12px; color: var(--pd-gray-400); font-size: 0.85rem; }
.pd-auth-divider::before, .pd-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--pd-gray-200); }
.pd-auth-register-links { display: flex; gap: 12px; }
.pd-link { color: var(--pd-primary); font-weight: 500; font-size: 0.88rem; text-decoration: none; }
.pd-link:hover { text-decoration: underline; }

/* ============================================================
   DASHBOARD LAYOUT
============================================================ */
.pd-dashboard {
    display: flex;
    min-height: calc(100vh - 80px);
    background: var(--pd-gray-50);
}

/* Sidebar */
.pd-dashboard__sidebar {
    width: var(--pd-sidebar-w);
    min-width: var(--pd-sidebar-w);
    background: var(--pd-gray-800);
    color: var(--pd-white);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.pd-dashboard__sidebar--employer { background: #1e1a14; }

.pd-sidebar__avatar { display: flex; align-items: center; gap: 12px; padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pd-sidebar__avatar img { border-radius: 50%; width: 48px; height: 48px; object-fit: cover; }
.pd-sidebar__user-info { display: flex; flex-direction: column; }
.pd-sidebar__user-info strong { font-size: 0.95rem; color: var(--pd-white); }
.pd-sidebar__user-info span { font-size: 0.78rem; color: var(--pd-gray-400); }

.pd-sidebar__company { display: flex; align-items: center; gap: 12px; padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pd-sidebar__company-logo { width: 48px; height: 48px; border-radius: 10px; background: var(--pd-employer); color: white; font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pd-sidebar__company-info { display: flex; flex-direction: column; }
.pd-sidebar__company-info strong { font-size: 0.95rem; color: var(--pd-white); }
.pd-sidebar__company-info span { font-size: 0.78rem; color: var(--pd-gray-400); }

.pd-sidebar__nav { flex: 1; padding: 16px 0; }
.pd-sidebar__link {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.9rem; font-weight: 500;
    text-decoration: none !important;
    transition: all 0.15s;
    position: relative;
}
.pd-sidebar__link:hover { color: var(--pd-white) !important; background: rgba(255,255,255,0.07); }
.pd-sidebar__link--active { color: var(--pd-white) !important; background: rgba(255,255,255,0.12); }
.pd-sidebar__link--active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pd-employer); border-radius: 0 2px 2px 0; }
.pd-employer-dashboard .pd-sidebar__link--active::before { background: var(--pd-employer); }
.pd-seeker-dashboard .pd-sidebar__link--active::before { background: #4a9eff; }
.pd-sidebar__link-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.pd-sidebar__badge { background: var(--pd-red); color: white; font-size: 0.72rem; font-weight: 700; padding: 2px 6px; border-radius: 10px; margin-left: auto; }

.pd-sidebar__footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.pd-profile-visibility { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.82rem; color: var(--pd-gray-400); }
.pd-toggle { position: relative; display: inline-block; width: 38px; height: 20px; flex-shrink: 0; }
.pd-toggle input { opacity: 0; width: 0; height: 0; }
.pd-toggle__slider { position: absolute; inset: 0; background: var(--pd-gray-600); border-radius: 20px; cursor: pointer; transition: 0.2s; }
.pd-toggle__slider::before { content: ''; position: absolute; height: 14px; width: 14px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s; }
.pd-toggle input:checked + .pd-toggle__slider { background: var(--pd-green); }
.pd-toggle input:checked + .pd-toggle__slider::before { transform: translateX(18px); }
.pd-sidebar__logout { color: rgba(255,255,255,0.4) !important; font-size: 0.82rem; text-decoration: none !important; display: block; }
.pd-sidebar__logout:hover { color: var(--pd-white) !important; }

/* Main content */
.pd-dashboard__main { flex: 1; padding: 32px; overflow-y: auto; }
.pd-tab-panel { display: none; }
.pd-tab-panel--active { display: block; }

.pd-dashboard__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.pd-dashboard__header h2 { font-size: 1.5rem; color: var(--pd-gray-800); margin: 0; }

/* ============================================================
   STATS & CARDS
============================================================ */
.pd-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.pd-stat-card { background: var(--pd-white); border-radius: var(--pd-radius); padding: 20px; box-shadow: var(--pd-shadow-sm); text-align: center; border: 1px solid var(--pd-gray-100); }
.pd-stat-card__number { font-size: 1.6rem; font-weight: 800; color: var(--pd-primary); margin-bottom: 4px; }
.pd-stat-card__label { font-size: 0.8rem; color: var(--pd-gray-400); font-weight: 500; }

.pd-completion-card { background: var(--pd-white); border-radius: var(--pd-radius); padding: 20px 24px; box-shadow: var(--pd-shadow-sm); border: 1px solid var(--pd-gray-100); display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.pd-completion-card__info h3 { font-size: 1rem; margin: 0 0 2px; color: var(--pd-gray-800); }
.pd-completion-card__info p { font-size: 0.85rem; color: var(--pd-gray-400); margin: 0; }
.pd-completion-card__bar-wrap { display: flex; align-items: center; gap: 10px; flex: 1; }
.pd-completion-bar { flex: 1; height: 8px; background: var(--pd-gray-100); border-radius: 4px; overflow: hidden; }
.pd-completion-bar__fill { height: 100%; background: linear-gradient(90deg, var(--pd-primary), #4a9eff); border-radius: 4px; transition: width 0.4s ease; }
.pd-completion-pct { font-weight: 700; color: var(--pd-primary); font-size: 0.9rem; white-space: nowrap; }

/* ============================================================
   QUICK ACTIONS
============================================================ */
.pd-quick-actions { margin-bottom: 28px; }
.pd-quick-actions h3 { font-size: 1rem; color: var(--pd-gray-600); font-weight: 600; margin: 0 0 14px; }
.pd-quick-actions__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pd-quick-action {
    background: var(--pd-white);
    border: 1.5px solid var(--pd-gray-200);
    border-radius: var(--pd-radius);
    padding: 16px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pd-primary) !important;
    text-decoration: none !important;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    transition: all 0.15s;
}
.pd-quick-action:hover { border-color: var(--pd-primary); background: var(--pd-gray-50); transform: translateY(-1px); box-shadow: var(--pd-shadow-sm); }
.pd-quick-action--employer { color: var(--pd-employer) !important; }
.pd-quick-action--employer:hover { border-color: var(--pd-employer); }
.pd-quick-action span { font-size: 1.3rem; }

/* ============================================================
   RECENT JOBS (employer overview)
============================================================ */
.pd-recent-jobs { background: var(--pd-white); border-radius: var(--pd-radius); padding: 20px 24px; box-shadow: var(--pd-shadow-sm); border: 1px solid var(--pd-gray-100); }
.pd-recent-jobs__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pd-recent-jobs__header h3 { font-size: 1rem; margin: 0; color: var(--pd-gray-800); }
.pd-recent-job-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--pd-gray-100); }
.pd-recent-job-row:last-child { border-bottom: none; }
.pd-recent-job-row__title a { color: var(--pd-gray-800); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.pd-recent-job-row__title a:hover { color: var(--pd-primary); }

/* Loading lines */
.pd-loading-line { height: 14px; background: var(--pd-gray-100); border-radius: 4px; margin-bottom: 10px; animation: pdPulse 1.4s ease-in-out infinite; }
.pd-loading-line--short { width: 60%; }
@keyframes pdPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ============================================================
   SKILLS
============================================================ */
.pd-skills-preview { display: flex; flex-wrap: wrap; gap: 6px; min-height: 12px; }
.pd-skill-tag { background: rgba(26,60,110,0.08); color: var(--pd-primary); border: 1px solid rgba(26,60,110,0.15); padding: 4px 10px; border-radius: 20px; font-size: 0.82rem; font-weight: 500; }
.pd-skill-tag--sm { font-size: 0.75rem; padding: 3px 8px; }

/* ============================================================
   RESUME
============================================================ */
.pd-resume-section { display: flex; flex-direction: column; gap: 24px; }
.pd-resume-current { display: flex; align-items: center; gap: 16px; background: var(--pd-white); border: 1px solid var(--pd-gray-200); border-radius: var(--pd-radius); padding: 16px 20px; box-shadow: var(--pd-shadow-sm); }
.pd-resume-current__icon { font-size: 2rem; }
.pd-resume-current__info { flex: 1; display: flex; flex-direction: column; }
.pd-resume-current__info strong { color: var(--pd-gray-800); font-size: 0.95rem; }
.pd-resume-current__info span { color: var(--pd-gray-400); font-size: 0.82rem; }

.pd-resume-upload-area {
    background: var(--pd-white);
    border: 2px dashed var(--pd-gray-200);
    border-radius: var(--pd-radius);
    padding: 40px;
    text-align: center;
    transition: border-color 0.2s;
}
.pd-resume-upload-area:hover { border-color: var(--pd-primary); }
.pd-resume-upload-area__icon { font-size: 2.5rem; margin-bottom: 12px; }
.pd-resume-upload-area h3 { font-size: 1.1rem; margin: 0 0 6px; color: var(--pd-gray-800); }
.pd-resume-upload-area p { color: var(--pd-gray-400); font-size: 0.88rem; margin: 0 0 16px; }
.pd-resume-filename { font-size: 0.88rem; color: var(--pd-primary); margin: 10px 0; font-weight: 500; }

.pd-resume-tips { background: var(--pd-gray-50); border-radius: var(--pd-radius); padding: 20px 24px; }
.pd-resume-tips h3 { font-size: 0.95rem; margin: 0 0 12px; color: var(--pd-gray-800); }
.pd-resume-tips ul { margin: 0; padding-left: 20px; }
.pd-resume-tips li { font-size: 0.88rem; color: var(--pd-gray-600); margin-bottom: 6px; }

/* ============================================================
   JOB ALERTS
============================================================ */
.pd-alert-form-wrap { margin-bottom: 20px; }
.pd-alert-form-card { background: var(--pd-white); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow-md); padding: 24px; border-top: 3px solid var(--pd-primary); }
.pd-alert-form-card h3 { margin: 0 0 16px; font-size: 1rem; color: var(--pd-primary); }
.pd-alert-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--pd-gray-100); gap: 12px; }
.pd-alert-row:last-child { border-bottom: none; }
.pd-alert-row__info { font-size: 0.9rem; color: var(--pd-gray-800); flex: 1; }
.pd-alert-row__info strong { font-weight: 700; }
.pd-alert-row__meta { display: flex; align-items: center; gap: 8px; }
.pd-alerts-table { background: var(--pd-white); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow-sm); padding: 8px 20px; }

/* ============================================================
   JOB TABLE (employer my jobs)
============================================================ */
.pd-table { width: 100%; border-collapse: collapse; background: var(--pd-white); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow-sm); overflow: hidden; }
.pd-table thead { background: var(--pd-gray-800); }
.pd-table thead th { padding: 12px 16px; font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.7); text-align: left; }
.pd-table tbody td { padding: 13px 16px; font-size: 0.88rem; color: var(--pd-gray-600); border-bottom: 1px solid var(--pd-gray-100); }
.pd-table tbody tr:last-child td { border-bottom: none; }
.pd-table tbody a { color: var(--pd-gray-800); font-weight: 600; text-decoration: none; }
.pd-table tbody a:hover { color: var(--pd-primary); }

/* ============================================================
   TALENT SEARCH
============================================================ */
.pd-talent-search-bar { background: var(--pd-white); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow-sm); padding: 20px; margin-bottom: 24px; border: 1px solid var(--pd-gray-100); }
.pd-talent-search-bar__fields { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-talent-search-bar__fields input,
.pd-talent-search-bar__fields select {
    flex: 1; min-width: 160px;
    padding: 10px 14px;
    border: 1.5px solid var(--pd-gray-200);
    border-radius: var(--pd-radius-sm);
    font-size: 0.9rem;
    color: var(--pd-gray-800);
    background: var(--pd-gray-50);
    box-sizing: border-box;
}
.pd-talent-search-bar__fields input:focus,
.pd-talent-search-bar__fields select:focus {
    outline: none; border-color: var(--pd-employer);
    box-shadow: 0 0 0 3px rgba(212,98,27,0.1);
}

.pd-candidate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pd-candidate-card { background: var(--pd-white); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow-sm); padding: 20px; border: 1px solid var(--pd-gray-100); transition: box-shadow 0.2s; display: flex; flex-direction: column; gap: 12px; }
.pd-candidate-card:hover { box-shadow: var(--pd-shadow-md); }
.pd-candidate-card__header { display: flex; align-items: center; gap: 12px; }
.pd-candidate-card__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.pd-candidate-card__info { flex: 1; }
.pd-candidate-card__info strong { display: block; font-size: 0.95rem; color: var(--pd-gray-800); }
.pd-candidate-card__info span { display: block; font-size: 0.82rem; color: var(--pd-gray-400); }
.pd-candidate-location { color: var(--pd-gray-400) !important; font-size: 0.8rem !important; }
.pd-candidate-card__skills { display: flex; flex-wrap: wrap; gap: 5px; }
.pd-candidate-card__bio { font-size: 0.85rem; color: var(--pd-gray-600); margin: 0; line-height: 1.5; }
.pd-candidate-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-candidate-card__meta span { font-size: 0.78rem; color: var(--pd-gray-400); background: var(--pd-gray-50); padding: 3px 8px; border-radius: 4px; }
.pd-candidate-card__actions { display: flex; gap: 8px; margin-top: 4px; }
.pd-loading-overlay { display: flex; align-items: center; justify-content: center; padding: 60px; }
.pd-loading-spinner { width: 32px; height: 32px; border: 3px solid var(--pd-gray-200); border-top-color: var(--pd-employer); border-radius: 50%; animation: pdSpin 0.8s linear infinite; }
@keyframes pdSpin { to { transform: rotate(360deg); } }

/* ============================================================
   BADGES
============================================================ */
.pd-badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.pd-badge--active   { background: #dcfce7; color: #16a34a; }
.pd-badge--pending  { background: #fef9c3; color: #a16207; }
.pd-badge--draft    { background: var(--pd-gray-100); color: var(--pd-gray-400); }
.pd-badge--inactive { background: var(--pd-gray-100); color: var(--pd-gray-400); }
.pd-badge--freq     { background: rgba(26,60,110,0.08); color: var(--pd-primary); }
.pd-badge--unlocked { background: #dcfce7; color: #16a34a; font-size: 0.75rem; }
.pd-badge--count    { background: var(--pd-red); color: white; padding: 2px 6px; border-radius: 10px; font-size: 0.7rem; }

/* ============================================================
   EMPTY STATES & NOTICES
============================================================ */
.pd-empty-state { text-align: center; padding: 60px 24px; }
.pd-empty-state__icon { font-size: 3rem; margin-bottom: 12px; display: block; }
.pd-empty-state h3 { font-size: 1.1rem; color: var(--pd-gray-800); margin: 0 0 8px; }
.pd-empty-state p { color: var(--pd-gray-400); font-size: 0.9rem; margin: 0 0 20px; }
.pd-notice { padding: 12px 18px; border-radius: var(--pd-radius-sm); font-size: 0.9rem; margin-bottom: 20px; }
.pd-notice--info { background: #eff6ff; color: #1d4ed8; border-left: 4px solid #3b82f6; }
.pd-green { color: var(--pd-green); }
.pd-muted  { color: var(--pd-gray-400); }

/* ============================================================
   MODALS
============================================================ */
.pd-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.pd-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
.pd-modal__content { position: relative; background: var(--pd-white); border-radius: 14px; box-shadow: var(--pd-shadow-lg); width: 90%; max-width: 500px; z-index: 1; overflow: hidden; }
.pd-modal__content--sm { max-width: 380px; }
.pd-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--pd-gray-100); }
.pd-modal__header h3 { font-size: 1.1rem; margin: 0; color: var(--pd-gray-800); }
.pd-modal__close { background: none; border: none; font-size: 1.5rem; color: var(--pd-gray-400); cursor: pointer; padding: 0; line-height: 1; }
.pd-modal__close:hover { color: var(--pd-gray-800); }
.pd-modal__body { padding: 24px; }
.pd-modal__note { font-size: 0.78rem; color: var(--pd-gray-400); text-align: center; margin: 8px 0 0; }
.pd-unlock-price { font-size: 2rem; font-weight: 800; color: var(--pd-employer); text-align: center; margin: 16px 0; }
.pd-unlock-price span { font-size: 1rem; font-weight: 400; color: var(--pd-gray-400); }

/* ============================================================
   MESSAGES INBOX
============================================================ */
.pd-messages-wrap { display: flex; height: calc(100vh - 100px); background: var(--pd-gray-50); }
.pd-messages__sidebar { width: 300px; min-width: 300px; background: var(--pd-white); border-right: 1px solid var(--pd-gray-100); display: flex; flex-direction: column; }
.pd-messages__sidebar-header { padding: 20px; border-bottom: 1px solid var(--pd-gray-100); }
.pd-messages__sidebar-header h3 { font-size: 1.1rem; margin: 0; color: var(--pd-gray-800); }
.pd-threads-list { flex: 1; overflow-y: auto; }
.pd-threads-empty { padding: 40px 20px; text-align: center; color: var(--pd-gray-400); font-size: 0.9rem; }

.pd-thread-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--pd-gray-50); transition: background 0.12s; }
.pd-thread-item:hover { background: var(--pd-gray-50); }
.pd-thread-item--active { background: rgba(26,60,110,0.06); border-left: 3px solid var(--pd-primary); }
.pd-thread-item__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pd-thread-item__info { flex: 1; min-width: 0; }
.pd-thread-item__name { font-weight: 600; font-size: 0.9rem; color: var(--pd-gray-800); }
.pd-thread-item__preview { font-size: 0.8rem; color: var(--pd-gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-thread-item__time { font-size: 0.72rem; color: var(--pd-gray-400); white-space: nowrap; }

.pd-messages__main { flex: 1; display: flex; flex-direction: column; }
.pd-conversation-area { flex: 1; overflow-y: auto; padding: 24px; }
.pd-conversation__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }

.pd-conv-messages { display: flex; flex-direction: column; gap: 12px; }
.pd-message { display: flex; flex-direction: column; max-width: 70%; }
.pd-message--mine { align-self: flex-end; align-items: flex-end; }
.pd-message--theirs { align-self: flex-start; align-items: flex-start; }
.pd-message__bubble { padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; }
.pd-message--mine .pd-message__bubble { background: var(--pd-primary); color: white; border-bottom-right-radius: 4px; }
.pd-message--theirs .pd-message__bubble { background: var(--pd-white); color: var(--pd-gray-800); border: 1px solid var(--pd-gray-200); border-bottom-left-radius: 4px; }
.pd-message__time { font-size: 0.72rem; color: var(--pd-gray-400); margin-top: 3px; }
.pd-conv-start { text-align: center; color: var(--pd-gray-400); font-size: 0.9rem; }

.pd-reply-area { padding: 16px 24px; border-top: 1px solid var(--pd-gray-100); background: var(--pd-white); }
.pd-reply-area textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--pd-gray-200); border-radius: var(--pd-radius-sm); font-size: 0.9rem; font-family: inherit; resize: none; box-sizing: border-box; }
.pd-reply-area textarea:focus { outline: none; border-color: var(--pd-primary); }
.pd-reply-area__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; }

/* ============================================================
   LANDING PAGES
============================================================ */
.pd-landing { overflow: hidden; }

/* Hero */
.pdl-hero {
    background: linear-gradient(135deg, var(--pd-gray-800) 0%, var(--pd-primary) 100%);
    color: white;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}
.pdl-hero--employer {
    background: linear-gradient(135deg, #1e1a14 0%, #4a2800 50%, var(--pd-employer) 100%);
}
.pdl-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.pdl-hero__inner { flex: 1; position: relative; z-index: 1; }
.pdl-hero__badge { display: inline-block; padding: 5px 14px; border-radius: 20px; background: rgba(255,255,255,0.15); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; }
.pdl-hero__badge--employer { background: rgba(255,255,255,0.12); }
.pdl-hero__title { font-size: 3rem; font-weight: 800; line-height: 1.15; margin: 0 0 20px; }
.pdl-accent { color: #7dd3fc; }
.pdl-accent--employer { color: #fdba74; }
.pdl-hero__subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 480px; line-height: 1.65; margin: 0 0 32px; }
.pdl-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.pdl-hero__visual { flex: 1; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.pdl-hero__stat-card { background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--pd-radius); padding: 18px 22px; }
.pdl-hero__stat-card--2, .pdl-hero__stat-card--emp2 { margin-left: 30px; }
.pdl-hero__stat-card--3, .pdl-hero__stat-card--emp3 { margin-left: 60px; }
.pdl-stat-number { display: block; font-size: 1.6rem; font-weight: 800; color: white; }
.pdl-stat-label  { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* Features */
.pdl-features { padding: 80px 40px; background: var(--pd-white); }
.pdl-features--employer { background: var(--pd-gray-50); }
.pdl-container { max-width: 1100px; margin: 0 auto; }
.pdl-section-title { text-align: center; font-size: 1.9rem; font-weight: 800; color: var(--pd-gray-800); margin: 0 0 12px; }
.pdl-section-subtitle { text-align: center; color: var(--pd-gray-400); font-size: 1rem; margin: 0 0 40px; }
.pdl-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.pdl-feature-card { background: var(--pd-gray-50); border-radius: var(--pd-radius); padding: 28px; border: 1px solid var(--pd-gray-100); transition: box-shadow 0.2s, transform 0.2s; }
.pdl-feature-card--employer { background: var(--pd-white); }
.pdl-feature-card:hover { box-shadow: var(--pd-shadow-md); transform: translateY(-2px); }
.pdl-feature-card__icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.pdl-feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--pd-gray-800); margin: 0 0 8px; }
.pdl-feature-card p { font-size: 0.88rem; color: var(--pd-gray-600); line-height: 1.6; margin: 0; }

/* How it works */
.pdl-how-it-works { padding: 80px 40px; background: var(--pd-gray-50); }
.pdl-how-it-works--seeker { background: var(--pd-white); }
.pdl-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-top: 48px; }
.pdl-step { flex: 1; text-align: center; padding: 0 24px; }
.pdl-step__number { width: 52px; height: 52px; border-radius: 50%; background: var(--pd-primary); color: white; font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.pdl-step h3 { font-size: 1rem; font-weight: 700; color: var(--pd-gray-800); margin: 0 0 8px; }
.pdl-step p { font-size: 0.88rem; color: var(--pd-gray-600); line-height: 1.6; margin: 0; }
.pdl-step__arrow { font-size: 1.5rem; color: var(--pd-gray-200); padding-top: 16px; flex-shrink: 0; }

/* Pricing */
.pdl-pricing-teaser { padding: 80px 40px; background: var(--pd-gray-50); }
.pdl-pricing__grid { display: flex; gap: 24px; justify-content: center; max-width: 700px; margin: 0 auto; }
.pdl-pricing-card { background: var(--pd-white); border-radius: 14px; padding: 32px; border: 1.5px solid var(--pd-gray-200); flex: 1; display: flex; flex-direction: column; gap: 16px; }
.pdl-pricing-card--featured { border-color: var(--pd-employer); background: linear-gradient(135deg, #fff8f4 0%, white 100%); position: relative; }
.pdl-pricing-card__label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pd-gray-400); }
.pdl-pricing-card--featured .pdl-pricing-card__label { color: var(--pd-employer); }
.pdl-pricing-card__price { font-size: 2.5rem; font-weight: 800; color: var(--pd-gray-800); }
.pdl-pricing-card__price span { font-size: 1rem; font-weight: 400; color: var(--pd-gray-400); }
.pdl-pricing-card p { font-size: 0.88rem; color: var(--pd-gray-600); line-height: 1.5; margin: 0; }
.pdl-pricing-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pdl-pricing-card__list li { font-size: 0.88rem; color: var(--pd-gray-600); }
.pdl-pricing-card__note { font-size: 0.78rem; color: var(--pd-gray-400); text-align: center; }
.pdl-pricing-note { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--pd-gray-400); }

/* CTA */
.pdl-cta { padding: 80px 40px; text-align: center; }
.pdl-cta--seeker  { background: linear-gradient(135deg, var(--pd-primary) 0%, var(--pd-primary-lt) 100%); color: white; }
.pdl-cta--employer { background: linear-gradient(135deg, #4a2800 0%, var(--pd-employer) 100%); color: white; }
.pdl-cta__inner h2 { font-size: 2rem; font-weight: 800; margin: 0 0 12px; }
.pdl-cta__inner p { font-size: 1rem; opacity: 0.8; margin: 0 0 28px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .pd-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-quick-actions__grid { grid-template-columns: repeat(2, 1fr); }
    .pdl-features__grid { grid-template-columns: repeat(2, 1fr); }
    .pdl-hero { flex-direction: column; padding: 60px 24px; }
    .pdl-hero__visual { display: none; }
}
@media (max-width: 768px) {
    .pd-dashboard { flex-direction: column; }
    .pd-dashboard__sidebar { width: 100%; height: auto; min-width: unset; position: static; flex-direction: row; flex-wrap: wrap; }
    .pd-dashboard__main { padding: 20px 16px; }
    .pd-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-form__row { flex-direction: column; }
    .pd-form__row--3col { flex-direction: column; }
    .pdl-features__grid { grid-template-columns: 1fr; }
    .pdl-steps { flex-direction: column; align-items: center; }
    .pdl-step__arrow { transform: rotate(90deg); }
    .pdl-pricing__grid { flex-direction: column; }
    .pd-messages-wrap { flex-direction: column; height: auto; }
    .pd-messages__sidebar { width: 100%; }
    .pd-talent-search-bar__fields { flex-direction: column; }
    .pd-candidate-grid { grid-template-columns: 1fr; }
    .pdl-hero__title { font-size: 2rem; }
}

/* ============================================================
   DASHBOARD WIDTH FIX
   Overrides any theme container max-width on dashboard pages
============================================================ */
.pd-seeker-dashboard,
.pd-employer-dashboard,
.pd-messages-wrap {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Also override common theme containers that wrap page content */
.pd-seeker-dashboard *,
.pd-employer-dashboard * {
    box-sizing: border-box;
}

/* Dashboard main panel -- comfortable reading width with breathing room */
.pd-dashboard__main {
    max-width: none;
    min-width: 0;
}

/* ============================================================
   PROFILE STATUS BANNER
============================================================ */
.pd-profile-status-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: var(--pd-white);
    border: 1px solid var(--pd-gray-200);
    border-radius: var(--pd-radius);
    margin-bottom: 20px;
    overflow: hidden;
}
.pd-profile-status-banner__item {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 0.88rem;
    color: var(--pd-gray-600);
    border-right: 1px solid var(--pd-gray-100);
}
.pd-profile-status-banner__item:last-child { border-right: none; }
.pd-profile-status-banner__item strong { color: var(--pd-gray-800); white-space: nowrap; }
.pd-profile-status-banner__item a { color: var(--pd-primary); text-decoration: none; font-weight: 500; }
.pd-profile-status-banner__item a:hover { text-decoration: underline; }

.pd-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pd-status-dot--green  { background: var(--pd-green); box-shadow: 0 0 0 3px rgba(22,163,74,0.15); }
.pd-status-dot--orange { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.15); }
.pd-status-dot--red    { background: var(--pd-red); box-shadow: 0 0 0 3px rgba(220,38,38,0.15); }

/* ============================================================
   BOTTOM SAVE BUTTON
============================================================ */
.pd-form-bottom-save {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0 8px;
    border-top: 1px solid var(--pd-gray-200);
    margin-top: 8px;
}
.pd-form-bottom-save__hint {
    font-size: 0.82rem;
    color: var(--pd-gray-400);
}
