.skyseo-geo-admin .skyseo-geo-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.skyseo-geo-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: #f8fafc;
    border: 1px solid #d8e1ec;
    border-radius: 12px;
    text-align: center;
}

.skyseo-geo-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.skyseo-geo-stat-label {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.skyseo-geo-progress-wrap {
    margin-bottom: 16px;
}

.skyseo-geo-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.skyseo-geo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0f5ea8, #14919b);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.skyseo-geo-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
}

.skyseo-geo-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.skyseo-geo-status-idle { background: #e2e8f0; color: #475569; }
.skyseo-geo-status-running { background: #dbeafe; color: #1d4ed8; }
.skyseo-geo-status-paused { background: #fef3c7; color: #b45309; }
.skyseo-geo-status-completed { background: #d1fae5; color: #15803d; }

.skyseo-geo-post-types {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
}

.skyseo-geo-post-types-label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.skyseo-geo-pt-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.skyseo-geo-pt-check input[type="checkbox"] {
    margin: 0;
}

.skyseo-geo-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.skyseo-geo-section {
    margin-top: 24px;
}

.skyseo-geo-section h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.skyseo-geo-factor-table th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.skyseo-geo-cat-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.skyseo-geo-cat-gatekeeper {
    background: #fef3c7;
    color: #b45309;
}

.skyseo-geo-cat-differentiator {
    background: #dbeafe;
    color: #1d4ed8;
}

.skyseo-geo-fill-bar {
    display: inline-block;
    width: 80px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 6px;
}

.skyseo-geo-fill-inner {
    height: 100%;
    background: #0f5ea8;
    border-radius: 999px;
}

.skyseo-geo-results-table th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.skyseo-geo-footer-notice {
    margin-top: 24px;
    padding: 16px;
    background: #f0f6fd;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
}

.skyseo-geo-footer-notice p {
    margin: 0;
    font-size: 12px;
    color: #475569;
}

.skyseo-spin {
    animation: skyseo-rotation 1.5s infinite linear;
}

@keyframes skyseo-rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Modal */
.skyseo-geo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skyseo-geo-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.skyseo-geo-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.skyseo-geo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #d8e1ec;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.skyseo-geo-modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.skyseo-geo-modal-close {
    font-size: 24px;
    line-height: 1;
    border: none;
    background: none;
    cursor: pointer;
    color: #64748b;
    padding: 0 4px;
}

.skyseo-geo-modal-body {
    padding: 20px;
}

.skyseo-geo-results-table .skyseo-geo-view-btn {
    white-space: nowrap;
}

@media (max-width: 782px) {
    .skyseo-geo-admin .skyseo-geo-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- GEO modal custom styles for visual excellence --- */
.skyseo-geo-score-card {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #d8e1ec;
    border-radius: 12px;
}

.skyseo-geo-score-circle {
    width: 64px;
    height: 64px;
    border: 4px solid #0f5ea8;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
}

.skyseo-geo-score-value {
    font-size: 22px;
    color: #0f172a;
    font-weight: 700;
}

.skyseo-geo-score-total {
    color: #64748b;
    font-size: 10px;
}

.skyseo-geo-score-info {
    flex-grow: 1;
}

.skyseo-geo-score-title {
    font-size: 15px;
    display: block;
    font-weight: 700;
    color: #0f172a;
}

.skyseo-geo-score-subtitle {
    color: #64748b;
    font-size: 12px;
}

.skyseo-geo-edit-btn {
    margin-top: 8px;
}

.skyseo-geo-modal-body h4 {
    margin: 24px 0 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 15px;
    color: #1e293b;
    font-weight: 700;
}

.skyseo-geo-modal-body p {
    margin: 4px 0 16px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
}

.skyseo-geo-modal-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skyseo-geo-factor-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease-in-out;
}

.skyseo-geo-factor-item:hover {
    transform: translateY(-1px);
}

.skyseo-geo-factor-item.passed {
    border-color: #bbf7d0;
    background: #f7fef9;
    box-shadow: 0 2px 4px rgba(21, 128, 61, 0.03);
}

.skyseo-geo-factor-item.passed:hover {
    border-color: #86efac;
    box-shadow: 0 4px 8px rgba(21, 128, 61, 0.05);
}

.skyseo-geo-factor-item.failed {
    border-color: #fee2e2;
    background: #fffafa;
    box-shadow: 0 2px 4px rgba(180, 35, 24, 0.02);
}

.skyseo-geo-factor-item.failed:hover {
    border-color: #fca5a5;
    box-shadow: 0 4px 8px rgba(180, 35, 24, 0.05);
}

.skyseo-geo-factor-icon {
    width: 22px;
    height: 22px;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.skyseo-geo-factor-icon.passed {
    color: #15803d;
}

.skyseo-geo-factor-icon.failed {
    color: #b42318;
}

.skyseo-geo-factor-content {
    flex: 1;
}

.skyseo-geo-factor-label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    display: block;
    margin-bottom: 2px;
}

.skyseo-geo-factor-detail {
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
}

.skyseo-geo-factor-suggestion {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 8px;
    color: #854d0e;
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.skyseo-geo-modal-footer-info {
    margin-top: 20px;
    padding: 12px 16px;
    background: #f0f6fd;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
}

.skyseo-geo-modal-footer-info p {
    margin: 0;
    font-size: 11px;
    color: #475569;
    font-style: italic;
    line-height: 1.4;
}

/* Analysis Logs UI Styling */
.skyseo-geo-logs {
    max-height: 280px;
    overflow-y: auto;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.skyseo-geo-log {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    border-left: 4px solid #64748b;
    background: #f8fafc;
    color: #334155;
    line-height: 1.4;
}

.skyseo-geo-log:last-child {
    margin-bottom: 0;
}

.skyseo-geo-log-success {
    background: #f0fdf4;
    border-left-color: #16a34a;
    color: #166534;
}

.skyseo-geo-log-error {
    background: #fef2f2;
    border-left-color: #dc2626;
    color: #991b1b;
}

.skyseo-geo-log-warning {
    background: #fffbeb;
    border-left-color: #d97706;
    color: #92400e;
}

.skyseo-geo-log-info {
    background: #f8fafc;
    border-left-color: #0284c7;
    color: #075985;
}

.skyseo-geo-log-time {
    font-weight: 700;
    color: #64748b;
    font-size: 11px;
    min-width: 125px;
    flex-shrink: 0;
}

.skyseo-geo-log-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.skyseo-geo-log-badge-success {
    background: #bbf7d0;
    color: #15803d;
}

.skyseo-geo-log-badge-error {
    background: #fca5a5;
    color: #991b1b;
}

.skyseo-geo-log-badge-warning {
    background: #fde68a;
    color: #854d0e;
}

.skyseo-geo-log-badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.skyseo-geo-log-title {
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 150px;
    flex-shrink: 0;
}

.skyseo-geo-log-title a {
    color: inherit;
    text-decoration: underline;
}

.skyseo-geo-log-title a:hover {
    color: #0f5ea8;
}

.skyseo-geo-log-msg {
    flex-grow: 1;
    font-weight: 500;
}
