@charset "UTF-8";
/**
 * Front-end Dashboard Styles - Dark Theme Edition
 * Prospecting SaaS Plugin
 */

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

/* ===================================
   COLOR VARIABLES (WordPress Controlled)
   =================================== */
:root {
    /* Primary colors */
    --ps-primary: #0ea5e9;
    --ps-primary-hover: #0284c7;
    --ps-secondary: #0e1f2e;
    --ps-accent: #1a3a52;
    /* Text colors */
    --ps-text-primary: #e0f2fe;
    --ps-text-secondary: #7dd3fc;
    --ps-text-muted: #4a7a9b;
    --ps-text-light: #2d5a7a;
    /* Background colors */
    --ps-bg-primary: #0a1117;
    --ps-bg-secondary: #0d1a26;
    --ps-bg-card: #0e1f2e;
    /* Border colors */
    --ps-border-light: #1a3a52;
    --ps-border-medium: #1e4a65;
    /* Status colors */
    --ps-status-pending-bg: rgba(251, 191, 36, 0.1);
    --ps-status-pending-text: #fbbf24;
    --ps-status-approved-bg: rgba(74, 222, 128, 0.1);
    --ps-status-approved-text: #4ade80;
    --ps-status-rejected-bg: rgba(251, 113, 133, 0.1);
    --ps-status-rejected-text: #fb7185;
    --ps-status-qualified-bg: rgba(124, 143, 255, 0.1);
    --ps-status-qualified-text: #0ea5e9;
    /* Alert colors */
    --ps-alert-error-bg: rgba(251, 113, 133, 0.1);
    --ps-alert-error-border: rgba(251, 113, 133, 0.25);
    --ps-alert-error-text: #fb7185;
    --ps-alert-success-bg: rgba(74, 222, 128, 0.1);
    --ps-alert-success-border: rgba(74, 222, 128, 0.25);
    --ps-alert-success-text: #4ade80;
    /* Button colors */
    --ps-btn-secondary-bg: #1a3a52;
    --ps-btn-secondary-hover: #1e4a65;
    --ps-btn-logout-bg: #fb7185;
    --ps-btn-logout-hover: #f43f5e;
    /* Shadows */
    --ps-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --ps-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --ps-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --ps-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5);
    /* Border radius */
    --ps-radius-sm: 8px;
    --ps-radius-md: 10px;
    --ps-radius-lg: 14px;
    --ps-radius-full: 9999px;
    /* Spacing */
    --ps-spacing-xs: 8px;
    --ps-spacing-sm: 12px;
    --ps-spacing-md: 20px;
    --ps-spacing-lg: 32px;
    --ps-spacing-xl: 48px;
}

/* ===================================
   DASHBOARD THEMES (client-selectable)
   Each theme only re-declares the colour tokens; everything else
   inherits from :root (Midnight). Selected via the theme picker,
   persisted in user meta, applied as data-theme on .prospecting-dashboard.
   Semantic status colours (pending/approved/rejected) are intentionally
   left untouched so state stays readable across every theme.
   =================================== */

/* Graphite — neutral charcoal, periwinkle accent */
.prospecting-dashboard[data-theme="graphite"],
#ps-review-modal[data-theme="graphite"] {
    --ps-primary: #7c8fff;
    --ps-primary-hover: #6979e8;
    --ps-secondary: #1e2127;
    --ps-accent: #2a2e36;
    --ps-text-primary: #e6e8ec;
    --ps-text-secondary: #c3c8d2;
    --ps-text-muted: #8a8f99;
    --ps-text-light: #6a6f79;
    --ps-bg-primary: #0f1115;
    --ps-bg-secondary: #14161a;
    --ps-bg-card: #1e2127;
    --ps-border-light: #2a2e36;
    --ps-border-medium: #353a44;
    --ps-status-qualified-text: #7c8fff;
    --ps-btn-secondary-bg: #2a2e36;
    --ps-btn-secondary-hover: #353a44;
    /* GoWinDeal redesign tokens — these drive the visible dashboard */
    --gwd-bg-0: #0a0b0f;
    --gwd-bg-1: #14161a;
    --gwd-card: #1e2127;
    --gwd-accent: #7c8fff;
    --gwd-accent-2: #9aa8ff;
    --gwd-accent-g: linear-gradient(135deg, #7c8fff 0%, #9aa8ff 100%);
    --gwd-text-1: #e6e8ec;
    --gwd-text-2: #9da3af;
    --gwd-text-3: #6a6f79;
}

/* Emerald — deep green, emerald accent */
.prospecting-dashboard[data-theme="emerald"],
#ps-review-modal[data-theme="emerald"] {
    --ps-primary: #10b981;
    --ps-primary-hover: #0e9f6e;
    --ps-secondary: #14211d;
    --ps-accent: #1c3a32;
    --ps-text-primary: #e0f2ee;
    --ps-text-secondary: #8fd9c3;
    --ps-text-muted: #5a9b87;
    --ps-text-light: #3f7565;
    --ps-bg-primary: #081210;
    --ps-bg-secondary: #0c1714;
    --ps-bg-card: #14211d;
    --ps-border-light: #1c3a32;
    --ps-border-medium: #265045;
    --ps-status-qualified-text: #10b981;
    --ps-btn-secondary-bg: #1c3a32;
    --ps-btn-secondary-hover: #265045;
    /* GoWinDeal redesign tokens — these drive the visible dashboard */
    --gwd-bg-0: #060d0b;
    --gwd-bg-1: #0c1714;
    --gwd-card: #14211d;
    --gwd-accent: #10b981;
    --gwd-accent-2: #34d399;
    --gwd-accent-g: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gwd-text-1: #e0f2ee;
    --gwd-text-2: #7fb3a3;
    --gwd-text-3: #4f7565;
}

/* Violet — deep plum, violet accent */
.prospecting-dashboard[data-theme="violet"],
#ps-review-modal[data-theme="violet"] {
    --ps-primary: #8b5cf6;
    --ps-primary-hover: #7c4ddb;
    --ps-secondary: #1d1830;
    --ps-accent: #322a4d;
    --ps-text-primary: #ece8f5;
    --ps-text-secondary: #c5b8ec;
    --ps-text-muted: #9384b8;
    --ps-text-light: #6e6293;
    --ps-bg-primary: #0f0d18;
    --ps-bg-secondary: #14111f;
    --ps-bg-card: #1d1830;
    --ps-border-light: #322a4d;
    --ps-border-medium: #443a63;
    --ps-status-qualified-text: #8b5cf6;
    --ps-btn-secondary-bg: #322a4d;
    --ps-btn-secondary-hover: #443a63;
    /* GoWinDeal redesign tokens — these drive the visible dashboard */
    --gwd-bg-0: #0b0912;
    --gwd-bg-1: #14111f;
    --gwd-card: #1d1830;
    --gwd-accent: #8b5cf6;
    --gwd-accent-2: #a78bfa;
    --gwd-accent-g: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --gwd-text-1: #ece8f5;
    --gwd-text-2: #a99cc4;
    --gwd-text-3: #6e6293;
}

/* Daylight — light mode. Inverts text/surface tokens and the white-alpha
   borders, and paints the wrapper light so the dark Elementor page behind
   the shortcode doesn't show through. */
.prospecting-dashboard[data-theme="daylight"],
#ps-review-modal[data-theme="daylight"] {
    --ps-primary: #0284c7;
    --ps-primary-hover: #0369a1;
    --ps-secondary: #ffffff;
    --ps-accent: #e2e8f0;
    --ps-text-primary: #0f1b2a;
    --ps-text-secondary: #1e4a65;
    --ps-text-muted: #64748b;
    --ps-text-light: #94a3b8;
    --ps-bg-primary: #eef1f6;
    --ps-bg-secondary: #f4f6fa;
    --ps-bg-card: #ffffff;
    --ps-border-light: #d6dce6;
    --ps-border-medium: #c2cad6;
    --ps-status-qualified-text: #0284c7;
    --ps-btn-secondary-bg: #e2e8f0;
    --ps-btn-secondary-hover: #d6dce6;
    /* GoWinDeal redesign tokens — light */
    --gwd-bg-0: #e9edf3;
    --gwd-bg-1: #f4f6fa;
    --gwd-card: #ffffff;
    --gwd-border: rgba(15,27,42,0.10);
    --gwd-border-hi: rgba(15,27,42,0.18);
    --gwd-accent: #0ea5e9;
    --gwd-accent-2: #0284c7;
    --gwd-accent-g: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --gwd-text-1: #0f1b2a;
    --gwd-text-2: #475569;
    --gwd-text-3: #7c8aa0;
}
/* Light page background lives on the dashboard wrapper only — NOT the modal root,
   so the modal keeps a transparent backdrop and the dimmed page shows through. */
