/* =============================================================================
   WordPress Admin Reset – override WP form-table styles inside tseo-wrap
   ============================================================================= */

.tseo-wrap .form-table,
.tseo-wrap .form-table th,
.tseo-wrap .form-table td {
    all: unset;
    display: revert;
    box-sizing: border-box;
}

/* Restore link behaviour that WP resets may kill */
.tseo-wrap a:not(.tseo-btn) {
    color: var(--tseo-primary);
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

.tseo-wrap a:not(.tseo-btn):hover {
    text-decoration: underline;
}

.tseo-wrap input[type="text"],
.tseo-wrap input[type="url"],
.tseo-wrap input[type="number"],
.tseo-wrap input[type="password"],
.tseo-wrap input[type="email"],
.tseo-wrap input[type="search"],
.tseo-wrap textarea,
.tseo-wrap select {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    color: var(--tseo-text);
    background: var(--tseo-surface);
    border: 1px solid var(--tseo-border);
    border-radius: var(--tseo-radius);
    padding: 7px 10px;
    transition: border-color var(--tseo-transition), box-shadow var(--tseo-transition);
    box-sizing: border-box;
}

.tseo-wrap input[type="text"]:focus,
.tseo-wrap input[type="url"]:focus,
.tseo-wrap input[type="number"]:focus,
.tseo-wrap input[type="password"]:focus,
.tseo-wrap input[type="email"]:focus,
.tseo-wrap textarea:focus,
.tseo-wrap select:focus {
    border-color: var(--tseo-primary) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
    outline: none !important;
}

/* Hide only the default WP submit button inside a form, not all .button elements */
.tseo-wrap p.submit > input[type="submit"]:not(.tseo-btn) {
    /* Styled below via p.submit rules */
}

/* Make WP's p.submit use our button */
.tseo-wrap p.submit {
    padding: 0;
    margin: 0;
}

.tseo-wrap p.submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    background: var(--tseo-primary);
    color: #fff;
    border: 1px solid var(--tseo-primary);
    border-radius: var(--tseo-radius);
    cursor: pointer;
    transition: background var(--tseo-transition);
    box-shadow: none;
    text-shadow: none;
}

.tseo-wrap p.submit input[type="submit"]:hover {
    background: var(--tseo-primary-hover);
    border-color: var(--tseo-primary-hover);
}

/* =============================================================================
   ThisSEO – Admin Stylesheet
   Clean, minimal with brand accents. Designed to complement WP admin.
   ============================================================================= */

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
    --tseo-primary:        #2563EB;
    --tseo-primary-hover:  #3B82F6;
    --tseo-primary-dark:   #1E40AF;
    --tseo-accent:         #F59E0B;
    --tseo-accent-hover:   #FBBF24;
    --tseo-text:           #111827;
    --tseo-text-muted:     #4B5563;
    --tseo-text-light:     #9CA3AF;
    --tseo-bg:             #F9FAFB;
    --tseo-surface:        #FFFFFF;
    --tseo-card:           #F3F4F6;
    --tseo-border:         #E5E7EB;
    --tseo-success:        #22C55E;
    --tseo-warning:        #EAB308;
    --tseo-error:          #EF4444;
    --tseo-radius:         6px;
    --tseo-radius-lg:      10px;
    --tseo-shadow:         0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --tseo-shadow-md:      0 4px 12px rgba(0,0,0,.08);
    --tseo-transition:     150ms ease;
}

/* ── Page Layout ───────────────────────────────────────────────────────────── */
.tseo-wrap {
    max-width: 1200px;
    margin: 0;
    padding: 0 0 48px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
    color: var(--tseo-text);
}

/* ── Page Header ───────────────────────────────────────────────────────────── */
.tseo-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--tseo-border);
}

.tseo-page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--tseo-text);
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.tseo-page-header .tseo-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 34px;
    flex-shrink: 0;
}
.tseo-page-header .tseo-logo-mark img {
    width: 80px;
    height: auto;
    display: block;
}
.tseo-pin-lock-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    line-height: 1;
}

