/**
 * Consolety Admin Styles
 *
 * Core styling for the Consolety WordPress admin interface.
 *
 * @package Consolety
 * @since 1.0.0
 */

/* ============================================
   GLOBAL FORM ELEMENT RESET
   Protects ALL Consolety admin pages from
   Elementor, JupiterX, Bootstrap, WooCommerce,
   and other plugins that set global
   appearance:none on form inputs.

   NOTE: Do NOT use "all: revert !important" here.
   Chrome silently drops the entire CSS rule when
   "all: revert" is combined with "!important".
   Instead, reset each property explicitly.
   ============================================ */
.vp-dashboard input[type="radio"],
.vp-dashboard .vp-radio input[type="radio"] {
    -webkit-appearance: radio !important;
    -moz-appearance: radio !important;
    appearance: radio !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    padding: 0 !important;
    margin: 3px 4px 0 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: none !important;
    background-color: initial !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
    accent-color: var(--vp-primary) !important;
    cursor: pointer !important;
    position: static !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}
.vp-dashboard input[type="checkbox"],
.vp-dashboard .vp-checkbox input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    padding: 0 !important;
    margin: 3px 4px 0 0 !important;
    border: none !important;
    border-radius: 3px !important;
    background: none !important;
    background-color: initial !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
    accent-color: var(--vp-primary) !important;
    cursor: pointer !important;
    position: static !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}
.vp-dashboard select {
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
}

/* ============================================
   CSS Variables - Light Theme
   ============================================ */
.vp-dashboard {
    --vp-bg: #f8fafc;
    --vp-surface: #ffffff;
    --vp-surface-hover: #f1f5f9;
    --vp-border: #e2e8f0;
    --vp-text: #1e293b;
    --vp-text-muted: #64748b;
    --vp-primary: #10b981;
    --vp-success: #10b981;
    --vp-warning: #f59e0b;
    --vp-danger: #ef4444;
}

/* ============================================
   Dashboard Layout
   ============================================ */
.vp-dashboard {
    background: var(--vp-bg);
    min-height: calc(100vh - 32px);
    margin-left: -20px;
    padding: 24px;
    color: var(--vp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================
   Header
   ============================================ */
.vp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--vp-border);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vp-header h1 {
    color: var(--vp-text);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vp-header-sub {
    color: var(--vp-text-muted);
    font-size: 14px;
    margin: 8px 0 0 0;
}

/* ============================================
   Cards
   ============================================ */
.vp-card {
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.vp-card h2 {
    margin: 0 0 16px 0;
    padding: 0;
    font-size: 18px;
    color: var(--vp-text);
}

.vp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vp-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--vp-text);
}

/* ============================================
   Status Badges
   ============================================ */
.vp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ---- Unified Status Palette (cross-module) ----
   success/active/approved/connected : #10b981
   pending/claimed/in_progress       : #f59e0b
   rejected/error/revision/disconn   : #ef4444
   expired/withdrawn/draft/inactive  : #64748b
   info/processing                   : #3b82f6
   warning/sensitive/ymyl            : #d97706
   ------------------------------------------------ */
.vp-status-connected {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.vp-status-disconnected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.vp-status-pending {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   Credits Display
   ============================================ */
.vp-credits-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    padding: 12px 20px;
    border-radius: 10px;
}

.vp-credits-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--vp-primary);
}

.vp-credits-label {
    color: var(--vp-text-muted);
    font-size: 13px;
}

/* ============================================
   Metrics Grid
   ============================================ */
.vp-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.vp-metric {
    background: var(--vp-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--vp-border);
}

.vp-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--vp-text);
}

.vp-metric-label {
    font-size: 12px;
    color: var(--vp-text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Buttons
   ============================================ */
.vp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: all 0.2s;
}

.vp-btn-primary {
    background: var(--vp-primary);
    color: #fff;
}

.vp-btn-primary:hover {
    background: #059669;
    color: #fff;
}

.vp-btn-secondary {
    background: var(--vp-surface-hover);
    color: var(--vp-text);
    border: 1px solid var(--vp-border);
}

.vp-btn-secondary:hover {
    background: var(--vp-border);
}

.vp-btn-success {
    background: #10b981;
    color: white;
}

.vp-btn-success:hover {
    background: #059669;
}

.vp-btn-danger {
    background: var(--vp-danger);
    color: #fff;
}

.vp-btn-danger:hover {
    background: #dc2626;
}

.vp-btn-ghost {
    background: transparent;
    color: var(--vp-text-muted);
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
}

.vp-btn-ghost:hover {
    color: var(--vp-text);
    background: var(--vp-surface-hover);
}

.vp-btn-outline {
    background: transparent;
    color: var(--vp-primary);
    border: 1px solid var(--vp-primary);
}

.vp-btn-outline:hover {
    background: rgba(16, 185, 129, .1);
}

.vp-btn-visit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vp-btn-visit .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* ============================================
   Notices
   ============================================ */
.vp-notice {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vp-notice-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.vp-notice-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================
   Actions
   ============================================ */
.vp-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* ============================================
   Quick Links
   ============================================ */
.vp-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.vp-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--vp-text);
    transition: all 0.2s;
}

.vp-quick-link:hover {
    background: var(--vp-surface-hover);
    border-color: var(--vp-primary);
    color: var(--vp-text);
}

.vp-quick-link-icon {
    font-size: 24px;
}

.vp-quick-link-text {
    font-weight: 500;
}

/* ============================================
   Connect Card
   ============================================ */
.vp-connect-card {
    text-align: center;
    padding: 48px;
}

.vp-connect-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.vp-connect-card h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.vp-connect-card p {
    color: var(--vp-text-muted);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Onboarding (disconnected, value-first preview)
   Scoped under .vp-dashboard; inherits CSS vars.
   ============================================ */
.vp-btn-lg {
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 600;
}

.vp-onboard-hero {
    text-align: center;
    padding: 40px 32px;
    background:
        radial-gradient(120% 130% at 50% 0%, rgba(16, 185, 129, 0.10) 0%, rgba(16, 185, 129, 0) 62%),
        var(--vp-surface);
}

.vp-onboard-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--vp-primary);
    background: rgba(16, 185, 129, 0.10);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.vp-onboard-hero h2 {
    font-size: 26px;
    line-height: 1.25;
    margin: 0 0 12px;
    color: var(--vp-text);
}

.vp-onboard-hero > p {
    color: var(--vp-text-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 22px;
}

.vp-onboard-reassure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--vp-text-muted);
    margin: 18px auto 0;
    max-width: 540px;
}
.vp-onboard-reassure .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--vp-primary);
}

/* Social-proof stats strip */
.vp-onboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.vp-onboard-stat {
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
}
.vp-onboard-stat-value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--vp-primary);
    line-height: 1.1;
}
.vp-onboard-stat-label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--vp-text-muted);
}

/* How it works */
.vp-onboard-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.vp-onboard-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.vp-onboard-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--vp-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vp-onboard-step strong {
    display: block;
    margin-bottom: 4px;
    color: var(--vp-text);
    font-size: 14px;
}
.vp-onboard-step p {
    margin: 0;
    font-size: 13px;
    color: var(--vp-text-muted);
    line-height: 1.5;
}

/* Preview head + CTA row */
.vp-onboard-preview-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.vp-onboard-preview-head h2 {
    margin: 0;
}
.vp-onboard-preview-note {
    font-size: 12.5px;
    color: var(--vp-text-muted);
}
.vp-onboard-cta-row {
    text-align: center;
    margin-top: 20px;
}

