/**
 * Site Audit Feature Styles
 * 
 * Styles specific to the Site Audit dashboard and tools
 * Uses design tokens from core/_variables.css
 * 
 * @since 3.0.0
 */

/* ============================================
   AUDIT DASHBOARD
   ============================================ */

.wrap.prorank-site-audit-page {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

.prorank-site-audit-dashboard {
  max-width: 100%;
  margin: 0;
}

/* Connection Status */
.prorank-audit-connection-status {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: var(--prorank-radius-lg);
  padding: var(--prorank-spacing-3) var(--prorank-spacing-4);
  margin-bottom: var(--prorank-spacing-5);
  display: flex;
  align-items: center;
  gap: var(--prorank-spacing-3);
}

.prorank-audit-connection-status.connected {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

.prorank-audit-connection-status.disconnected {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
}

.prorank-audit-connection-icon {
  font-size: 20px;
  line-height: 1;
}

.prorank-audit-connection-text strong {
  color: #166534;
  display: block;
  margin-bottom: var(--prorank-spacing-1);
}

.prorank-audit-connection-text span {
  color: #15803d;
  font-size: var(--prorank-font-sm);
}

/* Audit Controls */
.prorank-site-audit-controls {
  background: var(--prorank-bg-primary);
  border-radius: var(--prorank-radius-lg);
  padding: var(--prorank-spacing-5);
  margin-bottom: var(--prorank-spacing-5);
  box-shadow: var(--prorank-shadow-sm);
}

.prorank-site-audit-controls h2 {
  margin-bottom: var(--prorank-spacing-2);
  color: var(--prorank-text-primary);
}

.prorank-site-audit-controls .prorank-text-secondary {
  margin-bottom: var(--prorank-spacing-4);
}

/* Audit Progress */
.prorank-audit-progress-container {
  background: var(--prorank-bg-secondary);
  border-radius: var(--prorank-radius-md);
  padding: var(--prorank-spacing-4);
  margin-bottom: var(--prorank-spacing-4);
}

.prorank-audit-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--prorank-spacing-3);
}

.prorank-audit-progress-status {
  display: flex;
  align-items: center;
  gap: var(--prorank-spacing-2);
  color: var(--prorank-text-secondary);
}

.prorank-audit-progress-status .icon {
  font-size: 18px;
}

/* Audit Score */
.prorank-audit-score {
  display: flex;
  align-items: center;
  gap: var(--prorank-spacing-6);
  padding: var(--prorank-spacing-5);
  background: linear-gradient(135deg, var(--prorank-bg-primary) 0%, var(--prorank-bg-secondary) 100%);
  border-radius: var(--prorank-radius-lg);
}

.prorank-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--prorank-primary) 0%, var(--prorank-primary-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--prorank-shadow-lg);
}

.prorank-score-number {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.prorank-score-label {
  font-size: var(--prorank-font-sm);
  opacity: 0.9;
}

/* Issue Summary */
.prorank-issue-summary {
  flex: 1;
}

.prorank-issue-count {
  display: inline-block;
  font-size: 24px;
  font-weight: 600;
  margin-right: var(--prorank-spacing-2);
}

.prorank-issue-count.critical {
  color: #d63638;
}

.prorank-issue-count.high {
  color: #f0b849;
}

.prorank-issue-count.medium {
  color: #00a0d2;
}

.prorank-issue-count.low {
  color: #00ba37;
}

.prorank-issue-label {
  font-size: var(--prorank-font-sm);
  color: var(--prorank-text-secondary);
  display: block;
  margin-top: var(--prorank-spacing-1);
}

/* ============================================
   ISSUE MANAGEMENT
   ============================================ */

/* Severity Badges */
.prorank-site-audit-severity-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--prorank-radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
  margin-left: var(--prorank-spacing-2);
}

.prorank-site-audit-severity-critical {
  background-color: #d63638;
}

.prorank-site-audit-severity-high {
  background-color: #f0b849;
}

.prorank-site-audit-severity-medium {
  background-color: #00a0d2;
}

.prorank-site-audit-severity-low {
  background-color: #00ba37;
}

.prorank-site-audit-severity-warning {
  background-color: #826eb4;
}

/* Issues List */
.prorank-issues-list {
  display: flex;
  flex-direction: column;
  gap: var(--prorank-spacing-3);
}

.prorank-issue-item {
  padding: var(--prorank-spacing-4);
  background: var(--prorank-bg-primary);
  border: 1px solid var(--prorank-border-color);
  border-radius: var(--prorank-radius-md);
  transition: all 0.2s ease;
}