.tseo-page-subtitle {
    font-size: 13px;
    color: var(--tseo-text-muted);
    margin: 2px 0 0;
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.tseo-card {
    background: var(--tseo-surface);
    border: 1px solid var(--tseo-border);
    border-radius: var(--tseo-radius-lg);
    box-shadow: var(--tseo-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.tseo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--tseo-border);
    background: var(--tseo-bg);
}

.tseo-card-header h2,
.tseo-card-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--tseo-text);
    margin: 0;
    padding: 0;
}

.tseo-card-body {
    padding: 20px;
}

/* ── Dashboard Grid ────────────────────────────────────────────────────────── */
.tseo-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.tseo-stat-card {
    background: var(--tseo-surface);
    border: 1px solid var(--tseo-border);
    border-radius: var(--tseo-radius-lg);
    padding: 18px 20px;
    box-shadow: var(--tseo-shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow var(--tseo-transition);
}

.tseo-stat-card:hover {
    box-shadow: var(--tseo-shadow-md);
}

.tseo-stat-card .tseo-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--tseo-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tseo-stat-card .tseo-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--tseo-text);
    line-height: 1;
}

.tseo-stat-card .tseo-stat-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.tseo-stat-card.tseo-stat-primary { border-left: 3px solid var(--tseo-primary); }
.tseo-stat-card.tseo-stat-accent  { border-left: 3px solid var(--tseo-accent); }
.tseo-stat-card.tseo-stat-success { border-left: 3px solid var(--tseo-success); }
.tseo-stat-card.tseo-stat-error   { border-left: 3px solid var(--tseo-error); }

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.tseo-tab-nav {
    display: flex !important;
    gap: 2px;
    border-bottom: 2px solid var(--tseo-border);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tseo-tab-nav a,
.tseo-tab-nav button {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tseo-text-muted) !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px;
    cursor: pointer;
    border-radius: var(--tseo-radius) var(--tseo-radius) 0 0;
    transition: color var(--tseo-transition), border-color var(--tseo-transition);
    box-shadow: none !important;
}

.tseo-tab-nav a:hover,
.tseo-tab-nav button:hover {
    color: var(--tseo-primary) !important;
    background: var(--tseo-bg) !important;
    border-bottom-color: transparent !important;
}

.tseo-tab-nav a.tseo-active,
.tseo-tab-nav button.tseo-active {
    color: var(--tseo-primary) !important;
    border-bottom: 2px solid var(--tseo-primary) !important;
    font-weight: 600;
    background: none !important;
}



/* Metabox tabs */
.tseo-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--tseo-border);
    margin: -12px -12px 16px;
    padding: 0 12px;
    background: var(--tseo-bg);
}

.tseo-tab {
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--tseo-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color var(--tseo-transition), border-color var(--tseo-transition);
}

.tseo-tab:hover { color: var(--tseo-primary); }

.tseo-tab.active {
    color: var(--tseo-primary);
    border-bottom-color: var(--tseo-primary);
    font-weight: 600;
}

.tseo-tab-content { display: none; }
.tseo-tab-content.active { display: block; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.tseo-form-table {
    width: 100%;
    border-collapse: collapse;
}

.tseo-form-table tr {
    border-bottom: 1px solid var(--tseo-border);
}

.tseo-form-table tr:last-child {
    border-bottom: none;
}

.tseo-form-table th {
    width: 220px;
    padding: 16px 20px 16px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tseo-text);
    text-align: left;
    vertical-align: top;
}

.tseo-form-table td {
    padding: 14px 20px 14px 0;
    vertical-align: top;
}

.tseo-form-table .description {
    font-size: 12px;
    color: var(--tseo-text-muted);
    margin-top: 5px;
}

/* ── Metabox Fields ────────────────────────────────────────────────────────── */
.tseo-metabox {
    margin: -6px -12px -12px;
}

.tseo-field {
    margin-bottom: 16px;
}

.tseo-field:last-child {
    margin-bottom: 0;
}

.tseo-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tseo-text);
}

