/* ========================================
   SEO FURY — Modern Admin UI 2026
   Clean, airy, with depth and color
======================================== */

:root {
    --sf-primary: #4F46E5;
    --sf-primary-dark: #4338CA;
    --sf-primary-light: #EEF2FF;
    --sf-primary-50: #E8E5FF;
    --sf-accent: #F59E0B;
    --sf-accent-light: #FEF3C7;
    --sf-success: #10B981;
    --sf-success-light: #ECFDF5;
    --sf-danger: #EF4444;
    --sf-danger-light: #FEF2F2;
    --sf-warning: #F59E0B;
    --sf-warning-light: #FFFBEB;
    --sf-dark: #0F172A;
    --sf-gray-900: #1E293B;
    --sf-gray-700: #334155;
    --sf-gray-500: #64748B;
    --sf-gray-400: #94A3B8;
    --sf-gray-300: #CBD5E1;
    --sf-gray-200: #E2E8F0;
    --sf-gray-100: #F1F5F9;
    --sf-gray-50: #F8FAFC;
    --sf-white: #FFFFFF;
    --sf-radius: 12px;
    --sf-radius-sm: 8px;
    --sf-radius-xs: 6px;
    --sf-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --sf-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --sf-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --sf-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --sf-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --sf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   MAIN WRAP
======================================== */

.seo-plugin-wrap {
    margin: 20px 20px 0 0;
    font-family: var(--sf-font);
}

.seo-plugin-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    padding: 0;
    line-height: 1.3;
    color: var(--sf-dark);
}

.seo-plugin-title .dashicons,
.seo-fury-title-icon {
    font-size: 28px;
    width: 28px;
    height: 28px;
    fill: var(--sf-primary);
    vertical-align: middle;
    margin-right: 4px;
}

/* ========================================
   MAIN CONTAINER
======================================== */

.seo-plugin-container {
    display: flex;
    gap: 0;
    background: var(--sf-white);
    border: 1px solid var(--sf-gray-200);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow-md);
    overflow: hidden;
}

/* ========================================
   SIDEBAR
======================================== */

.seo-sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--sf-gray-50) 0%, var(--sf-white) 100%);
    border-right: 1px solid var(--sf-gray-200);
    display: flex;
    flex-direction: column;
    min-height: 640px;
}

.seo-sidebar-nav {
    flex: 1;
    padding: 8px 0;
}

.seo-sidebar-group {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--sf-gray-400);
    padding: 12px 20px 4px;
    margin-top: 4px;
}

.seo-sidebar-group:first-child {
    margin-top: 0;
    padding-top: 8px;
}

.seo-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: var(--sf-gray-500);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--sf-transition);
    border-left: 3px solid transparent;
    margin: 1px 0;
}

.seo-sidebar-item:hover {
    background: var(--sf-primary-light);
    color: var(--sf-primary);
    border-left-color: transparent;
}

.seo-sidebar-item.active {
    background: var(--sf-primary-light);
    color: var(--sf-primary);
    border-left-color: var(--sf-primary);
    font-weight: 600;
}

.seo-sidebar-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    opacity: 0.75;
    transition: var(--sf-transition);
}

.seo-sidebar-item:hover .dashicons,
.seo-sidebar-item.active .dashicons {
    opacity: 1;
}

.seo-sidebar-item-text {
    flex: 1;
}

.seo-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--sf-gray-200);
    font-size: 12px;
    color: var(--sf-gray-400);
    background: var(--sf-gray-50);
}

.seo-sidebar-footer p {
    margin: 3px 0;
}

.seo-sidebar-footer strong {
    color: var(--sf-gray-500);
}

/* ========================================
   CONTENT AREA
======================================== */

.seo-content {
    flex: 1;
    min-width: 0;
}

.seo-content-header {
    padding: 20px 32px;
    border-bottom: 1px solid var(--sf-gray-200);
    background: var(--sf-gray-50);
}

.seo-content-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sf-dark);
}

.seo-content-header .dashicons {
    color: var(--sf-primary);
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.seo-content-description {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: var(--sf-gray-500);
    line-height: 1.5;
    font-weight: 400;
}

.seo-content-body {
    padding: 32px;
}

/* ========================================
   FORMS
======================================== */

.seo-content-body .form-table {
    margin-top: 0;
}

.seo-content-body .form-table th {
    padding: 16px 12px 16px 0;
    width: 200px;
    font-weight: 600;
    font-size: 13px;
    color: var(--sf-gray-700);
}

.seo-content-body .form-table td {
    padding: 16px 12px;
}

.seo-content-body textarea.large-text {
    width: 100%;
    max-width: 800px;
    border-radius: var(--sf-radius-xs);
    border: 1px solid var(--sf-gray-300);
    padding: 12px;
    font-size: 13px;
    transition: var(--sf-transition);
}

.seo-content-body textarea.large-text:focus {
    border-color: var(--sf-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

.seo-content-body input.regular-text,
.seo-content-body input[type="text"],
.seo-content-body input[type="number"],
.seo-content-body input[type="url"],
.seo-content-body input[type="email"] {
    max-width: 500px;
    border-radius: var(--sf-radius-xs);
    border: 1px solid var(--sf-gray-300);
    padding: 8px 12px;
    font-size: 13px;
    transition: var(--sf-transition);
}

.seo-content-body input[type="text"]:focus,
.seo-content-body input[type="number"]:focus,
.seo-content-body input[type="url"]:focus,
.seo-content-body input[type="email"]:focus,
.seo-content-body input.regular-text:focus {
    border-color: var(--sf-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

.seo-content-body select {
    border-radius: var(--sf-radius-xs);
    border: 1px solid var(--sf-gray-300);
    padding: 8px 12px;
    font-size: 13px;
    transition: var(--sf-transition);
    background: var(--sf-white);
}

.seo-content-body select:focus {
    border-color: var(--sf-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

.seo-content-body .description {
    color: var(--sf-gray-400);
    font-size: 12.5px;
    margin-top: 6px;
}

.seo-content-body code {
    background: var(--sf-gray-100);
    border: 1px solid var(--sf-gray-200);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 12.5px;
    color: var(--sf-primary-dark);
}

/* WordPress buttons override */
.seo-content-body .button {
    border-radius: var(--sf-radius-xs) !important;
    font-weight: 500 !important;
    transition: var(--sf-transition) !important;
}

.seo-content-body .button-primary {
    background: var(--sf-primary) !important;
    border-color: var(--sf-primary-dark) !important;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2) !important;
}

.seo-content-body .button-primary:hover {
    background: var(--sf-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--sf-shadow-md) !important;
}

.seo-content-body .button-secondary,
.seo-content-body .button:not(.button-primary):not(.button-link) {
    border-color: var(--sf-gray-300) !important;
    color: var(--sf-gray-700) !important;
}

.seo-content-body .button-secondary:hover,
.seo-content-body .button:not(.button-primary):not(.button-link):hover {
    border-color: var(--sf-gray-400) !important;
    background: var(--sf-gray-50) !important;
}

.seo-content-body .submit .button-primary {
    padding: 8px 24px !important;
    height: auto !important;
    font-size: 13px !important;
}

/* ========================================
   META TITLES LAYOUT
======================================== */

.seo-meta-titles-layout {
    display: flex;
    gap: 0;
    border: 1px solid var(--sf-gray-200);
    background: var(--sf-white);
    min-height: 600px;
    border-radius: var(--sf-radius-sm);
    overflow: hidden;
}

.seo-meta-titles-nav {
    width: 260px;
    background: var(--sf-gray-50);
    border-right: 1px solid var(--sf-gray-200);
    padding: 10px 0;
}

.seo-meta-nav-item {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--sf-gray-500);
    cursor: pointer;
    text-align: left;
    border-left: 3px solid transparent;
    transition: var(--sf-transition);
}

.seo-meta-nav-item:hover {
    background: var(--sf-primary-light);
    color: var(--sf-primary);
}

.seo-meta-nav-item.active {
    background: var(--sf-primary-light);
    color: var(--sf-primary);
    border-left-color: var(--sf-primary);
    font-weight: 600;
}

.seo-meta-nav-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.seo-meta-nav-heading {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--sf-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 10px;
}

.seo-meta-titles-panels {
    flex: 1;
    padding: 24px 30px;
}

.seo-meta-panel {
    display: none;
}

.seo-meta-panel.active {
    display: block;
}

.seo-meta-panel h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
    color: var(--sf-dark);
}

.seo-meta-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--sf-gray-100);
}

.seo-meta-section:last-child {
    border-bottom: none;
}

.seo-meta-template-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.seo-meta-template-field {
    flex: 1;
}

.seo-meta-template-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--sf-gray-700);
}

