/* Colores base Vulnity */
:root {
    --v-bg-base: #F8FAFC;
    --v-bg-card: #EEF2F6;
    --v-border: #E2E8F0;
    --v-text: #0F172A;
    --v-text-muted: #475569;
    --v-accent: #7C3AED;
    --v-accent-hover: #6D28D9;
    --v-hover: #1E293B;
    --v-pill-soft: #EDE9FE;
    --v-critical: #1f2937;
    --v-high: #EF4444;
    --v-medium: #F97316;
    --v-low: #EAB308;
}

/* Ajuste de avisos para garantizar contraste sobre fondo claro */
.wrap .notice,
.wrap .notice p {
    color: var(--v-text) !important;
}

/* Ajuste del ícono en el menú lateral */
#toplevel_page_vulnity .wp-menu-image img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    padding: 0;
    margin-top: -1px;
}

.wrap {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 18px 22px 36px;
    background: var(--v-bg-base);
    box-sizing: border-box;
}

/* RESET COMPLETO PARA STAT CARDS */
.vulnity-stat-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    padding: 28px 20px !important;
    border-radius: 10px !important;
    border: 1px solid var(--v-border) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
    min-height: 120px !important;
    overflow: visible !important;
}

.vulnity-stat-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px) !important;
}

.vulnity-stat-value {
    font-size: 48px !important;
    font-weight: bold !important;
    color: var(--v-text) !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: block !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    text-fill-color: unset !important;
}

.vulnity-stat-label {
    font-size: 14px !important;
    color: var(--v-text-muted) !important;
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    display: block !important;
}

/* Grid para las stats */
.vulnity-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 1200px) {
    .vulnity-security-overview-card .vulnity-stats-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .vulnity-inventory-summary-card .vulnity-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Fix para tabs del panel principal */
.vulnity-tabs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--v-border);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.vulnity-tabs-brand {
    justify-self: start;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: linear-gradient(90deg, #111827 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.vulnity-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    justify-self: center;
}

.vulnity-tabs-spacer {
    justify-self: end;
    width: 1px;
    height: 1px;
}

.vulnity-tab {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--v-text-muted);
    transition: all 0.2s ease;
}

.vulnity-tab:hover {
    color: var(--v-hover);
    background: #f8fafc;
}

.vulnity-tab.active {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #ddd6fe;
    box-shadow: none;
}

@media (max-width: 1024px) {
    .vulnity-tabs {
        grid-template-columns: 1fr auto 1fr;
    }

    .vulnity-tabs-brand {
        justify-self: start;
    }

    .vulnity-tabs-nav {
        justify-content: center;
        justify-self: center;
    }
}

.vulnity-tab-content {
    display: none;
    width: 100%;
}

.vulnity-tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.vulnity-tab-content.vulnity-tab-grid {
    display: none;
}

.vulnity-tab-content.active.vulnity-tab-grid {
    display: grid;
}


.vulnity-tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

.vulnity-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
}

.vulnity-dashboard-grid .vulnity-content-wide {
    max-width: 100%;
    margin: 0;
}

.vulnity-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 22px;
    width: 100%;
}

.vulnity-content-wide {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 4px;
    box-sizing: border-box;
}

.vulnity-tab-grid > * {
    width: 100%;
}

.vulnity-span-full {
    grid-column: 1 / -1;
}

/* Badges */
.vulnity-badge {
    background: var(--v-accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

/* Status indicators */
.vulnity-status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.vulnity-status-connected {
    background: #46b450;
    animation: pulse 2s infinite;
}

.vulnity-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 18px;
    background: #ffffff;
    color: var(--v-text);
    border-radius: 12px;
    border: 1px solid var(--v-border);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.vulnity-page-header h1 {
    color: var(--v-text);
    margin-bottom: 0;
}

.vulnity-page-subtitle {
    margin: 0;
    color: var(--v-text-muted);
    font-size: 14px;
}

.vulnity-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid var(--v-border);
    border-radius: 10px;
    font-weight: 600;
    color: var(--v-text);
}

.vulnity-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--v-pill-soft);
    color: var(--v-text);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.vulnity-chip-info {
    background: rgba(124, 58, 237, 0.12);
    color: var(--v-accent);
}

.vulnity-chip-danger {
    background: rgba(239, 68, 68, 0.16);
    color: var(--v-high);
}

.vulnity-chip-warning {
    background: rgba(249, 115, 22, 0.12);
    color: #9a3412;
}

.vulnity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.vulnity-card-header p {
    margin: 0;
    color: #6b7280;
}

.vulnity-card-gradient {
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
    box-shadow: 0 14px 30px rgba(79, 156, 249, 0.12);
}

.vulnity-card-columns .form-table th {
    width: 170px;
}

.vulnity-inline-callout {
    margin-top: 14px;
    padding: 12px 14px;
    background: #fff7ed;
    border: 1px solid #fbc27b;
    border-radius: 8px;
    color: #7c2d12;
}

.vulnity-inline-heading {
    margin-bottom: 4px;
}

.vulnity-muted {
    color: #6b7280;
}