.prospecting-dashboard[data-theme="daylight"] {
    background: var(--gwd-bg-1);
    min-height: 100vh;
}
/* Daylight: icon buttons + hovers use dark ink instead of white-on-white */
.prospecting-dashboard[data-theme="daylight"] .ps-theme-btn,
.prospecting-dashboard[data-theme="daylight"] .ps-notif-btn {
    background: rgba(15,27,42,0.04);
    color: var(--gwd-text-2);
}
.prospecting-dashboard[data-theme="daylight"] .ps-theme-btn:hover,
.prospecting-dashboard[data-theme="daylight"] .ps-notif-btn:hover,
.prospecting-dashboard[data-theme="daylight"] .ps-download-trigger:hover {
    background: rgba(15,27,42,0.10);
    color: var(--gwd-text-1);
}
/* Daylight: the modal scrim must be a soft, light-friendly dim — the dark
   default hides the light page entirely behind the modal. */
#ps-review-modal[data-theme="daylight"] .ps-modal-overlay {
    background: rgba(15, 27, 42, 0.45) !important;
}

/* ===================================
   THEME PICKER (pen button + popover)
   Selectors prefixed with .prospecting-dashboard to beat Elementor's
   button styles; SVG sized with !important because a theme/Elementor
   rule collapses inline SVGs to 1px (same fix as the bell icon).
   =================================== */
.prospecting-dashboard .ps-theme-wrap {
    position: relative;
    display: inline-flex;
}
.prospecting-dashboard .ps-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--gwd-border-hi);
    color: var(--gwd-text-1);
    cursor: pointer;
    padding: 0;
    transition: background .18s, color .18s, transform .12s, border-color .18s;
}
.prospecting-dashboard .ps-theme-btn:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: var(--gwd-accent);
}
.prospecting-dashboard .ps-theme-btn:active {
    transform: scale(.94);
}
.prospecting-dashboard .ps-theme-btn svg {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 auto;
    display: block;
    pointer-events: none;
}
.prospecting-dashboard .ps-theme-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: 210px;
    padding: 8px;
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border-hi);
    border-radius: var(--ps-radius-md);
    box-shadow: var(--ps-shadow-lg);
}
.prospecting-dashboard .ps-theme-panel-head {
    font-size: 12px;
    font-weight: 600;
    color: var(--gwd-text-2);
    padding: 4px 8px 8px;
}
.prospecting-dashboard .ps-theme-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: var(--ps-radius-sm);
    background: transparent;
    color: var(--gwd-text-1);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.prospecting-dashboard .ps-theme-opt:hover {
    background: rgba(255,255,255,.06);
}
.prospecting-dashboard .ps-theme-opt.active {
    border-color: var(--gwd-accent);
}
.prospecting-dashboard .ps-theme-swatch {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid var(--swatch-accent, #0ea5e9);
    background: var(--swatch-bg, #0d1a26);
}
.prospecting-dashboard .ps-theme-name {
    flex: 1 1 auto;
}
.prospecting-dashboard .ps-theme-opt .ps-theme-check {
    margin-left: auto;
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 auto;
    color: var(--gwd-accent);
    opacity: 0;
}
.prospecting-dashboard .ps-theme-opt.active .ps-theme-check {
    opacity: 1;
}

/* Remove br tags injected by Elementor / wpautop — !important required to beat Elementor's cascade */
.ps-btn br,
.ps-lead-date br,
.ps-lead-footer br,
.prospecting-dashboard br {
    display: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix <p> wrappers that wpautop wraps around buttons inside flex containers */
.ps-lead-footer > p {
    display: contents !important; /* transparent to flex — children become direct flex items */
    margin: 0 !important;
    padding: 0 !important;
}

/* Force single line for button content */
.ps-btn {
    white-space: nowrap !important;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
.prospecting-dashboard,
.ps-client-dashboard {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: var(--ps-text-primary);
}

/* ===================================
   DASHBOARD LAYOUT
   =================================== */
.ps-client-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: var(--ps-bg-primary);
    min-height: 100vh;
}

.prospecting-dashboard {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    padding: var(--ps-spacing-lg);
    box-sizing: border-box !important;
}

div.ps-leads-grid[class*="ps-leads-grid"] {
    display: flex !important;
    justify-content: space-evenly;
}

/* ===================================
   HEADER
   =================================== */
.ps-header {
    padding: 32px;
    margin-bottom: 2px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #2e3e4d;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3a4652 0%, #4e5c69 50%, #3a4652 100%);
}



.ps-header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.ps-header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.ps-header-right {
    position: absolute;
    top: 18px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    z-index: 2;
}

.ps-header-title {
    font-size: 52px;
    font-weight: 800;
    color: #0f1f2f;
    margin: 0 0 6px 0;
    line-height: 1.2;
    letter-spacing: 0.3px;
    text-align: center;
    margin-top: 22px;
}

.ps-header-subtitle {
    font-size: 18px;
    color: #131f2e;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 1px;
}



/* ===================================
   LOGIN PAGE — GLASS PANEL
   Floats over any dark image background.
   =================================== */
.prospecting-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: var(--ps-spacing-lg);
    background: transparent; /* let the section's image show through */
}

.prospecting-login-box {
    position: relative;
    /* translucent fill + blur = glassmorphism */
    background: rgba(13, 25, 38, 0.32);
    -webkit-backdrop-filter: blur(8px) saturate(125%);
    backdrop-filter: blur(8px) saturate(125%);
    border-radius: var(--ps-radius-lg);
    border: 1px solid rgba(125, 211, 252, 0.14);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    padding: 44px 48px;
    max-width: 440px;
    width: 100%;
    overflow: hidden;
}

    /* bright accent hairline along the top edge */
    .prospecting-login-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.85), transparent);
        z-index: 1;
    }

    /* soft glow bloom in the corner */
    .prospecting-login-box::after {
        content: '';
        position: absolute;
        top: -70px;
        right: -70px;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(14, 165, 233, 0.22), transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    /* keep real content above the glow layer */
    .prospecting-login-box > * {
        position: relative;
        z-index: 2;
    }

    .prospecting-login-box h2 {
        margin: 0 0 6px;
        text-align: center;
        color: #f0f9ff;
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.6px;
    }

.ps-login-header {
    margin-bottom: 28px;
}

.ps-login-subtitle {
    margin: 0;
    text-align: center;
    color: var(--ps-text-muted);
    font-size: 14px;
}

/* Inputs tuned for the glass surface (scoped so the dashboard is untouched) */
.prospecting-login-box .ps-form-group label {
    color: #cbe6f5;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.prospecting-login-box .ps-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(125, 211, 252, 0.18);
    color: #eaf6ff;
    padding: 13px 16px;
}

    .prospecting-login-box .ps-input::placeholder {
        color: #5b7d96;
    }

    .prospecting-login-box .ps-input:focus {
        border-color: #0ea5e9;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
    }

/* Custom checkbox */
.ps-checkbox-group {
    margin-bottom: 24px;
}

.ps-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.ps-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid rgba(125, 211, 252, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

    .ps-checkbox:checked {
        background: #0ea5e9;
        border-color: #0ea5e9;
    }

    .ps-checkbox:checked::after {
        content: '';
        position: absolute;
        left: 5px;
        top: 2px;
        width: 5px;
        height: 9px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.ps-checkbox-text {
    color: var(--ps-text-secondary);
    font-size: 14px;
}

/* Prominent gradient Sign In button (scoped to login) */
.prospecting-login-box .ps-btn-full {
    width: 100%;
    margin-top: 4px;
    padding: 14px 20px !important;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.35);
}

    .prospecting-login-box .ps-btn-full:hover {
        background: linear-gradient(135deg, #38bdf8, #3b82f6) !important;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(14, 165, 233, 0.45);
    }

/* ===================================
   TABS - MODERN PILL DESIGN
   =================================== */
.ps-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    /* background + shadow now on .ps-tabs-wrapper */
}

    .ps-tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari — hides scrollbar, keeps scroll */
    }

.ps-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: var(--ps-radius-sm);
    color: #2d5a7a;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
    position: relative;
    flex: 1;
    max-width: 200px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .ps-tab:hover {
        background: #0d1a26;
        color: #7dd3fc;
        text-decoration: none;
    }

    .ps-tab.active {
        background: #0f1f2f;
        color: #e0f2fe;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
        font-weight: 700;
    }

/* Tab count badge — use the span directly, not ::after */
.ps-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0284c7;
    color: #0a1f30;
    border-radius: var(--ps-radius-full);
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    transition: all 0.2s;
}

.ps-tab.active .ps-tab-count {
    background: #d3af37;
    color: #0a1f30;
}

/* Hide the old ::after pseudo badge since HTML has a real span */
.ps-tab::after {
    display: none;
}

/* ===================================
   LEADS GRID
   =================================== */
