/* Prospect SaaS - Client Dashboard */

.psp-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.psp-login-required {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
}

/* Header */
.psp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.psp-header h1 {
    margin: 0;
    font-size: 28px;
    color: #1e293b;
}

/* Quota Box */
.psp-quota-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 250px;
}

.psp-quota-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.psp-quota-text {
    font-size: 14px;
    color: #475569;
}

.psp-quota-text strong {
    font-size: 20px;
    color: #1e293b;
}

.psp-quota-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.psp-quota-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.psp-quota-detail {
    font-size: 12px;
    color: #94a3b8;
}

.psp-plan {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Alerts */
.psp-alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.psp-alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.psp-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.psp-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #d97706;
}

/* Tabs */
/* ============================================
   MENU TABS - Design noir avec texte blanc
   ============================================ */
#psp-app .psp-tabs,
.psp-dashboard .psp-tabs,
div.psp-tabs,
.psp-tabs {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    background: #1a1a2e !important;
    background-color: #1a1a2e !important;
    border-radius: 0 !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    gap: 0 !important;
}

/* Boutons tabs - texte blanc forcé */
#psp-app .psp-tabs button.psp-tab,
.psp-dashboard .psp-tabs button.psp-tab,
.psp-tabs button.psp-tab,
.psp-tabs button,
button.psp-tab,
.psp-tab {
    display: inline-block !important;
    padding: 16px 24px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    position: relative !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
}

/* Hover - texte orange */
#psp-app .psp-tabs button.psp-tab:hover,
.psp-dashboard .psp-tabs button.psp-tab:hover,
.psp-tabs button.psp-tab:hover,
.psp-tabs button:hover,
button.psp-tab:hover,
.psp-tab:hover {
    color: #f97316 !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Active - texte orange */
#psp-app .psp-tabs button.psp-tab.active,
.psp-dashboard .psp-tabs button.psp-tab.active,
.psp-tabs button.psp-tab.active,
.psp-tabs button.active,
button.psp-tab.active,
.psp-tab.active {
    color: #f97316 !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Panels */
.psp-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.psp-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Search Form */
.psp-search-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.psp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.psp-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.psp-field input,
.psp-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.psp-field input:focus,
.psp-field select:focus {
    outline: none;
    border-color: #2563eb;
}

.psp-checkboxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.psp-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.psp-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.psp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.psp-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.psp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.psp-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.psp-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.psp-btn-secondary:hover {
    background: #e2e8f0;
}

.psp-btn-success {
    background: #22c55e;
    color: #fff;
}

.psp-btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.psp-btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

.psp-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Results */
.psp-results {
    margin-top: 30px;
}

.psp-results h3 {
    margin-bottom: 20px;
    color: #1e293b;
}

.psp-result-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    transition: box-shadow 0.2s;
}

.psp-result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.psp-result-info h4 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 16px;
}

.psp-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #64748b;
}

.psp-result-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.psp-result-meta a {
    color: #2563eb;
    text-decoration: none;
}

.psp-result-meta a:hover {
    text-decoration: underline;
}

.psp-result-actions {
    display: flex;
    gap: 8px;
}