.seo-meta-template-field input.regular-text {
    width: 100%;
    max-width: 100%;
}

/* ========================================
   CARDS
======================================== */

.seo-card {
    background: var(--sf-white);
    border: 1px solid var(--sf-gray-200);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--sf-shadow-sm);
    border-radius: var(--sf-radius-sm);
    transition: var(--sf-transition);
}

.seo-card:hover {
    box-shadow: var(--sf-shadow);
}

.seo-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--sf-gray-100);
    padding-bottom: 12px;
    color: var(--sf-dark);
}

.seo-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--sf-dark);
}

/* Icon cards */
.seo-card-icon {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--sf-white);
    border: 1px solid var(--sf-gray-200);
    border-radius: var(--sf-radius-sm);
    margin-bottom: 20px;
    transition: var(--sf-transition);
}

.seo-card-icon:hover {
    box-shadow: var(--sf-shadow-md);
    transform: translateY(-2px);
    border-color: var(--sf-primary-50);
}

.seo-card-icon .icon {
    font-size: 32px;
    color: var(--sf-primary);
    flex-shrink: 0;
}

.seo-card-icon .content {
    flex: 1;
}

.seo-card-icon .content h3 {
    margin: 0 0 6px 0;
    border: none;
    padding: 0;
}

.seo-card-icon .content p {
    margin: 0;
    color: var(--sf-gray-500);
    font-size: 13px;
}

/* ========================================
   TABLES
======================================== */

.seo-redirects-container,
.seo-indexnow-container {
    max-width: none;
}

#redirects-table,
#indexnow-history-table,
#log-404-table {
    margin-top: 16px;
    border-radius: var(--sf-radius-sm);
    overflow: hidden;
    border: 1px solid var(--sf-gray-200);
    table-layout: fixed;
    width: 100%;
}

#redirects-table td,
#redirects-table th,
#log-404-table td,
#log-404-table th {
    word-break: break-all;
    overflow-wrap: anywhere;
}

#redirects-table th,
#indexnow-history-table th,
#log-404-table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--sf-gray-500);
    background: var(--sf-gray-50);
    border-bottom: 2px solid var(--sf-gray-200);
}

#redirects-table td,
#indexnow-history-table td,
#log-404-table td {
    vertical-align: middle;
    font-size: 13px;
    border-bottom-color: var(--sf-gray-100);
}

#redirects-table tr:hover td,
#indexnow-history-table tr:hover td,
#log-404-table tr:hover td {
    background: var(--sf-gray-50);
}

.redirect-actions button,
.indexnow-actions button {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* ========================================
   ALERTS & NOTICES
======================================== */

.notice {
    margin: 20px 0;
    padding: 12px 16px;
    border-radius: var(--sf-radius-xs);
}

.seo-alert {
    padding: 16px 20px;
    margin: 16px 0;
    border-left: 4px solid;
    border-radius: var(--sf-radius-xs);
    font-size: 13px;
}

.seo-alert.info {
    border-left-color: var(--sf-primary);
    background: var(--sf-primary-light);
    color: var(--sf-primary-dark);
}

.seo-alert.warning {
    border-left-color: var(--sf-warning);
    background: var(--sf-warning-light);
    color: #92400E;
}

.seo-alert.success {
    border-left-color: var(--sf-success);
    background: var(--sf-success-light);
    color: #065F46;
}

.seo-alert.error {
    border-left-color: var(--sf-danger);
    background: var(--sf-danger-light);
    color: #991B1B;
}

/* ========================================
   MODALS
======================================== */

.seo-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}

.seo-modal-content {
    background-color: var(--sf-white);
    margin: 5% auto;
    padding: 32px;
    border: none;
    width: 600px;
    max-width: 90%;
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
    animation: sf-modal-in 0.25s ease-out;
}

@keyframes sf-modal-in {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.seo-modal-close {
    color: var(--sf-gray-400);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: var(--sf-transition);
}

.seo-modal-close:hover,
.seo-modal-close:focus {
    color: var(--sf-dark);
}

.seo-modal h2 {
    margin-top: 0;
    color: var(--sf-dark);
    font-size: 18px;
}

/* ========================================
   PROGRESS BAR
======================================== */

#indexnow-progress {
    margin-top: 20px;
}

#indexnow-progress > div {
    background: var(--sf-gray-100);
    border-radius: 50px;
    height: 28px;
    position: relative;
    overflow: hidden;
}