/* Dashboard: delivery + distribution cards */
.vulnity-delivery-card,
.vulnity-distribution-card {
    border: 1px solid var(--v-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
}

.vulnity-delivery-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.vulnity-delivery-pill.is-healthy {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #86efac;
}

.vulnity-delivery-pill.is-issue {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.vulnity-delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    align-content: center;
    flex: 1 1 auto;
}

.vulnity-delivery-item {
    border: 1px solid var(--v-border);
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    justify-content: center;
    align-items: center;
    min-height: 156px;
}

.vulnity-delivery-item.is-sent {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.vulnity-delivery-item.is-failed {
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.vulnity-delivery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vulnity-delivery-label {
    color: var(--v-text-muted);
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    width: 100%;
}

.vulnity-delivery-percent {
    font-size: 12px;
    font-weight: 700;
    color: var(--v-text);
    text-align: center;
    width: 100%;
}

.vulnity-delivery-value {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: var(--v-text);
    text-align: center;
    width: 100%;
}

.vulnity-delivery-meter {
    height: 7px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    width: 92%;
    margin: 0 auto;
}

.vulnity-delivery-meter > span {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.vulnity-delivery-item.is-sent .vulnity-delivery-meter > span {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.vulnity-delivery-item.is-failed .vulnity-delivery-meter > span {
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
}

.vulnity-delivery-note {
    margin-top: 12px;
}

.vulnity-distribution-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    grid-auto-rows: minmax(0, 1fr);
    align-content: stretch;
    flex: 1 1 auto;
}

.vulnity-distribution-item {
    border: 1px solid var(--v-border);
    border-radius: 12px;
    background: #ffffff;
    padding: 7px 8px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "head"
        "bar"
        "percent";
    gap: 5px;
    align-items: center;
    min-height: 74px;
}

.vulnity-distribution-head {
    grid-area: head;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vulnity-distribution-count {
    font-weight: 700;
    color: var(--v-text);
    font-size: 13px;
}

.vulnity-distribution-meter {
    grid-area: bar;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.vulnity-distribution-meter > span {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.vulnity-distribution-percent {
    grid-area: percent;
    font-size: 11px;
    font-weight: 700;
    color: var(--v-text);
    min-width: 0;
    text-align: left;
}

.vulnity-severity-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid transparent;
}

.vulnity-distribution-card .vulnity-card-header {
    margin-bottom: 8px;
}

.vulnity-distribution-card .vulnity-card-header p {
    line-height: 1.3;
}

.vulnity-severity-badge.vulnity-critical,
.vulnity-distribution-meter > span.vulnity-critical {
    background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
    color: #ffffff;
}

.vulnity-severity-badge.vulnity-high {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.vulnity-distribution-meter > span.vulnity-high {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.vulnity-severity-badge.vulnity-medium {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fed7aa;
}

.vulnity-distribution-meter > span.vulnity-medium {
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
}

.vulnity-severity-badge.vulnity-low {
    background: #fef9c3;
    color: #854d0e;
    border-color: #fde68a;
}

.vulnity-distribution-meter > span.vulnity-low {
    background: linear-gradient(90deg, #eab308 0%, #ca8a04 100%);
}

.vulnity-severity-badge.vulnity-info {
    background: #e0f2fe;
    color: #0c4a6e;
    border-color: #bae6fd;
}

.vulnity-distribution-meter > span.vulnity-info {
    background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
}

.vulnity-system-card {
    border: 1px solid var(--v-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.vulnity-system-grid {
    display: grid;
    gap: 8px;
}

.vulnity-system-row {
    display: grid;
    grid-template-columns: minmax(140px, 170px) 1fr;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--v-border);
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 12px;
}

.vulnity-system-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--v-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vulnity-system-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--v-text);
    font-weight: 600;
}

.vulnity-system-code {
    background: #eef2ff;
    border: 1px solid #dbeafe;
    color: #1e293b;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 12px;
    word-break: break-all;
}

.vulnity-system-sync {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}

.vulnity-system-sync.is-ok {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #86efac;
}

.vulnity-system-sync.is-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 860px) {
    .vulnity-delivery-grid {
        grid-template-columns: 1fr;
    }

    .vulnity-distribution-list {
        grid-template-columns: 1fr;
    }

    .vulnity-distribution-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "head"
            "bar"
            "percent";
    }

    .vulnity-distribution-percent {
        text-align: left;
    }

    .vulnity-system-row {
        grid-template-columns: 1fr;
    }
}

.vulnity-hardening-card {
    border: 1px solid var(--v-border);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.vulnity-hardening-badge-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.vulnity-hardening-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin: 10px 0 18px;
}

.vulnity-hardening-metric {
    padding: 14px;
    border: 1px solid var(--v-border);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #F8FAFC 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-label {
    font-size: 13px;
    color: var(--v-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

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

.metric-value code {
    background: var(--v-text);
    color: #e0f2fe;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 13px;
}

.metric-subtitle {
    display: block;
    color: #6b7280;
    font-weight: 500;
}

.metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.metric-chip.chip-positive {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #86efac;
}

.metric-chip.chip-warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.metric-chip.chip-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.vulnity-hardening-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.vulnity-hardening-top {
    display: block;
}

.vulnity-hardening-controls {
    display: grid;
    gap: 20px;
}

.vulnity-hardening-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.vulnity-hardening-controls-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vulnity-hardening-toggle {
    border: 1px solid var(--v-border);
    border-radius: 12px;
    padding: 18px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.vulnity-hardening-toggle--stacked {
    grid-column: span 1;
}

@media (max-width: 1200px) {
    .vulnity-hardening-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .vulnity-hardening-toggle--stacked {
        grid-column: span 1;
    }

    .vulnity-hardening-layout {
        grid-template-columns: 1fr;
    }
}


.vulnity-toggle-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vulnity-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vulnity-toggle-note {
    margin-left: auto;
    color: var(--v-text-muted);
    font-weight: 500;
    font-size: 13px;
    text-align: right;
    max-width: 320px;
}

.vulnity-toggle-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 15px;
    color: var(--v-text);
    margin-bottom: 4px;
}

.vulnity-toggle-description {
    margin: 0;
    color: var(--v-text-muted);
    line-height: 1.5;
}

.vulnity-hardening-toggle input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    align-self: center;
}

.vulnity-hardening-inline-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.vulnity-inline-field {
    font-weight: 700;
    color: var(--v-text);
}

.vulnity-hardening-inline-inputs .regular-text {
    max-width: 280px;
}

.vulnity-hardening-number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.vulnity-number-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--v-text-muted);
    font-weight: 600;
}

.vulnity-number-field input[type="number"] {
    width: 100%;
}

.vulnity-hardening-explainer {
    height: 100%;
    padding: 14px;
    border: 1px solid var(--v-border);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.vulnity-login-panel {
    background: #fff;
    border: 1px solid var(--v-border);
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    align-self: start;
}

.vulnity-login-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.vulnity-login-panel__header h3 {
    margin: 6px 0 4px;
    font-size: 18px;
    color: var(--v-text);
}

.vulnity-login-panel .description {
    color: var(--v-text-muted);
    margin: 0;
}

.vulnity-login-panel__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vulnity-login-label {
    font-weight: 700;
    color: var(--v-text);
}

.vulnity-login-url {
    padding: 10px 12px;
    border: 1px dashed var(--v-border);
    border-radius: 10px;
    background: #f8fafc;
    font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
    color: var(--v-text);
}

.vulnity-login-url--inline {
    margin-top: 8px;
}

.vulnity-badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: #eef2ff;
    color: var(--v-accent);
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    margin: 0;
}

.vulnity-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.vulnity-switch input { display: none; }

.vulnity-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .2s;
    border-radius: 999px;
}

.vulnity-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
}

.vulnity-switch input:checked + .vulnity-slider {
    background-color: var(--v-accent);
}

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

#tab-hardening .vulnity-switch {
    width: 52px;
    height: 26px;
}

#tab-hardening .vulnity-slider {
    background-color: #e2e8f0;
    border: 1px solid #cbd5e1;
}

#tab-hardening .vulnity-slider:before {
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
}