.tseo-field input[type="text"],
.tseo-field input[type="url"],
.tseo-field textarea,
.tseo-field select {
    width: 100%;
    border: 1px solid var(--tseo-border);
    border-radius: var(--tseo-radius);
    padding: 7px 10px;
    font-size: 13px;
    color: var(--tseo-text);
    background: var(--tseo-surface);
    transition: border-color var(--tseo-transition), box-shadow var(--tseo-transition);
    box-sizing: border-box;
}

.tseo-field input:focus,
.tseo-field textarea:focus,
.tseo-field select:focus {
    border-color: var(--tseo-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    outline: none;
}

.tseo-field .description {
    font-size: 11px;
    color: var(--tseo-text-muted);
    margin-top: 4px;
}

/* ── Character Counter ─────────────────────────────────────────────────────── */
.tseo-char-counter {
    font-size: 11px;
    color: var(--tseo-text-light);
    text-align: right;
    margin-top: 3px;
    transition: color var(--tseo-transition);
}

.tseo-char-counter.tseo-over {
    color: var(--tseo-error);
    font-weight: 600;
}

.tseo-char-counter.tseo-near {
    color: var(--tseo-warning);
}

/* ── Tables ────────────────────────────────────────────────────────────────── */
.tseo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tseo-table thead tr {
    background: var(--tseo-bg);
    border-bottom: 2px solid var(--tseo-border);
}

.tseo-table th {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--tseo-text-muted);
    text-align: left;
    white-space: nowrap;
}

.tseo-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--tseo-border);
    color: var(--tseo-text);
    vertical-align: middle;
}

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

.tseo-table tbody tr:hover td {
    background: var(--tseo-bg);
}

.tseo-table .tseo-url {
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
    font-size: 12px;
    color: var(--tseo-primary);
    word-break: break-all;
}

.tseo-table .tseo-actions {
    white-space: nowrap;
    text-align: right;
}

.tseo-table .tseo-actions a {
    font-size: 12px;
    color: var(--tseo-text-muted);
    text-decoration: none;
    margin-left: 10px;
    transition: color var(--tseo-transition);
}

.tseo-table .tseo-actions a:hover { color: var(--tseo-primary); }
.tseo-table .tseo-actions a.tseo-danger:hover { color: var(--tseo-error); }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.tseo-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}