.psp-source-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.psp-source-tag.osm { background: #dcfce7; color: #166534; }
.psp-source-tag.web { background: #dbeafe; color: #1e40af; }

.psp-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.psp-score.high { background: #dcfce7; color: #166534; }
.psp-score.medium { background: #fef3c7; color: #92400e; }
.psp-score.low { background: #fee2e2; color: #991b1b; }

/* Filters */
.psp-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.psp-filters select,
.psp-filters input {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 180px;
}

/* Prospects List */
.psp-prospects-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.psp-prospect-row {
    display: grid;
    grid-template-columns: 1fr 60px 120px auto;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

.psp-prospect-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.psp-prospect-row:last-child {
    border-bottom: none;
}

.psp-prospect-row:hover {
    background: #f8fafc;
}

.psp-prospect-name {
    font-weight: 600;
    color: #1e293b;
}

.psp-prospect-contact {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.psp-prospect-contact a {
    color: #2563eb;
}

.psp-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.psp-status-badge.new { background: #dbeafe; color: #1e40af; }
.psp-status-badge.contacted { background: #fef3c7; color: #92400e; }
.psp-status-badge.converted { background: #dcfce7; color: #166534; }
.psp-status-badge.ignored { background: #f1f5f9; color: #64748b; }

/* Stats */
.psp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.psp-stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.psp-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 5px;
}

.psp-stat-label {
    color: #64748b;
    font-size: 14px;
}

/* Plans */
.psp-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.psp-plan-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
}

.psp-plan-card:hover {
    border-color: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.psp-plan-card.current {
    border-color: #22c55e;
    background: #f0fdf4;
}

.psp-plan-card h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: #1e293b;
}

.psp-price {
    font-size: 42px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 20px;
}

.psp-price span {
    font-size: 16px;
    font-weight: 400;
    color: #64748b;
}

.psp-plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.psp-plan-card li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.psp-plan-card li:last-child {
    border-bottom: none;
}

.psp-plan-card li::before {
    content: '✓';
    color: #22c55e;
    margin-right: 10px;
    font-weight: bold;
}

.psp-current-badge {
    display: inline-block;
    padding: 10px 20px;
    background: #22c55e;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
}

#paypal-button-pro,
#paypal-button-agency {
    margin-top: 15px;
}

/* Modal */
.psp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

/* Quand visible via jQuery .show() ou .active */
.psp-modal[style*="block"],
.psp-modal.active {
    display: flex !important;
}

.psp-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    margin: auto;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.psp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.psp-modal-close:hover {
    color: #1e293b;
}

.psp-modal-content h2 {
    margin: 0;
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 20px;
}

/* Modal Header/Body/Footer générique */
.psp-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.psp-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
}

.psp-modal-body {
    padding: 25px;
}

.psp-modal-body .psp-field {
    margin-bottom: 20px;
}

.psp-modal-body .psp-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.psp-modal-body .psp-field input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.psp-modal-body .psp-field input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
}

.psp-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

#psp-modal-body {
    padding: 25px;
}

.psp-modal-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.psp-modal-form textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.psp-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Loading */
.psp-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.psp-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Toast */
.psp-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: #1e293b;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    animation: toastIn 0.3s ease;
}

.psp-toast.success { background: #22c55e; }
.psp-toast.error { background: #ef4444; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .psp-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .psp-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .psp-tab {
        white-space: nowrap;
        padding: 10px 16px;
    }
    
    .psp-form-row {
        grid-template-columns: 1fr;
    }
    
    .psp-result-card {
        grid-template-columns: 1fr;
    }
    
    .psp-result-actions {
        justify-content: flex-start;
    }
    
    .psp-prospect-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .psp-filters {
        flex-direction: column;
    }
    
    .psp-plans {
        grid-template-columns: 1fr;
    }
}

/* Score Legend */
.psp-score-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.psp-legend-title {
    font-weight: 600;
    color: #475569;
}

.psp-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
}

.psp-score-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.psp-score-dot.high { background: #22c55e; }
.psp-score-dot.medium { background: #f59e0b; }
.psp-score-dot.low { background: #ef4444; }

/* Messages List */
.psp-messages-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.psp-message-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    gap: 20px;
}

.psp-message-row:last-child {
    border-bottom: none;
}

.psp-message-info {
    flex: 1;
    min-width: 0;
}

.psp-message-to {
    font-size: 15px;
    margin-bottom: 4px;
}

.psp-message-preview {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
}

.psp-message-actions {
    display: flex;
    gap: 8px;
}

/* Panel header */
.psp-panel-header {
    margin-bottom: 20px;
}

.psp-panel-header h3 {
    margin: 0 0 8px;
    color: #1e293b;
}

/* Modal message view */
#psp-message-modal .psp-modal-content {
    max-width: 600px;
}

/* Search buttons */
.psp-search-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Clickable stats */
.psp-stat-clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.psp-stat-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Subscription actions */
.psp-subscription-actions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

/* ================================================
   LANDING PAGE STYLES
   ================================================ */

.psp-landing {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    overflow-x: hidden;
}

/* Hero Section */
.psp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 5%;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    min-height: 600px;
}

.psp-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #0f172a;
}

.psp-gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.psp-hero-subtitle {
    font-size: 1.25rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 32px;
}

.psp-hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.psp-btn-lg {
    padding: 16px 32px !important;
    font-size: 1.1rem !important;
    border-radius: 12px !important;
}

.psp-btn-outline {
    background: transparent !important;
    border: 2px solid #3b82f6 !important;
    color: #3b82f6 !important;
}

.psp-btn-outline:hover {
    background: #3b82f6 !important;
    color: white !important;
}

.psp-hero-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

/* Hero Visual / Mockup */
.psp-hero-visual {
    display: flex;
    justify-content: center;
}

.psp-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s;
}

.psp-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.psp-mockup-header {
    background: #f1f5f9;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.psp-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.psp-dot.red { background: #ef4444; }
.psp-dot.yellow { background: #f59e0b; }
.psp-dot.green { background: #22c55e; }

.psp-mockup-content {
    padding: 20px;
}

.psp-mock-search {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.psp-mock-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.psp-mock-result {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    border-left: 4px solid #3b82f6;
}

.psp-mock-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.psp-mock-info {
    font-size: 12px;
    color: #64748b;
}

.psp-mock-score {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #22c55e;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Stats Band */
.psp-stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 40px 5%;
    text-align: center;
    color: white;
}

.psp-stat-item {}

.psp-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.psp-stat-text {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Section Titles */
.psp-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #0f172a;
}

.psp-section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 48px;
}

/* Features Section */
.psp-features {
    padding: 80px 5%;
    background: white;
}

.psp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.psp-feature-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

.psp-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.psp-feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.psp-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
}

.psp-feature-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* How It Works */
.psp-how-it-works {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
}

.psp-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.psp-step {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.psp-step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.psp-step h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.psp-step p {
    font-size: 0.95rem;
    color: #64748b;
}

.psp-step-arrow {
    font-size: 2rem;
    color: #cbd5e1;
    font-weight: bold;
}

/* Pricing Section */
.psp-pricing {
    padding: 80px 5%;
    background: white;
}

.psp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.psp-pricing-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.psp-pricing-card:hover {
    transform: translateY(-8px);
}

.psp-pricing-card.popular {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    border: none;
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.psp-pricing-card.popular:hover {
    transform: scale(1.08);
}

.psp-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.psp-pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.psp-pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.psp-pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.psp-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
}

.psp-pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

.psp-pricing-card.popular .psp-pricing-features li {
    border-bottom-color: rgba(255,255,255,0.1);
}

.psp-pricing-features li.disabled {
    color: #94a3b8;
    text-decoration: line-through;
}

.psp-btn-full {
    width: 100%;
}

/* Testimonials */
.psp-testimonials {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 100%);
}

.psp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.psp-testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.psp-testimonial-stars {
    margin-bottom: 16px;
}

.psp-testimonial-card p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}

.psp-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.psp-testimonial-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.psp-testimonial-author strong {
    display: block;
    color: #1e293b;
}

.psp-testimonial-author span {
    font-size: 0.85rem;
    color: #64748b;
}

/* FAQ */
.psp-faq {
    padding: 80px 5%;
    background: white;
}

.psp-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.psp-faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
}

.psp-faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.psp-faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #3b82f6;
}