.ps-leads-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important; /* ← ADD THIS */
    grid-template-columns: none !important;
    justify-content: flex-start;
    box-sizing: border-box !important;
    grid-template-columns: repeat(auto-fill, 400px) !important; /* Fixed card width */
}

    .ps-leads-grid:has(.ps-lead-card:only-child) {
        justify-content: flex-start;
    }
/* ===================================
   LEAD CARD - ENHANCED DESIGN
   =================================== */
.ps-lead-card {
    background: #334754;
    border: 1px solid #1a3a52;
    border-left: 2px solid rgb(255 248 160 / 31%);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--ps-shadow-sm), -4px 0 20px rgb(117 115 100 / 30%), -2px 0 8px rgb(255 239 160 / 5%);
    position: relative;
    overflow: visible;
    flex: 0 0 340px !important;
    width: 340px !important;
    max-width: 340px !important;
    min-width: 340px !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

    .ps-lead-card:hover {
        transform: translateY(-4px);
    }

/* Mobile — full width cards */
@media (max-width: 600px) {
    .ps-lead-card {
        flex: 0 0 calc(100vw - 40px) !important;
        width: calc(100vw - 40px) !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* ===================================
   PORTRAIT CARD — BANNER + AVATAR
   =================================== */
.ps-card-banner {
    height: 72px;
    background: linear-gradient( 45deg, #6e747a 0%, #445e6e 50%, #30424d 100% ) !important;
    border-radius: 4px 4px 0 0;
    position: relative;
    margin: -20px -21px 0 -21px;
    color: inherit;
    overflow: visible;
}

    /* Left-edge light streak inside banner */
    .ps-card-banner::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 4px 4px 4px 4px;
        background: linear-gradient( 90deg, rgba(180, 200, 255, 0.12) 0%, rgba(180, 200, 255, 0.0) 60% );
        pointer-events: none;
    }

/* Status badge top-right of banner */
.ps-lead-status-badge {
    position: absolute;
    top: 12px;
    right: 84px;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 12px;
    border-radius: 20px;
    letter-spacing: 1.3px;
    text-transform: capitalize;
}

/* Avatar circle — overlaps banner bottom edge */
.ps-card-avatar {
    position: absolute;
    bottom: -28px;
    left: 18px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #99a3a8;
    overflow: hidden;
    background: #0d1a26;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

    .ps-card-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.ps-card-initials {
    font-size: 20px;
    font-weight: 800;
    color: #0ea5e9;
    line-height: 1;
}

/* Score pill bottom-right of banner */
.ps-card-score-pill {
    position: absolute;
    bottom: 18px;
    right: 14px;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    background: #0a1f30;
    border: 1px solid #646d75;
    border-radius: 20px;
    padding: 5px 13px;
}

.ps-card-score-val {
    font-size: 22zpx;
    font-weight: 800;
    line-height: 0;
}

.ps-card-score-max {
    font-size: 10px;
    color: #abb1d3;
}

/* Push body content down to clear the overlapping avatar */
.ps-lead-body {
    padding-top: 38px;
}



.ps-status-pending {
    color: #b6c4e1;
}

.ps-status-approved {
    color: #0a1f30;
}

.ps-status-rejected {
    background: var(--ps-status-rejected-bg);
    color: var(--ps-status-rejected-text);
}

.ps-status-not_qualified {
}

/* ===================================
   LEAD CARD CONTENT
   =================================== */
.ps-lead-name {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.ps-lead-title {
    margin: 0 0 4px 0;
    color: #ffffff;
    font-weight: 500;
    font-size: 13px;
}

.ps-lead-company {
    margin: 0 0 var(--ps-spacing-md) 0;
    color: #ffffff;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .ps-lead-company::before {
        content: '🏢';
        font-size: 13px;
    }

/* ===================================
   LEAD META INFO
   =================================== */
.ps-lead-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: var(--ps-spacing-md);
    padding: var(--ps-spacing-sm);
    background: #97a3a9;
    border: 1px solid #22252f;
    border-radius: var(--ps-radius-sm);
}

    .ps-lead-meta > div {
        font-size: 14px;
        color: #1b1b1e;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .ps-lead-meta > div::before {
            flex-shrink: 0;
        }



/* ===================================
   LEAD CARD FOOTER
   =================================== */
.ps-lead-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--ps-spacing-md);
    border-top: 1px solid #22252f;
    margin-top: auto;
}

.ps-lead-date {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===================================
   BUTTONS - MODERN DESIGN
   =================================== */
.ps-btn {
    padding: 11px 20px !important;
    border: none;
    border-radius: var(--ps-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    font-size: 14px;
    text-align: center;
    line-height: 1 !important;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 40px;
}


    .ps-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .ps-btn * {
        line-height: 1 !important;
        margin: 0 !important;
        vertical-align: middle;
    }

    .ps-btn svg {
        display: block !important;   /* block inside flex — no baseline tricks */
        flex-shrink: 0;
        margin: 0 !important;
    }

.ps-leads-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
}

.ps-btn:hover::before {
    opacity: 1;
}

.ps-review-lead {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

    .ps-review-lead svg {
        margin: 0 !important;
        padding: 0 !important;
    }

.ps-btn-primary {
    background: #121f2d;
    color: #67b47b;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.25);
}

    .ps-btn-primary:hover {
        background: #bac4cd;
        color: var(--ps-bg-card);
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(34, 113, 177, 0.35);
    }

    .ps-btn-primary:active {
        transform: translateY(0);
    }

.ps-btn-secondary {
    background: #121f2d;
    color: #ff466c;
    border: 1px solid #1a3a52;
    box-shadow: none;
}

    .ps-btn-secondary:hover {
        background: #2e3347;
        color: #e0f2fe;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

.ps-btn-sm {
    padding: 8px 16px !important;   /* needs !important to beat .ps-btn's rule */
    font-size: 13px !important;
}

/* Add arrow icon to review buttons */
.ps-btn-primary::after {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
    vertical-align: middle;
}


.ps-btn-primary:hover::after {
    transform: translateX(3px);
}

/* ===================================
   FORMS
   =================================== */
.ps-form-group {
    margin-bottom: var(--ps-spacing-md);
}

    .ps-form-group label {
        display: block;
        margin-bottom: var(--ps-spacing-xs);
        font-weight: 600;
        color: var(--ps-text-secondary);
        font-size: 14px;
    }

.ps-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #1a3a52;
    border-radius: var(--ps-radius-sm);
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    background: #14161e;
    color: #7dd3fc;
}

    .ps-input:focus {
        outline: none;
        border-color: #0ea5e9;
        box-shadow: 0 0 0 3px rgba(124, 143, 255, 0.1);
    }

    .ps-input::placeholder {
        color: #2d5a7a;
    }

/* ===================================
   ALERTS
   =================================== */
.ps-alert {
    padding: var(--ps-spacing-md);
    border-radius: var(--ps-radius-sm);
    margin-bottom: var(--ps-spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--ps-spacing-sm);
    font-size: 14px;
    line-height: 1.5;
}

    .ps-alert::before {
        font-size: 20px;
        flex-shrink: 0;
    }

.ps-alert-error {
    background: var(--ps-alert-error-bg);
    border: 1px solid var(--ps-alert-error-border);
    color: var(--ps-alert-error-text);
}

    .ps-alert-error::before {
        content: '⚠️';
    }

.ps-header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ps-alert-success {
    background: var(--ps-alert-success-bg);
    border: 1px solid var(--ps-alert-success-border);
    color: var(--ps-alert-success-text);
}

    .ps-alert-success::before {
        content: '✅';
    }

/* ===================================
   EMPTY STATE
   =================================== */
.ps-empty-state {
    text-align: center;
    padding: var(--ps-spacing-xl) var(--ps-spacing-md);
    color: var(--ps-text-light);
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
}

    .ps-empty-state::before {
        content: '📭';
        display: block;
        font-size: 64px;
        margin-bottom: var(--ps-spacing-md);
        opacity: 0.5;
    }

/* ===================================
   MODAL
   =================================== */
.ps-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ps-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

/* ===================================
   MODAL DIALOG WRAPPER - MISSING STYLES
   =================================== */
.ps-modal-dialog {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: var(--ps-spacing-md);
    pointer-events: none; /* Allow clicks through to overlay */
}

    /* Re-enable pointer events on content */
    .ps-modal-dialog > * {
        pointer-events: auto;
    }

/* Ensure the modal content is properly positioned */
.ps-modal .ps-modal-content {
    margin: auto;
}

/* ===================================
   LOADING SPINNER
   =================================== */
.ps-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--ps-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ps-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--ps-text-light);
}

    .ps-loading p {
        margin: 0;
        font-size: 16px;
    }


.ps-modal-content {
    position: relative;
    background: #334754;
    border: 1px solid #1a3a52;
    border-radius: var(--ps-radius-lg);
    padding: var(--ps-spacing-lg);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ps-modal-close {
    position: absolute;
    top: var(--ps-spacing-md);
    right: var(--ps-spacing-md);
    background: #0e1f2e;
    border: 1px solid #1a3a52;
    color: #aac4db;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
    padding: 0;
}

    .ps-modal-close:hover {
        background: #1f6d7a;
        color: #d3af37;
        transform: rotate(5deg);
    }


#ps-modal-actions {
    display: flex;
    gap: var(--ps-spacing-md);
    margin-top: var(--ps-spacing-lg);
    padding-top: var(--ps-spacing-md);
    border-top: 1px solid #1a3a52;
}

    #ps-modal-actions .ps-btn {
        flex: 1;
        padding: 14px;
        font-size: 15px;
    }