/* Read-only preview publisher cards */
.vp-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.vp-preview-card {
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vp-preview-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.vp-preview-domain {
    font-size: 14px;
    font-weight: 700;
    color: var(--vp-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vp-preview-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}
.vp-preview-badge-new {
    background: rgba(16, 185, 129, 0.12);
    color: var(--vp-primary);
}
.vp-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.vp-preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--vp-text-muted);
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    padding: 3px 8px;
    border-radius: 6px;
}
.vp-preview-chip .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
}
.vp-preview-bio {
    margin: 0;
    font-size: 12.5px;
    color: var(--vp-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vp-preview-stats {
    display: flex;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid var(--vp-border);
}
.vp-preview-stat-value {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--vp-text);
}
.vp-preview-stat-label {
    display: block;
    font-size: 10.5px;
    color: var(--vp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.vp-preview-reqs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.vp-preview-req-tag {
    font-size: 11px;
    color: var(--vp-text-muted);
    background: var(--vp-bg);
    padding: 3px 8px;
    border-radius: 6px;
}

@media (max-width: 782px) {
    .vp-onboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .vp-onboard-steps {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Loading & Empty States
   ============================================ */
.vp-loading-state {
    text-align: center;
    padding: 60px;
    color: var(--vp-text-muted);
}

.vp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--vp-text-muted);
}

.vp-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.vp-empty-state h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--vp-text);
}

.vp-empty-state p {
    margin: 0;
    opacity: 0.7;
}

.vp-empty-list {
    padding: 40px 20px;
    text-align: center;
    color: var(--vp-text-muted);
    font-size: 14px;
}

/* ============================================
   Form Elements
   ============================================ */
.vp-input,
.vp-select,
.vp-textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    color: var(--vp-text);
    font-size: 14px;
    font-family: inherit;
}

.vp-input,
.vp-select {
    min-height: 36px;
    padding: 0 12px;
}

