/**
 * Site Audit Styles
 *
 * @package
 * @since   1.0.0
 */

/* Site Audit Page Layout */
.prorank-site-audit-page .prorank-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.prorank-site-audit-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.prorank-main-content {
    flex: 1;
    min-width: 0;
    padding-right: 24px;
}

.prorank-sidebar {
    width: 620px;
    flex-shrink: 0;
    position: sticky;
    top: 32px;
}

.prorank-sidebar-content,
.prorank-sidebar-default {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.prorank-sidebar-section {
    margin-bottom: 24px;
}

.prorank-sidebar-section:last-child {
    margin-bottom: 0;
}

.prorank-sidebar-section h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
}

/* Page Title */
.prorank-page-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

/* Module Grid */
.prorank-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.prorank-module-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.prorank-module-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.prorank-module-card--locked {
    opacity: 0.8;
}

.prorank-module-icon {
    font-size: 24px;
    color: #2271b1;
    margin-right: 12px;
}

.prorank-module-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.prorank-module-description {
    font-size: 13px;
    color: #666;
    margin: 8px 0 16px 0;
}

.prorank-module-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.prorank-tier-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.prorank-tier-badge--free {
    background: #e7f3ff;
    color: #0073aa;
}

.prorank-tier-badge--core,
.prorank-tier-badge--pro {
    background: #d4edda;
    color: #155724;
}

.prorank-tier-badge--business {
    background: #f8d7da;
    color: #721c24;
}

.prorank-tier-badge--agency {
    background: #e2e3e5;
    color: #383d41;
}

/* Full Page Module */
.prorank-full-page-module {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Dashboard Layout */
.prorank-site-audit-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.prorank-page-header {
    margin-bottom: 30px;
}

.prorank-page-description {
    color: #666;
    margin-top: 5px;
}

/* Loading State */
.prorank-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 16px;
}

/* Audit Progress */
.prorank-audit-progress {
    margin-bottom: 24px;
}

.prorank-progress-stats {
    margin-bottom: 16px;
}

.prorank-progress-stats strong {
    display: block;
    font-size: 24px;
    color: #1e1e1e;
    margin-top: 4px;
}

.prorank-progress-label {
    display: block;
    text-align: center;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}

/* Audit Score */
.prorank-audit-score .components-card__body {
    display: flex;
    gap: 32px;
    align-items: center;
}

.prorank-score-display {
    flex: 0 0 auto;
    text-align: center;
}

.prorank-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prorank-score--good .prorank-score-circle {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.prorank-score--average .prorank-score-circle {
    background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
    color: white;
}

.prorank-score--poor .prorank-score-circle {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
}

.prorank-score-value {
    font-size: 48px;
    line-height: 1;
}

.prorank-score-label {
    font-size: 18px;
    opacity: 0.9;
}

.prorank-score-description {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

/* Audit Chart */
.prorank-audit-chart {
    flex: 1;
    min-width: 0;
}

/* Audit Summary */
.prorank-audit-summary {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.prorank-audit-summary h4 {
    margin-bottom: 12px;
}

.prorank-audit-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.prorank-audit-summary li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.prorank-audit-summary .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Severity Colors */
.prorank-severity-critical {
    color: #dc3545;
}

.prorank-severity-high {
    color: #fd7e14;
}

.prorank-severity-medium {
    color: #ffc107;
}

.prorank-severity-low {
    color: #0dcaf0;
}

.prorank-severity-info {
    color: #6c757d;
}

/* Severity Badges */
.prorank-severity-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.prorank-severity-badge .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Issues Table */
.prorank-audit-issues {
    margin-top: 24px;
}

.prorank-issues-table-container {
    overflow-x: auto;
    margin: -12px;
    padding: 12px;
}

.prorank-issues-table {
    min-width: 800px;
}

.prorank-issues-table th {
    font-weight: 600;
    white-space: nowrap;
}

.prorank-issues-table .column-severity {
    width: 120px;
}

.prorank-issues-table .column-url {
    width: 35%;
}

.prorank-issues-table .column-type {
    width: 150px;
}

.prorank-issues-table .column-message {
    width: auto;
}

.prorank-issues-table .column-actions {
    width: 100px;
    text-align: center;
}

.prorank-issues-table tbody tr:hover {
    background-color: #f5f5f5;
}

.prorank-issues-table a {
    text-decoration: none;
}

.prorank-issues-table a:hover {
    text-decoration: underline;
}

/* Pagination */
.prorank-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

/* Empty State */
.prorank-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.prorank-empty-state .components-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.prorank-empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    line-height: 1;
}

.prorank-empty-state h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e1e1e;
}

.prorank-empty-state p {
    color: #666;
    margin: 0 0 24px 0;
    max-width: 500px;
    font-size: 14px;
    line-height: 1.6;
}

.prorank-empty-state .components-button {
    margin-top: 8px;
}

/* Recommendations */
.prorank-audit-recommendations {
    margin-top: 24px;
}

.prorank-recommendations-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.prorank-recommendations-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 4px;
}