.tseo-badge-primary { background: #EFF6FF; color: var(--tseo-primary); }
.tseo-badge-success { background: #F0FDF4; color: #16A34A; }
.tseo-badge-warning { background: #FFFBEB; color: #B45309; }
.tseo-badge-error   { background: #FEF2F2; color: #DC2626; }
.tseo-badge-muted   { background: var(--tseo-card); color: var(--tseo-text-muted); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.tseo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--tseo-radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--tseo-transition), color var(--tseo-transition), border-color var(--tseo-transition), box-shadow var(--tseo-transition);
    white-space: nowrap;
    line-height: 1;
}

.tseo-btn-primary {
    background: var(--tseo-primary);
    color: #fff !important;
    border-color: var(--tseo-primary);
}

.tseo-btn-primary:hover {
    background: var(--tseo-primary-hover);
    border-color: var(--tseo-primary-hover);
    color: #fff !important;
}

.tseo-btn-secondary {
    background: var(--tseo-surface);
    color: var(--tseo-text) !important;
    border-color: var(--tseo-border);
}

.tseo-btn-secondary:hover {
    background: var(--tseo-bg);
    border-color: #C9CDD4;
    color: var(--tseo-text);
}

.tseo-btn-accent {
    background: var(--tseo-accent);
    color: #fff;
    border-color: var(--tseo-accent);
}

.tseo-btn-accent:hover {
    background: var(--tseo-accent-hover);
    border-color: var(--tseo-accent-hover);
    color: #fff;
}

.tseo-btn-danger {
    background: var(--tseo-surface);
    color: var(--tseo-error);
    border-color: #FECACA;
}

.tseo-btn-danger:hover {
    background: #FEF2F2;
    border-color: var(--tseo-error);
}

.tseo-btn-sm {
    padding: 5px 11px;
    font-size: 12px;
}

/* ── Notices ───────────────────────────────────────────────────────────────── */
.tseo-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--tseo-radius);
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.tseo-notice-icon {
    flex-shrink: 0;
    font-size: 15px;
    margin-top: 1px;
}

.tseo-notice-success {
    background: #F0FDF4;
    border-color: #BBF7D0;
    color: #15803D;
}

.tseo-notice-warning {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}

.tseo-notice-error {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

.tseo-notice-info {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1D4ED8;
}

/* ── PIN Modal ─────────────────────────────────────────────────────────────── */
.tseo-pin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.tseo-pin-overlay.active {
    display: flex;
}

.tseo-pin-modal {
    background: var(--tseo-surface);
    border-radius: var(--tseo-radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    padding: 32px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.tseo-pin-modal h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tseo-text);
    margin: 0 0 6px;
}

.tseo-pin-modal p {
    font-size: 13px;
    color: var(--tseo-text-muted);
    margin: 0 0 20px;
}

.tseo-pin-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #EFF6FF;
    border-radius: 50%;
    margin: 0 auto 16px;
    color: var(--tseo-primary);
    font-size: 22px;
}

.tseo-pin-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
    border: 2px solid var(--tseo-border);
    border-radius: var(--tseo-radius);
    background: var(--tseo-bg);
    color: var(--tseo-text);
    transition: border-color var(--tseo-transition), box-shadow var(--tseo-transition);
    box-sizing: border-box;
    margin-bottom: 12px;
}

.tseo-pin-input:focus {
    border-color: var(--tseo-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    outline: none;
}

.tseo-pin-error {
    font-size: 12px;
    color: var(--tseo-error);
    margin-bottom: 10px;
    min-height: 18px;
}

.tseo-pin-footer {
    margin-top: 12px;
    font-size: 12px;
    color: var(--tseo-text-muted);
}

.tseo-pin-footer a {
    color: var(--tseo-primary);
    text-decoration: none;
}

.tseo-pin-footer a:hover {
    text-decoration: underline;
}

/* ── Link Scanner Progress ─────────────────────────────────────────────────── */
.tseo-progress-wrap {
    background: var(--tseo-card);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    margin: 12px 0;
}

.tseo-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tseo-primary), var(--tseo-primary-hover));
    border-radius: 20px;
    transition: width 400ms ease;
    width: 0%;
}

.tseo-progress-label {
    font-size: 12px;
    color: var(--tseo-text-muted);
    text-align: right;
    margin-top: 4px;
}

/* ── Audit Log ─────────────────────────────────────────────────────────────── */
.tseo-audit-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
    font-size: 11px;
    color: var(--tseo-primary-dark);
    background: #EFF6FF;
    padding: 2px 7px;
    border-radius: 3px;
}

/* ── Security Page ─────────────────────────────────────────────────────────── */
.tseo-security-section {
    border: 1px solid var(--tseo-border);
    border-radius: var(--tseo-radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.tseo-security-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--tseo-bg);
    border-bottom: 1px solid var(--tseo-border);
}

.tseo-security-section-header h3 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: var(--tseo-text);
}

.tseo-security-section-body {
    padding: 18px;
}

.tseo-pin-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.tseo-pin-status.active { color: #16A34A; }
.tseo-pin-status.inactive { color: var(--tseo-text-muted); }

.tseo-pin-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* ── Redirect Form ─────────────────────────────────────────────────────────── */
.tseo-redirect-form {
    display: grid;
    grid-template-columns: 1fr 1fr 140px auto;
    gap: 10px;
    align-items: end;
    background: var(--tseo-bg);
    padding: 16px;
    border-radius: var(--tseo-radius);
    border: 1px solid var(--tseo-border);
    margin-bottom: 20px;
}

.tseo-redirect-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--tseo-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 5px;
}

.tseo-redirect-form input,
.tseo-redirect-form select {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid var(--tseo-border);
    border-radius: var(--tseo-radius);
    background: var(--tseo-surface);
    color: var(--tseo-text);
    box-sizing: border-box;
    transition: border-color var(--tseo-transition), box-shadow var(--tseo-transition);
}