.vp-input:focus,
.vp-select:focus,
.vp-textarea:focus {
    outline: none;
    border-color: var(--vp-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.vp-input::placeholder,
.vp-textarea::placeholder {
    color: var(--vp-text-muted);
}

.vp-select option {
    background: var(--vp-surface);
    color: var(--vp-text);
    padding: 8px;
}

/* Textarea specific */
.vp-textarea {
    min-height: 160px;
    padding: 12px;
    line-height: 1.5;
    resize: vertical;
}

/* Multi-select specific */
.vp-select[multiple] {
    min-height: 140px;
    padding: 8px;
    background-image: none;
}

.vp-select[multiple] option {
    padding: 6px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.vp-select[multiple] option:checked {
    background: var(--vp-primary);
    color: white;
}

.vp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 6px;
    color: var(--vp-text);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.vp-checkbox-label:hover {
    border-color: var(--vp-primary);
}

.vp-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

/* ============================================
   Filters
   ============================================ */
.vp-filters-inline {
    display: flex;
    gap: 12px;
}

/* ============================================
   Badges
   ============================================ */
/* Base badge - extended by .vp-badge block in Badge System section below */
.vp-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.vp-badge-traffic {
    background: rgba(59, 130, 246, .15);
    color: #3b82f6;
}

.vp-badge-traffic.gold {
    background: rgba(234, 179, 8, .15);
    color: #b45309;
}

.vp-badge-traffic.diamond {
    background: rgba(139, 92, 246, .15);
    color: #7c3aed;
}

.vp-badge-lang {
    background: var(--vp-surface-hover);
    color: var(--vp-text-muted);
}

.vp-badge-category {
    background: rgba(16, 185, 129, 0.1);
    color: var(--vp-primary);
}

.vp-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid #10b981;
    color: #10b981;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.vp-badge-warning {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid currentColor;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.vp-badge-warning .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* ============================================
   Requirement Tags
   ============================================ */
.vp-req-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.vp-req-words {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.vp-req-ai {
    background: rgba(234, 179, 8, 0.1);
    color: #b45309;
}

.vp-req-links {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.vp-req-restricted {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.vp-req-tag .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* ============================================
   Word Count Validation
   ============================================ */
.vp-word-count-low {
    color: var(--vp-danger) !important;
    font-weight: 600;
}

.vp-word-count-ok {
    color: var(--vp-success) !important;
    font-weight: 600;
}

/* ============================================
   Revision Counter
   ============================================ */
.vp-revision-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin: 16px 24px 0;
}

.vp-revision-counter .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.vp-revision-ok {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.vp-revision-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.vp-revision-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================
   Feedback Box
   ============================================ */
.vp-feedback-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: var(--vp-text);
}

.vp-feedback-box strong {
    color: #ef4444;
}

/* ============================================
   Global Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
    .vp-dashboard {
        padding: 16px;
    }

    .vp-header {
        flex-wrap: wrap;
        gap: 16px;
    }

    .vp-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .vp-filters-inline {
        flex-wrap: wrap;
        width: 100%;
    }

    .vp-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .vp-quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vp-dashboard {
        margin-left: -10px;
        padding: 12px;
    }

    .vp-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vp-header h1 {
        font-size: 20px;
    }

    .vp-card {
        padding: 16px;
        border-radius: 8px;
    }

    .vp-connect-card {
        padding: 32px 16px;
    }

    .vp-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .vp-metric {
        padding: 14px;
    }

    .vp-metric-value {
        font-size: 22px;
    }

    .vp-quick-links {
        grid-template-columns: 1fr;
    }

    .vp-actions {
        flex-wrap: wrap;
    }

    .vp-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .vp-header h1 {
        font-size: 18px;
    }

    .vp-header-sub {
        font-size: 13px;
    }

    .vp-credits-display {
        padding: 10px 14px;
    }

    .vp-credits-value {
        font-size: 20px;
    }

    .vp-card {
        padding: 12px;
    }

    .vp-card h2 {
        font-size: 16px;
    }

    .vp-metrics {
        grid-template-columns: 1fr;
    }

    .vp-empty-state {
        padding: 40px 16px;
    }
}

/* ============================================
   Confirm Modal (for Network/Campaigns pages)
   Structure: .vp-modal-overlay (backdrop+container) > .vp-modal (dialog)
   ============================================ */
.vp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-modal,
.vp-confirm-modal {
    position: relative;
    z-index: 200001;
    background: var(--vp-surface, #ffffff);
    color: var(--vp-text, #1e293b);
    border: 1px solid var(--vp-border, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 90vw;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    /* Flexbox layout for scrollable body with fixed header/footer */
    display: flex;
    flex-direction: column;
    /* Ensure dialog content is never blurred - counteract backdrop-filter on parent */
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ============================================
   WP Overlay Z-Index Lift
   When a VP modal is open, lift all WordPress
   overlays (media library, link dialog, TinyMCE
   toolbars) above the VP modal stack (200000+).
   ============================================ */
body.vp-modal-open .media-modal {
    z-index: 200020 !important;
}
body.vp-modal-open .media-modal-backdrop {
    z-index: 200019 !important;
}
body.vp-modal-open #wp-link-wrap {
    z-index: 200010 !important;
}
body.vp-modal-open #wp-link-backdrop {
    z-index: 200009 !important;
}
body.vp-modal-open .mce-inline-toolbar-grp,
body.vp-modal-open .mce-floatpanel {
    z-index: 200010 !important;
}

/* Sanitization report notice (shown when Hub stripped unsafe content) */
.vp-sanitization-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #92400e;
    display: flex;
    align-items: center;
}
.vp-sanitization-notice .dashicons {
    flex-shrink: 0;
}

.vp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--vp-bg, #f8fafc);
    border-bottom: 1px solid var(--vp-border, #e2e8f0);
    padding: 16px 20px;
}

.vp-modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--vp-text, #1e293b);
    display: flex;
    align-items: center;
}

.vp-modal-close {
    background: none;
    border: none;
    color: var(--vp-text-muted, #64748b);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vp-modal-close:hover {
    background: var(--vp-surface-hover, #f1f5f9);
    color: var(--vp-text, #1e293b);
}

.vp-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0; /* Firefox fix for flex overflow */
}

.vp-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid var(--vp-border, #e2e8f0);
    background: var(--vp-bg, #f8fafc);
    flex-shrink: 0; /* Prevent footer from shrinking */
}

/* Danger button for destructive actions */
.vp-btn-danger {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

.vp-btn-danger:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

/* Warning button for caution actions */
.vp-btn-warning {
    background: #f59e0b !important;
    color: #ffffff !important;
    border-color: #f59e0b !important;
}

.vp-btn-warning:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
}

/* Constrain TinyMCE inside modal to prevent flex overflow */
.vp-modal-body .vp-form-editor .wp-editor-wrap {
    max-height: 350px;
    overflow: hidden;
}
.vp-modal-body .vp-form-editor .mce-edit-area iframe {
    max-height: 250px !important;
}

/* Category hierarchy grouped display */
.vp-chip-grouped {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--vp-border, #e2e8f0);
    border-radius: 8px;
    background: var(--vp-bg, #f8fafc);
}
.vp-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.vp-chip-main span {
    font-weight: 600;
    border-width: 2px;
}
.vp-chip-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 8px;
}
.vp-chip-sub span {
    font-size: 12px;
    padding: 4px 10px;
}

/* Category Row Selector (Campaigns - replaces chip cloud) */
.vp-category-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vp-category-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.vp-category-row .vp-select {
    flex: 1;
    min-width: 0;
}
.vp-category-row .vp-category-remove {
    flex-shrink: 0;
    padding: 8px;
    color: var(--vp-text-muted, #64748b);
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.vp-category-row .vp-category-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
@media (max-width: 600px) {
    .vp-category-row {
        flex-wrap: wrap;
    }
    .vp-category-row .vp-select {
        flex: 1 1 100%;
    }
}

/* Activity Feed (Dashboard) */
.vp-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.vp-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--vp-border, #e2e8f0);
}
.vp-activity-item:last-child {
    border-bottom: none;
}
.vp-activity-icon {
    flex-shrink: 0;
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--vp-primary, #6366f1);
}
.vp-activity-message {
    flex: 1;
    font-size: 14px;
    color: var(--vp-text, #1e293b);
}
.vp-activity-time {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--vp-text-muted, #64748b);
    white-space: nowrap;
}

/* Network partner bio preview */
.vp-partner-bio {
    font-size: 12px;
    color: var(--vp-text-muted, #64748b);
    margin-top: 2px;
    line-height: 1.4;
}

/* Auto-detected language display (Dashboard) */
.vp-language-auto {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--vp-bg, #f8fafc);
    border: 1px solid var(--vp-border, #e2e8f0);
    border-radius: 6px;
    font-size: 14px;
}
.vp-language-auto .dashicons {
    color: var(--vp-primary, #6366f1);
}
#profile-language-display {
    font-weight: 600;
}

/* Profile completeness warning */
.vp-notice-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Match score badges */
.vp-match-detail {
    margin-top: 16px;
    padding: 12px;
    background: var(--vp-bg, #f8fafc);
    border-radius: 8px;
    border: 1px solid var(--vp-border, #e2e8f0);
}
.vp-match-score-label {
    font-weight: 600;
    margin-bottom: 8px;
}
.vp-badge-match {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.vp-badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.vp-badge-orange {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.vp-badge-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.vp-badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.vp-badge-offline {
    background: rgba(156, 163, 175, 0.15);
    color: #6b7280;
    border: 1px solid rgba(156, 163, 175, 0.3);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.vp-badge-offline .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}
.vp-partner-offline {
    opacity: 0.65;
}

/* ============================================
   Active Filters & Chips (Network page)
   ============================================ */
.vp-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--vp-bg, #f8fafc);
    border-radius: 8px;
    border: 1px solid var(--vp-border, #e2e8f0);
    flex-wrap: wrap;
}
.vp-active-filters-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--vp-text-muted, #64748b);
    white-space: nowrap;
}
.vp-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.vp-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: default;
}
.vp-filter-chip .vp-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    color: #3b82f6;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.vp-filter-chip .vp-chip-remove:hover {
    opacity: 1;
    background: rgba(59, 130, 246, 0.15);
}
/* Subcategory dropdown disabled state */
#filter-subcategory:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Partner result count badge */
.vp-count-badge {
    font-size: 12px;
    font-weight: 500;
    color: var(--vp-text-muted, #64748b);
    margin-left: 6px;
}
/* Match badges on partner cards */
.vp-partner-match-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.vp-partner-match-badges .vp-badge-match {
    font-size: 11px;
    padding: 2px 8px;
}
.vp-partner-match-badges .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    line-height: 12px;
}

/* Modal Size Variants */
.vp-modal-large {
    width: 800px;
}

.vp-modal-small {
    width: 400px;
}

/* ============================================
 * Diagnostics Page Styles
 * (migrated from diagnostics.php)
 * ============================================ */
.vp-diagnostics-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.vp-diagnostics-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}
.vp-diag-table {
    width: 100%;
    border-collapse: collapse;
}
.vp-diag-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--vp-border, #e5e7eb);
    vertical-align: middle;
}
.vp-diag-table td:first-child {
    font-weight: 500;
    color: var(--vp-text, #1f2937);
    width: 220px;
}
.vp-diag-table td:last-child {
    color: var(--vp-text-muted, #6b7280);
}
.vp-diag-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.vp-diag-badge-ok { background: #d1fae5; color: #065f46; }
.vp-diag-badge-warn { background: #fef3c7; color: #92400e; }
.vp-diag-badge-fail { background: #fee2e2; color: #991b1b; }

/* ============================================
 * Partner Selection Cards Styles
 * (migrated from components/partner-selection-cards.php)
 * ============================================ */

/* Partner Context Mode (pre-selected) */
.vp-partner-context {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.vp-partner-context-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #0369a1;
    margin-bottom: 10px;
}

.vp-partner-context-header .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.vp-partner-context-card {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vp-partner-context-domain {
    font-size: 18px;
    font-weight: 600;
    color: #0c4a6e;
}

.vp-partner-context-stats {
    color: #64748b;
    font-size: 13px;
    flex: 1;
}

#btn-change-partner {
    padding: 6px 12px;
    font-size: 12px;
}

/* Partner Selection Dropdown */
.vp-partner-dropdown-wrap {
    margin-bottom: 20px;
}

.vp-partner-selection-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--vp-text);
    margin-bottom: 8px;
}

.vp-partner-dropdown {
    width: 100%;
    padding: 12px 16px;
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 8px;
    color: var(--vp-text);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-right: 40px;
}

.vp-partner-dropdown:focus {
    outline: none;
    border-color: var(--vp-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.vp-partner-dropdown option {
    background: var(--vp-surface);
    color: var(--vp-text);
    padding: 10px;
}

.vp-partner-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--vp-text-muted);
}

/* Empty State */
.vp-partner-empty {
    text-align: center;
    padding: 40px 20px;
    background: var(--vp-surface);
    border: 2px dashed var(--vp-border);
    border-radius: 12px;
}

.vp-partner-empty .vp-empty-icon {
    margin-bottom: 12px;
}

.vp-partner-empty h4 {
    margin: 0 0 8px;
    color: var(--vp-text);
    font-size: 16px;
}

.vp-partner-empty p {
    margin: 0 0 16px;
    color: var(--vp-text-muted);
    font-size: 14px;
}

/* Requirements Display */
.vp-requirements-display {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));
    border: 1px solid var(--vp-border);
    border-left: 4px solid var(--vp-primary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.vp-requirements-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--vp-text);
}

.vp-requirements-header .dashicons {
    color: var(--vp-primary);
}

.vp-requirements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vp-req-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--vp-text-muted);
}

.vp-req-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--vp-primary);
}

.vp-req-item strong {
    color: var(--vp-text);
}

.vp-req-warning {
    color: #dc2626;
}

.vp-req-warning .dashicons {
    color: #dc2626;
}

.vp-req-note {
    font-style: italic;
    background: rgba(0,0,0,0.02);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 4px;
}

/* ============================================
 * Network Page Styles
 * (migrated from network.php)
 * ============================================ */

/* Network-specific styles - Light Mode Compatible */
.vp-tabs-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.vp-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 8px;
    color: var(--vp-text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.vp-tab:hover {
    background: var(--vp-surface-hover);
    color: var(--vp-text);
}

.vp-tab.active {
    background: var(--vp-primary);
    border-color: var(--vp-primary);
    color: white;
}

.vp-tab-link {
    text-decoration: none;
    margin-left: auto;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--vp-primary);
}

.vp-tab-link:hover {
    background: rgba(16, 185, 129, 0.2);
    color: var(--vp-primary);
}

.vp-tab-icon { font-size: 16px; }

.vp-tab-badge {
    padding: 2px 8px;
    background: rgba(0,0,0,.1);
    border-radius: 10px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.vp-tab.active .vp-tab-badge {
    background: rgba(255,255,255,.2);
}

/* Partner Grid - Horizontal Cards Layout */
.vp-partner-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vp-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px;
    color: var(--vp-text-muted);
    gap: 12px;
}

.vp-loading-state .spinner {
    float: none;
    margin: 0 auto;
}

.vp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--vp-text-muted);
}

.vp-empty-icon { font-size: 48px; margin-bottom: 16px; }
.vp-empty-state h4 { margin: 0 0 8px; font-size: 18px; color: var(--vp-text); }
.vp-empty-state p { margin: 0; opacity: 0.7; }

/* Partner Card - Horizontal Layout */
.vp-partner-card {
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap; /* Allow wrapping at any size */
}

.vp-partner-card:hover {
    border-color: var(--vp-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* Main Info Section (left) -- contains domain, badges, match info */
.vp-partner-main {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 20px;
    gap: 8px 16px;
    min-width: 0;
}

.vp-partner-domain-wrap {
    min-width: 180px;
}

.vp-partner-domain {
    font-size: 15px;
    font-weight: 700;
    color: var(--vp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.vp-partner-card:hover .vp-partner-domain {
    color: var(--vp-primary);
}

.vp-partner-category-inline {
    font-size: 12px;
    color: var(--vp-text-muted);
    margin-top: 2px;
}

.vp-partner-badges { display: flex; gap: 6px; }

.vp-domain-masked {
    font-size: 15px;
    font-weight: 600;
    color: var(--vp-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Stats Section (inline, subtle accent background) */
.vp-partner-stats-inline {
    display: flex;
    gap: 24px;
    padding: 0 20px;
    align-items: center;
    min-width: 120px;
    flex-shrink: 0;
    border-left: 1px solid var(--vp-border);
    background: rgba(248, 250, 252, 0.6);
}

.vp-stat-inline {
    text-align: center;
    min-width: 80px;
}

.vp-stat-inline .vp-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #10b981;
}

.vp-stat-inline .vp-stat-label {
    font-size: 11px;
    color: var(--vp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Requirement tags container (inside identity column) */
.vp-partner-req-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
}

/* Actions Section (vertical stack) */
.vp-partner-actions-inline {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    padding: 16px 20px;
    background: var(--vp-bg);
    min-width: 160px;
    flex-shrink: 0;
    border-left: 1px solid var(--vp-border);
}
.vp-partner-actions-inline .vp-btn-primary,
.vp-partner-actions-inline .vp-btn-secondary,
.vp-partner-actions-inline .show-interest-btn {
    width: 100%;
    justify-content: center;
}
.vp-btn-disconnect-small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    text-align: center;
    opacity: 0.6;
}
.vp-btn-disconnect-small:hover {
    opacity: 1;
    color: var(--vp-danger, #ef4444);
}

/* Legacy classes kept for compatibility */
.vp-partner-header { display: none; }
.vp-partner-category { display: none; }
.vp-partner-stats { display: none; }
.vp-partner-body { display: none; }
.vp-partner-description { display: none; }
.vp-partner-actions { display: none; }

/* New Partner Badge - now inline within main info section */
.vp-partner-new-badge {
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-left: 1px solid var(--vp-border);
    flex-shrink: 0;
}
/* Inline badge variant (inside .vp-partner-main) */
.vp-partner-inline-badge {
    margin-top: 4px;
}

/* Responsive: Medium screens (768px - 1200px) - 2-row layout */
@media (max-width: 1200px) {
    .vp-tabs-row {
        flex-wrap: wrap;
    }

    .vp-tab-link {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .vp-partner-main {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .vp-partner-stats-inline {
        border-left: none;
        border-top: 1px solid var(--vp-border);
        padding: 12px 20px;
        flex: 1 1 auto;
    }

    .vp-partner-actions-inline {
        flex: 0 0 auto;
        border-left: 1px solid var(--vp-border);
        border-top: 1px solid var(--vp-border);
        flex-direction: row;
        justify-content: flex-end;
        gap: 8px;
    }
    .vp-partner-actions-inline .vp-btn-primary,
    .vp-partner-actions-inline .vp-btn-secondary,
    .vp-partner-actions-inline .show-interest-btn {
        width: auto;
    }

    .vp-partner-status {
        margin-bottom: 0;
        margin-right: 8px;
    }
}

/* Responsive: Mobile (768px and below) - stacked layout */
@media (max-width: 768px) {
    .vp-partner-card {
        flex-direction: column;
    }

    .vp-partner-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .vp-partner-domain-wrap {
        min-width: auto;
        width: 100%;
    }

    .vp-partner-badges {
        width: 100%;
    }

    .vp-partner-stats-inline {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--vp-border);
        padding: 12px 16px;
        justify-content: flex-start;
    }

    .vp-partner-actions-inline {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--vp-border);
        padding: 12px 16px;
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }
    .vp-partner-actions-inline .vp-btn-primary,
    .vp-partner-actions-inline .vp-btn-secondary,
    .vp-partner-actions-inline .show-interest-btn {
        width: auto;
    }

    .vp-network-filter-bar {
        padding: 12px;
    }

    .vp-filter-bar-row {
        gap: 8px;
    }

    .vp-filter-bar-row .vp-input,
    .vp-filter-bar-row .vp-select {
        flex: 1 1 calc(50% - 6px);
        min-width: 120px;
    }

    .vp-filter-divider {
        display: none;
    }

    .vp-filter-toggle {
        flex: 1 1 100%;
    }

    .vp-partner-count-text {
        flex: 1 1 100%;
        text-align: right;
    }

    .vp-connection-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .vp-connection-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .vp-partner-domain {
        font-size: 14px;
        word-break: break-all;
    }

    .vp-stat-inline .vp-stat-value {
        font-size: 20px;
    }

    .vp-req-tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .vp-tab-badge {
        padding: 2px 6px;
        font-size: 10px;
    }
}

/* Network Status badges */
.vp-status-pending {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(234, 179, 8, .15);
    color: #b45309;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.vp-status-connected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #10b981;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* New Partner badge (network) */
.vp-partner-new-badge {
    display: flex;
    align-items: center;
    padding: 0 16px;
    min-width: fit-content;
    flex-shrink: 0;
    border-left: 1px solid var(--vp-border);
}

/* Connection List */
.vp-connection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--vp-border);
}

.vp-connection-item:last-child { border-bottom: none; }

.vp-connection-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vp-connection-domain {
    font-weight: 600;
    font-size: 15px;
    color: var(--vp-text);
}

.vp-connection-meta {
    font-size: 13px;
    color: var(--vp-text-muted);
}

.vp-connection-actions {
    display: flex;
    gap: 8px;
}

/* Network Filter Bar (v1.0.29) */
.vp-network-filter-bar {
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.vp-filter-bar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.vp-filter-divider {
    width: 1px;
    height: 28px;
    background: var(--vp-border);
    flex-shrink: 0;
}

.vp-filter-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 6px;
    color: var(--vp-text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.vp-filter-toggle:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.vp-filter-toggle.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #d97706;
}

.vp-filter-toggle input[type="checkbox"] {
    display: none;
}

.vp-filter-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.vp-partner-count-text {
    font-size: 13px;
    color: var(--vp-text-muted);
    margin-left: auto;
    white-space: nowrap;
}

/* Partner Note - Quote Style (v1.0.29) */
.vp-partner-note {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(100, 116, 139, 0.06);
    border-left: 3px solid rgba(100, 116, 139, 0.3);
    border-radius: 0 8px 8px 0;
    width: 100%;
    margin-top: 4px;
    cursor: help;
}

.vp-partner-note .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    color: #64748b;
    flex-shrink: 0;
    margin-top: 1px;
}

.vp-partner-note .vp-note-text {
    font-size: 12px;
    color: #475569;
    font-style: italic;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Status badge in actions column (v1.0.29) */
.vp-partner-status {
    margin-bottom: 4px;
}

.vp-card-body {
    /* Container for content */
}

/* Partner Requirements Tags - Full transparency */
.vp-req-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.vp-req-tag .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 13px;
}

/* Word count - blue */
.vp-req-words {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* AI Policy variants */
.vp-req-ai-ok {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.vp-req-ai-edits {
    background: rgba(234, 179, 8, 0.1);
    color: #b45309;
}

.vp-req-ai-no {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Legacy class for backwards compatibility */
.vp-req-ai {
    background: rgba(234, 179, 8, 0.1);
    color: #b45309;
}

/* Links - green */
.vp-req-links {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* Restricted niches - red */
.vp-req-restricted {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    max-width: 250px;
    white-space: normal;
    line-height: 1.3;
}

/* Custom note - slate/quote style */
.vp-req-note {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
    font-style: italic;
    max-width: 200px;
    white-space: normal;
    line-height: 1.3;
    cursor: help;
}

/* Custom note - block style (spans full width of requirements grid) */
.vp-req-note-block {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(100, 116, 139, 0.06);
    border: 1px solid rgba(100, 116, 139, 0.15);
    border-radius: 8px;
    grid-column: 1 / -1;
    cursor: help;
}
.vp-req-note-block .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    color: #64748b;
    flex-shrink: 0;
    margin-top: 1px;
}
.vp-req-note-block .vp-note-text {
    font-size: 11px;
    color: #475569;
    font-style: italic;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
 * Campaigns Page Styles
 * (migrated from campaigns.php)
 * ============================================ */

/* Modal Notice Area */
.vp-modal-notice-area { margin: 0 0 12px 0; }
.vp-modal-notice-area .notice { margin: 0; border-radius: 6px; }

/* Card Description */
.vp-card-description {
    margin: 4px 0 0;
    color: var(--vp-text-muted);
    font-size: 14px;
    font-weight: normal;
}

/* Card Header with Action Button */
.vp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.vp-card-header > div {
    flex: 1;
    min-width: 200px;
}

/* Pro Gate Inline */
.vp-pro-gate-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--vp-text-muted);
    font-size: 14px;
}

.vp-pro-gate-inline .dashicons {
    color: var(--vp-warning);
}

/* Campaigns Grid */
.vp-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* Campaign Card */
.vp-campaign-card {
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s;
}

.vp-campaign-card:hover {
    border-color: var(--vp-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vp-campaign-card h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--vp-text);
    line-height: 1.4;
}

.vp-campaign-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--vp-text-muted);
    font-size: 13px;
}

.vp-campaign-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vp-campaign-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.vp-campaign-excerpt {
    color: var(--vp-text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vp-campaign-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--vp-border);
}

.vp-campaign-actions {
    display: flex;
    gap: 8px;
}

/* Campaign Status Badges */
.vp-campaign-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.vp-campaign-status .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.vp-status-open {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.vp-status-published,
.vp-status-accepted {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.vp-status-pending,
.vp-status-claimed {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.vp-status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.vp-status-expired,
.vp-status-withdrawn {
    background: rgba(148, 163, 184, 0.15);
    color: #64748b;
}

/* Match Indicator */
.vp-match-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.vp-match-good {
    color: var(--vp-success);
}

.vp-match-warning {
    color: var(--vp-warning);
}

/* Claims List */
.vp-claims-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vp-claim-card {
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    padding: 20px;
}

.vp-claim-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.vp-claim-title {
    font-weight: 600;
    color: var(--vp-text);
    margin-bottom: 4px;
}

.vp-claim-publisher {
    font-weight: 600;
    color: var(--vp-text);
}

.vp-claim-stats {
    color: var(--vp-text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vp-claim-pitch {
    background: var(--vp-surface);
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-style: italic;
    color: var(--vp-text-muted);
    border-left: 3px solid var(--vp-primary);
}

.vp-claim-published {
    margin-top: 12px;
}

.vp-claim-published a {
    color: var(--vp-primary);
    text-decoration: none;
    font-weight: 500;
}

.vp-claim-published a:hover {
    text-decoration: underline;
}

.vp-claim-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--vp-border);
}

/* Campaign Detail in Modal */
.vp-campaign-detail-creator {
    background: var(--vp-bg);
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
}

.vp-campaign-detail-content {
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    padding: 20px;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.7;
}

.vp-campaign-detail-filters {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--vp-border);
}

.vp-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.vp-filter-tag {
    background: var(--vp-surface-hover);
    color: var(--vp-text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* Info Box */
.vp-info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1e40af;
}

.vp-info-box .dashicons {
    color: #3b82f6;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Form Layout */
.vp-form-group {
    margin-bottom: 16px;
}

.vp-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--vp-text);
}

.vp-form-group .required {
    color: var(--vp-error, #ef4444);
}

.vp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vp-hint {
    margin-top: 6px;
    font-size: 13px;
    color: var(--vp-text-muted);
}

/* Divider */
.vp-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--vp-text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vp-divider::before,
.vp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--vp-border);
}

.vp-divider span {
    padding: 0 16px;
}

/* Editor Styling (same as Guest Posts) */
.vp-form-editor { margin-bottom: 20px; }
.vp-form-editor .wp-editor-wrap { border-radius: 8px; overflow: hidden; }
.vp-form-editor .wp-editor-tabs { background: var(--vp-bg); border-bottom: 1px solid var(--vp-border); }
.vp-form-editor .wp-switch-editor { background: var(--vp-surface); color: var(--vp-text); border: none; }
.vp-form-editor .wp-switch-editor.switch-tmce:focus,
.vp-form-editor .wp-switch-editor.switch-html:focus { box-shadow: none; }
.vp-form-editor .html-active .switch-html,
.vp-form-editor .tmce-active .switch-tmce { background: var(--vp-primary); color: #fff; }
.vp-form-editor .wp-editor-container { border: 1px solid var(--vp-border); border-radius: 0 0 8px 8px; }
.vp-form-editor .mce-tinymce { box-shadow: none !important; }
.vp-form-editor .mce-toolbar-grp { background: var(--vp-bg) !important; border-bottom: 1px solid var(--vp-border) !important; }
.vp-form-editor .mce-btn { background: var(--vp-surface) !important; border-color: var(--vp-border) !important; }
.vp-form-editor .mce-btn button { color: var(--vp-text) !important; }
.vp-form-editor .mce-btn:hover { background: var(--vp-surface-hover) !important; }
.vp-form-editor .mce-edit-area iframe { background: var(--vp-surface) !important; }
.vp-form-editor .quicktags-toolbar { background: var(--vp-bg) !important; border-color: var(--vp-border) !important; }
.vp-form-editor .wp-editor-area { background: var(--vp-surface) !important; color: var(--vp-text) !important; }

.vp-editor-meta {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    color: var(--vp-text-muted);
}

/* Detected Links Panel */
.vp-detected-links {
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.vp-links-list { margin-top: 10px; }
.vp-no-links { color: var(--vp-text-muted); font-style: italic; margin: 0; }
.vp-links-detected { list-style: none; margin: 0; padding: 0; }
.vp-links-detected li {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--vp-surface);
    border-radius: 6px;
    margin-bottom: 6px;
}
.vp-link-anchor { font-weight: 600; color: var(--vp-primary); }
.vp-link-url { color: var(--vp-text-muted); font-size: 12px; }

/* Chip Select */
.vp-chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-chip-grouped {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    background: var(--vp-bg);
}
.vp-chip-group {
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    padding: 8px;
}
.vp-chip { display: inline-flex; cursor: pointer; }
.vp-chip input { display: none; }
.vp-chip span {
    padding: 8px 16px;
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--vp-text);
    transition: all 0.2s;
}
.vp-chip:hover span { border-color: var(--vp-primary); }
.vp-chip input:checked + span {
    background: var(--vp-primary);
    border-color: var(--vp-primary);
    color: white;
}
.vp-chip.disabled { opacity: 0.5; pointer-events: none; }
.vp-chip-main {
    margin-bottom: 4px;
}
.vp-chip-main span {
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
}
.vp-chip-subs {
    display: none;
    gap: 6px;
    flex-wrap: wrap;
}
.vp-chip-group.vp-open .vp-chip-subs {
    display: flex;
}
.vp-chip-sub span {
    padding: 6px 10px;
    border-radius: 14px;
    font-size: 12px;
}
@media (max-width: 900px) {
    .vp-chip-grouped {
        grid-template-columns: 1fr;
    }
}

/* Word count visual feedback (match Guest Posts) */
.vp-word-count {
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
}
.vp-word-count-low {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1);
    font-weight: 600;
}
.vp-word-count-ok {
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1);
    font-weight: 600;
}

/* Link item styling for detected links */
.vp-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--vp-surface);
    border-radius: 6px;
    margin-bottom: 8px;
}

/* Chip wrap for many options (scrollable) */
.vp-chip-wrap {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

/* Filter hint text */
.vp-filter-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--vp-text-muted);
    font-style: italic;
}

/* Textarea editor styling */
.vp-content-editor {
    width: 100%;
    min-height: 300px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 16px;
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 8px;
    resize: vertical;
}
.vp-content-editor:focus {
    outline: none;
    border-color: var(--vp-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Campaigns Responsive */
@media (max-width: 768px) {
    .vp-tabs-row {
        flex-wrap: wrap;
    }

    .vp-tab {
        padding: 10px 14px;
        font-size: 13px;
    }

    .vp-tab-icon {
        display: none;
    }

    .vp-campaigns-grid {
        grid-template-columns: 1fr;
    }

    .vp-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vp-form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
 * Guest Posts Page Styles
 * (migrated from guest-posts.php)
 * ============================================ */

/* Guest Posts Stats */
.vp-stats-mini {
    display: flex;
    gap: 16px;
    align-items: center;
}

.vp-stat-mini {
    text-align: center;
}

.vp-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--vp-primary);
}

.vp-stat-label {
    font-size: 12px;
    color: var(--vp-text-muted);
}

.vp-stat-reserved .vp-stat-value {
    color: var(--vp-warning, #f59e0b);
}

/* Info Banner */
.vp-info-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--vp-surface);
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--vp-primary);
}

.vp-info-icon { font-size: 24px; }
.vp-info-text { color: var(--vp-text-muted); }
.vp-info-text strong { color: var(--vp-text); }

/* Primary Tabs */
.vp-primary-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--vp-surface);
    padding: 8px;
    border-radius: 12px;
}

.vp-primary-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--vp-text-muted);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.vp-primary-tab:hover { background: var(--vp-surface-hover, rgba(255,255,255,0.05)); color: var(--vp-text); }
.vp-primary-tab.active { background: var(--vp-primary); color: #fff; }

.vp-tab-counter {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.vp-tab-pending { background: var(--vp-warning, #f59e0b); color: #000; }

/* Filter Bar */
.vp-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 16px 20px;
    background: var(--vp-surface);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--vp-border);
}

.vp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vp-filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--vp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vp-filter-select,
.vp-filter-input {
    padding: 10px 14px;
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    border-radius: 8px;
    color: var(--vp-text);
    font-size: 14px;
    min-width: 160px;
}

.vp-filter-search { flex: 1; }
.vp-filter-search .vp-filter-input { width: 100%; }

/* Tab Panels */
.vp-tab-panel { display: none; }
.vp-tab-panel.active { display: block; }

.vp-tab-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

/* Dark Table */
.vp-table-wrapper {
    background: var(--vp-surface);
    border-radius: 12px;
    border: 1px solid var(--vp-border);
    overflow: hidden;
}

.vp-dark-table {
    width: 100%;
    border-collapse: collapse;
}

.vp-dark-table thead { background: var(--vp-bg); }

.vp-dark-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--vp-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--vp-border);
}

.vp-dark-table td {
    padding: 16px;
    color: var(--vp-text);
    border-bottom: 1px solid var(--vp-border);
    vertical-align: middle;
}

.vp-dark-table tbody tr { transition: background 0.15s; }
.vp-dark-table tbody tr:hover { background: var(--vp-surface-hover, rgba(255,255,255,0.03)); }
.vp-dark-table tbody tr:last-child td { border-bottom: none; }

/* Guest Posts Status Badges */
.vp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.vp-status-draft { background: rgba(148,163,184,0.2); color: #94a3b8; }
.vp-status-pending { background: rgba(245,158,11,0.2); color: #f59e0b; }
.vp-status-revision { background: rgba(239,68,68,0.2); color: #ef4444; }
.vp-status-approved { background: rgba(16,185,129,0.2); color: #10b981; }
.vp-status-rejected { background: rgba(239,68,68,0.2); color: #ef4444; }
.vp-status-withdrawn { background: rgba(148,163,184,0.2); color: #64748b; }

/* Terminated rows */
.vp-row-terminated { opacity: 0.6; }
.vp-row-terminated:hover { opacity: 0.8; }

/* Action Buttons */
.vp-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.vp-action-btns { display: flex; gap: 8px; }

.vp-btn-edit { background: var(--vp-primary); color: #fff; border: none; }
.vp-btn-edit:hover { background: #059669; }

.vp-btn-withdraw {
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
}
.vp-btn-withdraw:hover { background: #ef4444; color: #fff; }
.vp-btn-dismiss {
    background: transparent;
    color: #999;
    border: 1px solid #ddd;
    padding: 2px 6px;
    min-width: auto;
}
.vp-btn-dismiss:hover { background: #f5f5f5; color: #666; }
.vp-btn-dismiss .dashicons { font-size: 14px; width: 14px; height: 14px; vertical-align: middle; }

/* Order ID */
.vp-order-id code {
    font-family: 'SF Mono', Consolas, Monaco, monospace;
    font-size: 12px;
    color: var(--vp-text-muted);
    background: var(--vp-surface);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--vp-border);
}

/* Feedback */
.vp-feedback {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-size: 11px;
    margin-top: 4px;
}

/* Loading & Empty */
.vp-loading-view, .vp-empty-view {
    padding: 60px 20px;
    text-align: center;
    color: var(--vp-text-muted);
}

.vp-loading-view .spinner { float: none; margin-right: 10px; }
.vp-empty-art { font-size: 48px; margin-bottom: 15px; }
.vp-empty-view h3 { color: var(--vp-text); margin: 0 0 10px; }
.vp-empty-view p { margin: 0; }

/* Guest Posts Modal - Namespaced to avoid conflicts with admin.css */
.vp-gp-modal {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    /* Container doesn't capture clicks - only overlay and content do */
    pointer-events: none;
}

.vp-gp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200001;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    pointer-events: auto;
}

.vp-gp-modal-content {
    position: relative;
    z-index: 200002;
    background: var(--vp-surface) !important;
    color: var(--vp-text);
    border: 1px solid var(--vp-border);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: auto;
    /* Content captures clicks and is ABOVE overlay */
    pointer-events: auto;
    /* Ensure dialog is not blurred - override any inherited backdrop-filter */
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.vp-gp-modal-header {
    background: var(--vp-bg) !important;
    border-bottom: 1px solid var(--vp-border);
    padding: 16px 24px;
    flex-shrink: 0;
    position: relative;
}

.vp-gp-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.vp-gp-modal-header h2 { color: var(--vp-text); margin: 0; font-size: 18px; }
.vp-gp-modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    color: var(--vp-text-muted);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.vp-gp-modal-close:hover { color: var(--vp-text); background: var(--vp-surface-hover, rgba(255,255,255,0.05)); }

.vp-gp-modal-wide { max-width: 1000px; width: 100%; }

/* Guest Posts Form Styling */
.vp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.vp-form-group { margin-bottom: 20px; }
.vp-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--vp-text);
}

.vp-form-group .required { color: #ef4444; }
.vp-form-group .optional { color: var(--vp-text-muted); font-weight: 400; }

.vp-form-group input:not([type="radio"]):not([type="checkbox"]),
.vp-form-group select,
.vp-form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    border-radius: 8px;
    color: var(--vp-text);
    font-size: 14px;
}

.vp-form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.vp-form-group select:focus,
.vp-form-group textarea:focus {
    border-color: var(--vp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

.vp-field-hint {
    margin-top: 6px;
    font-size: 13px;
    color: var(--vp-text-muted);
}

.vp-editor-meta {
    margin-top: 10px;
    font-size: 13px;
    color: var(--vp-text-muted);
}

/* Guest Posts Detected Links */
.vp-detected-links {
    background: var(--vp-bg);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--vp-border);
}

.vp-links-list { margin-top: 10px; }

.vp-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--vp-surface);
    border-radius: 6px;
    margin-bottom: 8px;
}

.vp-link-anchor { font-weight: 600; color: var(--vp-primary); }
.vp-link-url {
    flex: 1;
    color: var(--vp-text-muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vp-no-links { color: var(--vp-text-muted); margin: 0; }

/* Form Footer */
.vp-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--vp-border);
    margin-top: 20px;
}

.vp-credit-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--vp-text-muted);
    font-size: 13px;
}

.vp-form-buttons { display: flex; gap: 10px; }

/* Review Grid */
.vp-review-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.vp-review-content {
    background: var(--vp-bg);
    padding: 24px;
    border-radius: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.vp-review-content h3 {
    margin: 0 0 15px;
    font-size: 20px;
    color: var(--vp-text);
}

.vp-review-meta {
    display: flex;
    gap: 20px;
    color: var(--vp-text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--vp-border);
}

.vp-review-body {
    line-height: 1.7;
    color: var(--vp-text);
}

.vp-review-links {
    margin-top: 20px;
    padding: 15px;
    background: rgba(16,185,129,0.1);
    border-radius: 8px;
    border: 1px solid rgba(16,185,129,0.3);
}

.vp-review-bio {
    margin-top: 15px;
    padding: 15px;
    background: var(--vp-surface);
    border-radius: 8px;
    font-style: italic;
    color: var(--vp-text-muted);
}

/* Action Cards */
.vp-review-actions { display: flex; flex-direction: column; gap: 15px; }

.vp-action-card {
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    padding: 16px;
}

.vp-action-card h4 { margin: 0 0 8px; font-size: 14px; }
.vp-action-card p { margin: 0 0 12px; font-size: 13px; color: var(--vp-text-muted); }

.vp-action-card textarea {
    width: 100%;
    padding: 10px;
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 6px;
    color: var(--vp-text);
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 10px;
}

.vp-action-approve h4 { color: #10b981; }
.vp-action-revision h4 { color: #f59e0b; }
.vp-action-reject h4 { color: #ef4444; }

.vp-char-counter {
    font-size: 12px;
    color: #ef4444;
    margin-top: -6px;
    margin-bottom: 8px;
    text-align: right;
}

/* Featured Image Selector */
.vp-featured-image-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--vp-text);
    font-size: 13px;
}

.vp-featured-image-group .optional {
    font-weight: 400;
    color: var(--vp-text-muted);
}

.vp-featured-image-preview {
    position: relative;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--vp-border);
    background: var(--vp-bg);
}

.vp-featured-image-preview img {
    display: block;
    width: 100%;
    max-height: 150px;
    object-fit: cover;
}

.vp-btn-remove-image {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-btn-remove-image:hover {
    background: #ef4444;
}

.vp-btn-remove-image .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

#btn-select-featured-image {
    width: 100%;
    justify-content: center;
}

#btn-select-featured-image .dashicons {
    margin-right: 6px;
}

.vp-credit-earn {
    display: block;
    margin-top: 8px;
    color: #10b981;
    font-weight: 600;
    font-size: 13px;
}

/* Guest Posts Responsive */
@media (max-width: 900px) {
    .vp-form-grid { grid-template-columns: 1fr; }
    .vp-review-grid { grid-template-columns: 1fr; }
}

/* ============================================
 * Dashboard Page Styles
 * (migrated from dashboard.php)
 * ============================================ */

/* Two-column layout for Profile + Requirements */
.vp-dashboard-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 1024px) {
    .vp-dashboard-columns {
        grid-template-columns: 1fr;
    }
}
.vp-dashboard-columns .vp-profile-form,
.vp-dashboard-columns .vp-requirements-form {
    max-width: none;
}
/* ============================================
   Badge System (Boltify Pattern 2: Soft Badges)
   Extends base .vp-badge defined earlier (~line 606).
   Cascade order ensures these additions apply.
   ============================================ */
.vp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
    line-height: 1;
}
.vp-badge-soft-zinc {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}
.vp-badge-soft-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}
.vp-badge-soft-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}
.vp-badge-soft-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}
.vp-badge-soft-red {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Tier Badge (backwards-compatible aliases) */
.vp-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1;
}
.vp-tier-free {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}
.vp-tier-pro {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}
/* Points Display (Dashboard) */
.vp-credits-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--vp-surface);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid var(--vp-border);
}
.vp-credits-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--vp-primary);
}
.vp-credits-label {
    color: var(--vp-text-muted);
    font-size: 14px;
}
/* Points Table */
.vp-points-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.vp-points-table th,
.vp-points-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--vp-border);
}
.vp-points-table th {
    color: var(--vp-text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}
.vp-points-positive {
    color: var(--vp-success);
    font-weight: 600;
}
.vp-points-negative {
    color: var(--vp-danger);
    font-weight: 600;
}
.vp-points-date {
    color: var(--vp-text-muted);
    font-size: 13px;
}
.vp-points-empty {
    color: var(--vp-text-muted);
    text-align: center;
    padding: 30px 20px;
}
/* Profile Form */
.vp-profile-form {
    max-width: 600px;
}
.vp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 600px) {
    .vp-form-row { grid-template-columns: 1fr; }
}
.vp-form-group {
    margin-bottom: 16px;
}
.vp-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--vp-text);
}
.vp-form-group label .required {
    color: var(--vp-danger);
}
.vp-profile-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--vp-text-muted);
}
.vp-select-full,
.vp-textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 6px;
    color: var(--vp-text);
    font-size: 14px;
    transition: border-color 0.2s;
}
.vp-select-full:focus,
.vp-textarea:focus {
    outline: none;
    border-color: var(--vp-primary);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}