#tab-hardening .vulnity-switch input:checked + .vulnity-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(118, 75, 162, 0.28);
}

#tab-hardening .vulnity-switch input:checked + .vulnity-slider:before {
    transform: translateX(26px);
}

#tab-hardening .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.2);
    text-shadow: none;
}

#tab-hardening .button-primary:hover {
    box-shadow: 0 12px 24px rgba(118, 75, 162, 0.28);
}

#tab-hardening .button-primary:focus {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(118, 75, 162, 0.45);
}

.vulnity-hardening-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.vulnity-hardening-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--v-border);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.vulnity-hardening-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
    border: 1px solid #cbd5e1;
}

.vulnity-hero-text h2 {
    margin: 6px 0;
    font-size: 24px;
}

.vulnity-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vulnity-badge-soft {
    background: #f4f4ff;
    color: #4338ca;
}

.vulnity-hero-metric {
    padding: 12px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.vulnity-hero-metric .metric-label {
    color: #cbd5e1;
}

.vulnity-hero-metric .metric-value {
    color: #fff;
    font-size: 18px;
}

.vulnity-hardening-body {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 20px;
    align-items: start;
}

.vulnity-hardening-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vulnity-hardening-column--side {
    gap: 12px;
}

.vulnity-section-card {
    background: #ffffff;
    border: 1px solid var(--v-border);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.vulnity-section-card--transparent {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-style: dashed;
}

.vulnity-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.vulnity-control-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vulnity-control-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.vulnity-control-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eef2ff;
    font-size: 16px;
}

.vulnity-control-title {
    font-weight: 700;
    margin: 0 0 4px;
}

.vulnity-control-desc {
    margin: 0;
    color: var(--v-text-muted);
}

.vulnity-subtle-pill {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 12px;
    margin-top: 6px;
}

.vulnity-hardening-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 18px;
    width: 100%;
}

.vulnity-hardening-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vulnity-hardening-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 1280px) {
    .vulnity-hardening-wrapper {
        grid-template-columns: 1fr;
    }

    .vulnity-hardening-aside {
        order: -1;
    }

    .vulnity-hardening-body {
        grid-template-columns: 1fr;
    }
}

.vulnity-highlight {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--v-border);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    align-items: flex-start;
}

.vulnity-highlight-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef2ff;
    font-size: 18px;
}

.vulnity-hardening-badge-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.vulnity-hardening-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 10px 0 18px;
}

.vulnity-hardening-metric {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-label {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.metric-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.metric-value code {
    background: #0f172a;
    color: #e0f2fe;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 13px;
}

.metric-subtitle {
    display: block;
    color: #6b7280;
    font-weight: 500;
}

.metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.metric-chip.chip-positive {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #86efac;
}

.metric-chip.chip-warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.metric-chip.chip-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.vulnity-hardening-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 16px 0 22px;
}

.vulnity-hardening-config-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--v-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vulnity-hardening-config-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.vulnity-hardening-config-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vulnity-hardening-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid #0f172a;
}