/* ===================================
   PROFILE PHOTO IN MODAL
   =================================== */
.ps-lead-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .ps-lead-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .ps-lead-photo.ps-no-photo {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

.ps-avatar-placeholder {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    user-select: none;
}

.ps-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1a3a52;
}

.ps-modal-title-group {
    flex: 1;
    min-width: 0;
}

.ps-modal-title {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
    color: #e0f2fe;
    line-height: 1.2;
}

.ps-modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: #c0ced8;
    line-height: 1.4;
}

.ps-lead-score-large {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 12px 20px;
    border-radius: var(--ps-radius-md);
    font-weight: 700;
    background: #0d1a26;
    flex-shrink: 0;
    margin-right: 62px;
}

.ps-score-value {
    font-size: 26px;
    line-height: 1;
}

.ps-score-max {
    font-size: 18px;
    opacity: 0.7;
}

/* Score gradient classes — only used in modal score badge, not on cards */
.ps-score-excellent {
    background: rgba(74,222,128,0.12);
    color: #4ade80;
}

.ps-score-good {
    background: rgba(74,222,128,0.12);
    color: #4ade80;
}

.ps-score-average {
    background: rgba(251,191,36,0.12);
    color: #fbbf24;
}

.ps-score-poor {
    background: rgba(251,113,133,0.12);
    color: #fb7185;
}

/* ===================================
   LEAD DETAILS
   =================================== */
.ps-lead-details {
    margin-top: var(--ps-spacing-md);
}

.ps-detail-section {
    margin-bottom: var(--ps-spacing-lg);
}

    .ps-detail-section h3 {
        margin: 0 0 var(--ps-spacing-md) 0;
        color: #d3af37;
        font-size: 14px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: var(--ps-spacing-sm);
    }

        .ps-detail-section h3::before {
            content: '';
            width: 3px;
            height: 18px;
            background: #0ea5e9;
            border-radius: 2px;
        }

.ps-detail-table {
    width: 100%;
    border-collapse: collapse;
}

    .ps-detail-table td {
        padding: 12px 0;
        border-bottom: 1px solid #22252f;
        font-size: 14px;
    }

        .ps-detail-table td:first-child {
            width: 150px;
            color: #2d5a7a;
            font-weight: 500;
        }

        .ps-detail-table td:last-child {
            color: #7dd3fc;
            font-weight: 400;
        }

.ps-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ps-primary), var(--ps-accent));
    color: var(--ps-bg-card);
    padding: 12px 24px;
    border-radius: var(--ps-radius-full);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--ps-spacing-md);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* ===================================
   MESSAGE VARIANTS
   =================================== */
.ps-message-variants {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ps-message-variant {
    border: 2px solid #1a3a52;
    border-radius: var(--ps-radius-sm);
    padding: var(--ps-spacing-md);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #25323b;
}

    .ps-message-variant:hover {
        border-color: #474c5f;
        background: #10171b;
    }

    .ps-message-variant input[type="radio"] {
        margin-right: var(--ps-spacing-sm);
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

        .ps-message-variant input[type="radio"]:checked ~ .ps-variant-label {
            color: var(--ps-primary);
            font-weight: 700;
        }

.ps-variant-label {
    display: inline-block;
    margin-bottom: var(--ps-spacing-sm);
    font-weight: 600;
    font-size: 14px;
}

.ps-message-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid var(--gwd-border-hi);
    border-radius: var(--ps-radius-sm);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.2s ease;
    line-height: 1.6;
    background: var(--gwd-card);
    color: var(--gwd-text-1);
}

    .ps-message-textarea:focus {
        outline: none;
        border-color: #0ea5e9;
        box-shadow: 0 0 0 3px rgba(124, 143, 255, 0.1);
    }

.ps-char-count {
    text-align: right;
    font-size: 12px;
    color: var(--ps-text-light);
    margin-top: 6px;
    font-weight: 500;
}

    .ps-char-count.over-limit {
        color: var(--ps-alert-error-text);
        font-weight: 700;
    }

/* ===================================
   LOADING STATE
   =================================== */
.ps-loading {
    text-align: center;
    padding: var(--ps-spacing-xl);
    color: var(--ps-text-light);
    font-size: 16px;
}

    .ps-loading::before {
        content: '⏳';
        display: block;
        font-size: 48px;
        margin-bottom: var(--ps-spacing-md);
        animation: spin 2s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   LOGIN FOOTER
   =================================== */
.ps-login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(125, 211, 252, 0.12);
}

    .ps-login-footer a {
        color: var(--ps-primary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .ps-login-footer a:hover {
            color: var(--ps-primary-hover);
            text-decoration: underline;
        }

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .prospecting-dashboard {
        padding: var(--ps-spacing-md);
        max-width: 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        min-width: 100% !important; /* ← ADD THIS */
        box-sizing: border-box !important;
    }

    .ps-leads-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--ps-spacing-md);
    }
}

@media (max-width: 768px) {
    :root {
        --ps-spacing-xs: 6px;
        --ps-spacing-sm: 10px;
        --ps-spacing-md: 16px;
        --ps-spacing-lg: 24px;
        --ps-spacing-xl: 32px;
    }

    .prospecting-login-box {
        max-width: 100%;
        padding: var(--ps-spacing-lg) var(--ps-spacing-md);
    }

    .prospecting-dashboard {
        padding: var(--ps-spacing-md);
    }

    .ps-header {
        padding: 24px 32px;
    }

    .ps-header-content {
        align-items: center;
        gap: 4px;
    }

    .ps-header-right {
        display: flex;
        top: 12px;
        right: 12px;
        gap: 6px;
    }


    .ps-header h1,
    .ps-header-title {
        font-size: 22px;
    }

    .ps-tabs {
        overflow-x: auto;
        padding-bottom: 4px;
        margin-left: calc(var(--ps-spacing-md) * -1);
        margin-right: calc(var(--ps-spacing-md) * -1);
        padding-left: var(--ps-spacing-md);
        padding-right: var(--ps-spacing-md);
    }

    .ps-tab {
        flex: 1;
        min-width: 80px; /* Minimum width for mobile */
        max-width: none;
    }

    .ps-leads-grid {
        grid-template-columns: 1fr;
    }

    .ps-lead-score {
        width: 54px;
        height: 54px;
        font-size: 14px; /* Reduced from 16px for mobile */
    }

    .ps-modal-content {
        width: 95%;
        padding: var(--ps-spacing-md);
        max-height: 85vh;
    }

    /* Profile photo responsive */
    .ps-modal-header {
        flex-wrap: wrap;
        gap: 16px;
    }

    .ps-lead-photo {
        width: 64px;
        height: 64px;
    }

    .ps-avatar-placeholder {
        font-size: 24px;
    }

    .ps-modal-title {
        font-size: 20px;
    }

    .ps-modal-subtitle {
        font-size: 13px;
    }

    .ps-lead-score-large {
        align-self: flex-start;
        padding: 10px 16px;
    }

    .ps-score-value {
        font-size: 28px;
    }

    .ps-score-max {
        font-size: 16px;
    }

    #ps-modal-actions {
        flex-direction: column;
    }

    .ps-detail-table td:first-child {
        width: 100px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ps-btn {
        width: 100%;
    }

    .ps-lead-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--ps-spacing-sm);
    }

        .ps-lead-footer .ps-btn {
            width: 100%;
        }

    .ps-lead-header {
        flex-wrap: wrap;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.ps-btn:focus-visible,
.ps-input:focus-visible,
.ps-tab:focus-visible {
    outline: 3px solid var(--ps-primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ps-lead-card {
        border: 2px solid currentColor;
    }

    .ps-btn {
        border: 2px solid currentColor;
    }
}

/* ===================================
   USER MENU DROPDOWN (Header Navigation)
   =================================== */
.menu-item-user {
    position: relative !important;
}

    .menu-item-user > .sub-menu {
        display: none;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        background: var(--ps-bg-card) !important;
        box-shadow: var(--ps-shadow-md) !important;
        min-width: 180px !important;
        list-style: none !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        border-radius: var(--ps-radius-sm) !important;
        z-index: 9999 !important;
        border: 1px solid var(--ps-border-light) !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
        transform: translateY(-10px);
    }

    .menu-item-user:hover > .sub-menu,
    .menu-item-user:focus-within > .sub-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0);
    }

    .menu-item-user .sub-menu li {
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        border: none !important;
        background: transparent !important;
    }

    .menu-item-user .sub-menu a {
        display: block !important;
        padding: 12px 20px !important;
        color: var(--ps-text-primary) !important;
        text-decoration: none !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        font-weight: 500 !important;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
    }

        .menu-item-user .sub-menu a:hover,
        .menu-item-user .sub-menu a:focus {
            background-color: var(--ps-bg-secondary) !important;
            color: var(--ps-primary) !important;
            border-left-color: var(--ps-primary);
        }

    /* Remove theme's dropdown indicator if present */
    .menu-item-user > a::after {
        display: none;
    }

    /* Style the username link in header */
    .menu-item-user > a {
        font-weight: 600 !important;
        color: inherit !important;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .menu-item-user > .sub-menu {
        position: static !important;
        display: none;
        box-shadow: none !important;
        border: 1px solid var(--ps-border-light) !important;
        margin-top: 8px !important;
    }

    .menu-item-user:hover > .sub-menu,
    .menu-item-user:focus-within > .sub-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

/* ===================================
   BULLETPROOF MODAL VISIBILITY
   =================================== */
.ps-modal-visible {
    display: flex !important;
    opacity: 1 !important;
}

/* Ensure modal is hidden by default */
#ps-review-modal {
    display: none;
}

    #ps-review-modal.ps-modal-visible {
        display: flex !important;
    }

    /* ===================================
   SHOW MODAL CLASS (Matches JS)
   =================================== */
    #ps-review-modal.ps-show-modal {
        display: flex !important;
    }