.prorank-issue-item:hover {
  box-shadow: var(--prorank-shadow-md);
  transform: translateY(-1px);
}

.prorank-issue-item h4 {
  margin-bottom: var(--prorank-spacing-2);
  color: var(--prorank-text-primary);
  font-size: var(--prorank-font-base);
}

.prorank-issue-item .prorank-text-secondary {
  margin-bottom: var(--prorank-spacing-2);
  line-height: 1.6;
}

.prorank-issue-item .prorank-text-sm {
  font-size: var(--prorank-font-sm);
  color: var(--prorank-text-muted);
}

/* Bulk Actions Bar */
.prorank-bulk-actions-bar {
  padding: var(--prorank-spacing-3);
  background: var(--prorank-bg-secondary);
  border-radius: var(--prorank-radius-md);
  margin-bottom: var(--prorank-spacing-4);
  border: 1px solid var(--prorank-border-color);
}

.prorank-bulk-actions-bar span {
  font-weight: 600;
  color: var(--prorank-text-primary);
}

/* ============================================
   IMPORT/EXPORT SECTION
   ============================================ */

.prorank-import-section {
  background: var(--prorank-bg-secondary);
  border: 2px dashed var(--prorank-border-color);
  border-radius: var(--prorank-radius-lg);
  padding: var(--prorank-spacing-5);
  margin-top: var(--prorank-spacing-5);
}

.prorank-import-section h3 {
  margin-bottom: var(--prorank-spacing-3);
  color: var(--prorank-text-primary);
}

.prorank-import-file-info {
  color: var(--prorank-success);
  margin-top: var(--prorank-spacing-2);
  display: flex;
  align-items: center;
  gap: var(--prorank-spacing-2);
}

.prorank-import-mode-description {
  margin-top: var(--prorank-spacing-2);
  padding: var(--prorank-spacing-3);
  background: var(--prorank-bg-info);
  border-radius: var(--prorank-radius-sm);
  font-size: var(--prorank-font-sm);
}

/* ============================================
   AUDIT HISTORY
   ============================================ */

.prorank-history-list {
  display: flex;
  flex-direction: column;
  gap: var(--prorank-spacing-2);
}

.prorank-history-item {
  padding: var(--prorank-spacing-3);
  background: var(--prorank-bg-primary);
  border: 1px solid var(--prorank-border-color);
  border-radius: var(--prorank-radius-md);
  transition: background 0.2s ease;
}

.prorank-history-item:hover {
  background: var(--prorank-bg-secondary);
}

.prorank-history-item strong {
  color: var(--prorank-text-primary);
}

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

@media (max-width: 768px) {
  .prorank-audit-score {
    flex-direction: column;
    text-align: center;
  }

  .prorank-score-circle {
    width: 100px;
    height: 100px;
  }

  .prorank-score-number {
    font-size: 36px;
  }

  .prorank-issue-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--prorank-spacing-3);
    width: 100%;
  }

  .prorank-site-audit-controls .prorank-flex {
    flex-direction: column;
  }

  .prorank-bulk-actions-bar .prorank-flex {
    flex-direction: column;
    gap: var(--prorank-spacing-2);
  }
}

/* ============================================
   LOADING STATES
   ============================================ */

.prorank-audit-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--prorank-spacing-8);
  color: var(--prorank-text-secondary);
}

.prorank-audit-loading .prorank-spinner {
  margin-bottom: var(--prorank-spacing-3);
}

/* ============================================
   WEBSOCKET STATUS
   ============================================ */

.prorank-websocket-indicator {
  position: fixed;
  bottom: var(--prorank-spacing-4);
  right: var(--prorank-spacing-4);
  padding: var(--prorank-spacing-2) var(--prorank-spacing-3);
  background: var(--prorank-bg-primary);
  border-radius: var(--prorank-radius-full);
  box-shadow: var(--prorank-shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--prorank-spacing-2);
  font-size: var(--prorank-font-sm);
  z-index: 9999;
}

.prorank-websocket-indicator.connected {
  background: var(--prorank-success-bg);
  color: var(--prorank-success);
}

.prorank-websocket-indicator.disconnected {
  background: var(--prorank-error-bg);
  color: var(--prorank-error);
}

.prorank-websocket-indicator .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ============================================
   COLLAPSIBLE SETTINGS SECTIONS
   ============================================ */