.vp-textarea {
    resize: vertical;
    min-height: 60px;
}
.vp-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--vp-text-muted);
    margin-top: 4px;
}
.vp-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.vp-save-status {
    font-size: 14px;
}
.vp-save-status.success {
    color: var(--vp-success);
}
.vp-save-status.error {
    color: var(--vp-danger);
}
/* Requirements Form */
.vp-requirements-form {
    max-width: 600px;
}
.vp-requirements-form .vp-form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
}
.vp-requirements-form .vp-form-group label .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}
.vp-hint {
    font-size: 13px;
    color: var(--vp-text-muted);
    margin: 4px 0 10px 0;
}
.vp-optional {
    font-weight: 400;
    color: var(--vp-text-muted);
    font-size: 13px;
}
/* ============================================================
   FORM ELEMENT RESET - Overrides Elementor/JupiterX/Bootstrap
   global input[type=radio/checkbox] { appearance: none } rules.
   Uses ID selector (#guest-post-requirements-form) for
   specificity 1-0-1+ which beats any class-based override.
   ============================================================ */

/* Radio Group */
.vp-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
#guest-post-requirements-form .vp-radio,
.vp-requirements-form .vp-radio {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
#guest-post-requirements-form .vp-radio:hover,
.vp-requirements-form .vp-radio:hover {
    border-color: var(--vp-primary);
    background: rgba(16, 185, 129, 0.03);
}
/* ID-scoped radio reset: specificity 1-1-1 beats Elementor 0-0-1 */
#guest-post-requirements-form .vp-radio input[type="radio"],
.vp-requirements-form .vp-radio input[type="radio"] {
    -webkit-appearance: radio !important;
    -moz-appearance: radio !important;
    appearance: radio !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: none !important;
    background-color: initial !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
    accent-color: var(--vp-primary) !important;
    cursor: pointer !important;
    position: static !important;
    clip: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    flex-shrink: 0 !important;
    content: normal !important;
}
.vp-radio-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vp-radio-label strong {
    color: var(--vp-text);
    font-weight: 600;
}
.vp-radio-desc {
    font-size: 13px;
    color: var(--vp-text-muted);
}

/* Checkbox Group */
.vp-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
#guest-post-requirements-form .vp-checkbox,
.vp-requirements-form .vp-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}
#guest-post-requirements-form .vp-checkbox:hover,
.vp-requirements-form .vp-checkbox:hover {
    border-color: var(--vp-primary);
}
/* ID-scoped checkbox reset: specificity 1-1-1 beats Elementor 0-0-1 */
#guest-post-requirements-form .vp-checkbox input[type="checkbox"],
.vp-requirements-form .vp-checkbox input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: initial !important;
    background: none !important;
    background-color: initial !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
    accent-color: var(--vp-primary) !important;
    cursor: pointer !important;
    position: static !important;
    flex-shrink: 0 !important;
    content: normal !important;
}
#guest-post-requirements-form .vp-checkbox input[type="checkbox"]:checked + span,
.vp-requirements-form .vp-checkbox input[type="checkbox"]:checked + span {
    color: var(--vp-text);
    font-weight: 500;
}
/* Save button icon */
#save-requirements-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