.prorank-recommendations-list .dashicons {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Tabs */
.prorank-audit-tabs {
    margin-top: 24px;
}

.prorank-audit-tabs .components-tab-panel__tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 24px;
}

.prorank-audit-tabs .components-tab-panel__tabs-item {
    padding: 12px 24px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.prorank-audit-tabs .components-tab-panel__tabs-item.is-active {
    border-bottom-color: #0073aa;
    color: #0073aa;
}

/* Settings Page */
.prorank-site-audit-settings {
    max-width: 800px;
}

.prorank-settings-card {
    margin-bottom: 24px;
}

.prorank-settings-card .components-card__header h3 {
    margin: 0;
}

.prorank-check-types {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.prorank-check-type-item {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 4px;
}

.prorank-settings-actions {
    margin-top: 32px;
}

/* Issue Details Modal */
.prorank-issue-details-modal {
    max-width: 600px;
}

.prorank-issue-details {
    padding: 20px;
}

/* Issues + Report Redesign */
.prorank-audit-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px 24px;
    border: 0;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 105, 0, 0.36), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 183, 77, 0.14), transparent 30%),
        linear-gradient(135deg, #0b121f 0%, #11233d 54%, #20345a 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.prorank-audit-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.85), transparent 75%);
    pointer-events: none;
}

.prorank-audit-hero__copy,
.prorank-audit-hero__metrics {
    position: relative;
    z-index: 1;
}

.prorank-audit-hero__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 183, 77, 0.24);
    background: rgba(255, 105, 0, 0.14);
    color: #fff7ed;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prorank-audit-hero .components-heading,
.prorank-audit-hero h2,
.prorank-audit-hero h3 {
    color: #f8fafc !important;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.prorank-audit-hero__description {
    display: block;
    max-width: 60ch;
    color: #f8fafc !important;
    line-height: 1.75;
    font-size: 14px;
    text-shadow: 0 1px 0 rgba(11, 18, 31, 0.18);
}

.prorank-audit-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.prorank-audit-hero__metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 126px;
    padding: 18px 16px;
    border: 1px solid rgba(255, 183, 77, 0.18);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.prorank-audit-hero__metric-value {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.05em;
}

.prorank-audit-hero__metric-label {
    margin-top: 8px;
    color: rgba(248, 250, 252, 0.88) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.prorank-audit-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.prorank-audit-summary-card {
    position: relative;
    cursor: pointer;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.prorank-audit-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: #cbd5e1;
}

.prorank-audit-summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.prorank-audit-summary-card.is-active {
    transform: translateY(-3px);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 0 0 2px rgba(255, 105, 0, 0.14), 0 20px 38px rgba(255, 105, 0, 0.10);
}

.prorank-audit-summary-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 134px;
    text-align: left;
    padding: 22px 18px 18px;
}