.prorank-settings-section {
  background: #ffffff;
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius-lg);
  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: var(--prorank-bg-secondary);
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.prorank-settings-section-header:hover {
  background: var(--prorank-bg-tertiary);
}

.prorank-settings-section.expanded .prorank-settings-section-header {
  border-bottom-color: var(--prorank-border);
}

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

.prorank-settings-section-header-left .dashicons {
  color: var(--prorank-text-secondary);
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 18px;
}

.prorank-settings-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--prorank-text-primary);
}

.prorank-settings-section-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: var(--prorank-bg-tertiary);
  border-radius: var(--prorank-radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--prorank-text-secondary);
}

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

.prorank-settings-section-toggle-all {
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--prorank-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.prorank-settings-section-toggle-all:hover {
  background: var(--prorank-bg-secondary);
  border-color: var(--prorank-border-dark);
  color: var(--prorank-text-primary);
}

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

/* Setting Rows - Description Left, Control Right */
.prorank-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--prorank-border);
  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: var(--prorank-text-primary);
  margin-bottom: 2px;
}

.prorank-setting-desc {
  font-size: 13px;
  color: var(--prorank-text-secondary);
  line-height: 1.4;
}

.prorank-setting-control {
  flex-shrink: 0;
}

/* 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;
}

/* 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;
  margin-top: 20px;
}
/* ============================================
   SITE AUDIT PAGE STYLES
   Sourced from pages/SiteAudit/site-audit.css so audit UI lives in the
   versioned global admin stylesheet instead of a stale split CSS chunk.
   ============================================ */