#indexnow-progress-bar {
    background: linear-gradient(135deg, var(--sf-primary), #7C3AED);
    height: 100%;
    width: 0;
    transition: width 0.3s;
    border-radius: 50px;
}

#indexnow-progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 12px;
    color: var(--sf-dark);
}

#indexnow-progress-status {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--sf-gray-500);
}

/* ========================================
   OPERATION RESULTS
======================================== */

#indexnow-submit-result,
#indexnow-key-status {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--sf-radius-xs);
    font-size: 13px;
}

#indexnow-submit-result.success,
#indexnow-key-status.success {
    background: var(--sf-success-light);
    border-left: 4px solid var(--sf-success);
    color: #065F46;
}

#indexnow-submit-result.error,
#indexnow-key-status.error {
    background: var(--sf-danger-light);
    border-left: 4px solid var(--sf-danger);
    color: #991B1B;
}

/* ========================================
   SITEMAP LINKS
======================================== */

.seo-sitemap-links {
    margin-top: 30px;
    padding: 20px;
    background: var(--sf-gray-50);
    border: 1px solid var(--sf-gray-200);
    border-radius: var(--sf-radius-sm);
}

.seo-sitemap-links h2 {
    margin-top: 0;
    font-size: 15px;
    color: var(--sf-dark);
}

.seo-sitemap-links p {
    margin: 10px 0;
}

.seo-sitemap-links a {
    color: var(--sf-primary);
    font-weight: 500;
}

.seo-sitemap-links a:hover {
    color: var(--sf-primary-dark);
}

/* ========================================
   DETAILS / SUMMARY
======================================== */

details {
    margin-top: 16px;
}

details summary {
    cursor: pointer;
    font-weight: 600;
    padding: 12px 16px;
    background: var(--sf-gray-50);
    border: 1px solid var(--sf-gray-200);
    border-radius: var(--sf-radius-xs);
    font-size: 13px;
    color: var(--sf-gray-700);
    transition: var(--sf-transition);
}

details summary:hover {
    background: var(--sf-white);
    border-color: var(--sf-primary);
    color: var(--sf-primary);
}

details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--sf-primary);
    color: var(--sf-primary);
    background: var(--sf-primary-light);
}

details pre {
    background: var(--sf-gray-50);
    padding: 14px;
    border: 1px solid var(--sf-gray-200);
    border-top: none;
    margin-top: 0;
    max-height: 300px;
    overflow: auto;
    border-radius: 0 0 var(--sf-radius-xs) var(--sf-radius-xs);
    font-size: 12px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {
    .seo-plugin-container {
        flex-direction: column;
    }

    .seo-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--sf-gray-200);
        min-height: auto;
    }

    .seo-sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
    }

    .seo-sidebar-group {
        display: none;
    }

    .seo-sidebar-item {
        flex: 1 1 200px;
        border-left: none;
        border-bottom: 3px solid transparent;
        justify-content: center;
        padding: 10px 12px;
    }

    .seo-sidebar-item.active {
        border-left: none;
        border-bottom-color: var(--sf-primary);
    }

    .seo-sidebar-footer {
        display: none;
    }
}

@media (max-width: 768px) {
    .seo-content-body {
        padding: 16px;
    }

    .seo-content-header {
        padding: 16px;
    }

    .seo-modal-content {
        margin: 10% 5%;
        padding: 24px;
    }

    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
    }

    .form-table th {
        padding-bottom: 5px;
    }
}

/* ========================================
   BUTTONS
======================================== */

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button.button-large {
    height: auto;
    padding: 10px 20px;
    font-size: 14px;
}

/* ========================================
   SEPARATORS
======================================== */

hr.seo-separator {
    margin: 32px 0;
    border: none;
    border-top: 1px solid var(--sf-gray-200);
}

/* ========================================
   LICENSE
======================================== */

.seo-license-container {
    max-width: 1200px;
}

.license-active,
.license-inactive {
    background: var(--sf-white);
    border: 1px solid var(--sf-gray-200);
    padding: 32px;
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
}

.license-active {
    border-left: 4px solid var(--sf-success);
    background: linear-gradient(135deg, var(--sf-success-light) 0%, var(--sf-white) 60%);
}

.license-inactive {
    border-left: 4px solid var(--sf-warning);
    background: linear-gradient(135deg, var(--sf-warning-light) 0%, var(--sf-white) 60%);
}

.license-active h3 {
    color: var(--sf-success);
    margin-top: 0;
    font-size: 18px;
}

.license-inactive h3 {
    color: var(--sf-dark);
    margin-top: 0;
    font-size: 18px;
}

#license-activation-result,
#license-check-result {
    display: none;
    padding: 16px 20px;
    border-radius: var(--sf-radius-xs);
    margin-top: 16px;
    border-left: 4px solid;
    font-size: 13px;
}

#license-activation-result.success,
#license-check-result.success {
    background: var(--sf-success-light);
    border-left-color: var(--sf-success);
    color: #065F46;
}

#license-activation-result.error,
#license-check-result.error {
    background: var(--sf-danger-light);
    border-left-color: var(--sf-danger);
    color: #991B1B;
}

#license-activation-result.warning,
#license-check-result.warning {
    background: var(--sf-warning-light);
    border-left-color: var(--sf-warning);
    color: #92400E;
}

.license-active code {
    background: var(--sf-gray-100);
    padding: 8px 14px;
    border-radius: var(--sf-radius-xs);
    font-size: 13px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    display: inline-block;
    border: 1px solid var(--sf-gray-200);
    transition: var(--sf-transition);
    letter-spacing: 0.5px;
}

.license-active code:hover {
    background: var(--sf-primary);
    color: var(--sf-white);
    border-color: var(--sf-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Pricing grid in license tab */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.pricing-card {
    border: 2px solid var(--sf-gray-200);
    padding: 20px;
    border-radius: var(--sf-radius-sm);
    text-align: center;
    transition: var(--sf-transition);
    background: var(--sf-white);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sf-shadow-lg);
}

.pricing-card.featured {
    border-color: var(--sf-primary);
    background: var(--sf-primary-light);
}

.pricing-card h4 {
    margin-top: 0;
    font-size: 16px;
    font-weight: 700;
}

.pricing-card .price {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--sf-primary), #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    font-size: 13px;
    text-align: left;
}

.pricing-card ul li {
    margin: 6px 0;
    padding-left: 5px;
}

