/**
 * EPT Validator - Admin Styles UNIFIED
 * Includes all necessary styles for:
 * - Dashboard
 * - Pricing section
 * - Usage page
 * - Settings page
 * - Widgets & Cards
 * 
 * @package EPT_Validator
 * @since 1.0.0
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --ept-primary: #3b82f6;
    --ept-primary-dark: #2563eb;
    --ept-success: #10b981;
    --ept-warning: #f59e0b;
    --ept-error: #ef4444;
    --ept-info: #3b82f6;
    
    --ept-gray-50: #f9fafb;
    --ept-gray-100: #f3f4f6;
    --ept-gray-200: #e5e7eb;
    --ept-gray-500: #6b7280;
    --ept-gray-700: #374151;
    --ept-gray-900: #1f2937;
}

/* ============================================
   GENERAL LAYOUT
   ============================================ */
.ept-admin-wrap {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.ept-admin-header {
    margin-bottom: 32px;
}

.ept-admin-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--ept-gray-900);
    margin: 0 0 8px 0;
}

.ept-admin-subtitle {
    font-size: 16px;
    color: var(--ept-gray-500);
    margin: 0;
}

/* ============================================
   CURRENT USAGE CARD
   ============================================ */
.ept-usage-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--ept-gray-200);
}

.ept-usage-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.ept-usage-icon {
    font-size: 48px;
    line-height: 1;
}

.ept-usage-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ept-gray-900);
    margin: 0 0 8px 0;
}

.ept-usage-tier {
    font-size: 14px;
    color: var(--ept-gray-500);
    margin: 0;
}

.ept-usage-tier strong {
    color: var(--ept-primary);
    font-weight: 700;
}

.ept-usage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.ept-stat-box {
    background: var(--ept-gray-50);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--ept-primary);
}

.ept-stat-label {
    font-size: 12px;
    color: var(--ept-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ept-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--ept-gray-900);
}

/* Progress Bar */
.ept-progress-bar {
    background: var(--ept-gray-200);
    height: 32px;
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0;
}

.ept-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.ept-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.ept-progress-fill.danger {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.ept-unlimited-badge {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 12px;
    margin: 20px 0;
    color: #065f46;
    font-size: 18px;
}

/* Posts Summary */
.ept-posts-summary {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--ept-gray-200);
}

.ept-posts-summary h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ept-gray-900);
    margin: 0 0 16px 0;
}

.ept-posts-grid {
    display: grid;
    gap: 12px;
}

.ept-post-item {
    background: var(--ept-gray-50);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.ept-post-item:hover {
    background: var(--ept-gray-100);
    transform: translateX(4px);
}

.ept-post-item a {
    font-weight: 600;
    color: var(--ept-primary);
    text-decoration: none;
    flex: 1;
}

.ept-post-item a:hover {
    color: var(--ept-primary-dark);
}

.ept-post-count {
    font-size: 12px;
    color: var(--ept-gray-500);
    white-space: nowrap;
}

.ept-view-all {
    display: inline-block;
    margin-top: 12px;
    color: var(--ept-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.ept-view-all:hover {
    color: var(--ept-primary-dark);
}

/* ============================================
   DASHBOARD GRID & WIDGETS
   ============================================ */
.ept-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 1200px) {
    .ept-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.ept-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--ept-gray-200);
    overflow: hidden;
}

.ept-widget-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--ept-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ept-widget-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ept-gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ept-widget-content {
    padding: 24px;
}

/* Empty State */
.ept-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--ept-gray-500);
}

.ept-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ept-empty-state p {
    margin: 8px 0;
}

/* Recent Logs Table */
.ept-recent-logs-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Stabilizza larghezze colonne ed evita sovrapposizioni */
}

.ept-recent-logs-table thead {
    background: var(--ept-gray-50);
}

.ept-recent-logs-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--ept-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ept-recent-logs-table td {
    padding: 12px;
    border-bottom: 1px solid var(--ept-gray-200);
    vertical-align: middle;
}