.tseo-redirect-form input:focus,
.tseo-redirect-form select:focus {
    border-color: var(--tseo-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    outline: none;
}

@media (max-width: 900px) {
    .tseo-redirect-form {
        grid-template-columns: 1fr;
    }
}

/* ── Status Code Badges ────────────────────────────────────────────────────── */
.tseo-status-301 { background: #EFF6FF; color: var(--tseo-primary-dark); }
.tseo-status-302 { background: #F0FDF4; color: #16A34A; }
.tseo-status-307 { background: #F0FDF4; color: #16A34A; }
.tseo-status-308 { background: #EFF6FF; color: var(--tseo-primary-dark); }
.tseo-status-410 { background: #FEF2F2; color: #DC2626; }

/* ── Empty States ──────────────────────────────────────────────────────────── */
.tseo-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--tseo-text-muted);
}

.tseo-empty-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--tseo-text-light);
}

.tseo-empty h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--tseo-text);
    margin: 0 0 6px;
}

.tseo-empty p {
    font-size: 13px;
    margin: 0;
}

/* ── Pagination ────────────────────────────────────────────────────────────── */
.tseo-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 14px 0 0;
}

.tseo-pagination a,
.tseo-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
    border-radius: var(--tseo-radius);
    text-decoration: none;
    color: var(--tseo-text-muted);
    transition: background var(--tseo-transition), color var(--tseo-transition);
}

.tseo-pagination a:hover {
    background: var(--tseo-card);
    color: var(--tseo-text);
}

.tseo-pagination span.current {
    background: var(--tseo-primary);
    color: #fff;
    font-weight: 600;
}

/* ── Toolbar / Quick Actions ───────────────────────────────────────────────── */
.tseo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.tseo-toolbar-left,
.tseo-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tseo-search-input {
    padding: 7px 11px;
    font-size: 13px;
    border: 1px solid var(--tseo-border);
    border-radius: var(--tseo-radius);
    background: var(--tseo-surface);
    color: var(--tseo-text);
    width: 220px;
    transition: border-color var(--tseo-transition), box-shadow var(--tseo-transition);
}

.tseo-search-input:focus {
    border-color: var(--tseo-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    outline: none;
}

/* ── Hit Counter ───────────────────────────────────────────────────────────── */
.tseo-hit-count {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--tseo-text-muted);
    background: var(--tseo-card);
    padding: 2px 8px;
    border-radius: 20px;
}

/* ── Schema / Code Textareas ───────────────────────────────────────────────── */
.tseo-code-wrap {
    position: relative;
}

.tseo-code-wrap textarea {
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    background: #1E1E2E;
    color: #CDD6F4;
    border-color: #313244;
    border-radius: var(--tseo-radius);
    padding: 12px;
    resize: vertical;
}

.tseo-code-wrap textarea:focus {
    border-color: var(--tseo-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.tseo-json-valid {
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
}

.tseo-json-valid.valid   { color: var(--tseo-success); }
.tseo-json-valid.invalid { color: var(--tseo-error); }

/* ── Sitemap URL display ───────────────────────────────────────────────────── */
.tseo-sitemap-url {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--tseo-bg);
    border: 1px solid var(--tseo-border);
    border-radius: var(--tseo-radius);
    padding: 9px 12px;
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
    font-size: 12px;
    color: var(--tseo-primary);
    word-break: break-all;
}

.tseo-sitemap-url a {
    color: var(--tseo-primary);
    text-decoration: none;
    flex: 1;
}

.tseo-sitemap-url a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 782px) {
    .tseo-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tseo-form-table th {
        display: block;
        width: auto;
        padding-bottom: 4px;
    }

    .tseo-form-table td {
        display: block;
        padding-top: 0;
    }

    .tseo-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tseo-search-input {
        width: 100%;
    }
}

/* ── Breadcrumbs frontend default styles ──────────────────────────────────── */
.thisseo-breadcrumbs {
    font-size: 14px;
    line-height: 1.5;
}

.thisseo-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.thisseo-breadcrumbs__item {
    display: flex;
    align-items: center;
}

.thisseo-breadcrumbs__item a {
    color: inherit;
    text-decoration: none;
}

.thisseo-breadcrumbs__item a:hover {
    text-decoration: underline;
}

.thisseo-breadcrumbs__item--current {
    opacity: 0.7;
}

