/* ═══════════════════════════════════════════════════════════════════════
   RANK SPIDERS FREE SEO AUDIT STYLING (1-1 MATCH WITH NEXT.JS)
   ═══════════════════════════════════════════════════════════════════════ */

.tool-scanner-section {
    overflow: visible !important;
}
.rs-audit-lead-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 36px 40px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
    overflow: visible !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.rs-audit-lead-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}
.rs-audit-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 680px) {
    .rs-audit-grid-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .rs-audit-lead-card {
        padding: 24px 20px;
        border-radius: 18px;
    }
}
.rs-form-field {
    margin-bottom: 20px;
}
.rs-form-field:last-of-type {
    margin-bottom: 24px;
}
.rs-field-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.rs-req-star {
    color: #ef4444;
    font-weight: 800;
}
.rs-input-control {
    width: 100%;
    height: 52px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    box-sizing: border-box;
}
.rs-input-control:focus {
    background: #ffffff;
    border-color: var(--accent-color, #521b89);
    outline: none;
    box-shadow: 0 0 0 4px rgba(82, 27, 137, 0.12);
}
.rs-input-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* Phone input group */
.rs-phone-input-group {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
    transition: all 0.25s ease;
}
.rs-phone-input-group:focus-within {
    background: #ffffff;
    border-color: var(--accent-color, #521b89);
    box-shadow: 0 0 0 4px rgba(82, 27, 137, 0.12);
}
.rs-country-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 0 10px 0 12px;
    height: 50px;
    border-right: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e1b4b;
    flex-shrink: 0;
    user-select: none;
}
.rs-country-select {
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e1b4b;
    outline: none;
    cursor: pointer;
    padding-right: 2px;
}
.rs-country-select option {
    background: #ffffff;
    color: #1e1b4b;
}
.rs-phone-input-group .rs-phone-field {
    border: none;
    background: transparent;
    height: 50px;
    padding: 0 14px;
    width: 100%;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    font-family: inherit;
}
.rs-phone-input-group .rs-phone-field::placeholder {
    color: #94a3b8;
}

/* URL input with globe icon */
.rs-url-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
    transition: all 0.25s ease;
}
.rs-url-group:focus-within {
    background: #ffffff;
    border-color: var(--accent-color, #521b89);
    box-shadow: 0 0 0 4px rgba(82, 27, 137, 0.12);
}
.rs-url-icon {
    position: absolute;
    left: 16px;
    font-size: 1.05rem;
    color: var(--accent-color, #521b89);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rs-url-field {
    border: none;
    background: transparent;
    height: 52px;
    width: 100%;
    padding-left: 48px;
    padding-right: 16px;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    font-family: inherit;
}
.rs-url-field::placeholder {
    color: #94a3b8;
}

/* Ultra-Sleek Custom Dropdown */
.rs-custom-dropdown {
    position: relative;
    width: 100%;
    z-index: 50;
}
.rs-custom-dropdown.open {
    z-index: 9999;
}
.rs-custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
.rs-custom-select-trigger:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}
.rs-custom-dropdown.open .rs-custom-select-trigger {
    background: #ffffff;
    border-color: var(--accent-color, #521b89);
    box-shadow: 0 0 0 4px rgba(82, 27, 137, 0.12);
}
.rs-selected-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}
.rs-selected-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(82, 27, 137, 0.08);
    color: var(--accent-color, #521b89);
    font-size: 0.92rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.rs-dropdown-chevron {
    color: #64748b;
    font-size: 0.85rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}
.rs-custom-dropdown.open .rs-dropdown-chevron {
    transform: rotate(180deg);
    color: var(--accent-color, #521b89);
}

/* Custom Dropdown Menu Card */
.rs-custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid rgba(82, 27, 137, 0.18);
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22), 0 8px 24px rgba(82, 27, 137, 0.12);
    padding: 8px;
    z-index: 99999 !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
}
.rs-custom-dropdown.open .rs-custom-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.rs-dropdown-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    background: transparent;
    user-select: none;
    box-sizing: border-box;
}
.rs-dropdown-option:hover {
    background: rgba(82, 27, 137, 0.06);
}
.rs-dropdown-option.selected {
    background: rgba(82, 27, 137, 0.09);
}
.rs-opt-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rs-opt-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    transition: all 0.18s ease;
    flex-shrink: 0;
}
.rs-dropdown-option:hover .rs-opt-icon,
.rs-dropdown-option.selected .rs-opt-icon {
    background: var(--accent-color, #521b89);
    color: #ffffff;
}
.rs-opt-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.rs-opt-title {
    font-size: 0.93rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    transition: color 0.18s ease;
}
.rs-dropdown-option:hover .rs-opt-title,
.rs-dropdown-option.selected .rs-opt-title {
    color: var(--accent-color, #521b89);
}
.rs-opt-desc {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 1px;
}
.rs-opt-check {
    color: var(--accent-color, #521b89);
    font-size: 0.95rem;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.18s ease;
    margin-right: 6px;
}
.rs-dropdown-option.selected .rs-opt-check {
    opacity: 1;
    transform: scale(1);
}

/* Submit Action Button */
.rs-audit-run-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    background: var(--accent-color, #521b89);
    color: #ffffff !important;
    font-family: var(--default-font, inherit);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(82, 27, 137, 0.32);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 10px;
}
.rs-audit-run-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--accent-hover, #3c0f66) 0%, var(--accent-yellow, #f59e0b) 100%);
    box-shadow: 0 8px 25px rgba(82, 27, 137, 0.35), 0 2px 14px rgba(245, 158, 11, 0.35);
}
.rs-audit-run-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(82, 27, 137, 0.25);
}
.rs-audit-run-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* Trust Badges Strip */
.rs-audit-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #475569;
}
.rs-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.rs-trust-item i {
    font-size: 0.95rem;
}
.rs-trust-bullet {
    color: #cbd5e1;
    font-weight: 900;
    font-size: 1rem;
}
@media (max-width: 540px) {
    .rs-audit-trust-row {
        gap: 10px;
        font-size: 0.78rem;
    }
    .rs-trust-bullet {
        display: none;
    }
    .rs-trust-item {
        margin: 2px 6px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   PREMIUM SEO AUDIT RESULTS STYLING
   ═══════════════════════════════════════════════════════════════════════ */
.audit-hero-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 28px;
}
.audit-hero-top {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.audit-hero-meta {
    flex: 1;
    min-width: 240px;
}
.audit-hero-url {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color, #1e1b4b);
    margin: 0 0 4px;
    word-break: break-all;
}
.audit-hero-date {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    margin: 0;
}
.audit-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #521b89 0%, #7c3aed 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(82, 27, 137, 0.3);
}
.audit-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 27, 137, 0.45);
}
.audit-metrics-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.audit-metric-cell {
    background: var(--bg-subtle, #f8fafc);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.audit-metric-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.audit-metric-val {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}
.audit-metric-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.audit-category-panel {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.04);
}
.audit-category-heading {
    font-family: var(--heading-font);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color, #1e1b4b);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.audit-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px 30px;
}
.audit-cat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.audit-cat-label {
    display: flex;
    align-items: center;
    width: 135px;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 8px;
    color: var(--text-color, #1e1b4b);
}
.audit-cat-bar-track {
    flex: 1;
    height: 9px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
}
.audit-cat-bar-pass {
    height: 100%;
    background: #10B981;
    transition: width 0.8s ease;
}
.audit-cat-bar-warn {
    height: 100%;
    background: #F59E0B;
    transition: width 0.8s ease;
}
.audit-cat-counts {
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    color: var(--text-muted, #64748b);
}
.audit-cat-pct {
    font-size: 0.85rem;
    font-weight: 800;
    width: 44px;
    text-align: right;
    flex-shrink: 0;
}
.audit-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--card-border, #e2e8f0);
    padding-bottom: 12px;
    flex-wrap: wrap;
}
.audit-filter-btn {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--card-border, #e2e8f0);
    background: var(--card-bg, #ffffff);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
}
.audit-filter-btn:hover {
    border-color: var(--accent-color, #521b89);
    color: var(--accent-color, #521b89);
}
.audit-filter-btn.active {
    background: var(--accent-color, #521b89);
    color: #ffffff;
    border-color: var(--accent-color, #521b89);
    box-shadow: 0 2px 10px rgba(82, 27, 137, 0.25);
}
.audit-checks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 1100px) {
    .audit-checks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .audit-checks-grid {
        grid-template-columns: 1fr;
    }
}
.audit-check-card {
    padding: 20px 22px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-left: 5px solid;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.audit-check-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.audit-check-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.audit-check-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}
.audit-check-label {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color, #1e1b4b);
    flex: 1;
}
.audit-check-status {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
}
.audit-check-detail {
    font-size: 0.85rem;
    color: var(--text-color, #334155);
    margin: 0 0 6px 36px;
    line-height: 1.5;
    word-break: break-word;
}
.audit-check-tip {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    margin: 0 0 10px 36px;
    font-style: italic;
    line-height: 1.4;
}
.audit-fix-toggle {
    margin-left: 36px;
    background: none;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}
.audit-fix-body {
    margin: 12px 0 0 36px;
    padding: 14px 18px;
    background: rgba(82, 27, 137, 0.04);
    border-left: 3px solid var(--accent-color, #521b89);
    border-radius: 8px;
    font-size: 0.84rem;
    color: var(--text-color, #1e1b4b);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════
   DIAGNOSTIC SCOPE & BEAUTIFIED BOXES
   ═══════════════════════════════════════════════════════════════════════ */
.tool-what-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.tool-what-group-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tool-what-group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(82, 27, 137, 0.08);
}
.tool-what-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(82, 27, 137, 0.08);
    color: var(--accent-color, #521b89);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
}
.tool-what-group-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}
.tool-what-group-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tool-what-group-card ul li {
    font-size: 0.86rem;
    color: #64748b;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.rs-beautified-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 38px 36px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
    margin-bottom: 3rem;
}
.rs-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(82, 27, 137, 0.08);
    color: var(--accent-color, #521b89);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.rs-beautified-heading {
    font-family: var(--heading-font);
    font-size: 1.85rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.rs-beautified-heading span {
    background: linear-gradient(135deg, var(--accent-color, #521b89) 0%, var(--accent-secondary-color, #8c2fe6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.rs-beautified-subtext {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.rs-coverage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
@media (max-width: 768px) {
    .rs-coverage-grid {
        grid-template-columns: 1fr;
    }
    .rs-beautified-box {
        padding: 24px 20px;
        border-radius: 18px;
    }
}
.rs-coverage-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 20px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}
.rs-coverage-card:hover {
    background: #ffffff;
    border-color: rgba(82, 27, 137, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(82, 27, 137, 0.08);
}
.rs-coverage-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.rs-coverage-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(82, 27, 137, 0.08) 0%, rgba(140, 47, 230, 0.12) 100%);
    color: var(--accent-color, #521b89);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.12rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.rs-coverage-card:hover .rs-coverage-icon {
    background: var(--accent-color, #521b89);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(82, 27, 137, 0.35);
    transform: scale(1.05);
}
.rs-coverage-title {
    font-family: var(--heading-font);
    font-size: 1.02rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0;
    line-height: 1.35;
}
.rs-coverage-desc {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.6;
    margin: 0;
}

.rs-process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
@media (max-width: 768px) {
    .rs-process-grid {
        grid-template-columns: 1fr;
    }
}
.rs-process-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 22px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.rs-process-card:hover {
    background: #ffffff;
    border-color: rgba(82, 27, 137, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(82, 27, 137, 0.08);
}
.rs-process-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.rs-process-step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--accent-color, #521b89) 0%, var(--accent-secondary-color, #8c2fe6) 100%);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(82, 27, 137, 0.25);
}
.rs-process-num-ghost {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.95;
    line-height: 1;
    letter-spacing: -0.03em;
}
.rs-process-title {
    font-family: var(--heading-font);
    font-size: 1.08rem;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 6px;
}
.rs-process-desc {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   A4 PRINT / PDF EXPORT REPORT STYLING
   ═══════════════════════════════════════════════════════════════════════ */
@media print {
    @page { size: A4 portrait; margin: 0 0 20pt 0; }
    .main-header, .main-footer, .our-scrolling-ticker,
    .rs-preloader, .ambient-bg,
    .tool-scanner-section, .free-audit-form-section,
    .screen-only, #rs-audit-results-section, #rs-preaudit-what-section,
    #rs-lead-popup, #rs-chat-container, #rs-chat-fab, .rs-chat-fab { display: none !important; }

    .print-only, #rs-print-report { display: block !important; }

    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    html, body {
        background: #fff !important; color: #111 !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
        font-size: 10pt; margin: 0; padding: 0;
    }

    .pr-root { padding: 16pt 20pt 50pt; background: #fff; color: #111; position: relative; }
    .pr-watermark {
        position: fixed; top: 50%; left: 50%;
        transform: translate(-50%, -50%) rotate(-22deg);
        width: 55%; opacity: 0.05; z-index: 0;
        pointer-events: none; filter: grayscale(100%);
    }
    .pr-page-footer {
        position: fixed; bottom: 0; left: 0; right: 0;
        display: flex !important; justify-content: space-between; align-items: center;
        padding: 4pt 20pt; font-size: 7pt; color: #999;
        border-top: 0.5pt solid #e5e7eb; background: #fff;
    }
    .pr-header {
        display: flex !important; justify-content: space-between; align-items: flex-start;
        margin-bottom: 6pt;
    }
    .pr-header-left { display: flex !important; align-items: center; gap: 11pt; }
    .pr-logo { height: 30pt; width: auto; display: block; }
    .pr-header-info { display: flex !important; flex-direction: column; gap: 2pt; }
    .pr-report-title { font-size: 13pt; font-weight: 800; color: #111; line-height: 1.2; }
    .pr-report-url { font-size: 8pt; color: #4F46E5; word-break: break-all; }
    .pr-report-date { font-size: 7pt; color: #777; }
    .pr-score-badge { border: 2pt solid; border-radius: 8pt; padding: 5pt 11pt; text-align: center; min-width: 52pt; }
    .pr-score-num { display: block; font-size: 24pt; font-weight: 900; line-height: 1; }
    .pr-score-label { display: block; font-size: 7pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5pt; margin-top: 1pt; }
    .pr-score-sub { display: block; font-size: 6.5pt; color: #999; margin-top: 1pt; }
    .pr-divider { border: none; border-top: 1.5pt solid; margin: 5pt 0 9pt; }

    .pr-metrics-strip {
        display: flex !important; border: 0.75pt solid #e5e7eb;
        border-radius: 6pt; overflow: hidden; margin-bottom: 10pt;
    }
    .pr-metric-cell {
        flex: 1; text-align: center; padding: 5pt 2pt;
        border-right: 0.75pt solid #e5e7eb;
        display: flex !important; flex-direction: column; align-items: center; gap: 2pt;
    }
    .pr-metric-cell:last-child { border-right: none; }
    .pr-metric-val { font-size: 12pt; font-weight: 800; line-height: 1; }
    .pr-metric-label { font-size: 6.5pt; color: #666; text-transform: uppercase; letter-spacing: 0.3pt; }

    .pr-main-grid {
        display: grid !important; grid-template-columns: 1fr 1fr;
        gap: 9pt; margin-bottom: 10pt;
    }
    .pr-panel { border: 0.75pt solid #e5e7eb; border-radius: 5pt; padding: 8pt 10pt; }
    .pr-panel-heading {
        font-size: 8pt; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4pt;
        color: #333; margin-bottom: 7pt; padding-bottom: 4pt;
        border-bottom: 0.75pt solid #e5e7eb;
        display: flex !important; align-items: center; gap: 5pt;
    }
    .pr-panel-subheading {
        font-size: 7pt; font-weight: 700; color: #555; margin: 7pt 0 4pt;
        display: flex !important; align-items: center; gap: 4pt;
    }
    .pr-cat-list { display: flex !important; flex-direction: column; gap: 5pt; }
    .pr-cat-row { display: flex !important; align-items: center; gap: 6pt; }
    .pr-cat-label { display: flex !important; align-items: center; width: 82pt; flex-shrink: 0; }
    .pr-cat-name { font-size: 8pt; font-weight: 500; color: #111; }
    .pr-cat-bar-track { flex: 1; height: 8pt; background: #f0f0f0; border-radius: 99pt; overflow: hidden; display: flex !important; }
    .pr-cat-bar-pass { height: 100%; background: #10B981; border-radius: 99pt 0 0 99pt; flex-shrink: 0; }
    .pr-cat-bar-warn { height: 100%; background: #F59E0B; flex-shrink: 0; }
    .pr-cat-pct { width: 24pt; text-align: right; font-size: 8pt; font-weight: 700; flex-shrink: 0; }
    .pr-cat-counts { width: 58pt; font-size: 7pt; text-align: right; flex-shrink: 0; }

    .pr-signals-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4pt; margin-bottom: 0; }
    .pr-signal { display: flex !important; align-items: center; gap: 5pt; padding: 3.5pt 6pt; border-radius: 3pt; }
    .pr-signal--pass { background: rgba(16,185,129,0.08); color: #047857; }
    .pr-signal--fail { background: rgba(239,68,68,0.08); color: #B91C1C; }
    .pr-signal-icon { font-size: 8pt; font-weight: 800; flex-shrink: 0; }
    .pr-signal-label { font-size: 7.5pt; font-weight: 500; }

    .pr-top-issue { display: flex !important; align-items: center; gap: 6pt; padding: 3pt 0; font-size: 8pt; color: #444; border-bottom: 0.2pt solid #f5f5f5; }
    .pr-top-issue-dot { width: 5pt; height: 5pt; border-radius: 50%; background: #EF4444; flex-shrink: 0; }
    .pr-top-more { font-size: 7pt; color: #aaa; margin-top: 4pt; font-style: italic; }

    .pr-irow { display: flex !important; justify-content: space-between; align-items: baseline; padding: 3pt 0; border-bottom: 0.25pt solid #f0f0f0; }
    .pr-irow:last-child { border-bottom: none; }
    .pr-ikey { font-size: 7.5pt; color: #666; }
    .pr-ival { font-size: 7.5pt; font-weight: 700; }
    .pr-iv--pass { color: #047857; }
    .pr-iv--warn { color: #B45309; }
    .pr-iv--fail { color: #B91C1C; }

    .pr-page-break { page-break-before: always; break-before: page; padding-top: 12pt; }
    .pr-checklist-grid {
        display: grid !important; grid-template-columns: 1fr 1fr;
        gap: 6pt; margin-bottom: 12pt;
    }
    .pr-check-item {
        border: 0.75pt solid #e5e7eb; border-radius: 4pt; padding: 5pt 7pt;
        display: flex !important; gap: 5pt; page-break-inside: avoid; break-inside: avoid;
    }
    .pr-check-badge {
        width: 14pt; height: 14pt; border-radius: 3pt;
        display: flex !important; align-items: center; justify-content: center;
        font-size: 7.5pt; font-weight: 800; flex-shrink: 0; margin-top: 1pt;
    }
    .pr-check-badge--pass { background: rgba(16,185,129,0.12); color: #047857; }
    .pr-check-badge--warn { background: rgba(245,158,11,0.12); color: #B45309; }
    .pr-check-badge--fail { background: rgba(239,68,68,0.12); color: #B91C1C; }
    .pr-check-body { flex: 1; }
    .pr-check-name { font-size: 8pt; font-weight: 700; color: #111; line-height: 1.2; }
    .pr-check-detail { font-size: 7pt; color: #666; margin-top: 2pt; line-height: 1.3; }

    .pr-recs-list { display: flex !important; flex-direction: column; gap: 7pt; margin-bottom: 12pt; }
    .pr-rec-item {
        border-left: 2.5pt solid; border-radius: 0 4pt 4pt 0;
        background: #fafafa; padding: 6pt 9pt;
        display: flex !important; gap: 7pt; page-break-inside: avoid; break-inside: avoid;
    }
    .pr-rec-num {
        font-size: 6.5pt; font-weight: 800; color: #444; flex-shrink: 0; margin-top: 1pt;
    }
    .pr-rec-body { flex: 1; }
    .pr-rec-row { display: flex !important; align-items: baseline; gap: 6pt; margin-bottom: 2pt; }
    .pr-rec-title { font-size: 8.5pt; font-weight: 700; color: #111; }
    .pr-rec-cat { font-size: 6.5pt; color: #aaa; margin-left: auto; flex-shrink: 0; }
    .pr-rec-finding { font-size: 7.5pt; color: #666; margin: 0 0 3pt; font-style: italic; }
    .pr-rec-fix { font-size: 7.5pt; color: #333; line-height: 1.5; white-space: pre-wrap; }
    .pr-rec-fix-label { font-weight: 700; color: #111; }

    .pr-cta-closer {
        margin-top: 14pt; border-top: 1.5pt solid #4F46E5; padding-top: 10pt;
        text-align: center; page-break-inside: avoid; break-inside: avoid;
    }
    .pr-cta-logo { height: 24pt; width: auto; display: block; margin: 0 auto 6pt; }
    .pr-cta-heading { font-size: 10pt; font-weight: 800; color: #111; margin: 0 0 4pt; }
    .pr-cta-body { font-size: 7.5pt; color: #555; max-width: 340pt; margin: 0 auto 7pt; line-height: 1.5; }
    .pr-cta-contacts { display: flex !important; justify-content: center; gap: 18pt; font-size: 7.5pt; font-weight: 600; color: #4F46E5; }
}