/* ============================================
   Card Structure (Boltify Pattern 3)
   Separator variant: use .vp-card-header-sep
   for the border-bottom line. Plain .vp-card-header
   is already defined earlier in this file.
   ============================================ */
.vp-card-header-sep {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--vp-border);
}
.vp-card-header h2,
.vp-card-header h3 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--vp-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.vp-card-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--vp-border);
}

/* Card heading icon (replaces repeated inline styles) */
.vp-card-icon {
    color: var(--vp-primary);
    flex-shrink: 0;
}

/* ============================================
   Cross-Module Hint (Boltify Pattern 6)
   ============================================ */
.vp-cross-hint {
    margin-bottom: 16px;
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    border-left: 4px solid var(--vp-primary);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--vp-text-muted);
}
.vp-cross-hint .dashicons {
    color: var(--vp-primary);
    flex-shrink: 0;
}
.vp-cross-hint a {
    color: var(--vp-primary);
    font-weight: 500;
    text-decoration: none;
}
.vp-cross-hint a:hover {
    text-decoration: underline;
}

/* ============================================
   Plan Cards (Boltify Pattern 5: Pricing Emphasis)
   ============================================ */
.vp-plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.vp-plan-card {
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.vp-plan-card-emphasis {
    border: 2px solid var(--vp-primary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
    position: relative;
}
.vp-plan-card-label {
    position: absolute;
    top: -10px;
    left: 24px;
}
.vp-plan-card-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--vp-text);
    margin: 0 0 4px;
}
.vp-plan-card-desc {
    font-size: 13px;
    color: var(--vp-text-muted);
    margin: 0 0 16px;
}
.vp-plan-card-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--vp-border);
    border-bottom: 1px solid var(--vp-border);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.vp-plan-card-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vp-plan-card-stat .dashicons {
    color: var(--vp-primary);
}
.vp-plan-features {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    flex: 1;
}
.vp-plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--vp-text);
}
.vp-plan-features li .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.vp-plan-features .vp-feature-yes {
    color: var(--vp-primary);
}
.vp-plan-features .vp-feature-no {
    color: var(--vp-text-muted);
    opacity: 0.5;
}
.vp-plan-card .vp-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}
.vp-plan-card-current {
    align-self: center;
    margin-top: auto;
}