@media (max-width: 768px) {
    .license-active,
    .license-inactive {
        padding: 20px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PRO BADGES & FEATURES
======================================== */

.seo-fury-pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--sf-primary) 0%, #7C3AED 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: help;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25);
}

.seo-fury-pro-badge:hover {
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
    transition: var(--sf-transition);
}

.seo-fury-upgrade-notice {
    background: linear-gradient(135deg, var(--sf-primary) 0%, #7C3AED 100%);
    color: white;
    padding: 16px 22px;
    border-radius: var(--sf-radius-sm);
    margin: 20px 0;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    font-size: 13px;
}

.seo-fury-upgrade-notice a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.seo-fury-upgrade-notice a:hover {
    color: var(--sf-accent-light);
    text-decoration: none;
}

/* Usage indicator */
.seo-fury-usage-indicator {
    background: var(--sf-white);
    border: 1px solid var(--sf-gray-200);
    border-radius: var(--sf-radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--sf-shadow-sm);
}

.seo-fury-usage-indicator .usage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.seo-fury-usage-indicator .usage-label {
    font-size: 13px;
    color: var(--sf-gray-700);
    font-weight: 500;
}

.seo-fury-usage-indicator .usage-progress {
    background: var(--sf-gray-100);
    height: 10px;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.seo-fury-usage-indicator .usage-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--sf-primary) 0%, #7C3AED 100%);
    transition: width 0.5s ease, background 0.3s ease;
    border-radius: 50px;
}

.seo-fury-usage-indicator .usage-progress-bar.warning {
    background: linear-gradient(135deg, var(--sf-warning) 0%, #D97706 100%);
}

.seo-fury-usage-indicator .usage-progress-bar.danger {
    background: linear-gradient(135deg, var(--sf-danger) 0%, #DC2626 100%);
}

/* PRO feature overlay */
.seo-pro-feature {
    position: relative;
}

.seo-pro-feature.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.seo-pro-feature.disabled::after {
    content: 'PRO';
    position: absolute;
    top: 50%;
    right: -70px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--sf-primary) 0%, #7C3AED 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

/* ========================================
   CHANGELOG
======================================== */

.seo-changelog-container {
    max-width: 1200px;
}

.changelog-version {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--sf-gray-50);
    border-left: 4px solid var(--sf-primary);
    border-radius: var(--sf-radius-sm);
    transition: var(--sf-transition);
}

.changelog-version:hover {
    box-shadow: var(--sf-shadow);
    background: var(--sf-white);
}

.changelog-version h3 {
    margin: 0 0 16px 0;
    font-size: 17px;
    color: var(--sf-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    padding: 0;
}

.changelog-version h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 12px;
    border-radius: 50px;
}

.changelog-version ul {
    margin: 0;
    padding-left: 24px;
}

.changelog-version ul li {
    margin-bottom: 6px;
    line-height: 1.6;
    font-size: 13px;
    color: var(--sf-gray-700);
}

.changelog-version .dashicons {
    vertical-align: middle;
}

/* Changelog type colors */
.changelog-version h4 .dashicons-plus {
    color: var(--sf-success);
}

.changelog-version h4 .dashicons-arrow-up-alt {
    color: var(--sf-primary);
}

.changelog-version h4 .dashicons-dismiss {
    color: var(--sf-danger);
}

/* 404 stats cards */
#404-stats > div {
    border-radius: var(--sf-radius-sm) !important;
    border: 1px solid var(--sf-gray-200);
}

#404-stats > div > div:first-child {
    font-weight: 700 !important;
}

/* Tooltip-like code in 404 table */
#log-404-table td code {
    word-break: break-word !important;
    white-space: normal !important;
    display: block;
    max-width: 100%;
    font-size: 12px;
    background: var(--sf-gray-100);
    padding: 4px 8px;
    border-radius: 4px;
}

#log-404-table .error-404-actions {
    white-space: nowrap;
}

#log-404-table .error-404-actions .button {
    margin-bottom: 3px;
}

/* ========================================
   CODE COPY BUTTON
======================================== */

.seo-fury-code-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 700px;
}

.seo-fury-code-inline {
    margin: 0;
    padding: 10px 16px;
    background: var(--sf-gray-50);
    border: 1px solid var(--sf-gray-200);
    border-radius: var(--sf-radius-xs);
    font-size: 13px;
    overflow-x: auto;
}

.seo-fury-code-inline code {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: var(--sf-gray-700);
}

.seo-fury-copy-btn {
    background: var(--sf-white);
    border: 1px solid var(--sf-gray-300);
    border-radius: var(--sf-radius-xs);
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--sf-transition);
    color: var(--sf-gray-500);
    flex-shrink: 0;
}

.seo-fury-copy-btn:hover {
    background: var(--sf-primary-light);
    border-color: var(--sf-primary);
    color: var(--sf-primary);
}

.seo-fury-copy-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.seo-fury-copy-btn .dashicons-yes {
    color: var(--sf-success);
}

/* ========================================
   ADMIN SHORTCODE DROPDOWNS
======================================== */

.seo-admin-input-with-dropdown {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.seo-admin-input-with-dropdown input.regular-text {
    width: 100%;
    max-width: 100%;
    padding-right: 36px;
}

.seo-admin-shortcode-btn {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-gray-50);
    border: none;
    border-left: 1px solid var(--sf-gray-200);
    border-radius: 0 var(--sf-radius-xs) var(--sf-radius-xs) 0;
    cursor: pointer;
    color: var(--sf-gray-500);
    transition: var(--sf-transition);
    padding: 0;
}

.seo-admin-shortcode-btn:hover {
    background: var(--sf-gray-100);
    color: var(--sf-primary);
}

.seo-admin-shortcode-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.seo-admin-shortcode-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1000;
    background: var(--sf-white);
    border: 1px solid var(--sf-gray-200);
    border-radius: var(--sf-radius-sm);
    box-shadow: var(--sf-shadow-lg);
    min-width: 300px;
    max-height: 360px;
    overflow-y: auto;
    margin-top: 2px;
}

.seo-admin-shortcode-menu.active {
    display: block;
}

/* Search in admin shortcode dropdown */
.seo-admin-shortcode-menu .sf-shortcode-search-wrap {
    padding: 8px 10px;
    border-bottom: 1px solid var(--sf-gray-200);
    position: sticky;
    top: 0;
    background: var(--sf-white);
    z-index: 1;
}

.seo-admin-shortcode-menu .sf-shortcode-search {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--sf-gray-300);
    border-radius: var(--sf-radius-xs);
    font-size: 12px;
    color: var(--sf-gray-900);
    background: var(--sf-gray-50);
    outline: none;
    box-sizing: border-box;
}