body.modal-open {
    overflow: hidden;
}

/* ===================================
   TABS WRAPPER — this is now the dark pill
   ===================================== */
.ps-tabs-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 6px;
    background: #374653;
    border-radius: var(--ps-radius-md);
    box-shadow: var(--ps-shadow-sm);
    margin-bottom: var(--ps-spacing-lg);
    overflow: hidden;
}

.ps-tabs-sep {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.12);
    margin: 0 6px;
    flex-shrink: 0;
}

.ps-tabs-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Safety net: if Elementor/wpautop wraps the button in a <p>, neutralise it */
.ps-tabs-wrapper > p {
    display: flex;
    align-items: center;
    align-self: center;
    margin: 0;
    padding: 0;
}

    .ps-tabs-wrapper > p:empty {
        display: none;
    }

/* ===================================
   DOWNLOAD BUTTON (single direct link)
   =================================== */
.ps-download-trigger {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 7px;
    padding: 10px 20px;
    background: #131f2e;
    color: #cdb04e !important;
    border: none;
    border-radius: var(--ps-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 1;
}

    .ps-download-trigger:hover {
        background: #0ea5e9;
        color: #fff;
        text-decoration: none;
    }

@media (max-width: 700px) {
    .ps-tabs-wrapper {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* =====================================================
   ⭐ MY LEADS REDESIGN — GoWinDeal homepage design language
   Overrides below win by appearing last in the cascade.
===================================================== */

.prospecting-dashboard,
#ps-review-modal {
    --gwd-bg-0: #07080C;
    --gwd-bg-1: #0E1117;
    --gwd-card: #181D27;
    --gwd-border: rgba(255,255,255,0.07);
    --gwd-border-hi: rgba(255,255,255,0.13);
    --gwd-accent: #4F80FF;
    --gwd-accent-2: #00C8FF;
    --gwd-accent-g: linear-gradient(135deg, #4F80FF 0%, #00C8FF 100%);
    --gwd-green: #22D3A0;
    --gwd-amber: #FFB454;
    --gwd-red: #FF6B81;
    --gwd-text-1: #EEF0F6;
    --gwd-text-2: #8490A8;
    --gwd-text-3: #525D72;
}
.prospecting-dashboard {
    background: transparent;
    font-family: inherit;
}

/* ⭐ wpautop armor: kill injected <p>/<br> gaps inside the dashboard */
.prospecting-dashboard p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

.prospecting-dashboard br {
    display: none !important;
}

.prospecting-dashboard .ps-lead-card > p,
.prospecting-dashboard .ps-leads-grid > p,
.prospecting-dashboard .ps-tabs-wrapper > p,
.prospecting-dashboard .ps-header-left > p:not(.ps-header-subtitle),
.prospecting-dashboard .ps-header-content > p,
.prospecting-dashboard .ps-header-actions > p,
.prospecting-dashboard .ps-header-tools > p,
.prospecting-dashboard p:empty,
.prospecting-dashboard > p {
    display: none !important;
}

/* ---------- Header: compact chip + gradient title ---------- */
.prospecting-dashboard .ps-header {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 0 4px;
    margin-bottom: 18px;
    min-height: 0;
}

.prospecting-dashboard .ps-header-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gwd-accent);
    background: rgba(79,128,255,.08);
    border: 1px solid rgba(79,128,255,.35);
    margin-bottom: 12px;
}

.prospecting-dashboard .ps-header-title {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gwd-text-1);
    margin: 0 0 6px;
    opacity: 1;
    text-align: left;
}

.prospecting-dashboard .ps-grad {
    background: var(--gwd-accent-g);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prospecting-dashboard .ps-header-subtitle {
    color: var(--gwd-text-2);
    font-size: 14px;
    margin: 0;
    text-align: left;
}

/* Header stack: daily quote on top, then the Launch Vera + search/sort row below. */
.prospecting-dashboard .ps-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 16px 0 4px;
}

/* Vera + search sit on one line, below the quote. */
.prospecting-dashboard .ps-header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 860px;
    flex: 0 0 auto;
}

.prospecting-dashboard .ps-header-tools .vera-launch-wrap {
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.prospecting-dashboard .ps-header-tools .ps-toolbar {
    margin: 0;
    flex: 1 1 240px;
    flex-wrap: nowrap;
}

/* Match heights so Vera and the search field align cleanly on one row. */
.prospecting-dashboard .ps-header-tools .vera-launch-btn,
.prospecting-dashboard .ps-header-tools .ps-search,
.prospecting-dashboard .ps-header-tools .ps-sort {
    height: 44px;
    box-sizing: border-box;
}

.prospecting-dashboard .ps-header-tools .vera-launch-btn {
    padding-top: 0;
    padding-bottom: 0;
}

/* Daily motivational quote — first item in the header action row.
   Uses theme tokens so it adapts across all five dashboard themes. */
.prospecting-dashboard .ps-daily-quote {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 16px;
    flex: 0 0 auto;
    max-width: 560px;
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border);
    border-left: 3px solid var(--gwd-accent);
    border-radius: 10px;
}

.prospecting-dashboard .ps-daily-quote-mark {
    flex-shrink: 0;
    color: var(--gwd-accent);
    opacity: .9;
    align-self: flex-start;
    margin-top: 2px;
}

.prospecting-dashboard .ps-daily-quote-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.prospecting-dashboard .ps-daily-quote-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--gwd-text-1);
}

.prospecting-dashboard .ps-daily-quote-author {
    font-size: 12px;
    color: var(--gwd-text-2);
}

.prospecting-dashboard .ps-daily-quote-chip {
    flex-shrink: 0;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gwd-text-2);
    background: transparent;
    border: 1px solid var(--gwd-border);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .prospecting-dashboard .ps-daily-quote {
        flex-wrap: wrap;
    }
    .prospecting-dashboard .ps-daily-quote-chip {
        display: none;
    }
}

/* ⭐ Header content left-aligned */
.prospecting-dashboard .ps-header-content {
    justify-content: flex-start;
    text-align: left;
}

.prospecting-dashboard .ps-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin: 0;
    flex: 1;
    min-width: 0;
}

/* ---------- Tabs: segmented pill bar ---------- */
.prospecting-dashboard .ps-tabs-wrapper {
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border);
    border-radius: 999px;
    padding: 5px;
    box-shadow: none;
    overflow: visible;
    gap: 8px;
    align-items: center;
}

.prospecting-dashboard .ps-tabs {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

/* Right-side action slot inside the tabs pill (bell + download) */
.prospecting-dashboard .ps-tabs-sep {
    width: 1px;
    height: 24px;
    background: var(--gwd-border-hi);
    margin: 0 2px;
    flex-shrink: 0;
}

.prospecting-dashboard .ps-tabs-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    padding-right: 2px;
}

/* Notification bell — clean circular icon button matching the pill aesthetic */
.prospecting-dashboard .ps-notif-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.prospecting-dashboard .ps-notif-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--gwd-border-hi);
    color: var(--gwd-text-1);
    cursor: pointer;
    position: relative;
    transition: background .18s, color .18s, transform .12s;
}

.prospecting-dashboard .ps-notif-btn:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.prospecting-dashboard .ps-notif-btn:active {
    transform: scale(.94);
}