.ept-recent-logs-table tbody tr:hover {
    background: var(--ept-gray-50);
}

.ept-log-date {
    font-size: 13px;
    color: var(--ept-gray-500);
    white-space: nowrap;
}

.ept-log-post a {
    color: var(--ept-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ept-log-post a:hover {
    color: var(--ept-primary-dark);
}

.ept-log-deleted {
    color: var(--ept-gray-500);
    font-style: italic;
}

/* Intent Badges */
.ept-intent-badge {
    display: inline-block;
    font-size: inherit; /* Same as other table cells */
}

/* Status Badges */
.ept-status-badge {
    font-size: 18px;
}

/* Validator Badge */
.ept-validator-badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--ept-gray-100);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ept-gray-700);
}

/* ============================================
   INTENTS GRID
   ============================================ */
.ept-intents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.ept-intent-card {
    background: var(--ept-gray-50);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--ept-primary);
    transition: all 0.2s ease;
}

.ept-intent-card:hover {
    background: var(--ept-gray-100);
    transform: translateY(-2px);
}

.ept-intent-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.ept-intent-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ept-gray-900);
    margin: 0 0 8px 0;
}

.ept-intent-info p {
    font-size: 12px;
    color: var(--ept-gray-500);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.ept-intent-wc {
    display: inline-block;
    padding: 4px 8px;
    background: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ept-gray-700);
}

/* ============================================
   QUICKSTART SECTION
   ============================================ */
.ept-widget-quickstart {
    margin-bottom: 32px;
}

.ept-quickstart-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 782px) {
    .ept-quickstart-grid {
        grid-template-columns: 1fr;
    }
}

.ept-quickstart-step {
    position: relative;
    padding: 24px;
    background: var(--ept-gray-50);
    border-radius: 8px;
    border: 2px solid var(--ept-gray-200);
    text-align: center;
}

.ept-step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--ept-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.ept-quickstart-step h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ept-gray-900);
    margin: 16px 0 8px 0;
}

.ept-quickstart-step p {
    font-size: 14px;
    color: var(--ept-gray-500);
    margin: 0;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.ept-plans-section {
    margin: 48px 0;
}

.ept-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--ept-gray-900);
    text-align: center;
    margin: 0 0 32px 0;
}

.ept-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 24px 0;
}

@media (max-width: 1400px) {
    .ept-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 782px) {
    .ept-plans-grid {
        grid-template-columns: 1fr;
    }
}

.ept-plan-card {
    background: white;
    border: 2px solid var(--ept-gray-200);
    border-radius: 12px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.ept-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ept-plan-card.current {
    border-color: var(--ept-success);
    background: #f0fdf4;
}

.ept-plan-card.recommended {
    border-color: var(--ept-primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
    transform: scale(1.02);
}

.ept-plan-card.recommended:hover {
    transform: scale(1.04) translateY(-4px);
}

.ept-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ept-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ept-plan-card.current .ept-plan-badge {
    background: var(--ept-success);
}

.ept-plan-name {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 16px 0;
    color: var(--ept-gray-900);
}

.ept-plan-price {
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    color: var(--ept-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.ept-plan-price small {
    font-size: 16px;
    font-weight: 400;
    color: var(--ept-gray-500);
    display: block;
    margin-top: 4px;
}

.ept-plan-limit {
    text-align: center;
    background: #dbeafe;
    padding: 8px;
    border-radius: 6px;
    margin: 12px 0;
    font-weight: 600;
    color: #1e40af;
    font-size: 14px;
}

.ept-plan-validator {
    text-align: center;
    background: #fef3c7;
    padding: 8px;
    border-radius: 6px;
    margin: 0 0 20px 0;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
}

.ept-plan-card.recommended .ept-plan-validator,
.ept-plan-card:nth-child(3) .ept-plan-validator,
.ept-plan-card:nth-child(4) .ept-plan-validator {
    background: #d1fae5;
    color: #065f46;
}

.ept-plan-features {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
    flex: 1;
}

.ept-plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--ept-gray-100);
    color: var(--ept-gray-700);
    font-size: 14px;
    position: relative;
    padding-left: 24px;
}

.ept-plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ept-success);
    font-weight: bold;
}