.seo-admin-shortcode-menu .sf-shortcode-search:focus {
    border-color: var(--sf-primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}

.seo-admin-shortcode-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    border-bottom: 1px solid var(--sf-gray-100);
    transition: var(--sf-transition);
}

.seo-admin-shortcode-item:last-child {
    border-bottom: none;
}

.seo-admin-shortcode-item:hover {
    background: var(--sf-primary-light);
    color: var(--sf-primary);
}

.seo-admin-shortcode-item strong {
    color: var(--sf-primary);
    font-family: monospace;
    font-size: 11px;
    white-space: nowrap;
}

.seo-admin-shortcode-item span {
    color: var(--sf-gray-500);
    font-size: 11px;
}

/* ========================================
   POST TYPE SETTINGS SECTIONS
======================================== */

.seo-meta-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--sf-gray-100);
}

.seo-meta-section h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--sf-gray-900);
}

.seo-meta-schema-section select {
    margin-top: 6px;
    min-width: 200px;
}

/* Toggle switch */
.seo-fury-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--sf-gray-700);
}

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

.seo-fury-toggle-slider {
    position: relative;
    width: 40px;
    height: 22px;
    background: var(--sf-gray-300);
    border-radius: 11px;
    transition: var(--sf-transition);
    flex-shrink: 0;
}

.seo-fury-toggle-slider::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    background: var(--sf-white);
    border-radius: 50%;
    transition: var(--sf-transition);
    box-shadow: var(--sf-shadow-sm);
}

.seo-fury-toggle input:checked + .seo-fury-toggle-slider {
    background: var(--sf-primary);
}

.seo-fury-toggle input:checked + .seo-fury-toggle-slider::after {
    left: 21px;
}

/* PRO badge */
.seo-fury-pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--sf-accent), #E67E22);
    color: var(--sf-white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 6px;
}

.seo-fury-pro-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.seo-fury-pro-notice {
    font-size: 12px;
    color: var(--sf-gray-500);
    font-style: italic;
    margin-top: 6px;
}

.seo-meta-graph-section fieldset {
    margin-top: 8px;
}

.seo-meta-robots-section fieldset label {
    font-size: 13px;
}

.seo-pt-robots-options {
    margin-top: 12px;
    padding: 12px;
    background: var(--sf-gray-50);
    border-radius: var(--sf-radius-sm);
    border: 1px solid var(--sf-gray-100);
}

.seo-pt-robots-advanced {
    padding: 12px;
    background: var(--sf-white);
    border-radius: var(--sf-radius-xs);
    border: 1px solid var(--sf-gray-200);
}

/* ========================================
   SERP & SOCIAL PREVIEW
======================================== */

.seo-fury-settings-preview {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 18px;
    background: var(--sf-gray-50);
    border-radius: var(--sf-radius-sm);
    border: 1px solid var(--sf-gray-200);
}