.vulnity-hardening-pill code {
    background: rgba(15, 23, 42, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
}

.vulnity-hardening-pill--soft {
    background: #eef2ff;
    color: #1e3a8a;
    border-color: #c7d2fe;
}

.vulnity-hardening-pill--neutral {
    background: #f8fafc;
    color: #0f172a;
    border-color: #e2e8f0;
}

.vulnity-hardening-config-form {
    background: #ffffff;
    border: 1px dashed var(--v-border);
    border-radius: 12px;
    padding: 22px;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.vulnity-hardening-config-form form {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vulnity-hardening-config-form .submit {
    margin-top: 10px;
}

.vulnity-hardening-config-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--v-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vulnity-hardening-config-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.vulnity-hardening-config-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vulnity-hardening-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid #0f172a;
}

.vulnity-hardening-pill code {
    background: rgba(15, 23, 42, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
}

.vulnity-hardening-pill--soft {
    background: #eef2ff;
    color: #1e3a8a;
    border-color: #c7d2fe;
}

.vulnity-hardening-config-form {
    background: #ffffff;
    border: 1px dashed var(--v-border);
    border-radius: 12px;
    padding: 22px;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.vulnity-hardening-config-form form {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vulnity-hardening-config-form .submit {
    margin-top: 10px;
}

.vulnity-hardening-controls-card {
    border: 1px solid var(--v-border);
}

.vulnity-hardening-form-card {
    border: 1px dashed var(--v-border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.vulnity-compact-card {
    border: 1px solid var(--v-border);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.vulnity-hardening-secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
    width: 100%;
}

.vulnity-compact-card .vulnity-card-header {
    padding: 0 0 8px;
    border: none;
}

.vulnity-hardening-aside .card {
    margin: 0;
}

.vulnity-chip.vulnity-chip-soft {
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
}

.vulnity-chip.vulnity-chip-neutral {
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
}

.vulnity-hardening-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--v-border);
    border-radius: 10px;
    background: var(--v-bg-card);
    align-items: flex-start;
}

.vulnity-hardening-item h4 {
    margin: 0 0 4px;
    font-size: 15px;
}

.vulnity-hardening-item p {
    margin: 0;
    color: var(--v-text-muted);
}

.vulnity-hardening-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vulnity-hardening-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vulnity-hardening-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #EDE9FE;
    font-size: 18px;
}

.vulnity-hardening-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.vulnity-hardening-chip.active {
    background: #ecfdf3;
    color: #15803d;
    border-color: #86efac;
}

.vulnity-hardening-chip.inactive {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

.vulnity-hardening-impact {
    padding: 12px;
    background: var(--v-bg-card);
    border-radius: 10px;
    border: 1px dashed var(--v-border);
}

.vulnity-hardening-impact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.vulnity-hardening-impact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.vulnity-hardening-impact strong {
    display: block;
    margin-bottom: 8px;
}

.vulnity-impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.vulnity-impact-item {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px dashed var(--v-border);
    border-radius: 10px;
    color: #0f172a;
    font-weight: 600;
}

.vulnity-admin-access-callout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--v-border);
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(70, 180, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(70, 180, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(70, 180, 80, 0); }
}

/* Alerts */
.vulnity-alerts-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vulnity-alert {
    background: white;
    border-left: 4px solid #999;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.vulnity-alert-critical {
    border-left-color: #dc3232;
}

.vulnity-alert-high {
    border-left-color: #f56e28;
}

.vulnity-alert-medium {
    border-left-color: #ffb900;
}

.vulnity-alert-low {
    border-left-color: #00a0d2;
}

.vulnity-alerts-container .vulnity-alert {
    border: 1px solid #e5e7eb;
    border-left: 4px solid #999;
}

.vulnity-alerts-container .vulnity-alert-critical {
    border-left-color: #000000;
}

.vulnity-alerts-container .vulnity-alert-high {
    border-left-color: #e53935;
}

.vulnity-alerts-container .vulnity-alert-medium {
    border-left-color: #fb8c00;
}

.vulnity-alerts-container .vulnity-alert-low {
    border-left-color: #f4d03f;
}

.vulnity-alerts-container .vulnity-alert-info {
    border-left-color: #1e88e5;
}

.vulnity-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vulnity-alert-title {
    font-weight: 600;
    font-size: 15px;
}

.vulnity-alert-time {
    color: #999;
    font-size: 12px;
}

.vulnity-alert-message {
    margin-bottom: 15px;
    color: #555;
}

.vulnity-alert-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.vulnity-siem-status {
    background: #46b450;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.vulnity-alert-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.vulnity-no-alerts {
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.vulnity-whitelist-banner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(255, 214, 102, 0.2), rgba(255, 184, 0, 0.08));
    border: 1px solid rgba(255, 184, 0, 0.35);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 18px 0 22px;
}

.vulnity-whitelist-banner strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
    color: #8a5a00;
}

.vulnity-whitelist-banner p {
    margin: 0;
    color: #5f4b1a;
    font-size: 13px;
    line-height: 1.5;
}

.vulnity-whitelist-icon {
    font-size: 24px;
    line-height: 1;
    padding: 10px;
    background: rgba(255, 184, 0, 0.2);
    border-radius: 12px;
}

.vulnity-blocked-bulk-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

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

.vulnity-bulk-hint {
    font-size: 13px;
    color: #666;
}

#bulk-selection-count {
    font-size: 13px;
    font-weight: 500;
    color: #3c434a;
}

.vulnity-table th.vulnity-col-select,
.vulnity-table td.vulnity-col-select {
    width: 48px;
    text-align: center;
}

.vulnity-table td.vulnity-col-select input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
}

/* Cards */
.card {
    margin-bottom: 20px;
    width: 100%;
    background: var(--v-bg-card);
    border: 1px solid var(--v-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.card h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--v-border);
    color: var(--v-text);
}

/* Setup screen */
.vulnity-setup-wrap {
    max-width: 1160px;
    margin-top: 14px;
}

.vulnity-setup-shell {
    display: grid;
    gap: 16px;
}

.vulnity-setup-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.vulnity-setup-hero-copy h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.vulnity-setup-hero-copy p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 15px;
}

.vulnity-setup-hero-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vulnity-setup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 16px;
    align-items: stretch;
}

.vulnity-setup-card {
    margin: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: none;
    padding: 18px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vulnity-setup-card-header h2,
.vulnity-setup-card-header h3 {
    margin: 0;
    padding: 0 0 10px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}

.vulnity-setup-card-header p {
    margin: 10px 0 0;
    color: #64748b;
}

.vulnity-setup-form {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.vulnity-setup-field {
    display: grid;
    gap: 6px;
}

.vulnity-setup-field label {
    color: #334155;
    font-weight: 700;
    font-size: 13px;
}

.vulnity-setup-field .description {
    margin: 0;
    color: #64748b;
}

.vulnity-setup-input {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    padding: 0 12px;
}

.vulnity-setup-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.16);
    outline: none;
}