.ept-plan-features li:last-child {
    border-bottom: none;
}

.ept-plan-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--ept-primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.ept-plan-btn:hover {
    background: var(--ept-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
}

.ept-plan-btn.current {
    background: var(--ept-success);
    cursor: default;
}

.ept-plan-btn.current:hover {
    background: var(--ept-success);
    transform: none;
    box-shadow: none;
}

.ept-plan-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   INFO SECTION
   ============================================ */
.ept-info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 48px 0;
}

@media (max-width: 782px) {
    .ept-info-section {
        grid-template-columns: 1fr;
    }
}

.ept-info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--ept-gray-200);
}

.ept-info-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ept-gray-900);
    margin: 0 0 16px 0;
}

.ept-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ept-info-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--ept-gray-100);
    color: var(--ept-gray-700);
    font-size: 14px;
    line-height: 1.6;
}

.ept-info-card ul li:last-child {
    border-bottom: none;
}

.ept-info-card ul li strong {
    color: var(--ept-gray-900);
    display: block;
    margin-bottom: 4px;
}

.ept-comparison-table {
    width: 100%;
    margin-top: 12px;
}

.ept-comparison-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--ept-gray-100);
}

.ept-comparison-table td:first-child {
    font-weight: 600;
    width: 40%;
}

/* ============================================
   USAGE PAGE (Logs Table)
   ============================================ */
.ept-logs-table {
    margin-top: 20px;
    table-layout: fixed; /* Stabilizza larghezze colonne ed evita sovrapposizioni */
}

.ept-logs-table thead th {
    background: var(--ept-gray-50);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--ept-gray-700);
    text-transform: uppercase;
}

.ept-logs-table td {
    padding: 12px;
    vertical-align: middle;
    overflow: hidden; /* consente ellipsis nelle celle a larghezza fissa */
}

/* Larghezze colonne (Usage + Recent) */
.ept-logs-table thead th:nth-child(1),
.ept-recent-logs-table thead th:nth-child(1) { width: 120px; }

.ept-logs-table thead th:nth-child(3),
.ept-recent-logs-table thead th:nth-child(3) { width: 130px; }

.ept-logs-table thead th:nth-child(4),
.ept-recent-logs-table thead th:nth-child(4) { width: 80px; text-align: center; }

.ept-logs-table thead th:nth-child(5) { width: 80px; text-align: center; }

/* Troncamento titolo post nella colonna 2 */
.ept-logs-table td:nth-child(2) a { 
    display: inline-block; 
    max-width: 100%; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}

.ept-logs-table .row-title {
    font-weight: 600;
}

/* ============================================
   ALERTS & NOTICES
   ============================================ */
.ept-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid;
    margin: 16px 0;
}