/* Force the bell icon to its intended size — a theme/Elementor rule was collapsing it to 1px wide */
.prospecting-dashboard .ps-notif-btn svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 auto;
    display: block;
}

.prospecting-dashboard .ps-notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #E5484D;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    border: 2px solid var(--gwd-card);
    box-sizing: border-box;
}

.prospecting-dashboard .ps-notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-width: 90vw;
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border-hi);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
    z-index: 9999;
    overflow: hidden;
}

.prospecting-dashboard .ps-tab {
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--gwd-text-2);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    transition: all .18s;
}

.prospecting-dashboard .ps-tab:hover {
    background: rgba(255,255,255,.06);
    color: var(--gwd-text-1);
}

.prospecting-dashboard .ps-tab.active {
    background: var(--gwd-accent-g);
    color: #fff;
    box-shadow: 0 4px 20px rgba(79,128,255,.4);
}

.prospecting-dashboard .ps-tab::after {
    display: none;
}

.prospecting-dashboard .ps-tab-count {
    background: rgba(255,255,255,.08);
    color: var(--gwd-text-2);
    border-radius: 999px;
    font-size: 11px;
    padding: 1px 8px;
}

.prospecting-dashboard .ps-tab.active .ps-tab-count {
    background: rgba(255,255,255,.25);
    color: #fff;
}

.prospecting-dashboard .ps-download-trigger {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--gwd-border-hi);
    color: var(--gwd-text-1);
    border-radius: 999px;
    font-weight: 600;
}

.prospecting-dashboard .ps-download-trigger:hover {
    background: rgba(255,255,255,.1);
    color: var(--gwd-text-1);
}

/* ---------- Toolbar: search + sort ---------- */
.prospecting-dashboard .ps-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 14px;
    flex-wrap: wrap;
}

.prospecting-dashboard .ps-search {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gwd-bg-1);
    border: 1px solid var(--gwd-border-hi);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--gwd-text-3);
    transition: border-color .15s, box-shadow .15s;
}

.prospecting-dashboard .ps-search:focus-within {
    border-color: var(--gwd-accent);
    box-shadow: 0 0 0 3px rgba(79,128,255,.18);
}

.prospecting-dashboard .ps-search svg {
    flex-shrink: 0;
}

.prospecting-dashboard .ps-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    color: var(--gwd-text-1);
    font-size: 13.5px;
    font-family: inherit;
    padding: 10px 0;
    margin: 0;
}

.prospecting-dashboard .ps-search input::placeholder {
    color: var(--gwd-text-3);
}

.prospecting-dashboard .ps-sort {
    background: var(--gwd-bg-1);
    border: 1px solid var(--gwd-border-hi);
    border-radius: 999px;
    color: var(--gwd-text-1);
    font-size: 13px;
    font-family: inherit;
    padding: 9px 14px;
    cursor: pointer;
    outline: none;
}

.prospecting-dashboard .ps-sort option {
    background: var(--gwd-bg-1);
    color: var(--gwd-text-1);
}

.prospecting-dashboard .ps-clear-search {
    color: var(--gwd-accent-2);
    font-size: 13px;
    text-decoration: underline;
}

/* ---------- Lead cards ---------- */
.prospecting-dashboard .ps-lead-card {
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    transition: transform .18s, border-color .18s;
    overflow: visible;
}

.prospecting-dashboard .ps-lead-card:hover {
    transform: translateY(-3px);
    border-color: var(--gwd-border-hi);
    box-shadow: none;
}

.prospecting-dashboard .ps-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.prospecting-dashboard .ps-card-avatar {
    position: static;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: none;
    box-shadow: none;
    background: rgba(79,128,255,.12);
}

.prospecting-dashboard .ps-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prospecting-dashboard .ps-card-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    font-weight: 600;
    color: var(--gwd-accent);
    background: transparent;
}

.prospecting-dashboard .ps-card-identity {
    flex: 1;
    min-width: 0;
}

.prospecting-dashboard .ps-lead-name {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--gwd-text-1);
    margin: 0 0 2px;
    line-height: 1.25;
}

.prospecting-dashboard .ps-lead-title {
    font-size: 12.5px;
    color: var(--gwd-text-2);
    margin: 0 0 4px;
    line-height: 1.35;
}

.prospecting-dashboard .ps-lead-company {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gwd-text-3);
}

/* Score ring */
.prospecting-dashboard .ps-card-score {
    flex-shrink: 0;
    text-align: center;
}

.prospecting-dashboard .ps-card-score-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid var(--gwd-text-3);
    font-size: 14px;
    font-weight: 700;
    color: var(--gwd-text-3);
    margin: 0 auto;
}

.prospecting-dashboard .ps-card-score-label {
    display: block;
    font-size: 9.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gwd-text-3);
    margin-top: 3px;
}

.prospecting-dashboard .ps-score-high .ps-card-score-ring { border-color: var(--gwd-green); color: var(--gwd-green); }
.prospecting-dashboard .ps-score-mid  .ps-card-score-ring { border-color: var(--gwd-accent); color: var(--gwd-accent); }
.prospecting-dashboard .ps-score-low  .ps-card-score-ring { border-color: var(--gwd-amber); color: var(--gwd-amber); }

/* Body + contact inset */
.prospecting-dashboard .ps-lead-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Contact box no longer needs its bottom margin once the body centers it */
.prospecting-dashboard .ps-lead-body .ps-lead-meta {
    margin-bottom: 0;
}

.prospecting-dashboard .ps-lead-meta {
    background: var(--gwd-bg-1);
    border: 1px solid var(--gwd-border);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prospecting-dashboard .ps-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--gwd-text-2);
    background: transparent;
    border: none;
    padding: 0;
    word-break: break-all;
}

.prospecting-dashboard .ps-meta-item svg {
    color: var(--gwd-text-3);
    flex-shrink: 0;
}

/* Footer */
.prospecting-dashboard .ps-lead-footer {
    border-top: 1px solid var(--gwd-border);
    background: transparent;
    padding: 12px 0 0;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prospecting-dashboard .ps-lead-date {
    color: var(--gwd-text-3);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
}

/* Quick actions */
.prospecting-dashboard .ps-quick-actions {
    display: inline-flex;
    gap: 6px;
}

.prospecting-dashboard .ps-quick-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    transition: all .15s;
    padding: 0;
}

.prospecting-dashboard .ps-quick-reject {
    border: 1px solid rgba(255,107,129,.4);
    color: var(--gwd-red);
}

.prospecting-dashboard .ps-quick-reject:hover {
    background: rgba(255,107,129,.12);
}

.prospecting-dashboard .ps-quick-approve {
    border: 1px solid rgba(34,211,160,.4);
    color: var(--gwd-green);
}

.prospecting-dashboard .ps-quick-approve:hover {
    background: rgba(34,211,160,.12);
}

/* Primary button → gradient pill */
.prospecting-dashboard .ps-btn {
    border-radius: 999px;
    font-family: inherit;
}

.prospecting-dashboard .ps-btn-primary {
    background: var(--gwd-accent-g);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(79,128,255,.35);
}

.prospecting-dashboard .ps-btn-primary:hover {
    background: var(--gwd-accent-g);
    box-shadow: 0 6px 28px rgba(79,128,255,.5);
    transform: translateY(-1px);
}

.prospecting-dashboard .ps-btn-secondary {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--gwd-border-hi);
    color: var(--gwd-text-1);
}

.prospecting-dashboard .ps-btn-secondary:hover {
    background: rgba(255,255,255,.1);
}

/* ⭐ Approved-tab filter — custom popover (pill trigger + dark rounded panel),
   same design language as the theme picker. Native selects can't be themed. */
.prospecting-dashboard .ps-afilter-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 6px;
    flex-shrink: 0;
}

.prospecting-dashboard .ps-afilter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--gwd-border-hi, rgba(255,255,255,.14));
    border-radius: 999px;
    color: var(--gwd-text-1);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    max-width: 220px;
    white-space: nowrap;
    transition: border-color .15s, background .15s;
}

.prospecting-dashboard .ps-afilter-btn:hover {
    background: rgba(255,255,255,.09);
}

.prospecting-dashboard .ps-afilter-btn:focus-visible {
    outline: none;
    border-color: var(--gwd-accent);
}

/* Active filter: accent ring so it's obvious a slice is applied */
.prospecting-dashboard .ps-afilter-btn.has-filter {
    border-color: var(--gwd-accent);
    color: var(--gwd-accent);
}

.prospecting-dashboard .ps-afilter-btn .ps-afilter-chev {
    color: var(--gwd-text-3);
    flex-shrink: 0;
}

.prospecting-dashboard .ps-afilter-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: 220px;
    padding: 8px;
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border-hi);
    border-radius: var(--ps-radius-md);
    box-shadow: var(--ps-shadow-lg);
}