.psp-faq-answer {
    margin-top: 12px;
    color: #64748b;
    line-height: 1.7;
    display: block;
}

/* CTA Final */
.psp-cta-final {
    padding: 100px 5%;
    background: linear-gradient(135deg, #1e293b, #334155);
    text-align: center;
    color: white;
}

.psp-cta-final h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.psp-cta-final p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 32px;
}

.psp-cta-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

/* Footer */
.psp-footer {
    background: #0f172a;
    color: white;
    padding: 60px 5% 30px;
}

.psp-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.psp-footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: white;
}

.psp-footer-col p {
    color: #94a3b8;
    line-height: 1.6;
}

.psp-footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
}

.psp-footer-col a:hover {
    color: #3b82f6;
}

.psp-footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 40px;
    padding-top: 24px;
    text-align: center;
    color: #64748b;
}

/* ================================================
   AUTH PAGES (LOGIN / REGISTER)
   ================================================ */

.psp-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    padding: 40px 20px;
}

.psp-auth-container {
    background: white;
    border-radius: 20px;
    padding: 48px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

.psp-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.psp-auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.psp-auth-header p {
    color: #64748b;
}

.psp-auth-form .psp-field {
    margin-bottom: 20px;
}

.psp-auth-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

.psp-auth-form input[type="text"],
.psp-auth-form input[type="email"],
.psp-auth-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.psp-auth-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.psp-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.psp-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
}