.ept-alert.info {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.ept-alert.success {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.ept-alert.warning {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

.ept-alert.error {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.ept-alert .dashicons {
    flex-shrink: 0;
    margin-top: 2px;
}

.ept-alert-content {
    flex: 1;
}

.ept-alert-title {
    font-weight: 600;
    margin: 0 0 4px 0;
}

.ept-alert-message {
    margin: 0;
    font-size: 14px;
}

.ept-scroll-to {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.ept-scroll-to:hover {
    text-decoration: none;
}

/* ============================================
   SETTINGS PAGE
   ============================================ */
.ept-widget form {
    margin: 0;
}

.form-table th {
    width: 200px;
}

#ept-api-key {
    width: 400px;
    max-width: 100%;
}

.ept-upgrade-button {
    margin-top: 16px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ept-usage-card,
.ept-widget,
.ept-plan-card,
.ept-info-card {
    animation: fadeInUp 0.4s ease-out;
}

.ept-plan-card:nth-child(2) {
    animation-delay: 0.1s;
}

.ept-plan-card:nth-child(3) {
    animation-delay: 0.2s;
}

.ept-plan-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Loading State */
.ept-plan-btn.loading {
    position: relative;
    color: transparent;
}

.ept-plan-btn.loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 782px) {
    .ept-admin-wrap {
        padding: 0 10px;
    }
    
    .ept-usage-card {
        padding: 20px;
    }
    
    .ept-usage-stats {
        grid-template-columns: 1fr;
    }
    
    .ept-widget-content {
        padding: 16px;
    }
}

/* ============================================
   MOBILE TABLE FIX (Usage + Recent Logs)
   - Evita testo verticale nelle intestazioni (POST/INTENT)
   - Aggiunge scroll orizzontale su schermi piccoli
   ============================================ */
@media (max-width: 782px) {
    /* Abilita scroll orizzontale sicuro nella card */
    .ept-widget .ept-widget-content { 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch;
    }

    /* Mantiene una larghezza minima sensata per le tabelle */
    .ept-logs-table,
    .ept-recent-logs-table,
    .wp-list-table.ept-logs-table {
        min-width: 640px; /* Previene compressione estrema delle colonne */
    }

    /* Evita che i testi vadano a capo lettera per lettera */
    .ept-logs-table th,
    .ept-logs-table td,
    .ept-recent-logs-table th,
    .ept-recent-logs-table td {
        white-space: nowrap;
        word-break: normal; /* override eventuali break-all ereditati */
    }

    /* Troncamento elegante del titolo post */
    .ept-logs-table td:nth-child(2) a,
    .ept-recent-logs-table .ept-log-post a {
        display: inline-block;
        max-width: 280px;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }

    /* Badge intent sempre su una riga */
    .ept-intent-badge { white-space: nowrap; }
}

/* ============================================
    SETTINGS UI REFINEMENTS
    ============================================ */
#ept-copy-api-key { margin-left: 8px; vertical-align: middle; }

/**
 * EPT Validator - Pricing Cards Fix DEFINITIVO
 * Allinea i bottoni CTA perfettamente in tutte le card
 * 
 * AGGIUNGI QUESTO ALLA FINE DEL FILE admin-style.css
 * 
 * @package EPT_Validator
 * @since 1.0.0
 */

/* ============================================
   FIX ALLINEAMENTO BOTTONI - VERSIONE FINALE
   ============================================ */

/* CRITICO: Altezza minima uguale per tutte le card */
.ept-plan-card {
    min-height: 720px !important; /* Alza se AGENCY è ancora più alta */
}

/* Rimuovi min-height su schermi piccoli */
@media (max-width: 1400px) {
    .ept-plan-card {
        min-height: auto !important;
    }
}

@media (max-width: 782px) {
    .ept-plan-card {
        min-height: auto !important;
    }
}

/* OPZIONALE: Riduci dimensioni per rendere più compatto */
.ept-plan-card {
    padding: 24px 20px !important; /* Riduci padding */
}

.ept-plan-price {
    font-size: 42px !important; /* Riduci prezzo */
    margin-bottom: 8px !important;
}

.ept-plan-features li {
    padding: 8px 0 !important; /* Riduci spazio tra features */
    font-size: 13px !important;
}

.ept-plan-btn {
    padding: 12px 20px !important; /* Riduci padding bottone */
    font-size: 14px !important;
}

/* Se AGENCY ha troppe features, riduci font */
.ept-plan-card:nth-child(4) .ept-plan-features {
    font-size: 12px !important;
}

.ept-plan-card:nth-child(4) .ept-plan-features li {
    padding: 6px 0 !important;
}

/* ============================================
   MODERN PRICING CARDS
   ============================================ */
.ept-plans-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1400px) {
    .ept-plans-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 782px) {
    .ept-plans-grid-modern {
        grid-template-columns: 1fr;
    }
}

.ept-plan-card-modern {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s ease;
    min-height: 520px;
    box-sizing: border-box;
    margin-top: 16px; /* Space for badge */
}

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

.ept-plan-card-modern.ept-plan-current {
    border-color: #10b981;
    background: #f0fdf4;
}

.ept-plan-card-modern.ept-plan-recommended {
    border-color: #3b82f6;
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.ept-plan-badge-modern {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ept-plan-badge-modern.ept-badge-current {
    background: #10b981;
}

.ept-plan-header-modern {
    text-align: center;
    margin-bottom: 16px;
}

.ept-plan-name-modern {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.ept-plan-price-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.ept-price-amount {
    font-size: 42px;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
}

.ept-price-period {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 4px;
}

.ept-plan-limit-modern {
    text-align: center;
    background: #dbeafe;
    color: #1e40af;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ept-plan-validator-modern {
    text-align: center;
    margin-bottom: 16px;
}

.ept-validator-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.ept-plan-features-modern {
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0;
    flex: 1;
}

.ept-plan-features-modern li {
    padding: 8px 0;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.ept-plan-features-modern li .dashicons {
    color: #10b981;
    font-size: 18px;
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ept-plan-cta-modern {
    margin-top: 20px;
}

.ept-plan-btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.ept-plan-btn-modern:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.ept-plan-btn-modern .dashicons {
    margin-left: 6px;
    font-size: 18px;
}

.ept-plan-btn-modern.ept-btn-current {
    background: #10b981;
    cursor: not-allowed;
}

.ept-plan-btn-modern.ept-btn-current:hover {
    background: #10b981;
    transform: none;
    box-shadow: none;
}

.ept-plan-btn-modern.ept-btn-current .dashicons {
    margin-left: 0;
    margin-right: 6px;
}

/* ============================================
   LINK SUGGESTIONS (STANDARD/PRO)
   ============================================ */
/* === LINK SUGGESTIONS MODERN STYLE === */
.ept-link-suggestions {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ept-link-suggestions-list {
    padding: 16px;
}

.ept-link-suggestion-item {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ept-link-suggestion-item:last-child {
    margin-bottom: 0;
}

.ept-link-suggestion-item:hover {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.ept-link-suggestion-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 8px;
}

.ept-link-suggestion-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ept-link-badge-excellent {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #86efac;
}

.ept-link-badge-good {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.ept-link-badge-fair {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.ept-link-suggestion-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ept-link-suggestion-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
    flex: 1;
}

.ept-link-suggestion-category,
.ept-link-suggestion-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ept-link-suggestion-excerpt {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 12px;
    line-height: 1.6;
    padding: 8px 12px;
    background: #f9fafb;
    border-left: 3px solid #e5e7eb;
    border-radius: 4px;
}

.ept-copy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.ept-copy-link-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.ept-copy-link-btn:active {
    transform: translateY(0);
}

.ept-copy-link-btn:disabled {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.ept-link-suggestions-empty {
    padding: 32px 24px;
    text-align: center;
}

/* Link Suggestions Error (configuration issues) */
.ept-link-suggestions-error {
    padding: 20px;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 4px;
    margin: 12px 0;
}

/* Link Suggestions Locked (FREE tier) */
.ept-link-suggestions-locked {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px dashed #d1d5db;
}

.ept-link-suggestions-upgrade {
    padding: 20px;
    text-align: center;
}

.ept-link-suggestions-upgrade p {
    margin: 0 0 12px 0;
    color: #374151;
}

.ept-link-suggestions-upgrade strong {
    color: #3b82f6;
    font-size: 16px;
}

.ept-link-suggestions-upgrade ul {
    text-align: left;
    max-width: 300px;
    margin: 12px auto;
    color: #6b7280;
    font-size: 14px;
}

.ept-upgrade-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ept-upgrade-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Toast Notification */
.ept-toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #1f2937;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.ept-toast.ept-toast-show {
    opacity: 1;
    transform: translateY(0);
}

.ept-toast.ept-toast-error {
    background: #dc2626;
}

/* Mobile Responsive for Link Suggestions */
@media (max-width: 782px) {
    .ept-link-suggestion-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .ept-link-suggestion-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ept-copy-link-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ept-toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: calc(100% - 32px);
    }
}