.vulnity-setup-actions {
    padding-top: 4px;
}

.vulnity-setup-submit.button.button-primary {
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.vulnity-setup-submit.button.button-primary:hover {
    box-shadow: 0 10px 22px rgba(118, 75, 162, 0.24);
}

/* Login required banner */
.vulnity-login-required {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.22);
    border-left: 4px solid var(--v-accent, #7c3aed);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 24px;
}

.vulnity-login-required-icon {
    flex-shrink: 0;
    color: var(--v-accent, #7c3aed);
    display: flex;
    align-items: center;
}

.vulnity-login-required-body {
    flex: 1;
    min-width: 0;
}

.vulnity-login-required-body strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.vulnity-login-required-body p {
    margin: 0;
    font-size: 13px;
    color: #475569;
}

.vulnity-login-required-body a {
    color: var(--v-accent, #7c3aed);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vulnity-login-required-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: var(--v-accent, #7c3aed);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: box-shadow 0.15s;
}

.vulnity-login-required-btn:hover {
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
    color: #fff !important;
}

.vulnity-setup-steps {
    margin: 12px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #334155;
}

.vulnity-setup-note {
    margin-top: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px;
}

.vulnity-setup-help {
    justify-content: space-between;
}

.vulnity-setup-note h4 {
    margin: 0 0 8px;
    color: #334155;
    font-size: 14px;
}

.vulnity-setup-note ul {
    margin: 0;
    padding-left: 16px;
    display: grid;
    gap: 6px;
    color: #475569;
}

@media (max-width: 980px) {
    .vulnity-setup-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .vulnity-setup-grid {
        grid-template-columns: 1fr;
    }

    .vulnity-setup-hero-meta {
        justify-content: flex-start;
    }
}

/* Tables */
.wp-list-table td,
.wp-list-table th {
    padding: 12px 10px !important;
}

/* Fix específico para el panel de Mitigation */
.vulnity-mitigation-wrap .vulnity-stat-value {
    color: #667eea !important;
    font-size: 36px !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
}

/* Tabs de mitigation */
.vulnity-mitigation-tabs {
    display: flex;
    gap: 0;
    margin: 30px 0 0 0;
    border-bottom: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px 10px 0 0;
    padding: 10px 10px 0 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.vulnity-mitigation-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
}

.vulnity-mitigation-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.vulnity-mitigation-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .vulnity-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .vulnity-stat-card {
        min-height: 100px !important;
    }
    
    .vulnity-stat-value {
        font-size: 36px !important;
    }
}
/* Mitigation admin styles migrated from inline template */
.vulnity-mitigation-wrap {
    margin-top: 20px;
}

.vulnity-mitigation-tabs {
    display: flex;
    gap: 0;
    margin: 30px 0 0 0;
    border-bottom: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px 10px 0 0;
    padding: 10px 10px 0 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.vulnity-mitigation-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
}

.vulnity-mitigation-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.vulnity-mitigation-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.vulnity-mitigation-content {
    animation: fadeIn 0.3s ease;
    padding: 20px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

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

.vulnity-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.vulnity-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.vulnity-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.vulnity-table thead {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.vulnity-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

.vulnity-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #495057;
    font-size: 14px;
    vertical-align: middle;
}

.vulnity-table tbody tr {
    transition: all 0.2s ease;
}

.vulnity-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.03);
}

.vulnity-table tbody tr:last-child td {
    border-bottom: none;
}

.vulnity-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.vulnity-badge-info {
    background: rgba(102, 126, 234, 0.15);
    color: #3f51b5;
}

.vulnity-badge-warning {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.vulnity-badge-danger {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.vulnity-badge-success {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.vulnity-badge-permanent {
    background: rgba(103, 58, 183, 0.15);
    color: #673ab7;
}

.vulnity-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px dashed rgba(102, 126, 234, 0.3);
    color: #555;
}

.vulnity-empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.vulnity-empty-state-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.vulnity-empty-state-text {
    color: #666;
    line-height: 1.6;
}

.vulnity-alert {
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid;
    margin-bottom: 20px;
}

.vulnity-alert-info {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.8);
    color: #3f51b5;
}

.vulnity-alert-warning {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 160, 0, 0.85);
    color: #8a6d3b;
}

.vulnity-alert-danger {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.8);
    color: #c62828;
}

.vulnity-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 13px;
}

.vulnity-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.vulnity-status-active {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.vulnity-status-active .vulnity-status-dot {
    background: #2e7d32;
}

.vulnity-status-inactive {
    background: rgba(158, 158, 158, 0.15);
    color: #616161;
}

.vulnity-status-inactive .vulnity-status-dot {
    background: #616161;
}

.vulnity-severity {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.vulnity-severity-low {
    background: rgba(33, 150, 243, 0.12);
    color: #1e88e5;
}

.vulnity-severity-medium {
    background: rgba(255, 152, 0, 0.12);
    color: #fb8c00;
}

.vulnity-severity-high {
    background: rgba(244, 67, 54, 0.12);
    color: #e53935;
}

.vulnity-severity-critical {
    background: rgba(183, 28, 28, 0.12);
    color: #b71c1c;
}

.vulnity-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.vulnity-action-btn-danger {
    background: #f44336;
    color: #fff;
}

.vulnity-form-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vulnity-form-inline input[type="text"],
.vulnity-form-inline select {
    flex: 1 1 220px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d1d1d1;
}

.vulnity-form-inline button {
    padding: 10px 18px;
}

.vulnity-badge + .vulnity-badge {
    margin-left: 6px;
}

.vulnity-empty-state .button {
    margin-top: 18px;
}

.vulnity-mitigation-wrap .button-sync-primary {
    padding: 12px 24px;
    font-size: 15px;
}

.vulnity-mitigation-wrap .button-sync-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vulnity-mitigation-wrap .button-sync-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.2);
}