.prospecting-dashboard .ps-afilter-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--ps-radius-sm);
    background: transparent;
    color: var(--gwd-text-1);
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.prospecting-dashboard .ps-afilter-opt:hover {
    background: rgba(255,255,255,.06);
}

.prospecting-dashboard .ps-afilter-opt.active {
    border-color: var(--gwd-accent);
}

.prospecting-dashboard .ps-afilter-opt span {
    flex: 1 1 auto;
}

.prospecting-dashboard .ps-afilter-opt .ps-afilter-check {
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--gwd-accent);
    opacity: 0;
}

.prospecting-dashboard .ps-afilter-opt.active .ps-afilter-check {
    opacity: 1;
}

/* Daylight: soften the alpha hovers for the light surface */
.prospecting-dashboard[data-theme="daylight"] .ps-afilter-btn {
    background: rgba(15,27,42,.04);
}

.prospecting-dashboard[data-theme="daylight"] .ps-afilter-btn:hover {
    background: rgba(15,27,42,.08);
}

.prospecting-dashboard[data-theme="daylight"] .ps-afilter-opt:hover {
    background: rgba(15,27,42,.06);
}

@media (max-width: 700px) {
    .prospecting-dashboard .ps-afilter-btn { max-width: 160px; }
    .prospecting-dashboard .ps-afilter-btn span { overflow: hidden; text-overflow: ellipsis; }
}

/* Rejection reason strip — compact icon + label + reason row.
   Base (amber) = informational, used on not_qualified cards.
   Rejected cards get the quiet red variant below. */
.prospecting-dashboard .ps-rejection-reason {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    margin: 0 0 12px;
    background: rgba(255,180,84,.07);
    border: 1px solid rgba(255,180,84,.3);
    border-radius: 10px;
    color: var(--gwd-text-2);
    font-size: 13px;
    line-height: 1.45;
}

.prospecting-dashboard .ps-rejection-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 2px;
    color: var(--gwd-amber);
}

.prospecting-dashboard .ps-rejection-icon svg {
    width: 14px;
    height: 14px;
}

.prospecting-dashboard .ps-rejection-content {
    min-width: 0;
}

.prospecting-dashboard .ps-rejection-content p {
    margin: 1px 0 0;
    color: var(--gwd-text-2);
    font-size: 13px;
}

.prospecting-dashboard .ps-rejection-reason strong {
    display: block;
    color: var(--gwd-amber);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Red variant on rejected cards — the signal, kept quiet */
.prospecting-dashboard .ps-status-rejected .ps-rejection-reason {
    background: rgba(251,113,133,.06);
    border-color: rgba(251,113,133,.22);
}

.prospecting-dashboard .ps-status-rejected .ps-rejection-reason strong,
.prospecting-dashboard .ps-status-rejected .ps-rejection-icon {
    color: var(--ps-status-rejected-text, #fb7185);
}

/* Daylight: #fb7185 is only 2.7:1 on white — use a darker rose for AA */
.prospecting-dashboard[data-theme="daylight"] .ps-status-rejected .ps-rejection-reason strong,
.prospecting-dashboard[data-theme="daylight"] .ps-status-rejected .ps-rejection-icon {
    color: #be123c;
}

/* Empty state */
.prospecting-dashboard .ps-empty-state {
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border);
    border-radius: 14px;
    color: var(--gwd-text-2);
}

.prospecting-dashboard .ps-empty-title {
    color: var(--gwd-text-1);
}

@media (max-width: 700px) {
    .prospecting-dashboard .ps-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .prospecting-dashboard .ps-search {
        min-width: 0;
    }
}

/* =====================================================
   ⭐ RESPONSIVE FIXES — header tools + tabs pill
   Portrait phones AND landscape phones both crammed these
   two rows onto a single line, causing the Manual Search /
   Launch Vera buttons to run off-screen and the status tabs
   to squash under the action buttons. Let both rows wrap.
===================================================== */

/* Header action row: Manual Search + Launch Vera + search/sort.
   Below ~860px (covers landscape phones) let the items wrap; on
   the narrowest widths give each control its own full-width line. */
@media (max-width: 860px) {
    .prospecting-dashboard .ps-header-tools {
        flex-wrap: wrap;
    }
    /* Buttons keep their existing size and appearance — only allowed to
       wrap onto the next line. No restyling. */
    .prospecting-dashboard .ps-header-tools .psms-launch-wrap,
    .prospecting-dashboard .ps-header-tools .vera-launch-wrap {
        flex: 0 0 auto;
    }
    /* Search + sort drop to their own full-width row below the buttons. */
    .prospecting-dashboard .ps-header-tools .ps-toolbar {
        flex: 1 1 100%;
    }
}

/* Tabs pill: on phones the 4 status tabs + bell/theme/download
   can't share one row, so the tabs get squished to a sliver.
   Give the tabs their own full-width row (scrollable if needed)
   and drop the action buttons onto a second row. */
@media (max-width: 768px) {
    .prospecting-dashboard .ps-tabs-wrapper {
        flex-wrap: wrap;
        border-radius: var(--ps-radius-md, 14px);
        row-gap: 6px;
    }
    /* Tabs wrap two-up so all four stay visible (no cut-off / scroll). */
    .prospecting-dashboard .ps-tabs {
        flex: 1 1 100%;
        min-width: 0;
        flex-wrap: wrap;
        overflow: visible;
        gap: 4px;
        margin: 0;
        padding: 0;
    }
    .prospecting-dashboard .ps-tab {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        max-width: none;
        justify-content: center;
    }
    .prospecting-dashboard .ps-tabs-sep {
        display: none;
    }
    .prospecting-dashboard .ps-tabs-actions {
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: flex-end;
    }
}

/* =====================================================
   ⭐ REVIEW MODAL — minimal, GoWinDeal design language
===================================================== */

.ps-modal .ps-modal-overlay {
    background: rgba(2, 3, 6, 0.82);
    backdrop-filter: blur(4px);
}

.ps-modal .ps-modal-content {
    background: var(--gwd-bg-1);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    color: var(--gwd-text-1);
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
}

.ps-modal .ps-modal-close {
    background: rgba(255,255,255,.05);
    border: none;
    color: var(--gwd-text-2);
    border-radius: 999px;
    transition: background .15s, color .15s;
}

.ps-modal .ps-modal-close:hover {
    background: rgba(255,107,129,.12);
    color: #FF6B81;
}

/* Neutralize legacy section chrome */
.ps-modal .ps-lead-details {
    background: transparent;
    border: none;
    padding: 4px 0 0;
    display: block;
}

/* ---------- Header ---------- */
.ps-mr-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.ps-mr-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(79,128,255,.12);
    flex-shrink: 0;
}

.ps-mr-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-mr-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    font-weight: 600;
    color: var(--gwd-accent);
}

.ps-mr-id {
    flex: 1;
    min-width: 0;
}

.ps-mr-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--gwd-text-1);
    margin: 0 0 2px;
    line-height: 1.25;
}

.ps-mr-sub {
    font-size: 12.5px;
    color: var(--gwd-text-2);
    margin: 0;
    line-height: 1.4;
}

.ps-mr-score {
    order: -1;               /* move to the far left of the header */
    text-align: center;
    flex-shrink: 0;
    padding: 8px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
}

.ps-mr-score-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--gwd-text-2);
}

.ps-mr-score-max {
    font-size: 13px;
    color: var(--gwd-text-3);
}

.ps-mr-score-cap {
    display: block;
    font-size: 9.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gwd-text-3);
    margin-top: 1px;
}

.ps-mr-score.ps-score-excellent .ps-mr-score-num { color: #22D3A0; }
.ps-mr-score.ps-score-good .ps-mr-score-num      { color: var(--gwd-accent); }
.ps-mr-score.ps-score-average .ps-mr-score-num   { color: #FFB454; }
.ps-mr-score.ps-score-poor .ps-mr-score-num      { color: #FF6B81; }

/* ---------- Minimal sections ---------- */
.ps-mr-label {
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gwd-text-3);
    font-weight: 600;
    margin: 18px 0 8px;
}

.ps-mr-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 22px;
    font-size: 13.5px;
}

.ps-mr-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gwd-text-2);
    word-break: break-all;
}

.ps-mr-item svg {
    color: var(--gwd-text-3);
    flex-shrink: 0;
}

.ps-mr-link,
.ps-mr-link:hover {
    color: var(--gwd-accent-2);
    text-decoration: none;
}

.ps-mr-link:hover {
    text-decoration: underline;
}

.ps-mr-text {
    color: var(--gwd-text-2);
    gap: 6px 10px;
}

.ps-mr-dot {
    color: var(--gwd-text-3);
}

.ps-mr-trigger {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gwd-accent);
    background: rgba(79,128,255,.08);
    border: 1px solid rgba(79,128,255,.35);
    margin-bottom: 8px;
}