.prorank-audit-summary-card__value {
    font-size: 40px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.prorank-audit-summary-card__label {
    margin-top: 10px;
    font-size: 12px;
    color: #475569;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prorank-audit-summary-card__state {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Severity-specific summary card colors */
.prorank-audit-summary-card[data-severity="critical"] {
    border-color: #fecaca;
    background: linear-gradient(180deg, #ffffff 0%, #fff1f1 100%);
}
.prorank-audit-summary-card[data-severity="critical"]::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}
.prorank-audit-summary-card[data-severity="critical"].is-active {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.16);
}

.prorank-audit-summary-card[data-severity="high"] {
    border-color: #fed7aa;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}
.prorank-audit-summary-card[data-severity="high"]::before {
    background: linear-gradient(90deg, #fb923c 0%, #ea580c 100%);
}
.prorank-audit-summary-card[data-severity="high"].is-active {
    border-color: #ea580c;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.16);
}

.prorank-audit-summary-card[data-severity="medium"] {
    border-color: #fef08a;
    background: linear-gradient(180deg, #ffffff 0%, #fffbe9 100%);
}
.prorank-audit-summary-card[data-severity="medium"]::before {
    background: linear-gradient(90deg, #facc15 0%, #ca8a04 100%);
}
.prorank-audit-summary-card[data-severity="medium"].is-active {
    border-color: #ca8a04;
    box-shadow: 0 0 0 2px rgba(202, 138, 4, 0.16);
}

.prorank-audit-summary-card[data-severity="low"] {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #ffffff 0%, #f1fcf5 100%);
}
.prorank-audit-summary-card[data-severity="low"]::before {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}
.prorank-audit-summary-card[data-severity="low"].is-active {
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.16);
}

.prorank-audit-summary-card[data-severity="warning"] {
    border-color: #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.prorank-audit-summary-card[data-severity="warning"]::before {
    background: linear-gradient(90deg, #94a3b8 0%, #64748b 100%);
}
.prorank-audit-summary-card[data-severity="warning"].is-active {
    border-color: #64748b;
    box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.16);
}

.prorank-audit-inline-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.prorank-audit-inline-header__eyebrow {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff1e7;
    color: #b45309;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prorank-audit-inline-header__description {
    display: block;
    margin-top: 6px;
    color: #526277;
    font-size: 14px;
    line-height: 1.7;
}

.prorank-audit-inline-header__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.prorank-audit-inline-header__chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #fff;
    color: #9a3412;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.prorank-audit-report-shell {
    max-width: 1240px;
}

.prorank-audit-report-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.prorank-audit-report-topbar__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.prorank-audit-report-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #fff;
    color: #9a3412;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.prorank-audit-report-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 240px;
    gap: 18px;
    margin-bottom: 18px;
    padding: 24px 26px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 105, 0, 0.38), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 183, 77, 0.14), transparent 32%),
        linear-gradient(135deg, #0b121f 0%, #11233d 54%, #20345a 100%);
    box-shadow: 0 26px 64px rgba(15, 23, 42, 0.2);
}

.prorank-audit-report-head::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(140deg, rgba(0, 0, 0, 0.9), transparent 78%);
    pointer-events: none;
}

.prorank-audit-report-head__copy,
.prorank-audit-report-score-card {
    position: relative;
    z-index: 1;
}

.prorank-audit-report-head__eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 183, 77, 0.24);
    background: rgba(255, 105, 0, 0.14);
    color: #fff7ed;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prorank-audit-report-head__title {
    color: #f8fafc !important;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.prorank-audit-report-head__description {
    display: block;
    max-width: 62ch;
    margin-top: 10px;
    color: #f8fafc !important;
    font-size: 14px;
    line-height: 1.75;
    text-shadow: 0 1px 0 rgba(11, 18, 31, 0.18);
}

.prorank-audit-report-head__chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.prorank-audit-report-head__chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 183, 77, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff7ed !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.prorank-audit-report-score-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 188px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 183, 77, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.prorank-audit-report-score-card__label {
    color: rgba(226, 232, 240, 0.82);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prorank-audit-report-score-card__value {
    margin-top: 10px;
    color: #f8fafc;
    font-size: 56px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.prorank-audit-report-score-card__tone {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 105, 0, 0.14);
    color: #fff7ed !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.prorank-audit-report-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.prorank-audit-report-stat {
    position: relative;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #dbe4f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.prorank-audit-report-stat::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: #cbd5e1;
}

.prorank-audit-report-stat[data-tone="pages"]::before {
    background: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%);
}