/**
 * 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,
.prorank-audit-hero__copy .components-text,
.prorank-audit-hero__copy p {
    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.14) 0%, rgba(255, 255, 255, 0.07) 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__back.components-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border-color: #fed7aa;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    color: #c2410c;
    font-weight: 700;
}

.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,
.prorank-audit-report-head__copy .components-text,
.prorank-audit-report-head__copy p {
    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.14) 0%, rgba(255, 255, 255, 0.07) 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: 24px;
    border: 1px solid #d8e3ef;
    overflow: hidden;
    box-shadow:
        0 22px 42px rgba(15, 23, 42, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.7) inset;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.prorank-audit-report-panel__header {
    padding: 20px 24px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.96) 100%);
    border-bottom: 1px solid #e7eef6;
}

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

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

.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 #dde6f0;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.06), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.prorank-audit-breakdown-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.12);
}

.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: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f7fafc 100%);
}

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

.prorank-audit-issue-row {
    position: relative;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.prorank-audit-issue-row:last-child {
    margin-bottom: 0;
}

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

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

.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: 5px;
}

.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: linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
    border-top: 1px solid #e8eef5;
}

.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),
        0 10px 22px rgba(15, 23, 42, 0.05);
}

.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: 28px 18px 40px;
}

.prorank-site-audit-shell {
    position: relative;
    z-index: 2;
}

.prorank-site-audit-shell > .prorank-tab-navigation {
    max-width: 1160px;
    margin: -44px auto 18px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
    box-shadow:
        0 26px 52px rgba(15, 23, 42, 0.14),
        0 1px 0 rgba(255, 255, 255, 0.7) inset;
    backdrop-filter: blur(18px);
}

.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    overflow: visible;
}

.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-item {
    min-width: 0;
    min-height: auto;
    padding: 0;
}

.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 78px;
    padding: 16px 18px;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    color: #334155;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button:hover:not(.disabled) {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
    color: #0f172a;
}

.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button.active,
.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button.is-active {
    border-color: #3b82f6;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    box-shadow: 0 18px 34px rgba(29, 78, 216, 0.24);
    color: #f8fafc;
}

.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-label {
    justify-content: flex-start;
}

.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: normal;
}

.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-item .prorank-pro-badge {
    top: 10px;
    right: 12px;
}

.prorank-site-audit-dashboard .prorank-audit-header {
    margin-bottom: 22px;
    padding: 6px 2px 0;
}

.prorank-site-audit-dashboard .prorank-audit-header h1 {
    margin: 0 0 8px;
    font-size: clamp(34px, 3vw, 42px);
    letter-spacing: -0.04em;
    color: #0f172a;
}

.prorank-site-audit-dashboard .prorank-audit-header p {
    margin: 0;
    max-width: 62ch;
    color: #526277;
    font-size: 14px;
    line-height: 1.75;
}

.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: 22px;
}

.prorank-audit-tabs .components-tab-panel__tabs {
    width: fit-content;
    display: flex;
    gap: 8px;
    padding: 7px;
    margin-bottom: 22px;
    border: 1px solid #dce6f2;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.prorank-audit-tabs .components-tab-panel__tabs-item {
    margin: 0;
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.prorank-audit-tabs .components-tab-panel__tabs-item.is-active {
    border-bottom-color: transparent;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(59, 130, 246, 0.08) inset;
    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-site-audit-shell > .prorank-tab-navigation {
        margin-top: -24px;
        padding: 10px;
        border-radius: 20px;
    }

    .prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-list {
        grid-template-columns: 1fr;
    }

    .prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button {
        min-height: 64px;
    }

    .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;
    }
}

.prorank-site-audit-page {
    background:
        radial-gradient(circle at top right, rgba(255, 105, 0, 0.10), transparent 22%),
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.06), transparent 26%),
        linear-gradient(180deg, #fff7f2 0%, #f8fafc 240px, #f6f8fb 100%);
    min-height: 100%;
}

body.wp-admin .prorank-site-audit-page .prorank-header,
#wpbody .prorank-site-audit-page .prorank-header,
#wpbody-content .prorank-site-audit-page .prorank-header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 105, 0, 0.34), transparent 24%),
        linear-gradient(135deg, #0b121f 0%, #11233d 52%, #20345a 100%) !important;
    color: #f8fafc !important;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18) !important;
}

.prorank-site-audit-page .prorank-header-content {
    max-width: 1240px;
    margin: 0 auto;
}

.prorank-site-audit-page .prorank-header-badges {
    margin-top: 14px;
}

.prorank-site-audit-page .prorank-header-badge {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 222, 191, 0.28);
    color: #fff7ed;
    backdrop-filter: blur(12px);
}

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

.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation {
    max-width: 1180px;
    margin: -54px auto 22px !important;
    padding: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.76) !important;
    border-radius: 28px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 250, 252, 0.95) 100%) !important;
    box-shadow:
        0 28px 54px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(16px);
}

.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 12px !important;
    overflow: visible !important;
    justify-content: stretch !important;
}

.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-item {
    min-width: 0 !important;
    min-height: auto !important;
    padding: 0 !important;
    display: block !important;
}

.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button {
    width: 100% !important;
    min-height: 74px !important;
    padding: 16px 18px !important;
    border: 1px solid #d8e2f0 !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06) !important;
    color: #334155 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-align: center !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button:hover:not(.disabled) {
    transform: translateY(-2px);
    border-color: #bfd7ff !important;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.14) !important;
    color: #0f172a !important;
}

.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button.active,
.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button.is-active {
    border-color: rgba(255, 105, 0, 0.34) !important;
    background:
        radial-gradient(circle at top right, rgba(255, 105, 0, 0.28), transparent 28%),
        linear-gradient(135deg, #0b121f 0%, #172554 58%, #243b63 100%) !important;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24) !important;
    color: #f8fafc !important;
}

.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button.active:hover,
.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button.is-active:hover {
    border-color: rgba(255, 105, 0, 0.38) !important;
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.28) !important;
    color: #f8fafc !important;
}

.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button.active:hover .prorank-tab-label,
.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button.active:hover .prorank-tab-name,
.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button.is-active:hover .prorank-tab-label,
.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button.is-active:hover .prorank-tab-name {
    color: #f8fafc !important;
}

.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-label,
.prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-name {
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
}

.prorank-site-audit-page .prorank-site-audit-dashboard .prorank-audit-header {
    margin-bottom: 22px;
    padding: 4px 2px 0;
}

.prorank-site-audit-page .prorank-site-audit-dashboard .prorank-audit-header h1 {
    margin: 0 0 8px;
    font-size: clamp(34px, 3vw, 42px);
    letter-spacing: -0.04em;
    color: #0f172a;
}

.prorank-site-audit-page .prorank-site-audit-dashboard .prorank-audit-header p {
    margin: 0;
    max-width: 64ch;
    color: #516174;
    font-size: 14px;
    line-height: 1.75;
}

.prorank-site-audit-page .prorank-site-audit-dashboard .prorank-audit-tabs .components-tab-panel__tabs {
    width: fit-content !important;
    display: flex !important;
    gap: 8px !important;
    padding: 8px !important;
    margin-bottom: 22px !important;
    border: 1px solid #dbe5f1 !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 244, 251, 0.92) 100%) !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06) !important;
}

.prorank-site-audit-page .prorank-site-audit-dashboard .prorank-audit-tabs .components-tab-panel__tabs-item {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    box-shadow: none !important;
}

.prorank-site-audit-page .prorank-site-audit-dashboard .prorank-audit-tabs .components-tab-panel__tabs-item.is-active {
    border-bottom-color: transparent !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.08),
        inset 0 0 0 1px rgba(255, 105, 0, 0.12) !important;
    color: #ff6900 !important;
}

.prorank-site-audit-page .prorank-audit-history-card {
    border: 1px solid #d7e3f2 !important;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08) !important;
}

.prorank-site-audit-page .prorank-audit-history-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 26px !important;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%) !important;
}

.prorank-site-audit-page .prorank-audit-history-card__copy h3 {
    margin: 0 0 8px;
    font-size: 30px;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.prorank-site-audit-page .prorank-audit-history-card__subtitle {
    margin: 0;
    max-width: 58ch;
    color: #526277;
    font-size: 14px;
    line-height: 1.7;
}

.prorank-site-audit-page .prorank-audit-history-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prorank-site-audit-page .prorank-audit-history-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff3ea;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.prorank-site-audit-page .prorank-audit-history-pill.is-muted {
    background: #f8fafc;
    color: #64748b;
    border-color: #dbe5f1;
}

.prorank-site-audit-page .prorank-audit-history-card__body {
    padding: 0 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.prorank-site-audit-page .prorank-audit-history-table-wrap {
    padding: 18px;
    overflow-x: auto;
}

.prorank-site-audit-page .prorank-history-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0 10px;
    background: transparent !important;
    box-shadow: none !important;
}

.prorank-site-audit-page .prorank-history-table thead th {
    padding: 0 14px 10px;
    border: 0 !important;
    background: transparent !important;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prorank-site-audit-page .prorank-history-table tbody td {
    padding: 16px 14px;
    border-top: 1px solid #dbe5f1 !important;
    border-bottom: 1px solid #dbe5f1 !important;
    background: #ffffff;
    color: #1f2937;
    vertical-align: middle;
}

.prorank-site-audit-page .prorank-history-table tbody tr:hover td {
    background: #f8fbff;
}

.prorank-site-audit-page .prorank-history-table tbody td:first-child {
    border-left: 1px solid #dbe5f1 !important;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.prorank-site-audit-page .prorank-history-table tbody td:last-child {
    border-right: 1px solid #dbe5f1 !important;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.prorank-site-audit-page .prorank-history-table__date {
    font-weight: 700;
    color: #0f172a;
}

.prorank-site-audit-page .prorank-history-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.prorank-site-audit-page .prorank-history-status.is-completed {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #15803d;
}

.prorank-site-audit-page .prorank-history-status.is-failed {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.prorank-site-audit-page .prorank-history-status.is-running {
    background: #fefce8;
    border-color: #fde68a;
    color: #a16207;
}

.prorank-site-audit-page .prorank-history-score {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.prorank-site-audit-page .prorank-history-score.is-good {
    color: #16a34a;
}

.prorank-site-audit-page .prorank-history-score.is-warn {
    color: #d97706;
}

.prorank-site-audit-page .prorank-history-score.is-bad {
    color: #dc2626;
}

.prorank-site-audit-page .prorank-history-empty {
    color: #94a3b8;
}

.prorank-site-audit-page .prorank-history-action.components-button.is-secondary {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #fdba74;
    background: linear-gradient(180deg, #ffffff 0%, #fff3ea 100%);
    color: #c2410c;
    box-shadow: 0 6px 14px rgba(255, 105, 0, 0.12);
}

.prorank-site-audit-page .prorank-history-action.components-button.is-secondary:hover {
    border-color: #fb923c;
    color: #0f172a;
}

@media (max-width: 900px) {
    .prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation {
        margin-top: -26px !important;
        padding: 10px !important;
        border-radius: 22px !important;
    }

    .prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-list {
        grid-template-columns: 1fr !important;
    }

    .prorank-site-audit-page .prorank-content.prorank-site-audit-shell > .prorank-tab-navigation .prorank-tab-button {
        min-height: 64px !important;
        padding: 14px 16px !important;
    }

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

    .prorank-site-audit-page .prorank-audit-history-card__header {
        flex-direction: column;
    }

    .prorank-site-audit-page .prorank-audit-history-card__body {
        padding: 0 !important;
    }

    .prorank-site-audit-page .prorank-audit-history-table-wrap {
        padding: 14px;
    }
}

/* ============================================
   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;
    }
}