.thisseo-breadcrumbs__sep {
    margin: 0 6px;
    opacity: 0.5;
    list-style: none;
}


/* -- ThisSEO logo fixed top right -- */
#thisseoplug-logo-top-right {
    position: fixed;
    top: 6px;
    right: 20px;
    z-index: 99999;
}
#thisseoplug-logo-top-right img {
    height: 20px;
    width: auto;
    opacity: .9;
}
@media (max-width: 782px) {
    #thisseoplug-logo-top-right { display: none; }
}

/* -- ThisSEO logo in page header right -- */
.tseo-page-header { position: relative; }
.tseo-header-logo {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.tseo-header-logo img {
    height: 26px;
    width: auto;
    display: block;
}
}
/* =============================================================================
   DATA MIGRATION PAGE
   ============================================================================= */

/* Options grid */
.tseo-migration-options-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
    gap: 10px;
}

.tseo-migration-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border: 1px solid var(--tseo-border);
    border-radius: var(--tseo-radius);
    cursor: pointer;
    transition: border-color 0.15s;
    background: var(--tseo-surface);
}

.tseo-migration-option:hover {
    border-color: var(--tseo-accent);
}

.tseo-migration-option input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--tseo-accent);
}

.tseo-migration-option-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--tseo-text);
}

.tseo-migration-option-desc {
    font-size: 11px;
    color: var(--tseo-text-muted);
    margin-top: 2px;
}

/* First option (skip-existing) gets full width + slightly different style */
.tseo-migration-option:first-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    background: var(--tseo-highlight, #f0f6ff);
    border-color: var(--tseo-accent);
}

.tseo-migration-option:first-child .tseo-migration-option-label {
    font-size: 14px;
}

/* Counts preview */
.tseo-migration-counts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tseo-migration-count-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.tseo-migration-count-label {
    color: var(--tseo-text-muted);
}

.tseo-badge-muted {
    background: var(--tseo-border);
    color: var(--tseo-text-muted);
}

/* Progress bar — indeterminate */
.tseo-progress-bar--indeterminate {
    width: 30%;
    animation: tseo-progress-slide 1.4s infinite ease-in-out;
}

@keyframes tseo-progress-slide {
    0%   { transform: translateX( -100% ); }
    100% { transform: translateX( 400% ); }
}

/* Result table */
.tseo-migration-result-inner {
    margin-top: 20px;
    padding: 16px;
    background: var(--tseo-highlight, #f8fbff);
    border: 1px solid var(--tseo-border);
    border-radius: var(--tseo-radius);
}

.tseo-migration-result-inner h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--tseo-accent);
}

.tseo-migration-result-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 400px;
    font-size: 13px;
}

.tseo-migration-result-table th,
.tseo-migration-result-table td {
    padding: 5px 10px 5px 0;
    text-align: left;
    border: none;
}

.tseo-migration-result-table th {
    color: var(--tseo-text-muted);
    font-weight: normal;
    width: 65%;
}

.tseo-migration-result-table td {
    font-weight: 600;
    color: var(--tseo-text);
}

/* Capped notice */
.tseo-migration-capped-notice {
    margin: 10px 0 0;
    padding: 8px 12px;
    background: #fff3cd;
    border-left: 4px solid #f0ad4e;
    border-radius: 3px;
    font-size: 13px;
}

/* Token log detail/summary */
.tseo-migration-token-log {
    margin-top: 12px;
    font-size: 12px;
}

.tseo-migration-token-log summary {
    cursor: pointer;
    color: var(--tseo-text-muted);
    font-style: italic;
    padding: 4px 0;
}

.tseo-migration-token-log ul {
    margin: 6px 0 0 16px;
    padding: 0;
    list-style: disc;
    color: var(--tseo-text-muted);
}

.tseo-migration-token-log li {
    margin-bottom: 4px;
    font-size: 11px;
    word-break: break-all;
}

/* Info card */
.tseo-migration-info-card {
    background: var(--tseo-highlight, #f0f6ff);
}

.tseo-migration-deactivate-notice {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fff8e1;
    border-left: 4px solid #f0ad4e;
    border-radius: 3px;
    font-size: 13px;
}