.vulnity-mitigation-wrap .button-sync-primary:hover {
    box-shadow: 0 12px 24px rgba(118, 75, 162, 0.25);
}

.vulnity-whitelist-banner strong,
.vulnity-whitelist-banner p {
    color: inherit;
}

.vulnity-mitigation-wrap .vulnity-badge {
    background: rgba(102, 126, 234, 0.1);
    color: #3f51b5;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.vulnity-mitigation-wrap .vulnity-badge + .vulnity-badge {
    margin-left: 10px;
}

/* Layout overrides for dashboard summary cards */
@media (min-width: 1200px) {
    .vulnity-security-overview-card .vulnity-stats-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    }

    .vulnity-inventory-summary-card .vulnity-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Dashboard layout fixes */
@media (min-width: 1024px) {
    .vulnity-tab-content.vulnity-tab-grid.vulnity-dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .vulnity-dashboard-grid .vulnity-content-wide,
    .vulnity-dashboard-grid .vulnity-security-overview-card {
        grid-column: 1 / -1 !important;
        width: 100%;
    }

    .vulnity-security-overview-card .vulnity-stats-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        width: 100%;
    }
}

/* --- FIX FINAL: Dashboard Security overview full width --- */
#tab-dashboard.vulnity-tab-content.active.vulnity-tab-grid.vulnity-dashboard-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
}

/* El primer bloque del dashboard (wrapper del Security overview) debe ocupar toda la fila */
#tab-dashboard.vulnity-tab-content.active.vulnity-tab-grid.vulnity-dashboard-grid > .vulnity-content-wide {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-self: stretch !important;
}

/* El card también a ancho completo */
#tab-dashboard .vulnity-security-overview-card {
  width: 100% !important;
  max-width: 100% !important;
}

/* Reparto simétrico de las 7 tarjetas */
@media (min-width: 992px) {
  #tab-dashboard .vulnity-security-overview-card .vulnity-stats-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
}

/* Mitigation minimal refresh */
#tab-mitigation .vulnity-mitigation-wrap {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#tab-mitigation .vulnity-mitigation-tabs {
    margin: 0 0 12px 0;
    padding: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: none;
}

#tab-mitigation .vulnity-mitigation-tab {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    border: 1px solid transparent;
}

#tab-mitigation .vulnity-mitigation-tab:hover {
    color: #1e293b;
    background: #eef2ff;
}

#tab-mitigation .vulnity-mitigation-tab.active {
    color: #1e3a8a;
    background: #e0e7ff;
    border-color: #c7d2fe;
    box-shadow: none;
}

#tab-mitigation .vulnity-mitigation-content {
    padding: 18px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

#tab-mitigation .vulnity-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

#tab-mitigation .vulnity-stats-grid {
    gap: 12px;
    margin-bottom: 18px;
}

#tab-mitigation .vulnity-stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    padding: 18px !important;
    min-height: 100px !important;
}

#tab-mitigation .vulnity-stat-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

#tab-mitigation .vulnity-stat-value {
    font-size: 28px !important;
    color: #0f172a !important;
    margin-bottom: 6px !important;
}

#tab-mitigation .vulnity-stat-label {
    font-size: 13px !important;
    color: #64748b !important;
}

#tab-mitigation .vulnity-table {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

#tab-mitigation .vulnity-table thead {
    background: #f8fafc;
}

#tab-mitigation .vulnity-table th {
    color: #334155;
    font-weight: 600;
}

#tab-mitigation .vulnity-table tbody tr:hover {
    background: #f8fafc;
}

#tab-mitigation .vulnity-alert {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

#tab-mitigation .button.button-primary,
#tab-mitigation .button-sync-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.2);
}

#tab-mitigation .button.button-primary:hover,
#tab-mitigation .button-sync-primary:hover {
    box-shadow: 0 12px 24px rgba(118, 75, 162, 0.25);
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-shell {
    display: grid;
    gap: 16px;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-header h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    color: #0f172a;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-header p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    padding: 7px 12px;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-pill.is-success {
    border-color: #b7ebd0;
    background: #eafbf2;
    color: #166534;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-pill.is-warning {
    border-color: #fde3b0;
    background: #fff7e6;
    color: #9a3412;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-pill.is-danger {
    border-color: #f4c7cf;
    background: #fff1f2;
    color: #9f1239;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-panel,
#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-note {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: none;
    padding: 16px;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-panel h3,
#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-note h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.25;
    color: #0f172a;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-rows {
    display: grid;
    gap: 0;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-row {
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-row:last-child {
    border-bottom: none;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-row .sync-label {
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-row .sync-value {
    color: #0f172a;
    font-weight: 500;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-row .sync-value strong {
    font-weight: 700;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-row .sync-value small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-inline-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-left: 8px;
    padding: 5px 8px;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-inline-badge.is-success {
    border-color: #b7ebd0;
    background: #eafbf2;
    color: #166534;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-inline-badge.is-danger {
    border-color: #f4c7cf;
    background: #fff1f2;
    color: #9f1239;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-action {
    display: grid;
    gap: 10px;
    justify-items: center;
    margin-top: 12px;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization #sync-mitigation-btn {
    min-height: 46px;
    min-width: 260px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 22px;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-result {
    min-height: 18px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-result.is-working {
    color: #4f46e5;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-result.is-success {
    color: #15803d;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-result.is-error {
    color: #b91c1c;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-note p {
    margin: 0 0 10px;
    color: #334155;
    line-height: 1.5;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-note p:last-child {
    margin-bottom: 0;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

#tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-list li {
    color: #334155;
    line-height: 1.45;
}

@media (max-width: 960px) {
    #tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-grid {
        grid-template-columns: 1fr;
    }

    #tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    #tab-mitigation #mitigation-tab-mitigation-synchronization .vulnity-mitigation-sync-header {
        flex-direction: column;
    }
}

/* Sync + Settings minimal refresh */
#tab-sync .card,
#tab-settings .card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    padding: 18px;
}

#tab-sync .form-table,
#tab-settings .form-table {
    border-collapse: collapse;
}

#tab-sync .form-table th,
#tab-settings .form-table th {
    color: #334155;
    font-weight: 600;
    width: 220px;
}

#tab-sync .form-table td,
#tab-settings .form-table td {
    color: #0f172a;
}

#tab-sync .wp-list-table,
#tab-sync .widefat {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

#tab-sync .wp-list-table thead,
#tab-sync .widefat thead {
    background: #f8fafc;
}

#tab-sync .button.button-primary,
#tab-settings .button.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.2);
}

#tab-sync .button.button-primary:hover,
#tab-settings .button.button-primary:hover {
    box-shadow: 0 12px 24px rgba(118, 75, 162, 0.25);
}

