/* ── Party Directory — Dashboard Styles ── */

/* ── Reusable Component Classes ── */
.pph-dashboard-card {
    background: #fff;
    border: 1px solid var(--pd-border, #e2e8f0);
    border-radius: var(--pd-radius, 12px);
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.pph-form-group {
    margin-bottom: 1rem;
}
.pph-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 0.35rem;
}
.pph-form-group input,
.pph-form-group select,
.pph-form-group textarea {
    width: 100%;
}
.pph-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
.pph-table-responsive table {
    min-width: 540px;
}

/* ── Dashboard Layout ── */
.pd-dashboard {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    min-height: 85vh;
    background: var(--pd-bg, #f8fafc);
    border-radius: var(--pd-radius, 12px);
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
    margin: 1rem 0;
    position: relative;
}

/* ── Sidebar ── */
.pd-dash-sidebar {
    background: linear-gradient(175deg, #131929 0%, #1a2339 55%, #1e293b 100%);
    color: #e2e8f0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

/* Sidebar: User Info ──────── */
.pd-dash-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.35rem 1.15rem 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 0.25rem;
    background: rgba(0,0,0,0.18);
    flex-shrink: 0;
}
.pd-avatar {
    border-radius: 50%;
    border: 2px solid rgba(99,102,241,0.45);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    flex-shrink: 0;
}
.pd-dash-user > div {
    min-width: 0;
    flex: 1;
}
.pd-dash-user strong {
    display: block;
    font-size: 0.875rem;
    color: #f1f5f9;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pd-dash-plan {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 100px;
    margin-top: 0.2rem;
}
.pd-dash-plan-basic  { background: rgba(79,70,229,0.28);  color: #a5b4fc; }
.pd-dash-plan-pro    { background: rgba(245,158,11,0.28); color: #fcd34d; }
.pd-dash-plan-premium{ background: rgba(167,139,250,0.28); color: #c4b5fd; }

/* Sidebar: Nav ──────────── */
.pd-dash-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.625rem 0.75rem;
    gap: 0.125rem;
}

/* Override any theme link styles inside sidebar */
.pd-dash-sidebar a,
.pd-dash-sidebar a:visited,
.pd-dash-sidebar a:link {
    text-decoration: none;
    color: inherit;
}

/* Force nav item text to be visible — defeats Astra/theme overrides */
.pd-dash-sidebar .pd-nav-item,
.pd-dash-sidebar a.pd-nav-item,
.pd-dash-sidebar a.pd-nav-item:visited,
.pd-dash-sidebar a.pd-nav-item:link {
    color: #c4cfd8 !important;
}

.pd-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.625rem 0.875rem;
    color: #c4cfd8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    position: relative;
    border: none;
    outline: none;
}

/* Hover — scoped tightly to prevent theme overrides */
.pd-dash-sidebar .pd-nav-item:hover,
.pd-dash-sidebar a.pd-nav-item:hover {
    background: rgba(255,255,255,0.09) !important;
    color: #e2e8f0 !important;
}

/* Active state ─── */
.pd-nav-active,
.pd-dash-sidebar .pd-nav-active,
.pd-dash-sidebar a.pd-nav-active {
    background: rgba(99,102,241,0.18) !important;
    color: #a5b4fc !important;
    font-weight: 600;
    border-left: none;
}
.pd-nav-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    height: 64%;
    width: 3px;
    background: linear-gradient(180deg, #818cf8, #6366f1);
    border-radius: 0 3px 3px 0;
}

/* Active + Hover — explicit rule to prevent white-on-white */
.pd-dash-sidebar .pd-nav-active:hover,
.pd-dash-sidebar a.pd-nav-active:hover {
    background: rgba(99,102,241,0.28) !important;
    color: #c4b5fd !important;
}

.pd-nav-active .dashicons {
    color: #818cf8;
}

.pd-nav-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.pd-nav-disabled:hover {
    background: transparent !important;
    color: #94a3b8 !important;
}
.pd-nav-lock {
    font-size: 11px !important;
    width: 11px !important;
    height: 11px !important;
    margin-left: auto;
    opacity: 0.4;
}
.pd-nav-item .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
    opacity: 0.9;
    flex-shrink: 0;
    color: #8da0b8;
}
.pd-nav-logout {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}
/* Logout link: explicit color so theme can't zero it out */
.pd-dash-sidebar a.pd-nav-logout,
.pd-dash-sidebar .pd-nav-logout {
    color: #b0bfc9 !important;
}
.pd-dash-sidebar a.pd-nav-logout:hover,
.pd-dash-sidebar .pd-nav-logout:hover {
    color: #fca5a5 !important;
    background: rgba(239,68,68,0.12) !important;
}

/* ── Hamburger toggle (mobile only) ── */
.pd-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    margin: 0.75rem;
    width: calc(100% - 1.5rem);
    box-sizing: border-box;
}
.pd-sidebar-toggle .dashicons { font-size: 20px; width: 20px; height: 20px; }
.pd-dash-sidebar.pd-sidebar-open .pd-sidebar-nav-wrap { display: flex; }

/* ── Content ── */
.pd-dash-content {
    padding: 2rem 2.5rem;
    overflow-y: auto;
}
.pd-dash-content h2 { margin-top: 0; margin-bottom: 1.25rem; font-size: 1.5rem; color: var(--pd-text, #1e293b); }
.pd-dashboard-section-title,
.pd-dash-content .pd-section-header h2 {
    font-size: 28px;
    line-height: 1.2;
    word-break: normal;
}

/* ── Trial Banner ── */
.pd-trial-banner {
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}
.pd-trial-banner > div { flex: 1; }
.pd-trial-banner > div strong { display: block; }
.pd-trial-banner > div span { font-size: 0.85rem; opacity: 0.8; }
.pd-trial-banner .pd-btn { flex-shrink: 0; }
.pd-trial-banner strong,
.pd-trial-banner span {
    overflow-wrap: anywhere;
}

/* ── Overview Welcome ── */
.pd-overview-welcome { margin-bottom: 1.5rem; }
.pd-overview-welcome h2 { margin-bottom: 0.25rem; font-size: 1.6rem; }
.pd-overview-subtitle { color: var(--pd-text-light, #64748b); font-size: 0.95rem; margin: 0; }

/* ── Overview Grid ── */
.pd-overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.pd-ov-card {
    background: var(--pd-card, #fff);
    border-radius: var(--pd-radius, 12px);
    box-shadow: var(--pd-shadow, 0 1px 3px rgba(0,0,0,0.06));
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    text-decoration: none;
    color: var(--pd-text, #1e293b);
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}
.pd-ov-card:hover { box-shadow: var(--pd-shadow-lg); transform: translateY(-2px); }
.pd-ov-card-icon { margin-bottom: 0.5rem; }
.pd-ov-card-icon .dashicons { font-size: 28px; width: 28px; height: 28px; opacity: 0.7; }
.pd-ov-card-purple .pd-ov-card-icon .dashicons { color: #7c3aed; }
.pd-ov-card-blue .pd-ov-card-icon .dashicons { color: #2563eb; }
.pd-ov-card-amber .pd-ov-card-icon .dashicons { color: #d97706; }
.pd-ov-card-green .pd-ov-card-icon .dashicons { color: #059669; }
.pd-ov-card-purple { border-bottom: 3px solid #7c3aed; }
.pd-ov-card-blue { border-bottom: 3px solid #2563eb; }
.pd-ov-card-amber { border-bottom: 3px solid #d97706; }
.pd-ov-card-green { border-bottom: 3px solid #059669; }
.pd-ov-num { font-size: 1.75rem; font-weight: 800; color: var(--pd-text, #1e293b); }
.pd-ov-label { font-size: 0.8rem; color: var(--pd-text-light, #64748b); margin-top: 0.25rem; }
.pd-ov-badge { position: absolute; top: 8px; right: 8px; background: var(--pd-warning); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
.pd-review-stats-grid {
    grid-template-columns: 1fr 1fr;
}

/* ── Quick Actions ── */
.pd-quick-actions h3 { margin-bottom: 0.75rem; }
.pd-quick-actions-grid { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pd-quick-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    background: var(--pd-card, #fff);
    border: 1px solid var(--pd-border, #e2e8f0);
    border-radius: 8px;
    text-decoration: none;
    color: var(--pd-text, #1e293b);
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pd-quick-action:hover { border-color: var(--pd-primary); box-shadow: var(--pd-shadow); color: var(--pd-primary); }
.pd-quick-action .dashicons { font-size: 18px; width: 18px; height: 18px; color: var(--pd-primary, #4f46e5); }

/* ── Listing Cards ── */
.pd-listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.pd-listing-card {
    background: var(--pd-card, #fff);
    border-radius: var(--pd-radius, 12px);
    box-shadow: var(--pd-shadow, 0 1px 3px rgba(0,0,0,0.06));
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.pd-listing-card:hover { box-shadow: var(--pd-shadow-lg); transform: translateY(-2px); }
.pd-listing-thumb-wrap { position: relative; }
.pd-listing-thumb { width: 100%; height: 180px; object-fit: cover; display: block; }
.pd-listing-thumb-placeholder { width: 100%; height: 180px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.pd-listing-thumb-placeholder .dashicons { font-size: 40px; width: 40px; height: 40px; color: #cbd5e1; }
.pd-listing-status { position: absolute; top: 10px; right: 10px; }
.pd-listing-info { padding: 1rem 1.25rem; }
.pd-listing-info h4 { margin: 0 0 0.35rem; font-size: 0.88rem; font-weight: 700; }
.pd-listing-cats { font-size: 0.8rem; color: var(--pd-primary, #4f46e5); margin: 0 0 0.35rem; }
.pd-listing-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }

/* ── Quote Cards ── */
.pd-quotes-list { display: flex; flex-direction: column; gap: 1rem; }
.pd-quote-card {
    background: var(--pd-card, #fff);
    border-radius: var(--pd-radius, 12px);
    box-shadow: var(--pd-shadow, 0 1px 3px rgba(0,0,0,0.06));
    padding: 1.25rem;
    transition: box-shadow 0.2s;
}
.pd-quote-card:hover { box-shadow: var(--pd-shadow-lg); }
.pd-quote-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.pd-quote-user { display: flex; align-items: center; gap: 0.5rem; }
.pd-quote-user .dashicons { font-size: 18px; width: 18px; height: 18px; color: var(--pd-primary, #4f46e5); }
.pd-quote-meta { font-size: 0.8rem; color: var(--pd-text-light, #64748b); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.pd-quote-message { font-size: 0.9rem; line-height: 1.5; color: var(--pd-text, #1e293b); margin-bottom: 0.75rem; }
.pd-quote-footer { display: flex; justify-content: space-between; align-items: center; }
.pd-quote-date { font-size: 0.75rem; color: var(--pd-text-light, #64748b); }

/* ── Inbox ── */
.pd-inbox { display: grid; grid-template-columns: 280px 1fr; gap: 0; border: 1px solid var(--pd-border, #e2e8f0); border-radius: var(--pd-radius, 12px); overflow: hidden; min-height: 500px; background: var(--pd-card, #fff); }
.pd-inbox-sidebar { border-right: 1px solid var(--pd-border, #e2e8f0); overflow-y: auto; }
.pd-inbox-empty { padding: 1.5rem; text-align: center; color: var(--pd-text-light, #64748b); font-size: 0.9rem; }

.pd-convo-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--pd-text, #1e293b);
    border-bottom: 1px solid var(--pd-border, #e2e8f0);
    transition: background 0.15s;
}
.pd-convo-item:hover { background: var(--pd-bg, #f8fafc); }
.pd-convo-active { background: #eef2ff; }
.pd-convo-avatar { border-radius: 50%; flex-shrink: 0; }
.pd-convo-info { flex: 1; min-width: 0; }
.pd-convo-info strong { display: block; font-size: 0.9rem; }
.pd-convo-preview { display: block; font-size: 0.8rem; color: var(--pd-text-light, #64748b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-convo-badge {
    background: var(--pd-primary, #4f46e5);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    flex-shrink: 0;
}

/* ── Thread ── */
.pd-inbox-main { display: flex; flex-direction: column; }
.pd-thread-header { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--pd-border, #e2e8f0); font-size: 0.95rem; }
.pd-thread-messages { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.pd-msg { max-width: 75%; }
.pd-msg-mine { align-self: flex-end; }
.pd-msg-other { align-self: flex-start; }
.pd-msg-bubble {
    padding: 0.65rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.45;
    word-wrap: break-word;
}
.pd-msg-mine .pd-msg-bubble { background: var(--pd-primary, #4f46e5); color: #fff; border-bottom-right-radius: 4px; }
.pd-msg-other .pd-msg-bubble { background: #f1f5f9; color: var(--pd-text, #1e293b); border-bottom-left-radius: 4px; }
.pd-msg-time { font-size: 0.7rem; color: var(--pd-text-light, #64748b); margin-top: 0.2rem; display: block; }
.pd-msg-mine .pd-msg-time { text-align: right; }

.pd-msg-form { display: flex; gap: 0.75rem; padding: 1rem 1.25rem; border-top: 1px solid var(--pd-border, #e2e8f0); align-items: flex-end; }
.pd-msg-form .pd-textarea { flex: 1; min-height: auto; resize: none; }

/* ── Profile Form ── */
.pd-profile-form { max-width: 500px; }
.pd-profile-form .pd-form-row { margin-bottom: 1rem; }
.pd-profile-avatar-section { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--pd-border); }
.pd-profile-avatar { border-radius: 50%; }
.pd-text-muted { font-size: 0.85rem; color: var(--pd-text-light, #64748b); margin: 0.15rem 0; }

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive
───────────────────────────────────────────────────────────────────────────── */

/* Tablet — 900px */
@media (max-width: 900px) {
    .pd-dashboard {
        grid-template-columns: 1fr;
        border-radius: var(--pd-radius, 12px);
    }
    .pd-dash-sidebar {
        flex-direction: column;
        min-height: auto;
    }
    /* Show hamburger toggle button */
    .pd-sidebar-toggle { display: flex; }

    /* Hide the nav + user section by default on mobile;
       show when .pd-sidebar-open is added via JS */
    .pd-sidebar-nav-wrap {
        display: none;
        flex-direction: column;
        flex: 1;
        padding-bottom: 0.75rem;
    }
    .pd-dash-sidebar.pd-sidebar-open .pd-sidebar-nav-wrap {
        display: flex;
    }
    .pd-dash-nav {
        flex-direction: column;
        padding: 0.25rem 0.75rem 0;
    }
    .pd-nav-item::before { display: none; }
    .pd-nav-active::before { display: block; }
    .pd-nav-logout { margin-top: 0.5rem; }

    .pd-dash-content { padding: 1.25rem 1rem; }
    .pd-inbox { grid-template-columns: 1fr; min-height: auto; }
    .pd-inbox-sidebar { max-height: 220px; border-right: none; border-bottom: 1px solid var(--pd-border); }
    .pd-overview-grid { grid-template-columns: 1fr 1fr; }
    .pd-profile-form { max-width: 100%; }
}

/* Mobile — 640px */
@media (max-width: 640px) {
    .pd-dashboard { margin: 0.5rem 0; border-radius: 8px; }
    .pd-dash-content { padding: 1rem 0.875rem; }
    .pd-overview-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .pd-ov-card { padding: 1rem; }
    .pd-ov-num { font-size: 1.5rem; }
    .pd-quick-actions-grid { flex-direction: column; }
    .pd-quick-action { width: 100%; justify-content: center; }
    .pd-listings-grid { grid-template-columns: 1fr; }
    .pd-form-grid { grid-template-columns: 1fr; }
    .pd-inbox { min-height: 420px; }
    .pd-thread-messages { padding: 0.875rem; }
    .pd-msg-form { padding: 0.75rem; }
    .pd-msg { max-width: 88%; }
    .pd-trial-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .pd-trial-banner .pd-btn {
        width: 100%;
        justify-content: center;
    }
    .pph-table-responsive {
        border: 1px solid var(--pd-border, #e2e8f0);
        border-radius: 10px;
        padding-bottom: 2px;
    }
    .pph-table-responsive .pd-table {
        margin-bottom: 0;
    }
    .pd-dashboard-section-title,
    .pd-dash-content .pd-section-header h2 {
        font-size: 22px;
    }
    .pd-card-header {
        gap: 0.65rem;
    }
    .pd-view-all-btn,
    .pd-card-header .pd-btn.pd-btn-sm {
        width: 100%;
        justify-content: center;
        border-radius: 10px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .pd-review-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Small mobile — 400px */
@media (max-width: 400px) {
    .pd-overview-grid { grid-template-columns: 1fr; }
    .pd-review-stats-grid { grid-template-columns: 1fr; }
    .pd-dash-content { padding: 0.875rem 0.75rem; }
    .pd-sidebar-toggle { margin: 0.5rem; width: calc(100% - 1rem); }
    .pd-nav-item { font-size: 0.85rem; padding: 0.6rem 0.75rem; }
}

/* ══════════════════════════════════════
   Saved Vendors Grid
   ══════════════════════════════════════ */
.pd-saved-vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
}
.pd-saved-vendor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8f9fc;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    transition: background 0.2s;
    position: relative;
}
.pd-saved-vendor-item:hover {
    background: #eef2ff;
}
.pd-saved-vendor-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}
.pd-saved-vendor-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pd-saved-vendor-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-saved-vendor-thumb .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #818cf8;
}
.pd-saved-vendor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.pd-saved-vendor-info strong {
    font-size: 0.9rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pd-saved-vendor-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.pd-saved-vendor-remove:hover {
    color: #dc2626;
    background: #fee2e2;
}
.pd-saved-vendor-remove .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ══════════════════════════════════════
   Analytics Section
   ══════════════════════════════════════ */
.pd-analytics-section {
    margin-top: 1.5rem;
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Stats Row */
.pd-analytics-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.pd-analytics-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8f9fc;
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    transition: box-shadow 0.2s;
}
.pd-analytics-stat-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.pd-analytics-stat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
.pd-analytics-stat-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #fff;
}
.pd-analytics-stat-icon--views { background: linear-gradient(135deg, #6366f1, #818cf8); }
.pd-analytics-stat-icon--quotes { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.pd-analytics-stat-icon--messages { background: linear-gradient(135deg, #10b981, #34d399); }
.pd-analytics-stat-icon--conversion { background: linear-gradient(135deg, #ec4899, #f472b6); }

.pd-analytics-stat-info { flex: 1; min-width: 0; }
.pd-analytics-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.pd-analytics-stat-label {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

/* Trend badge */
.pd-analytics-trend {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 2px;
}
.pd-analytics-trend .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}
.pd-analytics-trend--up {
    background: #d1fae5;
    color: #059669;
}
.pd-analytics-trend--down {
    background: #fee2e2;
    color: #dc2626;
}

/* Bar Chart */
.pd-analytics-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 140px;
    padding: 1rem 0 0;
}
.pd-analytics-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}
.pd-analytics-bar {
    width: 100%;
    max-width: 28px;
    background: linear-gradient(180deg, #6366f1, #a5b4fc);
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: height 0.3s ease;
}
.pd-analytics-bar-col:hover .pd-analytics-bar {
    background: linear-gradient(180deg, #4f46e5, #6366f1);
}
.pd-analytics-bar-label {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 6px;
}

/* Responsive analytics */
@media (max-width: 768px) {
    .pd-analytics-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .pd-analytics-chart {
        height: 100px;
    }
}
@media (max-width: 480px) {
    .pd-analytics-stats-row {
        grid-template-columns: 1fr;
    }
    .pd-analytics-section {
        padding: 1rem;
    }
}