.ps-mr-reasoning {
    font-size: 13.5px;
    color: var(--gwd-text-2);
    line-height: 1.6;
    border-left: 2px solid rgba(79,128,255,.5);
    padding-left: 12px;
}

.ps-mr-reasoning p {
    margin: 0 0 8px;
}

.ps-mr-reasoning p:last-child {
    margin-bottom: 0;
}

.ps-mr-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    font-size: 11px;
    color: var(--gwd-text-3);
    margin-top: 6px;
}

.ps-mr-lang {
    color: var(--gwd-text-3);
}

/* ---------- Variant tabs ---------- */
.ps-modal .ps-variant-tab-nav {
    background: var(--gwd-card);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 999px;
    padding: 5px;
    gap: 4px;
}

.ps-modal .ps-vtab-btn {
    background: transparent;
    border: none;
    border-radius: 999px;
    color: var(--gwd-text-2);
    font-weight: 600;
    transition: all .15s;
}

.ps-modal .ps-vtab-btn:hover {
    background: rgba(255,255,255,.06);
    color: var(--gwd-text-1);
}

.ps-modal .ps-vtab-btn.active {
    background: linear-gradient(135deg, var(--gwd-accent) 0%, var(--gwd-accent-2) 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(79,128,255,.4);
}

.ps-modal .ps-vtab-pill {
    background: rgba(255,255,255,.12);
    color: inherit;
    border-radius: 999px;
}

.ps-modal .ps-vtab-btn.active .ps-vtab-pill {
    background: rgba(255,255,255,.25);
    color: #fff;
}

/* ---------- Variant panels (minimal: inputs only) ---------- */
.ps-modal .ps-vtab-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 12px 0 0;
    box-shadow: none;
}

.ps-modal .ps-char-count {
    color: var(--gwd-text-3);
}

.ps-modal .ps-subject-input {
    width: 100%;
    margin-bottom: 8px;
    padding: 9px 13px;
    font-size: 13px;
}

.ps-modal .ps-message-textarea {
    width: 100%;
    min-height: 140px;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.55;
    resize: vertical;
}

.ps-modal .ps-subject-input,
.ps-modal .ps-message-textarea {
    background: var(--gwd-bg-1);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    color: var(--gwd-text-1);
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.ps-modal .ps-subject-input::placeholder,
.ps-modal .ps-message-textarea::placeholder {
    color: var(--gwd-text-3);
}

.ps-modal .ps-subject-input:focus,
.ps-modal .ps-message-textarea:focus {
    outline: none;
    border-color: var(--gwd-accent);
    box-shadow: 0 0 0 3px rgba(79,128,255,.18);
}

/* ---------- Modal footer buttons ---------- */
.ps-modal .ps-modal-footer {
    background: transparent;
    border-top: 1px solid rgba(255,255,255,.07);
}

.ps-modal .ps-btn {
    border-radius: 999px;
    font-family: inherit;
}

.ps-modal .ps-btn-primary {
    background: linear-gradient(135deg, var(--gwd-accent) 0%, var(--gwd-accent-2) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(79,128,255,.35);
}

.ps-modal .ps-btn-primary:hover {
    background: linear-gradient(135deg, var(--gwd-accent) 0%, var(--gwd-accent-2) 100%);
    box-shadow: 0 6px 28px rgba(79,128,255,.5);
    transform: translateY(-1px);
}

.ps-modal .ps-btn-secondary {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,107,129,.4);
    color: #FF6B81;
}

.ps-modal .ps-btn-secondary:hover {
    background: rgba(255,107,129,.12);
    color: #FF6B81;
}

/* Loading spinner */
.ps-modal .ps-loading {
    color: var(--gwd-text-2);
}

.ps-modal .ps-spinner {
    border-color: rgba(255,255,255,.1);
    border-top-color: var(--gwd-accent);
}

/* =========================================================================
   NOTIFICATION BELL
   ========================================================================= */

.ps-notif-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.ps-notif-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.05);
    color: var(--gwd-text-2);
    cursor: pointer;
    position: relative;
    transition: background .15s, color .15s;
}

.ps-notif-btn:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.ps-notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #E24B4A;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    border: 1.5px solid #0d0d0d;
}

.ps-notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #1a1f2e;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

.ps-notif-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.ps-notif-list {
    max-height: 340px;
    overflow-y: auto;
}

.ps-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    cursor: pointer;
    transition: background .12s;
}

.ps-notif-item:last-child { border-bottom: none; }

.ps-notif-item:hover { background: rgba(255,255,255,.05); }

.ps-notif-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-notif-icon-reply  { background: rgba(52,168,83,.15);  color: #34a853; }
.ps-notif-icon-draft  { background: rgba(251,188,4,.15);  color: #fbbc04; }
.ps-notif-icon-pending { background: rgba(79,128,255,.15); color: var(--gwd-accent); }
.ps-notif-icon-found  { background: rgba(0,200,255,.15);  color: var(--gwd-accent-2); }

.ps-notif-body { flex: 1; min-width: 0; }

.ps-notif-name {
    font-size: 13px;
    font-weight: 500;
    color: #e8eaf0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-notif-desc {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ps-notif-time {
    font-size: 10px;
    color: #4b5563;
    margin-top: 3px;
}

.ps-notif-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: #4b5563;
}

.ps-notif-loading {
    padding: 20px 16px;
    text-align: center;
    font-size: 12px;
    color: #4b5563;
}


/* =========================================================================
   Lead-fit feedback (👍/👎) — v1.6.0
   Pure client signal; does not affect outreach. Lives in the lead card footer.
   ========================================================================= */
.ps-fit-feedback {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
}
.ps-fit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ps-fit-btn:hover { background: #f3f4f6; color: #374151; }
.ps-fit-btn.ps-fit-like.is-active {
    background: #e7f5e9;
    border-color: #00a32a;
    color: #00a32a;
}
.ps-fit-btn.ps-fit-dislike.is-active {
    background: #ffe5e5;
    border-color: #d63638;
    color: #d63638;
}
.ps-fit-feedback.is-saving { opacity: 0.5; pointer-events: none; }

/* Lead-fit thumbs inside the dark review modal footer (v1.6.0) */
#ps-modal-actions { align-items: center; }
#ps-modal-fit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    margin-right: 4px;
}
#ps-modal-fit .ps-fit-label {
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
}
#ps-modal-fit .ps-fit-btn {
    width: 34px;
    height: 34px;
    background: transparent;
    border-color: rgba(255,255,255,.18);
    color: #cbd5e1;
}
#ps-modal-fit .ps-fit-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
#ps-modal-fit .ps-fit-btn.ps-fit-like.is-active {
    background: rgba(0,163,42,.18);
    border-color: #00a32a;
    color: #34d399;
}
#ps-modal-fit .ps-fit-btn.ps-fit-dislike.is-active {
    background: rgba(214,54,56,.18);
    border-color: #d63638;
    color: #f87171;
}

/* =========================================================================
   Lead card — taller cards, status backgrounds & in-card lead-fit thumbs
   ========================================================================= */

/* 1) Taller cards */
.prospecting-dashboard .ps-lead-card {
    min-height: 420px;
}

/* 2) Status-based card backgrounds */
/* Approved/Deployed: neutral theme card + thin green edge — matches the rejected-card language */
.prospecting-dashboard .ps-lead-card.ps-status-approved,
.prospecting-dashboard .ps-lead-card.ps-status-deployed {
    background: var(--gwd-card);
    border-left: 3px solid rgba(74,222,128,.45);
    color: inherit;
}
/* Rejected: neutral theme card + thin red edge — the red is a signature, not a wash */
.prospecting-dashboard .ps-lead-card.ps-status-rejected {
    background: var(--gwd-card);
    border-left: 3px solid rgba(251,113,133,.45);
    color: inherit;
}
.prospecting-dashboard .ps-lead-card.ps-status-not_qualified { background: #181818; }

/* 3) In-card lead-fit (👍/👎) row — sits between body and footer */
.prospecting-dashboard .ps-card-fit-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 4px 0 12px;
}
.prospecting-dashboard .ps-card-fit .ps-fit-label {
    font-size: 12.5px;
    color: var(--gwd-text-3);
    white-space: nowrap;
    margin-right: 2px;
}
.prospecting-dashboard .ps-card-fit .ps-fit-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    color: #cbd5e1;
}
.prospecting-dashboard .ps-card-fit .ps-fit-btn:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
}
.prospecting-dashboard .ps-card-fit .ps-fit-btn.ps-fit-like.is-active {
    background: rgba(0,163,42,.18);
    border-color: #00a32a;
    color: #34d399;
}
.prospecting-dashboard .ps-card-fit .ps-fit-btn.ps-fit-dislike.is-active {
    background: rgba(214,54,56,.18);
    border-color: #d63638;
    color: #f87171;
}