#tab-sync .vulnity-sync-shell {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

#tab-sync .vulnity-sync-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
}

#tab-sync .vulnity-sync-panel-wide {
    grid-column: auto;
}

#tab-sync .vulnity-sync-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

#tab-sync .vulnity-sync-header h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #0f172a;
}

#tab-sync .vulnity-sync-header p {
    margin: 4px 0 0;
    color: #64748b;
}

#tab-sync .vulnity-sync-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 10px;
    white-space: nowrap;
}

#tab-sync .vulnity-sync-pill.is-success {
    border-color: #b7ebd0;
    background: #eafbf2;
    color: #166534;
}

#tab-sync .vulnity-sync-pill.is-warning {
    border-color: #fde3b0;
    background: #fff7e6;
    color: #9a3412;
}

#tab-sync .vulnity-sync-pill.is-danger {
    border-color: #f4c7cf;
    background: #fff1f2;
    color: #9f1239;
}

#tab-sync .vulnity-sync-pill.is-info {
    border-color: #cdd8ff;
    background: #eef2ff;
    color: #3730a3;
}

#tab-sync .vulnity-sync-pill.is-neutral {
    border-color: #dbe2ea;
    background: #f8fafc;
    color: #334155;
}

#tab-sync .vulnity-sync-rows {
    display: grid;
    gap: 6px;
}

#tab-sync .vulnity-sync-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
}

#tab-sync .vulnity-sync-row:last-child {
    border-bottom: none;
}

#tab-sync .vulnity-sync-row .sync-label {
    color: #64748b;
    font-weight: 600;
}

#tab-sync .vulnity-sync-row .sync-value {
    color: #0f172a;
    font-weight: 500;
    overflow-wrap: anywhere;
}

#tab-sync .vulnity-sync-action-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 4px;
}

#tab-sync #sync-inventory-btn {
    min-height: 52px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
    width: min(100%, 420px);
    text-align: center;
}

#tab-sync #sync-result {
    display: block;
    width: 100%;
    text-align: center;
    min-height: 18px;
}

#tab-sync .vulnity-sync-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

#tab-sync .vulnity-sync-checklist li {
    position: relative;
    padding-left: 16px;
    color: #334155;
    line-height: 1.35;
}

#tab-sync .vulnity-sync-checklist li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6366f1;
}

#tab-sync .vulnity-sync-policy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

#tab-sync .vulnity-sync-policy-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#tab-sync .vulnity-sync-policy-item .policy-label {
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
}

#tab-sync .vulnity-sync-policy-item .policy-value {
    color: #0f172a;
    font-weight: 700;
}

#tab-sync .vulnity-sync-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

#tab-sync .vulnity-sync-mini-grid.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#tab-sync .vulnity-sync-mini-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#tab-sync .vulnity-sync-mini-item .mini-label {
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
}

#tab-sync .vulnity-sync-mini-item .mini-value {
    color: #0f172a;
    font-weight: 700;
}

#tab-sync .vulnity-sync-subpanel {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px;
}

#tab-sync .vulnity-sync-subpanel h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #334155;
}

#tab-sync .vulnity-sync-table {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

#tab-sync .vulnity-sync-table thead {
    background: #f8fafc;
}

#tab-sync .vulnity-sync-table th,
#tab-sync .vulnity-sync-table td {
    padding: 10px 12px;
}

#tab-sync .vulnity-sync-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    background: #f8fafc;
    color: #334155;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
}

#tab-sync .vulnity-sync-badge.is-success {
    border-color: #b7ebd0;
    background: #eafbf2;
    color: #166534;
}

#tab-sync .vulnity-sync-badge.is-warning {
    border-color: #fde3b0;
    background: #fff7e6;
    color: #9a3412;
}

#tab-sync .vulnity-sync-badge.is-neutral {
    border-color: #dbe2ea;
    background: #f8fafc;
    color: #475569;
}

@media (max-width: 1180px) {
    #tab-sync .vulnity-sync-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #tab-sync .vulnity-sync-policy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #tab-sync .vulnity-sync-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    #tab-sync .vulnity-sync-shell {
        grid-template-columns: 1fr;
    }

    #tab-sync .vulnity-sync-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    #tab-sync .vulnity-sync-header {
        flex-direction: column;
    }

    #tab-sync .vulnity-sync-policy-grid,
    #tab-sync .vulnity-sync-mini-grid {
        grid-template-columns: 1fr;
    }
}

#tab-settings .button {
    border-radius: 8px;
}

#tab-settings .vulnity-settings-shell {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    min-height: min(74vh, 860px);
}

#tab-settings .vulnity-settings-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

#tab-settings .vulnity-settings-panel-main {
    grid-column: auto;
}

#tab-settings .vulnity-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

#tab-settings .vulnity-settings-header h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: #0f172a;
}