/* ============================================
   Upgrade Banner (Boltify Pattern 7: Trial Alert)
   ============================================ */
.vp-upgrade-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(16, 185, 129, 0.06));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    margin-bottom: 16px;
}
.vp-upgrade-banner-icon {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #f59e0b;
    flex-shrink: 0;
}
.vp-upgrade-banner-text {
    flex: 1;
    min-width: 0;
}
.vp-upgrade-banner-text h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--vp-text);
}
.vp-upgrade-banner-text p {
    margin: 0;
    font-size: 13px;
    color: var(--vp-text-muted);
}

/* Large dashicon (connect-card etc.) */
.vp-icon-lg {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

/* Account link icon in header */
.vp-account-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--vp-text-muted);
    margin-left: 8px;
    transition: color 0.2s;
}
.vp-account-link:hover .dashicons {
    color: var(--vp-primary);
}

/* ============================================
   Responsive: Plan Cards
   ============================================ */
@media (max-width: 640px) {
    .vp-plan-cards {
        grid-template-columns: 1fr;
    }
    .vp-upgrade-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Account facelift (5.0.6): pricing, points flow
   ============================================ */
/* Room for the floating "Recommended" badge (it sits at top:-10px) */
.vp-plan-cards {
    padding-top: 12px;
}
/* Keep buttons inside the card */
.vp-plan-card .vp-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
}
.vp-plan-card-current {
    align-self: flex-start;
    margin-bottom: 10px;
}
.vp-plan-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 2px 0 6px;
}
.vp-plan-price-amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--vp-text);
    letter-spacing: -0.5px;
}
.vp-plan-price-period {
    font-size: 13px;
    color: var(--vp-text-muted);
    font-weight: 500;
}
.vp-plan-cta-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--vp-text-muted);
    text-align: center;
}
.vp-plan-features {
    flex-grow: 1;
}
.vp-points-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.vp-points-flow-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.vp-points-flow-step p {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--vp-text-muted);
    line-height: 1.5;
}
.vp-points-flow-num {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--vp-primary-soft, rgba(16,185,129,0.12));
    color: var(--vp-primary);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Dashboard facelift (5.0.6): first-run guide,
   GSC explainer, points footnote
   ============================================ */