.psp-checkbox label {
    font-size: 0.9rem;
    color: #64748b;
}

.psp-checkbox a {
    color: #3b82f6;
}

.psp-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.psp-auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.psp-auth-footer a {
    color: #3b82f6;
    font-weight: 500;
}

.psp-auth-benefits {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.psp-benefit {
    font-size: 0.85rem;
    color: #64748b;
}

/* Welcome Banner */
.psp-welcome-banner {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 24px 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.psp-welcome-banner h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.psp-welcome-banner p {
    margin: 4px 0;
    opacity: 0.9;
}

/* Login Required Box */
.psp-login-required {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 40px auto;
}

.psp-login-required p {
    margin-bottom: 20px;
    color: #64748b;
}

/* Responsive Landing */
@media (max-width: 1024px) {
    .psp-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 5%;
    }
    
    .psp-hero-title {
        font-size: 2.5rem;
    }
    
    .psp-hero-cta {
        justify-content: center;
    }
    
    .psp-hero-visual {
        order: -1;
    }
    
    .psp-mockup {
        transform: none;
        max-width: 400px;
    }
    
    .psp-features-grid,
    .psp-pricing-grid,
    .psp-testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .psp-pricing-card.popular {
        transform: none;
    }
    
    .psp-stats-band {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .psp-footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .psp-steps {
        flex-direction: column;
    }
    
    .psp-step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    .psp-hero-title {
        font-size: 2rem;
    }
    
    .psp-section-title {
        font-size: 1.8rem;
    }
    
    .psp-auth-container {
        padding: 32px 24px;
    }
    
    .psp-auth-form .psp-form-row {
        grid-template-columns: 1fr;
    }
    
    .psp-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .psp-stats-band {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   FOLDERS / DOSSIERS
   ================================================ */

.psp-prospects-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.psp-folders-sidebar {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.psp-folders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.psp-folders-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
}

.psp-btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: #3b82f6;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.psp-btn-icon:hover {
    background: #2563eb;
}

.psp-folders-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.psp-folder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.psp-folder-item:hover {
    background: #e2e8f0;
}

.psp-folder-item.active {
    background: #dbeafe;
    border-color: #3b82f6;
}

.psp-folder-icon {
    font-size: 16px;
}

.psp-folder-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.psp-folder-name {
    flex: 1;
    font-size: 14px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.psp-folder-count {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 10px;
}

.psp-folder-item.active .psp-folder-count {
    background: #3b82f6;
    color: white;
}

.psp-prospects-content {
    min-width: 0;
}

.psp-current-folder-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #dbeafe;
    border-radius: 8px;
    margin-bottom: 16px;
}

.psp-current-folder-info span {
    font-weight: 600;
    color: #1e40af;
}

.psp-btn-small {
    padding: 4px 8px !important;
    font-size: 12px !important;
}

/* Modal petit */
.psp-modal-small {
    max-width: 400px !important;
}

/* Boutons dans le modal de dossier */
#psp-folder-modal .psp-btn-secondary {
    background: #e2e8f0 !important;
    color: #475569 !important;
    border: none !important;
}

#psp-folder-modal .psp-btn-secondary:hover {
    background: #cbd5e1 !important;
}

#psp-folder-modal .psp-btn-primary {
    background: #3b82f6 !important;
    color: white !important;
}