#tab-settings .vulnity-settings-header p {
    margin: 6px 0 0;
    color: #64748b;
}

#tab-settings .vulnity-settings-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 10px;
    white-space: nowrap;
}

#tab-settings .vulnity-settings-pill-online {
    border-color: #c9f1dd;
    background: #ecfdf3;
    color: #0f5132;
}

#tab-settings .vulnity-settings-details {
    display: grid;
    gap: 8px;
}

#tab-settings .vulnity-settings-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
    min-width: 0;
}

#tab-settings .vulnity-settings-row:last-child {
    border-bottom: 0;
}

#tab-settings .vulnity-settings-label {
    color: #64748b;
    font-weight: 600;
}

#tab-settings .vulnity-settings-value {
    color: #0f172a;
}

#tab-settings .vulnity-settings-code {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
}

#tab-settings .vulnity-settings-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

#tab-settings .vulnity-settings-action-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    background: #f8fafc;
}

#tab-settings .vulnity-settings-action-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

#tab-settings .vulnity-settings-action-card p {
    margin: 0 0 10px;
    color: #64748b;
}

#tab-settings .vulnity-settings-action-danger {
    border-color: #f3d2d7;
    background: #fff8f8;
}

#tab-settings .vulnity-settings-action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#tab-settings .vulnity-settings-language-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    background: #f8fafc;
    display: grid;
    gap: 10px;
}

#tab-settings .vulnity-settings-language-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#tab-settings .vulnity-settings-language-header h3 {
    margin: 0;
    font-size: 16px;
    color: #0f172a;
}

#tab-settings .vulnity-settings-language-card p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

#tab-settings .vulnity-settings-language-switch {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

#tab-settings .vulnity-settings-language-switch .vulnity-language-option {
    min-width: 110px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
    transition: all 0.2s ease;
}

#tab-settings .vulnity-settings-language-switch .vulnity-language-option:hover {
    border-color: #a5b4fc;
    color: #312e81;
}

#tab-settings .vulnity-settings-language-switch .vulnity-language-option.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.22);
}

#tab-settings .vulnity-settings-sensor-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

#tab-settings .vulnity-settings-sensor-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 13px;
    color: #0f172a;
}

#tab-settings .vulnity-settings-sensor-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

#tab-settings .vulnity-settings-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

#tab-settings .vulnity-settings-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 12px;
}

#tab-settings .vulnity-settings-metric .metric-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

#tab-settings .vulnity-settings-metric .metric-value {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

#tab-settings .vulnity-settings-about {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #334155;
}

#tab-settings .vulnity-settings-about p {
    margin: 0;
}

#tab-settings .vulnity-settings-subpanel {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 14px;
}

#tab-settings .vulnity-settings-subpanel h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #334155;
}

#tab-settings .vulnity-settings-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#tab-settings .vulnity-settings-mini-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    min-width: 0;
}

#tab-settings .vulnity-settings-mini-item .mini-label {
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
}

#tab-settings .vulnity-settings-mini-item .mini-value {
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#tab-settings .vulnity-settings-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

#tab-settings .vulnity-settings-checklist li {
    position: relative;
    padding-left: 16px;
    color: #334155;
    line-height: 1.35;
}

#tab-settings .vulnity-settings-checklist li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6366f1;
}

@media (max-width: 820px) {
    #tab-settings .vulnity-settings-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    #tab-settings .vulnity-settings-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    #tab-settings .vulnity-settings-header {
        flex-direction: column;
    }

    #tab-settings .vulnity-settings-sensor-list {
        grid-template-columns: 1fr;
    }

    #tab-settings .vulnity-settings-mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 821px) and (max-width: 1240px) {
    #tab-settings .vulnity-settings-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: auto;
    }

    #tab-settings .vulnity-settings-panel-main {
        grid-column: 1 / -1;
    }
}

/* Hardening visual refresh */
#tab-hardening .vulnity-hardening-shell {
    padding: 20px;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

#tab-hardening .vulnity-hardening-hero {
    padding: 16px 18px;
    gap: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

#tab-hardening .vulnity-hero-text h2 {
    font-size: 22px;
    margin: 4px 0 6px;
}

#tab-hardening .vulnity-hero-metric {
    background: #ffffff;
    color: #0f172a;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--v-accent);
    box-shadow: none;
    padding: 12px 14px;
}

#tab-hardening .vulnity-hero-metric .metric-label {
    color: #64748b;
}

#tab-hardening .vulnity-hero-metric .metric-value {
    color: #0f172a;
    font-size: 17px;
}

#tab-hardening .vulnity-hardening-highlight-grid {
    gap: 12px;
    margin-top: 12px;
}

#tab-hardening .vulnity-hardening-metric {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

#tab-hardening .metric-label {
    color: #64748b;
    letter-spacing: 0.03em;
}

#tab-hardening .metric-value {
    color: #0f172a;
}

#tab-hardening .vulnity-hardening-config-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

#tab-hardening .vulnity-hardening-config-form {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 16px;
}

#tab-hardening .vulnity-hardening-config-form form {
    gap: 14px;
}

#tab-hardening .vulnity-hardening-pill {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

#tab-hardening .vulnity-hardening-pill code {
    background: #e2e8f0;
    color: #0f172a;
}

#tab-hardening .vulnity-hardening-pill--soft {
    background: #e0f2fe;
    color: #075985;
    border-color: #bae6fd;
}

#tab-hardening .vulnity-hardening-grid {
    gap: 14px;
    margin: 12px 0 18px;
}

#tab-hardening .vulnity-hardening-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#tab-hardening .vulnity-hardening-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

#tab-hardening .vulnity-hardening-chip.active {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

#tab-hardening .vulnity-hardening-chip.inactive {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

#tab-hardening .vulnity-hardening-impact {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}