.vp-first-run-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.vp-first-run-head h2 {
    margin: 0;
}
.vp-first-run-sub {
    font-size: 13px;
    color: var(--vp-text-muted);
}
.vp-first-run-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}
.vp-first-run-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    background: var(--vp-bg);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.vp-first-run-step:hover,
.vp-first-run-step:focus {
    border-color: var(--vp-primary);
    box-shadow: 0 2px 8px rgba(16,185,129,0.12);
}
.vp-first-run-num {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--vp-primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vp-first-run-body {
    display: block;
}
.vp-first-run-body strong {
    display: block;
    color: var(--vp-text);
    margin-bottom: 2px;
}
.vp-first-run-body span {
    display: block;
    font-size: 12.5px;
    color: var(--vp-text-muted);
    line-height: 1.45;
}
.vp-points-footnote {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--vp-bg);
    border: 1px dashed var(--vp-border);
    font-size: 13px;
    color: var(--vp-text-muted);
}
.vp-gsc-explainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.vp-gsc-explainer-col p {
    font-size: 13.5px;
    color: var(--vp-text-muted);
    line-height: 1.6;
    margin: 0 0 12px;
}
.vp-gsc-reassure {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--vp-text) !important;
}
.vp-gsc-setup {
    background: var(--vp-bg);
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    padding: 16px 18px;
}
.vp-gsc-setup strong {
    display: block;
    margin-bottom: 8px;
    color: var(--vp-text);
}
.vp-gsc-setup ol {
    margin: 0 0 10px 18px;
    padding: 0;
}
.vp-gsc-setup ol li {
    font-size: 13px;
    color: var(--vp-text-muted);
    line-height: 1.55;
    margin-bottom: 6px;
}
.vp-gsc-note {
    font-size: 12.5px !important;
    margin-bottom: 0 !important;
}

/* Campaign Pro gate + connect cost note (5.0.6) */
.vp-campaign-pro-gate {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--vp-bg);
    border: 1px dashed var(--vp-border);
    border-radius: 10px;
    max-width: 620px;
}
.vp-campaign-pro-gate-text {
    flex: 1 1 260px;
    font-size: 12.5px;
    color: var(--vp-text-muted);
    line-height: 1.45;
}
.vp-connect-cost {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--vp-text-muted);
    text-align: center;
}
.vp-select-full:disabled {
    opacity: 0.65;
    background-repeat: no-repeat;
}
/* Solid backdrop so the card border does not strike through the badge */
.vp-plan-card-label {
    background: var(--vp-surface);
    box-shadow: 0 0 0 3px var(--vp-surface);
}