.prorank-audit-report-stat[data-tone="issues"]::before {
    background: linear-gradient(90deg, #f59e0b 0%, #ea580c 100%);
}

.prorank-audit-report-stat[data-tone="critical"]::before {
    background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.prorank-audit-report-stat[data-tone="high"]::before {
    background: linear-gradient(90deg, #fb923c 0%, #ea580c 100%);
}

.prorank-audit-report-stat__label {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prorank-audit-report-stat__value {
    margin-top: 14px;
    color: #0f172a;
    font-size: 36px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.prorank-audit-report-stat__hint {
    margin-top: 8px;
    color: #526277;
    font-size: 13px;
    line-height: 1.55;
}

.prorank-audit-report-panel {
    margin-bottom: 18px;
    border-radius: 22px;
    border: 1px solid #dbe4f0;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.prorank-audit-report-panel__header {
    padding: 18px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
}

.prorank-audit-report-panel__header-copy {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.prorank-audit-report-panel__body {
    padding: 22px;
}

.prorank-audit-report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.prorank-audit-report-kpi {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.prorank-audit-report-kpi__label {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prorank-audit-report-kpi__value {
    margin-top: 10px;
    color: #0f172a;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.prorank-audit-report-kpi[data-trend="positive"] .prorank-audit-report-kpi__value {
    color: #059669;
}

.prorank-audit-report-kpi[data-trend="negative"] .prorank-audit-report-kpi__value {
    color: #dc2626;
}

.prorank-audit-report-kpi[data-trend="neutral"] .prorank-audit-report-kpi__value {
    color: #334155;
}

.prorank-audit-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.prorank-audit-breakdown-card {
    padding: 18px 18px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.prorank-audit-breakdown-card__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.prorank-audit-breakdown-card__label {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.prorank-audit-breakdown-card__score {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.prorank-audit-breakdown-card__bar {
    height: 8px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.prorank-audit-breakdown-card__bar-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.4s ease;
}

.prorank-audit-breakdown-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.prorank-audit-breakdown-card__chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.prorank-audit-breakdown-card__checks {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 11px;
}

.prorank-audit-segment-table {
    overflow-x: auto;
}

.prorank-report-issues-view.is-embedded .prorank-audit-hero {
    display: none;
}

.prorank-audit-toolbar-card,
.prorank-audit-empty-card,
.prorank-audit-category-card {
    margin-bottom: 18px;
    border-radius: 20px;
    border: 1px solid #dbe4f0;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.prorank-audit-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prorank-audit-toolbar__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.prorank-audit-toolbar__copy {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.prorank-audit-toolbar__filters {
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.prorank-audit-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 13px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.prorank-audit-results-bar__tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.prorank-audit-empty-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    text-align: center;
}

.prorank-audit-section {
    margin-bottom: 26px;
}

.prorank-audit-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.prorank-audit-section__description {
    display: block;
    color: #64748b;
}

.prorank-audit-section__badge,
.prorank-audit-category-card__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.prorank-audit-section--page .prorank-audit-section__badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.prorank-audit-section--sitewide .prorank-audit-section__badge {
    background: #fef3c7;
    color: #92400e;
}

.prorank-audit-section--crawl .prorank-audit-section__badge {
    background: #fee2e2;
    color: #b91c1c;
}

.prorank-audit-category-card__header {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.prorank-audit-category-card__copy {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.prorank-audit-category-card__link {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    color: #2563eb;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.prorank-audit-category-card__body {
    padding: 0;
}

.prorank-audit-issue-row__trigger {
    padding: 18px 18px 18px 24px;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.15s ease;
}

.prorank-audit-issue-row {
    position: relative;
}

.prorank-audit-issue-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: #cbd5e1;
}

.prorank-audit-issue-row.is-expanded .prorank-audit-issue-row__trigger,
.prorank-audit-issue-row__trigger:hover {
    background: #f8fafc;
}

.prorank-audit-issue-row__severity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Severity-specific badge colors */
.prorank-audit-issue-row[data-severity="critical"] .prorank-audit-issue-row__severity {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}
.prorank-audit-issue-row[data-severity="critical"]::before {
    background: #dc2626;
}
.prorank-audit-issue-row[data-severity="high"] .prorank-audit-issue-row__severity {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}
.prorank-audit-issue-row[data-severity="high"]::before {
    background: #ea580c;
}
.prorank-audit-issue-row[data-severity="medium"] .prorank-audit-issue-row__severity {
    background: #fefce8;
    color: #ca8a04;
    border-color: #fef08a;
}
.prorank-audit-issue-row[data-severity="medium"]::before {
    background: #ca8a04;
}
.prorank-audit-issue-row[data-severity="low"] .prorank-audit-issue-row__severity {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}
.prorank-audit-issue-row[data-severity="low"]::before {
    background: #16a34a;
}
.prorank-audit-issue-row[data-severity="warning"] .prorank-audit-issue-row__severity {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}
.prorank-audit-issue-row[data-severity="warning"]::before {
    background: #64748b;
}

.prorank-audit-issue-row__content {
    min-width: 0;
}

.prorank-audit-issue-row__title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}

.prorank-audit-issue-row__description {
    color: #526277;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 6px;
}

.prorank-audit-issue-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.prorank-audit-issue-row__meta-separator {
    color: #cbd5e1;
}

.prorank-audit-issue-row__arrow {
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.prorank-audit-issue-row.is-expanded .prorank-audit-issue-row__arrow {
    transform: rotate(90deg);
}

.prorank-audit-issue-row__panel {
    padding: 0 18px 18px 24px;
    background: #f8fafc;
}

.prorank-audit-issue-row__panel-card {
    padding: 18px;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.prorank-audit-detail-card,
.prorank-audit-url-card {
    margin-bottom: 16px;
}

.prorank-audit-detail-card__label,
.prorank-audit-value-card__label {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.prorank-audit-detail-card--technical code,
.prorank-audit-value-card code {
    display: block;
    word-break: break-word;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
}

.prorank-audit-detail-card--fix {
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
}

.prorank-audit-inline-note {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
}

.prorank-audit-inline-note--warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.prorank-audit-value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.prorank-audit-value-card {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.prorank-audit-value-card--current {
    background: #fef2f2;
    border-color: #fecaca;
}

.prorank-audit-value-card--recommended {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.prorank-audit-action-row {
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.prorank-audit-url-list {
    display: grid;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.prorank-audit-url-list__item {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    word-break: break-all;
}

.prorank-audit-url-list__item:hover {
    background: #eff6ff;
}

@media (max-width: 1100px) {
    .prorank-audit-hero {
        grid-template-columns: 1fr;
    }

    .prorank-audit-report-head {
        grid-template-columns: 1fr;
    }

    .prorank-audit-report-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prorank-audit-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .prorank-audit-report-head,
    .prorank-audit-hero,
    .prorank-audit-toolbar-card .components-card__body,
    .prorank-audit-category-card__header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .prorank-audit-hero__metrics,
    .prorank-audit-report-stat-grid,
    .prorank-audit-summary-grid,
    .prorank-audit-value-grid {
        grid-template-columns: 1fr;
    }

    .prorank-audit-report-topbar,
    .prorank-audit-inline-header,
    .prorank-audit-toolbar__header,
    .prorank-audit-section__header,
    .prorank-audit-results-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .prorank-audit-report-topbar__meta,
    .prorank-audit-inline-header__meta {
        justify-content: flex-start;
    }

    .prorank-audit-category-card__header .components-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

.prorank-issue-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.prorank-issue-section {
    margin-bottom: 24px;
}

.prorank-issue-section h4 {
    margin-bottom: 12px;
    color: #1e1e1e;
}

.prorank-url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
}

.prorank-url-display a {
    flex: 1;
    word-break: break-all;
}

.prorank-issue-context {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    overflow-x: auto;
}

.prorank-fix-suggestions {
    list-style: disc;
    margin-left: 20px;
}

.prorank-fix-suggestions li {
    margin-bottom: 8px;
}

.prorank-learn-more-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prorank-issue-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

/* Upgrade Notice */
.prorank-upgrade-notice .components-notice {
    max-width: 600px;
    margin: 40px auto;
}

/* Responsive */
@media (max-width: 782px) {
    .prorank-site-audit-dashboard {
        padding: 12px;
    }
    
    .prorank-audit-score .components-card__body {
        flex-direction: column;
    }
    
    .prorank-check-types {
        grid-template-columns: 1fr;
    }
    
    .prorank-issues-table-container {
        margin: -8px;
        padding: 8px;
    }
    
    .prorank-pagination {
        flex-wrap: wrap;
    }
}

/* Overall Score Card */
.prorank-overall-score-card {
    margin-bottom: 24px;
}

.prorank-overall-score-card .components-card__body {
    padding: 32px;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-right: 24px;
}

.score-circle .score-value {
    font-size: 36px;
    line-height: 1;
}

.score-circle .score-label {
    font-size: 14px;
    opacity: 0.9;
}

.score-excellent {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.score-good {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.score-needs-work {
    background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
    color: white;
}

.score-poor {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
}

/* Expandable Issues */
.prorank-issues-table tr.expandable {
    cursor: pointer;
}

.prorank-issues-table tr.expanded-details {
    background-color: #f8f9fa;
}

.prorank-issues-table tr.expanded-details td {
    padding: 0;
}

.issue-details-expanded {
    padding: 20px;
    border-top: 1px solid #e1e1e1;
}

.broken-links-list {
    margin: 0;
}

.broken-links-list table {
    margin: 0;
    border: none;
    box-shadow: none;
}

.broken-links-list .broken-url {
    color: #dc3545;
    word-break: break-all;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.status-404 {
    background-color: #fee;
    color: #dc3545;
}

.status-badge.status-timeout {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.status-broken {
    background-color: #fee;
    color: #dc3545;
}

.issue-description {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Print Styles */
@media print {
    .prorank-site-audit-dashboard {
        max-width: 100%;
    }
    
    .prorank-audit-tabs .components-tab-panel__tabs,
    .prorank-settings-actions,
    .prorank-issue-actions,
    .components-button {
        display: none;
    }
    
    .prorank-issues-table {
        font-size: 12px;
    }
}

/* Enhanced Dashboard Layout */
.prorank-audit-dashboard-content {
  padding: 20px 0;
}

.prorank-audit-score-section {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.prorank-health-score-card {
  flex: 0 0 auto;
}

.prorank-audit-results {
  animation: fadeIn 0.3s ease-in;
}

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

/* Progress indicator */
.prorank-audit-progress {
  margin-bottom: 20px;
  text-align: center;
}

.prorank-audit-progress .components-progress-bar {
  max-width: 600px;
  margin: 0 auto 10px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .prorank-audit-score-section {
    flex-direction: column;
  }
  
  .prorank-audit-quick-stats {
    margin-left: 0;
    margin-top: 2rem;
  }
}

/* Report Details Styles */
.prorank-audit-report-details {
    margin-top: 20px;
}

.prorank-audit-report-details .report-header {
    margin-bottom: 20px;
}

.prorank-audit-report-details .report-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0;
}

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

.report-summary-grid .summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.report-summary-grid .summary-item strong {
    color: #555;
    font-size: 14px;
}

.report-summary-grid .summary-item span {
    font-size: 20px;
    font-weight: 600;
}

/* Category Breakdown */
.category-breakdown .category-item {
    margin-bottom: 15px;
}

.category-breakdown .category-item span:first-child {
    font-weight: 600;
}

/* Issue Actions */
.issue-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Settings List Layout - Description Left, Toggle Right */
.prorank-settings-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.prorank-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    gap: 24px;
}

.prorank-setting-row:last-child {
    border-bottom: none;
}

.prorank-setting-row:first-child {
    padding-top: 0;
}

.prorank-setting-info {
    flex: 1;
    min-width: 0;
}

.prorank-setting-label {
    font-weight: 500;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

.prorank-setting-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* Ensure toggle doesn't shrink */
.prorank-setting-row .prorank-toggle-slider,
.prorank-setting-row .prorank-toggle {
    flex-shrink: 0;
}

/* Audit Settings Cards */
.prorank-audit-settings .audit-settings-card {
    margin-bottom: 16px;
}

.prorank-audit-settings .audit-settings-card:last-of-type {
    margin-bottom: 0;
}

/* ============================================
   Collapsible Settings Section
   ============================================ */

.prorank-settings-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.prorank-settings-section:last-child {
    margin-bottom: 0;
}

.prorank-settings-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.prorank-settings-section-header:hover {
    background: #f1f5f9;
}

.prorank-settings-section.expanded .prorank-settings-section-header {
    border-bottom-color: #e2e8f0;
}

.prorank-settings-section-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prorank-settings-section-header-left .components-icon {
    color: #64748b;
}

.prorank-settings-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.prorank-settings-section-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: #e2e8f0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

.prorank-settings-section-premium {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.prorank-settings-section-toggle-all {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.prorank-settings-section-toggle-all:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.prorank-settings-section-content {
    padding: 20px;
}

/* Check Grid - 2 columns for toggle groups */
.prorank-check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
}

.prorank-check-grid .prorank-setting-row {
    padding: 12px 0;
}

.prorank-check-grid .prorank-setting-row:first-child,
.prorank-check-grid .prorank-setting-row:nth-child(2) {
    padding-top: 0;
}

/* Setting Control - ensure consistent width */
.prorank-setting-control {
    flex-shrink: 0;
}

/* Responsive: Stack to single column on smaller screens */
@media (max-width: 900px) {
    .prorank-check-grid {
        grid-template-columns: 1fr;
    }

    .prorank-check-grid .prorank-setting-row:nth-child(2) {
        padding-top: 12px;
    }
}

/* Settings Form Actions */
.prorank-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin: 0 -20px -20px;
}

/* ============================================
   Site Audit Visual Refresh (2026)
   ============================================ */

.prorank-site-audit-page .prorank-site-audit-dashboard {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 18px 36px;
}

.prorank-site-audit-dashboard .prorank-audit-header {
    margin-bottom: 18px;
}

.prorank-site-audit-dashboard .prorank-audit-header h1 {
    margin: 0 0 6px;
    font-size: 30px;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.prorank-site-audit-dashboard .prorank-audit-header p {
    margin: 0;
    color: #475569;
}

.prorank-site-audit-dashboard .components-card {
    border: 1px solid #d8e1ef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.prorank-site-audit-dashboard .components-card__header {
    border-bottom: 1px solid #e6edf7;
    padding: 18px 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.prorank-site-audit-dashboard .components-card__body {
    padding: 20px;
}

.prorank-audit-mode-card .components-base-control__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #64748b;
    text-transform: uppercase;
}

.prorank-audit-progress-card {
    border-color: #cde2ff !important;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.prorank-progress-metrics-grid {
    border: 1px solid #d6e6fb;
}

.prorank-progress-metric {
    padding: 8px;
    border-radius: 8px;
    background: #ffffff;
}

.prorank-audit-tabs {
    margin-top: 20px;
}

.prorank-audit-tabs .components-tab-panel__tabs {
    width: fit-content;
    display: flex;
    gap: 8px;
    padding: 6px;
    margin-bottom: 18px;
    border: 1px solid #d8e1ef;
    border-radius: 10px;
    background: #f3f7fd;
}

.prorank-audit-tabs .components-tab-panel__tabs-item {
    margin: 0;
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.prorank-audit-tabs .components-tab-panel__tabs-item.is-active {
    border-bottom-color: transparent;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    color: #0b63d8;
}

.prorank-overall-score-card .components-card__body {
    padding: 22px;
}

.prorank-overall-score-layout {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.prorank-score-details p {
    margin: 0 0 8px;
    color: #475569;
}

.prorank-score-details ul {
    margin: 0;
    padding-left: 18px;
    color: #334155;
}

.prorank-score-details li {
    margin-bottom: 6px;
}

.prorank-score-details .last-scan {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

.prorank-audit-quick-stats-grid .prorank-stat-card .components-card__body {
    padding: 14px 16px;
}

.prorank-stat-card-critical {
    border-top: 3px solid #dc2626 !important;
}

.prorank-stat-card-high {
    border-top: 3px solid #ea580c !important;
}

.prorank-stat-card-medium {
    border-top: 3px solid #2563eb !important;
}

.prorank-stat-card-pass {
    border-top: 3px solid #16a34a !important;
}

.prorank-audit-comparison-grid {
    gap: 10px !important;
}

.prorank-audit-comparison-item {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fbff;
}

.prorank-category-results .category-item {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.prorank-category-results .category-item:last-child {
    margin-bottom: 0;
}

.prorank-audit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.prorank-audit-actions .components-button {
    margin: 0 !important;
}

.prorank-audit-empty-actions {
    margin-top: 8px;
}

.prorank-audit-filters-card .components-flex {
    gap: 14px !important;
}

@media (max-width: 900px) {
    .prorank-site-audit-page .prorank-site-audit-dashboard {
        padding: 16px 12px 24px;
    }

    .prorank-overall-score-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .prorank-score-details ul {
        text-align: left;
    }

    .prorank-audit-tabs .components-tab-panel__tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

/* ============================================
   Premium Dashboard 2026 – Hero + Categories
   ============================================ */

/* Hero Row: Score Ring + Stat Tiles */
.prorank-hero-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: start;
}

/* Score Ring Card */
.prorank-score-ring-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 20px;
    background: #fff;
    border: 1px solid #d8e1ef;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.prorank-score-ring {
    position: relative;
    width: 130px;
    height: 130px;
}

.prorank-score-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.prorank-score-ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.prorank-score-number {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.prorank-score-percent {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 2px;
}

.prorank-score-ring-label {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #334155;
}

.prorank-score-ring-date {
    margin-top: 4px;
    font-size: 11px;
    color: #94a3b8;
}

/* Stat Tiles */
.prorank-stat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.prorank-stat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px 16px;
    background: #fff;
    border: 1px solid #d8e1ef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.15s, transform 0.15s;
}

.prorank-stat-tile:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.prorank-stat-tile-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 10px;
}

.prorank-stat-tile--pages .prorank-stat-tile-icon {
    background: #eff6ff;
    color: #2563eb;
}

.prorank-stat-tile--issues .prorank-stat-tile-icon {
    background: #fef3c7;
    color: #d97706;
}

.prorank-stat-tile--critical .prorank-stat-tile-icon {
    background: #fef2f2;
    color: #dc2626;
}

.prorank-stat-tile--warnings .prorank-stat-tile-icon {
    background: #fff7ed;
    color: #ea580c;
}

.prorank-stat-tile--passed .prorank-stat-tile-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.prorank-stat-tile-value {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1;
}

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

/* Category Grid */
.prorank-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.prorank-category-card {
    padding: 18px 20px 16px;
    background: #fff;
    border: 1px solid #d8e1ef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.15s;
}

.prorank-category-card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.prorank-category-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.prorank-category-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.prorank-category-card-score {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.prorank-category-card-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.prorank-category-card-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.prorank-category-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.prorank-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.prorank-cat-badge--critical {
    background: #fef2f2;
    color: #b91c1c;
}

.prorank-cat-badge--warning {
    background: #fff7ed;
    color: #c2410c;
}

.prorank-cat-badge--passed {
    background: #f0fdf4;
    color: #15803d;
}

/* Responsive */
@media (max-width: 900px) {
    .prorank-hero-row {
        grid-template-columns: 1fr;
    }

    .prorank-score-ring-card {
        max-width: 220px;
        margin: 0 auto;
    }

    .prorank-category-grid {
        grid-template-columns: 1fr;
    }
}