.seo-fury-settings-preview h5 {
    margin: 0 0 10px 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--sf-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Google SERP Preview */
.serp-preview-box {
    background: var(--sf-white);
    padding: 16px 20px;
    border-radius: var(--sf-radius-sm);
    border: 1px solid var(--sf-gray-200);
    max-width: 600px;
}

.serp-preview-box .serp-title {
    color: #1a0dab;
    font-size: 20px;
    line-height: 1.3;
    font-family: Arial, sans-serif;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.serp-preview-box .serp-title:hover {
    text-decoration: underline;
}

.serp-preview-box .serp-url {
    color: #006621;
    font-size: 14px;
    line-height: 1.4;
    font-family: Arial, sans-serif;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.serp-preview-box .serp-description {
    color: #545454;
    font-size: 14px;
    line-height: 1.58;
    font-family: Arial, sans-serif;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Character counts */
.serp-char-counts {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--sf-gray-400);
}

.serp-char-counts .over-limit {
    color: var(--sf-danger);
    font-weight: 600;
}

/* Social Preview */
.seo-social-preview {
    margin-top: 18px;
}

.social-preview-box {
    background: var(--sf-white);
    border: 1px solid var(--sf-gray-200);
    border-radius: var(--sf-radius-sm);
    overflow: hidden;
    max-width: 500px;
}

.social-preview-box .social-preview-image {
    background: var(--sf-gray-100);
    height: 0;
    padding-bottom: 52.5%;
    position: relative;
}

.social-preview-box .social-preview-image::after {
    content: '\f128';
    font-family: dashicons;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: var(--sf-gray-300);
}

.social-preview-box .social-preview-content {
    padding: 10px 12px;
    border-top: 1px solid var(--sf-gray-200);
}

.social-preview-box .social-preview-domain {
    color: var(--sf-gray-500);
    font-size: 12px;
    text-transform: uppercase;
    line-height: 1.3;
}

.social-preview-box .social-preview-title {
    color: var(--sf-dark);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.38;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-preview-box .social-preview-desc {
    color: var(--sf-gray-500);
    font-size: 14px;
    line-height: 1.4;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   AI API Keys provider cards
======================================== */

.seo-fury-ai-provider-card {
    background: var(--sf-white);
    border: 1px solid var(--sf-gray-200);
    border-radius: var(--sf-radius-sm);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.seo-fury-ai-provider-card h3 {
    margin: 0 0 12px 0;
    padding: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--sf-dark);
    border-bottom: 1px solid var(--sf-gray-100);
}

.seo-fury-ai-provider-card .form-table {
    margin-top: 0;
}

.seo-fury-ai-provider-card .form-table th {
    width: 120px;
    padding: 8px 10px 8px 0;
}

.seo-fury-ai-provider-card .form-table td {
    padding: 8px 10px;
}

.seo-fury-key-status {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
}

.seo-fury-key-set {
    color: var(--sf-success);
}

.seo-fury-test-result {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
}

/* ── Opening Hours table (Local SEO tab) ──────────────────────────────── */
.seo-fury-oh-table {
    border-collapse: collapse;
    min-width: 380px;
}
.seo-fury-oh-table th,
.seo-fury-oh-table td {
    padding: 6px 10px;
    vertical-align: middle;
}
.seo-fury-oh-table th {
    text-align: left;
    font-weight: 600;
    color: var(--sf-gray-600, #50575e);
    border-bottom: 1px solid #dcdcde;
    padding-bottom: 8px;
}
.seo-fury-oh-day {
    min-width: 110px;
    font-weight: 500;
}
.seo-fury-oh-open,
.seo-fury-oh-close {
    width: 72px;
    text-align: center;
    font-family: monospace;
    font-size: 14px;
    padding: 4px 6px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    transition: border-color .1s, box-shadow .1s;
}
.seo-fury-oh-open:focus,
.seo-fury-oh-close:focus {
    border-color: var(--sf-primary, #2271b1);
    box-shadow: 0 0 0 1px var(--sf-primary, #2271b1);
    outline: none;
}
.seo-fury-oh-error {
    border-color: var(--sf-danger, #d63638) !important;
    box-shadow: 0 0 0 1px var(--sf-danger, #d63638) !important;
}
.seo-fury-oh-sep {
    padding: 0 6px;
    color: #50575e;
    font-size: 16px;
}

/* ============================================================
   DIRECTION B — SaaS Command Center redesign (2026)
   Appended overrides + dark mode, scoped to .seo-plugin-wrap.
   All rules are prefixed with .seo-plugin-wrap so they win on
   specificity without editing the original declarations.
============================================================ */

/* ---- Dark theme: remap the --sf-* tokens so every token-based
        rule adapts. "auto" follows the OS; dark/light force it. ---- */
@media (prefers-color-scheme: dark){
  .seo-plugin-wrap[data-theme="auto"]{
    --sf-white:#15182a;
    --sf-gray-50:#1b1f33; --sf-gray-100:#1f2438; --sf-gray-200:#2a3050;
    --sf-gray-300:#39406a; --sf-gray-400:#6b7390; --sf-gray-500:#9aa1bd;
    --sf-gray-700:#c6cbe0; --sf-gray-900:#e8eaf6; --sf-dark:#e8eaf6;
    --sf-primary:#818cf8; --sf-primary-dark:#a78bfa;
    --sf-primary-light:#20243f; --sf-primary-50:#23284a;
    --sf-success-light:#11271f; --sf-warning-light:#2a2410; --sf-danger-light:#2a1414;
    --sf-shadow-sm:none; --sf-shadow:0 1px 2px rgba(0,0,0,.4);
    --sf-shadow-md:0 8px 30px rgba(0,0,0,.5); --sf-shadow-lg:0 10px 30px rgba(0,0,0,.55);
  }
}
.seo-plugin-wrap[data-theme="dark"]{
  --sf-white:#15182a;
  --sf-gray-50:#1b1f33; --sf-gray-100:#1f2438; --sf-gray-200:#2a3050;
  --sf-gray-300:#39406a; --sf-gray-400:#6b7390; --sf-gray-500:#9aa1bd;
  --sf-gray-700:#c6cbe0; --sf-gray-900:#e8eaf6; --sf-dark:#e8eaf6;
  --sf-primary:#818cf8; --sf-primary-dark:#a78bfa;
  --sf-primary-light:#20243f; --sf-primary-50:#23284a;
  --sf-success-light:#11271f; --sf-warning-light:#2a2410; --sf-danger-light:#2a1414;
  --sf-shadow-sm:none; --sf-shadow:0 1px 2px rgba(0,0,0,.4);
  --sf-shadow-md:0 8px 30px rgba(0,0,0,.5); --sf-shadow-lg:0 10px 30px rgba(0,0,0,.55);
}

/* Page background adapts; container gets a soft surface */
.seo-plugin-wrap{ --sf-sidebar-bg:#11132a; }
.seo-plugin-wrap .seo-plugin-container{
  background:var(--sf-white);
  border-color:var(--sf-gray-200);
}

/* ---- Sidebar: always-dark SaaS rail with grouped, pill items ---- */
.seo-plugin-wrap .seo-sidebar{
  background:var(--sf-sidebar-bg);
  border-right:1px solid rgba(255,255,255,.06);
}
.seo-plugin-wrap .seo-sidebar-group{
  color:#5b6178; padding:16px 18px 6px;
}
.seo-plugin-wrap .seo-sidebar-item{
  color:#aeb4cc; border-left:none; border-radius:10px;
  margin:1px 10px; padding:10px 12px;
}
.seo-plugin-wrap .seo-sidebar-item:hover{
  background:rgba(255,255,255,.06); color:#fff;
}
.seo-plugin-wrap .seo-sidebar-item.active{
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  color:#fff; border-left:none; box-shadow:0 4px 14px rgba(99,102,241,.35);
}
.seo-plugin-wrap .seo-sidebar-item.active .dashicons{ opacity:1; }
.seo-plugin-wrap .seo-sidebar-footer{
  background:transparent; border-top:1px solid rgba(255,255,255,.06); color:#6b7390;
}
.seo-plugin-wrap .seo-sidebar-footer strong{ color:#c6cbe0; }

/* ---- Top bar (search + actions + theme toggle) ---- */
.seo-plugin-wrap .seo-topbar{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:12px 22px; border-bottom:1px solid var(--sf-gray-200);
}
.seo-plugin-wrap .seo-topbar-search{
  flex:1; max-width:380px; display:flex; align-items:center; gap:8px;
  background:var(--sf-gray-50); border:1px solid var(--sf-gray-200);
  border-radius:999px; padding:8px 14px; color:var(--sf-gray-500); font-size:13px;
}
.seo-plugin-wrap .seo-topbar-actions{ display:flex; align-items:center; gap:10px; }
.seo-plugin-wrap .seo-theme-toggle{
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--sf-gray-200); background:var(--sf-white);
  color:var(--sf-gray-700); cursor:pointer; font-size:16px; line-height:1;
  display:inline-flex; align-items:center; justify-content:center;
}
.seo-plugin-wrap .seo-theme-toggle:hover{ background:var(--sf-gray-50); }

/* ---- Content + cards harmonised to tokens (dark-aware) ---- */
.seo-plugin-wrap .seo-content{ background:var(--sf-white); }
.seo-plugin-wrap .seo-content-header h2,
.seo-plugin-wrap .seo-content-body h3,
.seo-plugin-wrap .seo-content-body h4{ color:var(--sf-gray-900); }
.seo-plugin-wrap .seo-card{
  background:var(--sf-white); border:1px solid var(--sf-gray-200);
  border-radius:var(--sf-radius); box-shadow:var(--sf-shadow);
}
.seo-plugin-wrap[data-theme="dark"] .seo-card,
.seo-plugin-wrap .widefat,
.seo-plugin-wrap .form-table{ color:var(--sf-gray-700); }

/* ---- Dashboard landing (Direction B) ---- */
.sf-dash-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin-bottom:20px}
.sf-dash-kpi{padding:18px;display:flex;flex-direction:column;gap:4px;text-decoration:none;color:inherit}
a.sf-dash-kpi{transition:var(--sf-transition)}
a.sf-dash-kpi:hover{box-shadow:var(--sf-shadow-md);transform:translateY(-1px)}
.sf-dash-kpi-val{font-size:28px;font-weight:800;letter-spacing:-.5px;color:var(--sf-gray-900)}
.sf-dash-kpi-label{font-size:12px;color:var(--sf-gray-500)}
.sf-dash-kpi-sub{font-size:11px;color:var(--sf-gray-400)}
.sf-dash-featured{align-items:flex-start}
.sf-dash-gauge{width:64px;height:64px;border-radius:50%;background:conic-gradient(var(--gc) calc(var(--p)*1%),var(--sf-gray-200) 0);display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.sf-dash-gauge span{width:50px;height:50px;border-radius:50%;background:var(--sf-white);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;color:var(--sf-gray-900)}
.sf-dash-cards{display:grid;grid-template-columns:1.3fr 1fr;gap:16px}
.sf-dash-cards .seo-card{padding:0}
.sf-dash-card-title{margin:0;padding:14px 18px;border-bottom:1px solid var(--sf-gray-200);font-size:14px;color:var(--sf-gray-900)}
.sf-dash-card-body{padding:16px 18px}
.sf-dash-mini{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.sf-dash-mini > div{display:flex;flex-direction:column;align-items:center;padding:10px 6px;border-radius:8px;background:var(--sf-gray-50);border:1px solid var(--sf-gray-200)}
.sf-dash-mini .v{font-size:16px;font-weight:800;color:var(--sf-gray-900)}
.sf-dash-mini .l{font-size:11px;color:var(--sf-gray-500);margin-top:2px}
.sf-dash-check{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--sf-gray-200);font-size:13px;color:var(--sf-gray-700)}
.sf-dash-check:last-child{border-bottom:none}
.sf-dash-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto}
.sf-dash-dot.g{background:var(--sf-success)} .sf-dash-dot.w{background:var(--sf-warning)}
.sf-dash-fix{margin-left:auto;font-size:11px;text-decoration:none;color:var(--sf-primary);font-weight:600}
@media(max-width:900px){.sf-dash-cards{grid-template-columns:1fr}}

/* ============================================================
   DIRECTION B — dark-mode completeness for WordPress core
   elements (inputs, tables, buttons, code) that use hardcoded
   light colours. Token values are already dark in dark mode,
   so these overrides just re-point WP defaults at the tokens.
   Written for both explicit dark and auto-following-OS dark.
============================================================ */
.seo-plugin-wrap[data-theme="dark"] .seo-content input[type="text"],
.seo-plugin-wrap[data-theme="dark"] .seo-content input[type="number"],
.seo-plugin-wrap[data-theme="dark"] .seo-content input[type="url"],
.seo-plugin-wrap[data-theme="dark"] .seo-content input[type="email"],
.seo-plugin-wrap[data-theme="dark"] .seo-content input[type="search"],
.seo-plugin-wrap[data-theme="dark"] .seo-content input[type="password"],
.seo-plugin-wrap[data-theme="dark"] .seo-content textarea,
.seo-plugin-wrap[data-theme="dark"] .seo-content select{
  background:var(--sf-gray-50); color:var(--sf-gray-900); border-color:var(--sf-gray-300);
}
.seo-plugin-wrap[data-theme="dark"] .seo-content .widefat,
.seo-plugin-wrap[data-theme="dark"] .seo-content table.widefat{
  background:var(--sf-white); color:var(--sf-gray-700); border-color:var(--sf-gray-200);
}
.seo-plugin-wrap[data-theme="dark"] .seo-content .widefat td,
.seo-plugin-wrap[data-theme="dark"] .seo-content .widefat th{
  border-color:var(--sf-gray-200); color:var(--sf-gray-700); background:transparent;
}
.seo-plugin-wrap[data-theme="dark"] .seo-content .widefat thead th,
.seo-plugin-wrap[data-theme="dark"] .seo-content .widefat tfoot th{ color:var(--sf-gray-500); }
.seo-plugin-wrap[data-theme="dark"] .seo-content .widefat.striped tbody tr:nth-child(odd),
.seo-plugin-wrap[data-theme="dark"] .seo-content .striped > tbody > :nth-child(odd){ background:var(--sf-gray-50); }
.seo-plugin-wrap[data-theme="dark"] .seo-content .button:not(.button-primary){
  background:var(--sf-gray-100); color:var(--sf-gray-700); border-color:var(--sf-gray-300);
}
.seo-plugin-wrap[data-theme="dark"] .seo-content .button:not(.button-primary):hover{ background:var(--sf-gray-200); }
.seo-plugin-wrap[data-theme="dark"] .seo-content pre,
.seo-plugin-wrap[data-theme="dark"] .seo-content code{
  background:var(--sf-gray-100); color:var(--sf-gray-700); border-color:var(--sf-gray-200);
}
.seo-plugin-wrap[data-theme="dark"] .seo-content .notice,
.seo-plugin-wrap[data-theme="dark"] .seo-content .seo-alert{ background:var(--sf-gray-50); color:var(--sf-gray-700); }

@media (prefers-color-scheme: dark){
  .seo-plugin-wrap[data-theme="auto"] .seo-content input[type="text"],
  .seo-plugin-wrap[data-theme="auto"] .seo-content input[type="number"],
  .seo-plugin-wrap[data-theme="auto"] .seo-content input[type="url"],
  .seo-plugin-wrap[data-theme="auto"] .seo-content input[type="email"],
  .seo-plugin-wrap[data-theme="auto"] .seo-content input[type="search"],
  .seo-plugin-wrap[data-theme="auto"] .seo-content input[type="password"],
  .seo-plugin-wrap[data-theme="auto"] .seo-content textarea,
  .seo-plugin-wrap[data-theme="auto"] .seo-content select{
    background:var(--sf-gray-50); color:var(--sf-gray-900); border-color:var(--sf-gray-300);
  }
  .seo-plugin-wrap[data-theme="auto"] .seo-content .widefat,
  .seo-plugin-wrap[data-theme="auto"] .seo-content table.widefat{
    background:var(--sf-white); color:var(--sf-gray-700); border-color:var(--sf-gray-200);
  }
  .seo-plugin-wrap[data-theme="auto"] .seo-content .widefat td,
  .seo-plugin-wrap[data-theme="auto"] .seo-content .widefat th{
    border-color:var(--sf-gray-200); color:var(--sf-gray-700); background:transparent;
  }
  .seo-plugin-wrap[data-theme="auto"] .seo-content .widefat thead th{ color:var(--sf-gray-500); }
  .seo-plugin-wrap[data-theme="auto"] .seo-content .widefat.striped tbody tr:nth-child(odd),
  .seo-plugin-wrap[data-theme="auto"] .seo-content .striped > tbody > :nth-child(odd){ background:var(--sf-gray-50); }
  .seo-plugin-wrap[data-theme="auto"] .seo-content .button:not(.button-primary){
    background:var(--sf-gray-100); color:var(--sf-gray-700); border-color:var(--sf-gray-300);
  }
  .seo-plugin-wrap[data-theme="auto"] .seo-content pre,
  .seo-plugin-wrap[data-theme="auto"] .seo-content code{
    background:var(--sf-gray-100); color:var(--sf-gray-700); border-color:var(--sf-gray-200);
  }
  .seo-plugin-wrap[data-theme="auto"] .seo-content .notice,
  .seo-plugin-wrap[data-theme="auto"] .seo-content .seo-alert{ background:var(--sf-gray-50); color:var(--sf-gray-700); }
}

/* ============================================================
   DIRECTION B — screen design system
   Auto-cards Settings-API forms and provides shared building
   blocks (card headers, stat tiles, field grids) so every
   module screen gets the same polished, token-based look.
============================================================ */

/* Turn each settings form into a clean card with sectioned headers */
.seo-content-body > form{
  background:var(--sf-white);
  border:1px solid var(--sf-gray-200);
  border-radius:var(--sf-radius);
  box-shadow:var(--sf-shadow);
  padding:6px 24px 18px;
  margin-bottom:20px;
}
.seo-content-body > form > h2{
  font-size:15px; font-weight:600; color:var(--sf-gray-900);
  margin:20px 0 2px; padding-bottom:10px;
  border-bottom:1px solid var(--sf-gray-200);
  display:flex; align-items:center; gap:8px;
}
.seo-content-body > form > h2:first-of-type{ margin-top:10px; }
.seo-content-body > form .form-table{ margin-top:2px; }
.seo-content-body > form .form-table > tbody > tr{ border-bottom:1px solid var(--sf-gray-100); }
.seo-content-body > form .form-table > tbody > tr:last-child{ border-bottom:none; }
.seo-content-body > form p.submit{
  margin:16px 0 4px; padding-top:14px; border-top:1px solid var(--sf-gray-200);
}

/* Shared card with a header bar (for bespoke screens) */
.sf-card{
  background:var(--sf-white); border:1px solid var(--sf-gray-200);
  border-radius:var(--sf-radius); box-shadow:var(--sf-shadow);
  margin-bottom:18px; overflow:hidden;
}
.sf-card-head{
  display:flex; align-items:center; gap:10px;
  padding:14px 18px; border-bottom:1px solid var(--sf-gray-200);
}
.sf-card-head .dashicons{ color:var(--sf-primary); }
.sf-card-head h3{ margin:0; font-size:14.5px; font-weight:600; color:var(--sf-gray-900); }
.sf-card-head .sf-card-sub{ margin:2px 0 0; font-size:12px; color:var(--sf-gray-500); }
.sf-card-body{ padding:18px; }
.sf-card-body > p:first-child{ margin-top:0; }

/* Stat tiles row (e.g. redirects/404 counts) */
.sf-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin-bottom:18px; }
.sf-stat{
  background:var(--sf-white); border:1px solid var(--sf-gray-200);
  border-radius:var(--sf-radius); box-shadow:var(--sf-shadow); padding:16px;
}
.sf-stat .sf-stat-val{ font-size:24px; font-weight:800; color:var(--sf-gray-900); letter-spacing:-.4px; }
.sf-stat .sf-stat-lbl{ font-size:12px; color:var(--sf-gray-500); margin-top:2px; }

/* Two-column field grid for bespoke forms */
.sf-field-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.sf-field-grid label{ display:block; font-weight:600; font-size:12.5px; margin-bottom:4px; color:var(--sf-gray-700); }

/* Inline info box (replaces hardcoded amber boxes) */
.sf-info-box{
  display:flex; align-items:center; gap:10px;
  background:var(--sf-warning-light); border:1px solid var(--sf-warning);
  border-radius:var(--sf-radius-sm); padding:12px 15px; color:var(--sf-gray-700);
}

/* Info-box colour variants (bg + text paired via tokens → dark-safe) */
.sf-info-box.sf-info-box--success{ background:var(--sf-success-light); border-color:var(--sf-success); }
.sf-info-box.sf-info-box--danger{ background:var(--sf-danger-light); border-color:var(--sf-danger); }
.sf-info-box.sf-info-box--info{ background:var(--sf-primary-light); border-color:var(--sf-primary); }
.sf-info-box .sf-info-box-title{ font-weight:600; color:var(--sf-gray-900); }

/* ===== Compact icon-only action buttons (404 monitor row actions) ===== */
.seo-plugin-wrap .error-404-actions{ white-space:nowrap; }
.seo-plugin-wrap .sf-icon-btn.button-small{
    min-width:32px; width:32px; height:30px; padding:0;
    display:inline-flex; align-items:center; justify-content:center;
    font-size:15px; line-height:1; vertical-align:middle; margin:1px;
}
.seo-plugin-wrap .sf-icon-btn.button-small > span{ display:none; }

/* ===== Center icon + label inside action buttons (dashicons) ===== */
.seo-plugin-wrap .button:has(.dashicons),
.seo-plugin-wrap .button:has(.dashicons-before){
    display:inline-flex; align-items:center; justify-content:center; gap:6px;
}
.seo-plugin-wrap .button:has(.dashicons) .dashicons{
    margin:0 !important; line-height:1; vertical-align:middle;
}

/* ===== Dark mode: WP .description hints (were near-invisible #646970 on dark) ===== */
.seo-plugin-wrap[data-theme="dark"] .seo-content .description,
.seo-plugin-wrap[data-theme="dark"] .seo-content p.description,
.seo-plugin-wrap[data-theme="dark"] .seo-content .form-table .description{
    color: var(--sf-gray-500);
}
@media (prefers-color-scheme: dark){
    .seo-plugin-wrap[data-theme="auto"] .seo-content .description,
    .seo-plugin-wrap[data-theme="auto"] .seo-content p.description,
    .seo-plugin-wrap[data-theme="auto"] .seo-content .form-table .description{
        color: var(--sf-gray-500);
    }
}