#psp-folder-modal .psp-btn-primary:hover {
    background: #2563eb !important;
}

/* Color picker */
.psp-color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.psp-color-picker label {
    cursor: pointer;
}

.psp-color-picker input[type="radio"] {
    display: none;
}

.psp-color-picker span {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.psp-color-picker input[type="radio"]:checked + span {
    border-color: #1e293b;
    transform: scale(1.1);
}

/* Responsive folders */
@media (max-width: 900px) {
    .psp-prospects-layout {
        grid-template-columns: 1fr;
    }
    
    .psp-folders-sidebar {
        order: -1;
    }
    
    .psp-folders-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .psp-folder-item {
        flex: 0 0 auto;
    }
}

/* ================================================
   SELECTION DE PROSPECTS
   ================================================ */

.psp-prospects-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 12px;
}

.psp-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
}

.psp-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.psp-bulk-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

#psp-selected-count {
    font-size: 13px;
    color: #3b82f6;
    font-weight: 600;
}

.psp-prospect-checkbox {
    display: flex;
    align-items: center;
    padding-right: 12px;
}

.psp-prospect-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.psp-prospect-row {
    display: flex;
    align-items: center;
}

.psp-prospect-info {
    flex: 1;
    min-width: 0;
}

.psp-select-full {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.psp-select-full:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Prospect row avec checkbox - ajuster le grid */
.psp-prospect-row {
    display: grid;
    grid-template-columns: 30px 1fr auto auto auto;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.psp-prospect-row:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.psp-prospect-row.selected {
    background: #eff6ff;
    border-color: #3b82f6;
}

/* Bouton suppression dossier */
.psp-folder-delete {
    display: none;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: none;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.psp-folder-delete:hover {
    background: #dc2626;
    transform: translateY(-50%) scale(1.1);
}

.psp-folder-item {
    position: relative;
}

.psp-folder-item:hover .psp-folder-delete {
    display: block;
}

.psp-folder-item:hover .psp-folder-count {
    display: none;
}

/* ============================================
   FOLDER SUGGESTION (Search Form)
   ============================================ */
.psp-folder-suggestion {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 0;
    animation: psp-slideDown 0.3s ease;
}

@keyframes psp-slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.psp-suggestion-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.psp-suggestion-icon {
    font-size: 32px;
}

.psp-suggestion-text {
    flex: 1;
    min-width: 200px;
}

.psp-suggestion-text strong {
    display: block;
    color: #1e40af;
    font-size: 15px;
}

.psp-suggestion-text p {
    margin: 5px 0 0;
    color: #3b82f6;
    font-size: 13px;
}

.psp-suggestion-actions {
    display: flex;
    gap: 10px;
}

/* ============================================
   CAMPAIGNS PANEL
   ============================================ */
.psp-campaigns-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
}

@media (max-width: 1024px) {
    .psp-campaigns-layout {
        grid-template-columns: 1fr;
    }
}

.psp-campaign-create {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
}

.psp-campaign-create h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #1e293b;
}

/* Force tous les champs du formulaire campagne à prendre 100% */
.psp-campaign-form {
    width: 100% !important;
    max-width: 100% !important;
}

.psp-campaign-form .psp-form-row {
    margin-bottom: 20px;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    grid-template-columns: none !important;
}

.psp-campaign-form .psp-field {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.psp-campaign-form input[type="text"],
.psp-campaign-form select,
.psp-campaign-create input[type="text"],
.psp-campaign-create select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Options d'automation en 2 colonnes */
.psp-campaign-form .psp-automation-options {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

.psp-message-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.psp-message-toolbar .psp-btn-small {
    padding: 5px 10px;
    font-size: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.psp-message-toolbar .psp-btn-small:hover {
    background: #e2e8f0;
}

.psp-message-toolbar .psp-btn-ai {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border: none;
}

.psp-message-toolbar .psp-btn-ai:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Campaign message textarea - PLEINE LARGEUR */
#psp-campaign-message,
.psp-campaign-form textarea,
textarea#psp-campaign-message,
#panel-campaigns textarea,
.psp-campaign-create textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    min-height: 400px !important;
    height: 400px !important;
    padding: 20px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    resize: vertical !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Force le conteneur du message à prendre toute la largeur */
.psp-campaign-form .psp-field,
.psp-campaign-create .psp-field {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.psp-campaign-form .psp-form-row,
.psp-campaign-create .psp-form-row {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* ULTRA SPECIFIQUE - Forcer le formulaire campagne pleine largeur */
#panel-campaigns .psp-campaign-create,
#panel-campaigns .psp-campaign-form,
#panel-campaigns .psp-campaign-form .psp-form-row,
#panel-campaigns .psp-campaign-form .psp-field,
#panel-campaigns .psp-campaign-form .psp-field label,
#panel-campaigns .psp-campaign-form textarea,
#panel-campaigns .psp-campaign-form input,
#panel-campaigns .psp-campaign-form select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#panel-campaigns .psp-campaign-form .psp-form-row {
    display: block !important;
    grid-template-columns: unset !important;
}

#psp-campaign-message:focus,
textarea#psp-campaign-message:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.psp-field-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

.psp-automation-options {
    background: #f8fafc;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.psp-automation-options .psp-field {
    margin-bottom: 0;
}

.psp-followup-settings {
    min-width: 120px;
}

/* Switch toggle */
.psp-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.psp-switch input {
    display: none;
}

.psp-slider {
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 24px;
    position: relative;
    transition: 0.3s;
}

.psp-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.psp-switch input:checked + .psp-slider {
    background: #22c55e;
}

.psp-switch input:checked + .psp-slider::before {
    transform: translateX(20px);
}

.psp-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Campaigns List */
.psp-campaigns-list-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
}

.psp-campaigns-list-container h3 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #1e293b;
}

.psp-campaign-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.psp-campaign-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

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

.psp-campaign-name {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
}

.psp-campaign-folder {
    font-size: 13px;
    color: #64748b;
    margin-top: 3px;
}

.psp-campaign-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.psp-campaign-status.draft { background: #fef3c7; color: #92400e; }
.psp-campaign-status.active { background: #dcfce7; color: #166534; }
.psp-campaign-status.paused { background: #fee2e2; color: #991b1b; }
.psp-campaign-status.completed { background: #e0e7ff; color: #3730a3; }

.psp-campaign-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.psp-campaign-stat {
    text-align: center;
}

.psp-campaign-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.psp-campaign-stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
}

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

.psp-campaign-actions .psp-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.psp-btn-launch {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.psp-btn-launch:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.psp-btn-pause {
    background: #fef3c7;
    color: #92400e;
}

.psp-btn-resume {
    background: #dcfce7;
    color: #166534;
}

.psp-btn-delete-campaign {
    background: #fee2e2;
    color: #991b1b;
}

/* Preview Modal */
.psp-preview-email {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.psp-preview-subject {
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.psp-preview-message {
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Upgrade Notice */
.psp-upgrade-notice {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
}

.psp-upgrade-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.psp-upgrade-notice h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1e293b;
}

.psp-upgrade-notice p {
    color: #64748b;
    margin-bottom: 20px;
}

.psp-upgrade-notice ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: inline-block;
    text-align: left;
}

.psp-upgrade-notice li {
    padding: 8px 0;
    color: #475569;
}

/* No campaigns */
.psp-no-campaigns {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.psp-no-campaigns-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
