/**
 * AI Page Audit Results - Modern Enhancement Styles
 * Enhances the existing elite audit styles with modern, cohesive design
 * Works WITH assets/styles.css page audit classes
 * Uses brand color palette: Teal #005D5D, Green #10b981, Accent #EDBF33
 * NO PURPLE - Strict brand compliance
 *
 * @author Jagdeep Singh
 * @version 5.0.0 - Elite Two-Column Header Layout
 */

/* ============================================================================
   ELITE TWO-COLUMN HEADER - Score Left, Breakdown Right
   ============================================================================ */

.elite-report-header-compact {
    background: linear-gradient(135deg, #f8fffe 0%, #ffffff 50%, #f0fdf4 100%);
    padding: 20px 0 24px;
    border-bottom: 1px solid #e2e8f0;
}

/* Top Bar */
.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-meta-inline {
    display: flex;
    gap: 12px;
}

.meta-pill-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #22272d;
}

.meta-pill-inline i {
    color: var(--audit-primary, #005D5D);
}

/* Main Hero Row - Two Columns */
.hero-score-breakdown-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 20px;
}

/* Score Column (Left) */
.score-column {
    position: sticky;
    top: 20px;
}

.score-showcase-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 93, 93, 0.08);
}

.score-label-top {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--audit-primary, #005D5D);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.score-circle-hero {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 32px rgba(0, 93, 93, 0.15);
    position: relative;
}

.score-circle-hero::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--audit-primary, #005D5D), var(--elite-green, #10b981));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.score-circle-hero.score-excellent::before { background: linear-gradient(135deg, #047857, #10b981); }
.score-circle-hero.score-good::before { background: linear-gradient(135deg, #005D5D, #0d9488); }
.score-circle-hero.score-needs-improvement::before { background: linear-gradient(135deg, #b45309, #f59e0b); }
.score-circle-hero.score-critical::before { background: linear-gradient(135deg, #be123c, #f43f5e); }
.score-circle-hero.score-pending::before { background: linear-gradient(135deg, #22272d, #cbd5e1); }

.score-number-hero {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--elite-slate, #0f172a);
}

.score-suffix-hero {
    font-size: 1rem;
    font-weight: 600;
    color: #22272d;
    margin-top: 2px;
}

.score-pending-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.score-badge-hero {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.score-badge-hero.badge-excellent { background: #d1fae5; color: #047857; }
.score-badge-hero.badge-good { background: rgba(0, 93, 93, 0.12); color: var(--audit-primary, #005D5D); }
.score-badge-hero.badge-needs-improvement { background: #fed7aa; color: #b45309; }
.score-badge-hero.badge-critical { background: #fecdd3; color: #be123c; }

.page-url-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: #22272d;
}

.page-url-compact i {
    color: var(--audit-primary, #005D5D);
    flex-shrink: 0;
}

.page-url-compact span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.page-url-compact .url-external-link {
    color: var(--audit-primary, #005D5D);
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.page-url-compact .url-external-link:hover {
    opacity: 1;
}

/* Breakdown Column (Right) */
.breakdown-column {
    min-width: 0;
}

.breakdown-header-inline {
    margin-bottom: 16px;
}

.breakdown-title-inline {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin: 0 0 4px 0;
}

.breakdown-subtitle-inline {
    font-size: 0.8125rem;
    color: #22272d;
    margin: 0;
}

/* Breakdown Cards Grid */
.breakdown-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.breakdown-metric-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.breakdown-metric-card:hover {
    border-color: var(--audit-primary, #005D5D);
    box-shadow: 0 4px 16px rgba(0, 93, 93, 0.1);
    transform: translateY(-2px);
}

.metric-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.metric-card-body {
    flex: 1;
    min-width: 0;
}

.metric-card-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    line-height: 1;
    margin-bottom: 4px;
}

.metric-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 2px;
    line-height: 1.3;
}

.metric-card-desc {
    font-size: 0.6875rem;
    color: #22272d;
    line-height: 1.3;
}

.metric-card-weight {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0, 93, 93, 0.08);
    color: var(--audit-primary, #005D5D);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.625rem;
    font-weight: 600;
}

/* Compact Action Bar */
.action-bar-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
}

.action-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-bar-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--elite-slate, #0f172a);
}

.action-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action-compact i {
    font-size: 1rem;
}

.btn-action-compact span {
    white-space: nowrap;
}

.btn-action-primary {
    background: linear-gradient(135deg, var(--audit-primary, #005D5D), #005d50);
    color: white;
}

.btn-action-primary:hover {
    background: linear-gradient(135deg, #004d4d, #004540);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 93, 93, 0.25);
}

.btn-action-secondary {
    background: white;
    color: var(--audit-primary, #005D5D);
    border: 1px solid var(--audit-primary, #005D5D);
}

.btn-action-secondary:hover {
    background: rgba(0, 93, 93, 0.05);
    color: var(--audit-primary, #005D5D);
}

.btn-action-success {
    background: linear-gradient(135deg, var(--elite-green, #10b981), #059669);
    color: white;
}

.btn-action-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Task Results Compact */
.task-results-compact {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.task-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.task-results-header h6 {
    margin: 0;
    font-size: 0.875rem;
}

.task-preview-list-compact {
    margin-bottom: 12px;
}

.task-results-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Design for Two-Column Header */
@media (max-width: 992px) {
    .hero-score-breakdown-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .score-column {
        position: static;
    }
    
    .score-showcase-card {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .breakdown-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .breakdown-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .action-bar-compact {
        flex-direction: column;
        gap: 12px;
    }
    
    .action-bar-left,
    .action-bar-right {
        width: 100%;
        justify-content: center;
    }
    
    .action-bar-right {
        flex-wrap: wrap;
    }
}

/* ============================================================================
   LEGACY COMPACT HEADER STYLES (for backwards compatibility)
   ============================================================================ */

/* Hero + Score Row */
.hero-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.hero-info-compact {
    flex: 1;
    min-width: 0;
}

.report-badge-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 93, 93, 0.08);
    color: var(--audit-primary, #005D5D);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.hero-title-compact {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    line-height: 1.2;
    margin: 0 0 10px 0;
}

.page-url-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.875rem;
    color: #22272d;
    max-width: 100%;
}

.page-url-display i {
    color: var(--audit-primary, #005D5D);
    flex-shrink: 0;
}

.page-url-display span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-external-link {
    color: var(--audit-primary, #005D5D);
    margin-left: 4px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.url-external-link:hover {
    opacity: 1;
}

/* Compact Score Circle */
.hero-score-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.score-circle-compact {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 93, 93, 0.12);
    margin-bottom: 8px;
}

.score-circle-compact.score-excellent { border: 5px solid #047857; }
.score-circle-compact.score-good { border: 5px solid var(--audit-primary, #005D5D); }
.score-circle-compact.score-needs-improvement { border: 5px solid #b45309; }
.score-circle-compact.score-critical { border: 5px solid #be123c; }
.score-circle-compact.score-pending { border: 5px solid #e2e8f0; }

.score-number-compact {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--elite-slate, #0f172a);
}

.score-label-compact {
    font-size: 0.875rem;
    color: #22272d;
    font-weight: 500;
}

.score-badge-compact {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.score-badge-compact.badge-excellent { background: #d1fae5; color: #047857; }
.score-badge-compact.badge-good { background: rgba(0, 93, 93, 0.1); color: var(--audit-primary, #005D5D); }
.score-badge-compact.badge-needs-improvement { background: #fed7aa; color: #b45309; }
.score-badge-compact.badge-critical { background: #fecdd3; color: #be123c; }

/* Score Breakdown - Compact Cards */
.score-breakdown-compact {
    margin-bottom: 20px;
}

.breakdown-header {
    text-align: center;
    margin-bottom: 16px;
}

.breakdown-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin: 0 0 4px 0;
}

.breakdown-subtitle {
    font-size: 0.8125rem;
    color: #22272d;
    margin: 0;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.breakdown-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.breakdown-card:hover {
    border-color: var(--audit-primary, #005D5D);
    box-shadow: 0 4px 16px rgba(0, 93, 93, 0.1);
    transform: translateY(-2px);
}

.breakdown-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.breakdown-card-content {
    flex: 1;
    min-width: 0;
}

.breakdown-card-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    line-height: 1;
    margin-bottom: 4px;
}

.breakdown-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 2px;
    line-height: 1.3;
}

.breakdown-card-question {
    font-size: 0.6875rem;
    color: #22272d;
    line-height: 1.3;
}

.breakdown-card-weight {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0, 93, 93, 0.08);
    color: var(--audit-primary, #005D5D);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.625rem;
    font-weight: 600;
}

/* Compact Action Bar */
.action-bar-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
}

.action-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-pills {
    display: flex;
    gap: 8px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #22272d;
    font-weight: 500;
}

.meta-pill i {
    font-size: 0.875rem;
    color: var(--audit-primary, #005D5D);
}

.action-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action-compact i {
    font-size: 1rem;
}

.btn-action-compact span {
    white-space: nowrap;
}

.btn-action-primary {
    background: linear-gradient(135deg, var(--audit-primary, #005D5D), #005d50);
    color: white;
}

.btn-action-primary:hover {
    background: linear-gradient(135deg, #004d4d, #004540);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 93, 93, 0.25);
}

.btn-action-secondary {
    background: white;
    color: var(--audit-primary, #005D5D);
    border: 1px solid var(--audit-primary, #005D5D);
}

.btn-action-secondary:hover {
    background: rgba(0, 93, 93, 0.05);
    color: var(--audit-primary, #005D5D);
}

.btn-action-success {
    background: linear-gradient(135deg, var(--elite-green, #10b981), #059669);
    color: white;
}

.btn-action-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Task Results Compact */
.task-results-compact {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.task-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.task-results-header h6 {
    margin: 0;
    font-size: 0.875rem;
}

.task-preview-list-compact {
    margin-bottom: 12px;
}

.task-results-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Design for Compact Header */
@media (max-width: 1200px) {
    .breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-score-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .hero-info-compact {
        order: 1;
    }
    
    .hero-score-compact {
        order: 0;
    }
    
    .hero-title-compact {
        font-size: 1.5rem;
    }
    
    .page-url-display {
        justify-content: center;
    }
    
    .breakdown-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .breakdown-card {
        padding: 14px;
    }
    
    .action-bar-compact {
        flex-direction: column;
        gap: 12px;
    }
    
    .action-bar-left,
    .action-bar-right {
        width: 100%;
        justify-content: center;
    }
    
    .meta-pills {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .action-bar-right {
        flex-wrap: wrap;
    }
    
    .btn-action-compact {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .elite-report-header-compact {
        padding: 16px 0 24px;
    }
    
    .score-circle-compact {
        width: 80px;
        height: 80px;
    }
    
    .score-number-compact {
        font-size: 1.75rem;
    }
    
    .breakdown-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .breakdown-card-score {
        font-size: 1.25rem;
    }
    
    .btn-action-compact span {
        display: none;
    }
    
    .btn-action-compact {
        padding: 10px 12px;
    }
}

/* ============================================================================
   WIZARD STEPPER - Step-by-step navigation UI
   ============================================================================ */

.wizard-progress-section {
    margin-bottom: 3rem;
}

.wizard-stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.wizard-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wizard-step:hover .step-number {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wizard-step:hover .step-title {
    color: var(--audit-primary, #005D5D);
}

.wizard-step .step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #22272d;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wizard-step .step-connector {
    position: absolute;
    top: 28px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    transition: background 0.3s ease;
    z-index: 0;
}

.wizard-step:last-child .step-connector {
    display: none;
}

.wizard-step .step-info {
    margin-top: 1rem;
    text-align: center;
}

.wizard-step .step-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #22272d;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.wizard-step .step-subtitle {
    font-size: 0.75rem;
    color: #22272d;
}

/* Active step */
.wizard-step.active .step-number {
    background: linear-gradient(135deg, var(--elite-green, #10b981), #059669);
    border-color: var(--elite-green, #10b981);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transform: scale(1.1);
}

.wizard-step.active .step-title {
    color: var(--elite-green, #10b981);
    font-weight: 700;
}

/* Completed step */
.wizard-step.completed .step-number {
    background: var(--audit-primary, #005D5D);
    border-color: var(--audit-primary, #005D5D);
    color: white;
}

.wizard-step.completed .step-number::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
}

.wizard-step.completed .step-connector {
    background: var(--audit-primary, #005D5D);
}

.wizard-step.completed .step-title {
    color: var(--audit-primary, #005D5D);
}

/* Analyzing step */
.wizard-step.analyzing .step-number {
    background: linear-gradient(135deg, #EDBF33, #d4a429);
    border-color: #EDBF33;
    color: white;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(237, 191, 51, 0.3);
    }
    50% {
        box-shadow: 0 4px 24px rgba(237, 191, 51, 0.6);
    }
}

/* Wizard Step Cards */
.wizard-step-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 25px 60px rgba(0,93,93,0.06);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wizard-step-header {
    padding: 2rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
}

.wizard-step-content {
    padding: 2rem;
}

/* Wizard Navigation Footer */
.wizard-nav-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-nav-left {
    display: flex;
    align-items: center;
    color: #22272d;
    font-size: 0.875rem;
}

.wizard-nav-buttons {
    display: flex;
    gap: 1rem;
}

.wizard-btn-prev,
.wizard-btn-next,
.wizard-btn-finish {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.wizard-btn-prev {
    background: white;
    border: 2px solid #e2e8f0;
    color: #22272d;
}

.wizard-btn-prev:hover {
    background: #f8fafc;
    border-color: var(--audit-primary, #005D5D);
    color: var(--audit-primary, #005D5D);
    transform: translateX(-4px);
}

.wizard-btn-next {
    background: var(--elite-green, #10b981);
    border: 2px solid var(--elite-green, #10b981);
    color: white;
}

.wizard-btn-next:hover {
    background: #059669;
    border-color: #059669;
    transform: translateX(4px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2);
}

.wizard-btn-finish {
    background: linear-gradient(135deg, var(--elite-green, #10b981), #059669);
    border: none;
    color: white;
}

.wizard-btn-finish:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(4px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

/* ============================================================================
   HERO & HEADER ENHANCEMENTS
   ============================================================================ */

/* Override the default professional header with cleaner elite styling */
.elite-report-header {
    background: linear-gradient(180deg, #ffffff 0%, var(--elite-light, #f8fffe) 50%, #e8f5f3 100%);
    padding-bottom: 0;
    border-bottom: none;
}

.report-hero-section {
    padding: 60px 0 40px;
}

.report-badge {
    display: inline-block;
    background: rgba(0, 93, 93, 0.1);
    color: var(--audit-primary, #005D5D);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.report-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.report-hero-subtitle {
    font-size: 1.125rem;
    color: #22272d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Enhanced Score Card */
.score-hero-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 25px 60px rgba(0,93,93,0.08);
    text-align: center;
}

.score-label-main {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--audit-primary, #005D5D);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.score-circle-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 93, 93, 0.1);
}

.score-circle-large.score-excellent {
    border: 8px solid #047857;
}

.score-circle-large.score-good {
    border: 8px solid var(--audit-primary, #005D5D);
}

.score-circle-large.score-needs-improvement {
    border: 8px solid #b45309;
}

.score-circle-large.score-critical {
    border: 8px solid #be123c;
}

.score-circle-large.score-pending {
    border: 8px solid #e2e8f0;
}

.score-number-large {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--elite-slate, #0f172a);
}

.score-suffix-large {
    font-size: 1.5rem;
    color: #22272d;
    font-weight: 500;
}

.score-badge-large {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
}

.score-badge-large.badge-excellent {
    background: #d1fae5;
    color: #047857;
}

.score-badge-large.badge-good {
    background: rgba(0, 93, 93, 0.1);
    color: var(--audit-primary, #005D5D);
}

.score-badge-large.badge-needs-improvement {
    background: #fed7aa;
    color: #b45309;
}

.score-badge-large.badge-critical {
    background: #fecdd3;
    color: #be123c;
}

.score-pending-state {
    text-align: center;
}

/* ============================================================================
   PAGE META CARDS - Modern Grid
   ============================================================================ */

.page-meta-section {
    padding: 40px 0;
    background: white;
}

.meta-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.meta-card:hover {
    border-color: var(--audit-primary, #005D5D);
    box-shadow: 0 4px 16px rgba(0, 93, 93, 0.08);
}

.meta-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--audit-primary, #005D5D), #005d50);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.meta-content-block {
    flex: 1;
    min-width: 0;
}

.meta-label-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #22272d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.meta-value-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--elite-slate, #0f172a);
    word-break: break-word;
}

/* ============================================================================
   QUICK ACTIONS - Enhanced Styling
   ============================================================================ */

.quick-actions-section {
    padding: 40px 0;
    background: #f8fffe;
}

.quick-actions-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 15px 40px rgba(0,93,93,0.06);
}

.actions-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 0.5rem;
}

.actions-subtitle {
    color: #22272d;
    font-size: 0.9375rem;
}

.task-results-alert {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px;
}

/* ============================================================================
   SCORE BREAKDOWN - Modern Metric Cards
   ============================================================================ */

.score-breakdown-section {
    padding: 60px 0;
    background: white;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 0.5rem;
}

.section-heading-center {
    text-align: center;
}

.metric-card-modern {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.metric-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 93, 93, 0.1);
    border-color: transparent;
}

.metric-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
}

.metric-score-modern {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 12px;
}

.metric-title-modern {
    font-size: 1rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 8px;
}

.metric-desc-modern {
    font-size: 0.875rem;
    color: #22272d;
    margin-bottom: 16px;
    line-height: 1.5;
}

.metric-weight-tag {
    display: inline-block;
    background: rgba(0, 93, 93, 0.1);
    color: var(--audit-primary, #005D5D);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================================================
   PROGRESS STEPPER - NEW Visual Progress Indicator
   ============================================================================ */

.analysis-main-container {
    background: #f8fffe;
    padding: 60px 0;
}

.analysis-progress-section {
    margin-bottom: 3rem;
}

.progress-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #22272d;
    transition: all 0.3s ease;
}

.progress-step.completed .step-circle {
    background: var(--elite-green, #10b981);
    border-color: var(--elite-green, #10b981);
    color: white;
}

.progress-step.active .step-circle {
    border-color: var(--audit-primary, #005D5D);
    color: var(--audit-primary, #005D5D);
    box-shadow: 0 0 0 4px rgba(0, 93, 93, 0.1);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #22272d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================================
   MODERN SECTION CARDS - Enhanced from existing .section-card
   ============================================================================ */

.modern-section-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.modern-section-card:hover {
    box-shadow: 0 8px 32px rgba(0, 93, 93, 0.12);
}

.modern-section-header {
    padding: 24px 32px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.modern-section-header:hover {
    background: #f8fffe;
}

.modern-section-header.completed {
    background: linear-gradient(90deg, #f0fdf4 0%, white 100%);
    border-left: 4px solid var(--elite-green, #10b981);
}

.section-header-left-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.section-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.section-text-content {
    flex: 1;
}

.section-title-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.weight-badge-inline {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 93, 93, 0.1);
    color: var(--audit-primary, #005D5D);
    padding: 4px 10px;
    border-radius: 100px;
}

.section-subtitle-modern {
    font-size: 0.9375rem;
    color: #22272d;
    margin-bottom: 0;
    line-height: 1.5;
}

.section-header-right-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.section-score-badge {
    background: linear-gradient(135deg, var(--elite-green, #10b981), #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
}

.section-score-badge .score-value {
    font-size: 1.75rem;
    line-height: 1;
}

.section-score-badge .score-max {
    font-size: 1rem;
    opacity: 0.9;
}

.status-badge-modern {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.status-badge-modern.status-complete {
    background: #d1fae5;
    color: #047857;
}

.status-badge-modern.status-pending {
    background: #fef3c7;
    color: #b45309;
}

.status-badge-modern.status-analyzing {
    background: #e0f2fe;
    color: #0369a1;
}

.toggle-chevron {
    font-size: 1.5rem;
    color: #22272d;
    transition: transform 0.3s ease;
}

.modern-section-header[aria-expanded="true"] .toggle-chevron {
    transform: rotate(180deg);
}

/* Section Content */
.modern-section-content {
    background: #fafafa;
    border-top: 1px solid #e2e8f0;
}

.content-body-modern {
    padding: 32px;
}

.loading-state-modern {
    padding: 60px 32px;
    text-align: center;
}

.loading-spinner-container h4 {
    color: var(--elite-slate, #0f172a);
    font-weight: 600;
    margin-top: 1rem;
}

.progress-bar-modern {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 100px;
    margin: 24px auto 0;
    overflow: hidden;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, var(--audit-primary, #005D5D), var(--elite-green, #10b981));
    border-radius: 100px;
    width: 0;
    animation: progressAnimation 2s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ============================================================================
   SUBSCORE & ISSUE CARDS - Enhanced
   ============================================================================ */

.subscore-section {
    margin-bottom: 2rem;
}

.subsection-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 1rem;
}

.subscore-mini-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.2s ease;
}

.subscore-mini-card:hover {
    border-color: var(--audit-primary, #005D5D);
    box-shadow: 0 4px 12px rgba(0, 93, 93, 0.08);
}

.subscore-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subscore-value.excellent { color: #047857; }
.subscore-value.good { color: var(--audit-primary, #005D5D); }
.subscore-value.needs-improvement { color: #b45309; }
.subscore-value.critical { color: #be123c; }

.subscore-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #22272d;
}

/* Issues and Wins */
.issues-section, .wins-section {
    margin-bottom: 2rem;
}

.issue-section-header {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.issue-section-header.danger-header {
    background: #fef2f2;
    color: #be123c;
}

.issue-section-header.success-header {
    background: #f0fdf4;
    color: #047857;
}

.issue-section-header.primary-header {
    background: rgba(0, 93, 93, 0.05);
    color: var(--audit-primary, #005D5D);
}

.issue-description {
    font-size: 0.9375rem;
    color: #22272d;
    margin-bottom: 1rem;
}

.issue-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.issue-card:hover {
    box-shadow: 0 4px 12px rgba(0, 93, 93, 0.08);
}

.issue-card.critical-issue {
    border-left: 4px solid #be123c;
}

.issue-card.quick-win {
    border-left: 4px solid #047857;
}

.issue-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.critical-issue .issue-icon {
    background: #fef2f2;
    color: #be123c;
}

.quick-win .issue-icon {
    background: #f0fdf4;
    color: #047857;
}

.issue-content {
    flex: 1;
}

.issue-text {
    font-size: 0.9375rem;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Recommendations */
.recommendations-section {
    margin-bottom: 2rem;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommendation-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.recommendation-item:hover {
    box-shadow: 0 4px 12px rgba(0, 93, 93, 0.08);
}

.recommendation-item.priority-high {
    border-left: 4px solid #be123c;
}

.recommendation-item.priority-medium {
    border-left: 4px solid #b45309;
}

.recommendation-item.priority-low {
    border-left: 4px solid var(--audit-primary, #005D5D);
}

.rec-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--audit-primary, #005D5D);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.rec-content {
    flex: 1;
}

.priority-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.priority-badge.priority-high {
    background: #fef2f2;
    color: #be123c;
}

.priority-badge.priority-medium {
    background: #fef3c7;
    color: #b45309;
}

.priority-badge.priority-low {
    background: rgba(0, 93, 93, 0.1);
    color: var(--audit-primary, #005D5D);
}

.rec-text {
    font-size: 0.9375rem;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 8px;
    line-height: 1.6;
}

.impact-text {
    color: #22272d;
    font-size: 0.875rem;
}

/* Empty States */
.empty-state-modern {
    padding: 60px 32px;
    text-align: center;
    color: #22272d;
}

.empty-state-modern i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.empty-state-modern p {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

/* Section Footer */
.section-footer-modern {
    padding: 20px 32px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    font-size: 0.875rem;
    color: #22272d;
    display: flex;
    align-items: center;
}

/* ============================================================================
   PRODUCT LADDER SECTION
   ============================================================================ */

.product-ladder-section {
    padding: 80px 0;
    background: white;
}

.product-tier-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.product-tier-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 93, 93, 0.15);
}

.product-tier-card.popular {
    border-color: var(--audit-primary, #005D5D);
    box-shadow: 0 8px 32px rgba(0, 93, 93, 0.1);
}

.tier-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #e2e8f0;
    color: #22272d;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge.popular-badge {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.tier-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.tier-free .tier-icon {
    background: linear-gradient(135deg, var(--elite-green, #10b981), #059669);
    color: white;
}

.tier-deep-dive .tier-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.tier-sprint .tier-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.tier-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    text-align: center;
    margin-bottom: 16px;
}

.tier-price {
    text-align: center;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
}

.tier-description {
    text-align: center;
    color: #22272d;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex: 1;
}

.tier-features li {
    padding: 12px 0;
    font-size: 0.9375rem;
    color: var(--elite-slate, #0f172a);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tier-features i {
    color: var(--elite-green, #10b981);
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Ongoing Support Card */
.ongoing-support-card {
    background: linear-gradient(135deg, rgba(0, 93, 93, 0.05), rgba(16, 185, 129, 0.05));
    border: 2px solid var(--audit-primary, #005D5D);
    border-radius: 20px;
    padding: 32px;
}

.support-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 12px;
}

.support-description {
    font-size: 1rem;
    color: #22272d;
    line-height: 1.6;
}

.support-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--audit-primary, #005D5D);
}

/* Campaign Slogan */
.campaign-slogan-section {
    margin-top: 3rem;
}

.campaign-slogan {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--audit-primary, #005D5D);
    font-style: italic;
    margin: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 991px) {
    .report-hero-title {
        font-size: 2rem;
    }
    
    .score-circle-large {
        width: 160px;
        height: 160px;
    }
    
    .score-number-large {
        font-size: 3rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .modern-section-header {
        padding: 20px 24px;
    }
    
    .section-header-left-content {
        gap: 16px;
    }
    
    .section-icon-badge {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .report-hero-title {
        font-size: 1.75rem;
    }
    
    .report-hero-subtitle {
        font-size: 1rem;
    }
    
    .score-hero-card {
        padding: 32px 24px;
    }
    
    .score-circle-large {
        width: 140px;
        height: 140px;
    }
    
    .score-number-large {
        font-size: 2.5rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .modern-section-header {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header-left-content {
        width: 100%;
    }
    
    .section-header-right-content {
        width: 100%;
        justify-content: space-between;
    }
    
    .section-title-modern {
        font-size: 1.125rem;
    }
    
    .content-body-modern {
        padding: 24px;
    }
    
    .section-footer-modern {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-tier-card {
        margin-bottom: 32px;
    }
    
    .tier-title {
        font-size: 1.25rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .quick-actions-section,
    .product-ladder-section,
    .section-footer-modern {
        display: none;
    }
    
    .modern-section-content {
        display: block !important;
    }
    
    .modern-section-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}


.report-hero-section {
    padding: 60px 0 40px;
}

.report-badge {
    display: inline-block;
    background: rgba(0, 93, 93, 0.1);
    color: var(--audit-primary, #005D5D);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.report-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.report-hero-subtitle {
    font-size: 1.125rem;
    color: #22272d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Score Hero Card */
.score-hero-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 25px 60px rgba(0,93,93,0.08);
    text-align: center;
}

.score-label-main {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--audit-primary, #005D5D);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.score-circle-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 93, 93, 0.1);
}

.score-circle-large.score-excellent {
    border: 8px solid #047857;
}

.score-circle-large.score-good {
    border: 8px solid var(--audit-primary, #005D5D);
}

.score-circle-large.score-needs-improvement {
    border: 8px solid #b45309;
}

.score-circle-large.score-critical {
    border: 8px solid #be123c;
}

.score-circle-large.score-pending {
    border: 8px solid #e2e8f0;
}

.score-number-large {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--elite-slate, #0f172a);
}

.score-suffix-large {
    font-size: 1.5rem;
    color: #22272d;
    font-weight: 500;
}

.score-badge-large {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
}

.score-badge-large.badge-excellent {
    background: #d1fae5;
    color: #047857;
}

.score-badge-large.badge-good {
    background: rgba(0, 93, 93, 0.1);
    color: var(--audit-primary, #005D5D);
}

.score-badge-large.badge-needs-improvement {
    background: #fed7aa;
    color: #b45309;
}

.score-badge-large.badge-critical {
    background: #fecdd3;
    color: #be123c;
}

.score-pending-state {
    text-align: center;
}

/* ============================================================================
   PAGE META CARDS
   ============================================================================ */

.page-meta-section {
    padding: 40px 0;
    background: white;
}

.meta-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.meta-card:hover {
    border-color: var(--audit-primary, #005D5D);
    box-shadow: 0 4px 16px rgba(0, 93, 93, 0.08);
}

.meta-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--audit-primary, #005D5D), #005d50);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.meta-content-block {
    flex: 1;
    min-width: 0;
}

.meta-label-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #22272d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.meta-value-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--elite-slate, #0f172a);
    word-break: break-word;
}
/* Info Column */
.elite-info-column h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--elite-text);
    line-height: 1.2;
    margin-bottom: 16px;
}

.elite-info-column h1 .highlight {
    color: var(--elite-teal);
}

.elite-info-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.elite-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--elite-muted);
}

.elite-meta-item i {
    color: var(--elite-teal);
}

/* ============================================================================
   QUICK ACTIONS BAR
   ============================================================================ */

.quick-actions-section {
    padding: 40px 0;
    background: #f8fffe;
}

.quick-actions-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 15px 40px rgba(0,93,93,0.06);
}

.actions-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 0.5rem;
}

.actions-subtitle {
    color: #22272d;
    font-size: 0.9375rem;
}

.task-results-alert {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px;
}

/* ============================================================================
   SCORE BREAKDOWN SECTION
   ============================================================================ */

.score-breakdown-section {
    padding: 60px 0;
    background: white;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 0.5rem;
}

.section-heading-center {
    text-align: center;
}

.metric-card-modern {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.metric-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 93, 93, 0.1);
    border-color: transparent;
}

.metric-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
}

.metric-score-modern {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 12px;
}

.metric-title-modern {
    font-size: 1rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 8px;
}

.metric-desc-modern {
    font-size: 0.875rem;
    color: #22272d;
    margin-bottom: 16px;
    line-height: 1.5;
}

.metric-weight-tag {
    display: inline-block;
    background: rgba(0, 93, 93, 0.1);
    color: var(--audit-primary, #005D5D);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================================================
   ANALYSIS SECTIONS - Modern Expandable Cards
   ============================================================================ */

.analysis-main-container {
    background: #f8fffe;
    padding: 60px 0;
}

.analysis-progress-section {
    margin-bottom: 3rem;
}

.progress-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #22272d;
    transition: all 0.3s ease;
}

.progress-step.completed .step-circle {
    background: var(--elite-green, #10b981);
    border-color: var(--elite-green, #10b981);
    color: white;
}

.progress-step.active .step-circle {
    border-color: var(--audit-primary, #005D5D);
    color: var(--audit-primary, #005D5D);
    box-shadow: 0 0 0 4px rgba(0, 93, 93, 0.1);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #22272d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Section Cards */
.modern-section-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-section-card:hover {
    box-shadow: 0 8px 32px rgba(0, 93, 93, 0.12);
}

.modern-section-header {
    padding: 24px 32px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.modern-section-header:hover {
    background: #f8fffe;
}

.modern-section-header.completed {
    background: linear-gradient(90deg, #f0fdf4 0%, white 100%);
    border-left: 4px solid var(--elite-green, #10b981);
}

.section-header-left-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.section-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.section-text-content {
    flex: 1;
}

.section-title-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.weight-badge-inline {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 93, 93, 0.1);
    color: var(--audit-primary, #005D5D);
    padding: 4px 10px;
    border-radius: 100px;
}

.section-subtitle-modern {
    font-size: 0.9375rem;
    color: #22272d;
    margin-bottom: 0;
    line-height: 1.5;
}

.section-header-right-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-score-badge {
    background: linear-gradient(135deg, var(--elite-green, #10b981), #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
}

.section-score-badge .score-value {
    font-size: 1.75rem;
    line-height: 1;
}

.section-score-badge .score-max {
    font-size: 1rem;
    opacity: 0.9;
}

.status-badge-modern {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge-modern.status-complete {
    background: #d1fae5;
    color: #047857;
}

.status-badge-modern.status-pending {
    background: #fef3c7;
    color: #b45309;
}

.toggle-chevron {
    font-size: 1.5rem;
    color: #22272d;
    transition: transform 0.3s ease;
}

.modern-section-header[aria-expanded="true"] .toggle-chevron {
    transform: rotate(180deg);
}

/* Section Content */
.modern-section-content {
    background: #fafafa;
    border-top: 1px solid #e2e8f0;
}

.content-body-modern {
    padding: 32px;
}

.loading-state-modern {
    padding: 60px 32px;
    text-align: center;
}

.loading-spinner-container h4 {
    color: var(--elite-slate, #0f172a);
    font-weight: 600;
    margin-top: 1rem;
}

.progress-bar-modern {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 100px;
    margin: 24px auto 0;
    overflow: hidden;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, var(--audit-primary, #005D5D), var(--elite-green, #10b981));
    border-radius: 100px;
    width: 0;
    animation: progressAnimation 2s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Subscore Section */
.subscore-section {
    margin-bottom: 2rem;
}

.subsection-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 1rem;
}

.subscore-mini-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.2s ease;
}

.subscore-mini-card:hover {
    border-color: var(--audit-primary, #005D5D);
    box-shadow: 0 4px 12px rgba(0, 93, 93, 0.08);
}

.subscore-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subscore-value.excellent { color: #047857; }
.subscore-value.good { color: var(--audit-primary, #005D5D); }
.subscore-value.needs-improvement { color: #b45309; }
.subscore-value.critical { color: #be123c; }

.subscore-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #22272d;
}

/* Issues and Wins */
.issues-section, .wins-section {
    margin-bottom: 2rem;
}

.issue-section-header {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.issue-section-header.danger-header {
    background: #fef2f2;
    color: #be123c;
}

.issue-section-header.success-header {
    background: #f0fdf4;
    color: #047857;
}

.issue-section-header.primary-header {
    background: rgba(0, 93, 93, 0.05);
    color: var(--audit-primary, #005D5D);
}

.issue-description {
    font-size: 0.9375rem;
    color: #22272d;
    margin-bottom: 1rem;
}

.issue-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.issue-card.critical-issue {
    border-left: 4px solid #be123c;
}

.issue-card.quick-win {
    border-left: 4px solid #047857;
}

.issue-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.critical-issue .issue-icon {
    background: #fef2f2;
    color: #be123c;
}

.quick-win .issue-icon {
    background: #f0fdf4;
    color: #047857;
}

.issue-content {
    flex: 1;
}

.issue-text {
    font-size: 0.9375rem;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Recommendations */
.recommendations-section {
    margin-bottom: 2rem;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommendation-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.recommendation-item.priority-high {
    border-left: 4px solid #be123c;
}

.recommendation-item.priority-medium {
    border-left: 4px solid #b45309;
}

.recommendation-item.priority-low {
    border-left: 4px solid var(--audit-primary, #005D5D);
}

.rec-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--audit-primary, #005D5D);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.rec-content {
    flex: 1;
}

.priority-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.priority-badge.priority-high {
    background: #fef2f2;
    color: #be123c;
}

.priority-badge.priority-medium {
    background: #fef3c7;
    color: #b45309;
}

.priority-badge.priority-low {
    background: rgba(0, 93, 93, 0.1);
    color: var(--audit-primary, #005D5D);
}

.rec-text {
    font-size: 0.9375rem;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 8px;
    line-height: 1.6;
}

.impact-text {
    color: #22272d;
    font-size: 0.875rem;
}

/* Empty States */
.empty-state-modern {
    padding: 60px 32px;
    text-align: center;
    color: #22272d;
}

.empty-state-modern i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.empty-state-modern p {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

/* Section Footer */
.section-footer-modern {
    padding: 20px 32px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    font-size: 0.875rem;
    color: #22272d;
    display: flex;
    align-items: center;
}

/* ============================================================================
   PRODUCT LADDER SECTION
   ============================================================================ */

.product-ladder-section {
    padding: 80px 0;
    background: white;
}

.product-tier-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.product-tier-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 93, 93, 0.15);
}

.product-tier-card.popular {
    border-color: var(--audit-primary, #005D5D);
    box-shadow: 0 8px 32px rgba(0, 93, 93, 0.1);
}

.tier-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #e2e8f0;
    color: #22272d;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge.popular-badge {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.tier-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.tier-free .tier-icon {
    background: linear-gradient(135deg, var(--elite-green, #10b981), #059669);
    color: white;
}

.tier-deep-dive .tier-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.tier-sprint .tier-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.tier-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    text-align: center;
    margin-bottom: 16px;
}

.tier-price {
    text-align: center;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
}

.tier-description {
    text-align: center;
    color: #22272d;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex: 1;
}

.tier-features li {
    padding: 12px 0;
    font-size: 0.9375rem;
    color: var(--elite-slate, #0f172a);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tier-features i {
    color: var(--elite-green, #10b981);
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Ongoing Support Card */
.ongoing-support-card {
    background: linear-gradient(135deg, rgba(0, 93, 93, 0.05), rgba(16, 185, 129, 0.05));
    border: 2px solid var(--audit-primary, #005D5D);
    border-radius: 20px;
    padding: 32px;
}

.support-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 12px;
}

.support-description {
    font-size: 1rem;
    color: #22272d;
    line-height: 1.6;
}

.support-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--audit-primary, #005D5D);
}

/* Campaign Slogan */
.campaign-slogan-section {
    margin-top: 3rem;
}

.campaign-slogan {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--audit-primary, #005D5D);
    font-style: italic;
    margin: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 991px) {
    .report-hero-title {
        font-size: 2rem;
    }
    
    .score-circle-large {
        width: 160px;
        height: 160px;
    }
    
    .score-number-large {
        font-size: 3rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .modern-section-header,
    .wizard-step-header {
        padding: 20px 24px;
    }
    
    .section-header-left-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-icon-badge {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    /* Wizard stepper on tablet */
    .wizard-stepper {
        padding: 0 10px;
    }
    
    .wizard-step .step-title {
        font-size: 0.75rem;
    }
    
    .wizard-step .step-subtitle {
        font-size: 0.625rem;
    }
}

@media (max-width: 767px) {
    .report-hero-title {
        font-size: 1.75rem;
    }
    
    .report-hero-subtitle {
        font-size: 1rem;
    }
    
    .score-hero-card {
        padding: 32px 24px;
    }
    
    .score-circle-large {
        width: 140px;
        height: 140px;
    }
    
    .score-number-large {
        font-size: 2.5rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .modern-section-header,
    .wizard-step-header {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header-right-content {
        width: 100%;
        justify-content: space-between;
    }
    
    .section-title-modern {
        font-size: 1.125rem;
    }
    
    .content-body-modern,
    .wizard-step-content {
        padding: 24px;
    }
    
    .section-footer-modern,
    .wizard-nav-footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .wizard-nav-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .wizard-btn-prev,
    .wizard-btn-next,
    .wizard-btn-finish {
        width: 100%;
        justify-content: center;
    }
    
    /* Compact wizard stepper on mobile */
    .wizard-stepper {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }
    
    .wizard-step {
        flex-direction: row;
        align-items: center;
        width: 100%;
        text-align: left;
    }
    
    .wizard-step .step-number {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .wizard-step .step-connector {
        display: none;
    }
    
    .wizard-step .step-info {
        margin-top: 0;
        margin-left: 1rem;
        text-align: left;
    }
    
    .wizard-step .step-title {
        font-size: 0.875rem;
    }
    
    .wizard-step .step-subtitle {
        font-size: 0.75rem;
    }
    
    .product-tier-card {
        margin-bottom: 32px;
    }
    
    .tier-title {
        font-size: 1.25rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .quick-actions-section,
    .product-ladder-section,
    .section-footer-modern,
    .wizard-nav-footer,
    .wizard-stepper {
        display: none;
    }
    
    .modern-section-content,
    .wizard-step-content {
        display: block !important;
    }
    
    .modern-section-card,
    .wizard-step-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        display: block !important;
    }
}
/* ============================================================================
   PROFESSIONAL DATA TABLES - Elite audit results styling
   Clean, professional tables with no gradients
   ============================================================================ */
.analysis-section-elite {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.section-title-elite {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.section-title-elite i {
    color: #005D5D;
    font-size: 1.25rem;
}
.section-description {
    color: #000000;
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}
/* Table Container */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
/* Modern Elite Table */
.modern-table-elite {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}
.modern-table-elite thead {
    background: #f9fafb;
}
.modern-table-elite thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.modern-table-elite tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}
.modern-table-elite tbody tr:hover {
    background-color: #f9fafb;
}
.modern-table-elite tbody tr:last-child {
    border-bottom: none;
}
.modern-table-elite tbody td {
    padding: 1.25rem 1.25rem;
    color: #101214;
    vertical-align: middle;
}
.modern-table-elite tbody td strong {
    color: #1f2937;
    font-weight: 600;
}
/* Table Links */
.domain-link {
    color: #005D5D;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}
.domain-link:hover {
    color: #10b981;
    text-decoration: underline;
}
/* Metric Badges */
.metric-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: #f3f4f6;
    border-radius: 6px;
    font-weight: 600;
}

/* Strength Badges */
.strength-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: capitalize;
}
.strength-badge.strength-high {
    background: #d1fae5;
    color: #065f46;
}
.strength-badge.strength-medium {
    background: #fef3c7;
    color: #92400e;
}
.strength-badge.strength-low {
    background: #fee2e2;
    color: #991b1b;
}
/* Action Buttons */
.btn-action-elite {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-action-elite:hover {
    background: #f9fafb;
    border-color: #005D5D;
    color: #005D5D;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.btn-action-elite i {
    font-size: 0.8rem;
}
/* Chart Containers */
.chart-container-elite {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}
.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}
/* Revenue Cards Grid */
.revenue-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.revenue-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}
.revenue-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.revenue-card-title {
    font-size: 0.85rem;
    color: #000000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.revenue-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.revenue-card-trend {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.revenue-card-trend.positive {
    color: #10b981;
}
.revenue-card-trend.negative {
    color: #ef4444;
}
.revenue-card-trend.neutral {
    color: #000000;
}
/* Benchmark Grids */
.benchmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.benchmark-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
}
.benchmark-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    text-transform: capitalize;
}
.benchmark-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.benchmark-bar {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    align-items: center;
    gap: 0.75rem;
}
.bar-label {
    font-size: 0.85rem;
    color: #000000;
    font-weight: 500;
}
.bar-visual {
    height: 24px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    transition: width 0.6s ease;
    border-radius: 4px;
}
.bar-fill.yours {
    background: #005D5D;
}
.bar-fill.average {
    background: #9ca3af;
}
.bar-fill.leader {
    background: #10b981;
}
.bar-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
}
/* Investment ROI Cards */
.roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.roi-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}
.roi-label {
    font-size: 0.9rem;
    color: #000000;
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.roi-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #005D5D;
    margin-bottom: 0.5rem;
}
.roi-description {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.5;
}
/* Responsive Design */
@media (max-width: 768px) {
    .analysis-section-elite {
        padding: 1.25rem;
    }
    .modern-table-elite {
        font-size: 0.85rem;
    }
    .modern-table-elite thead th,
    .modern-table-elite tbody td {
        padding: 0.75rem;
    }
    .revenue-card-value {
        font-size: 1.75rem;
    }
    .roi-value {
        font-size: 1.75rem;
    }
}

/* ============================================================================
   ADDITIONAL SECTION CARDS - Technical, Competitor, Signals, Opportunities
   Elite-level styling matching the wizard sections
   ============================================================================ */

/* Section Card Base - Matches wizard-step-card styling */
.technical-details-section,
.competitors-section,
.signals-section,
.opportunities-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 25px 60px rgba(0,93,93,0.06);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.technical-details-section:hover,
.competitors-section:hover,
.signals-section:hover,
.opportunities-section:hover {
    box-shadow: 0 8px 32px rgba(0, 93, 93, 0.12);
}

/* Section Header - Collapsible */
.technical-details-section .section-header,
.competitors-section .section-header,
.signals-section .section-header,
.opportunities-section .section-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    margin: 0;
}

.technical-details-section .section-header:hover,
.competitors-section .section-header:hover,
.signals-section .section-header:hover,
.opportunities-section .section-header:hover {
    background: linear-gradient(135deg, #f8fffe 0%, #f0fdfa 100%);
}

.technical-details-section .section-header-content,
.competitors-section .section-header-content,
.signals-section .section-header-content,
.opportunities-section .section-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.technical-details-section .section-header-left,
.competitors-section .section-header-left,
.signals-section .section-header-left,
.opportunities-section .section-header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
}

.technical-details-section .section-number,
.competitors-section .section-number,
.signals-section .section-number,
.opportunities-section .section-number {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.technical-details-section .section-info,
.competitors-section .section-info,
.signals-section .section-info,
.opportunities-section .section-info {
    flex: 1;
    min-width: 0;
}

.technical-details-section .section-title,
.competitors-section .section-title,
.signals-section .section-title,
.opportunities-section .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.technical-details-section .section-title i,
.competitors-section .section-title i,
.signals-section .section-title i,
.opportunities-section .section-title i {
    display: none; /* Hide duplicate icon */
}

.technical-details-section .section-description,
.competitors-section .section-description,
.signals-section .section-description,
.opportunities-section .section-description {
    font-size: 0.9375rem;
    color: #22272d;
    margin: 0;
    line-height: 1.5;
}

.technical-details-section .section-header-right,
.competitors-section .section-header-right,
.signals-section .section-header-right,
.opportunities-section .section-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-weight-badge {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 93, 93, 0.1);
    color: var(--audit-primary, #005D5D);
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
}

.technical-details-section .toggle-icon,
.competitors-section .toggle-icon,
.signals-section .toggle-icon,
.opportunities-section .toggle-icon {
    font-size: 1.25rem;
    color: #22272d;
    transition: transform 0.3s ease;
}

.technical-details-section .toggle-icon.rotated,
.competitors-section .toggle-icon.rotated,
.signals-section .toggle-icon.rotated,
.opportunities-section .toggle-icon.rotated {
    transform: rotate(180deg);
}

/* Section Content */
.technical-details-section .section-content,
.competitors-section .section-content,
.signals-section .section-content,
.opportunities-section .section-content {
    padding: 0;
    background: #fafbfc;
}

.technical-details-section .content-body,
.competitors-section .content-body,
.signals-section .content-body,
.opportunities-section .content-body {
    padding: 2rem;
}

/* ============================================================================
   COMPETITOR ANALYSIS SECTION STYLES
   ============================================================================ */

/* Competitor Summary Stats */
.competitor-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fffe 0%, #f0fdfa 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.summary-stat .summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--audit-primary, #005D5D);
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.summary-stat .summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.summary-stat .summary-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #22272d;
}

/* Competitors Grid */
.competitors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Competitor Card */
.competitor-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.competitor-card:hover {
    box-shadow: 0 8px 24px rgba(0, 93, 93, 0.1);
    transform: translateY(-2px);
}

.competitor-card.ai-featured {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.competitor-card.featured {
    border-color: #eab308;
}

.competitor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.competitor-rank .rank-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--audit-primary, #005D5D);
}

.competitor-domain {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--elite-slate, #0f172a);
    font-size: 0.9375rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.competitor-domain i {
    color: #22272d;
    flex-shrink: 0;
}

.competitor-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.comp-badge.ai-badge {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
}

.comp-badge.featured-badge {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

.competitor-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.competitor-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.competitor-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #22272d;
}

.competitor-meta .meta-item i {
    color: var(--audit-primary, #005D5D);
    width: 16px;
    text-align: center;
}

.competitor-schemas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.schema-pill {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(0, 93, 93, 0.08);
    color: var(--audit-primary, #005D5D);
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.schema-pill.more {
    background: #f1f5f9;
    color: #22272d;
}

.competitor-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--elite-slate, #0f172a);
}

.competitor-rating .review-count {
    font-weight: 400;
    color: #22272d;
    font-size: 0.8125rem;
}

/* ============================================================================
   PAGE SIGNALS SECTION STYLES
   ============================================================================ */

.signal-categories {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.signal-category-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.signal-category-card .category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fafbfc;
    border-left: 4px solid;
    border-bottom: 1px solid #e2e8f0;
}

.signal-category-card .category-header i {
    font-size: 1.25rem;
}

.signal-category-card .category-name {
    flex: 1;
    font-weight: 600;
    color: var(--elite-slate, #0f172a);
    font-size: 0.9375rem;
}

.signal-category-card .category-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #22272d;
    background: #f1f5f9;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
}

.category-signals {
    padding: 1rem 1.25rem;
}

.signal-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.signal-item:last-child {
    border-bottom: none;
}

.signal-type {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #22272d;
    display: flex;
    align-items: center;
}

.signal-type i {
    font-size: 1.25rem;
    color: var(--audit-primary, #005D5D);
    margin-right: 0.25rem;
}

.signal-value {
    font-size: 0.875rem;
    color: var(--elite-slate, #0f172a);
    line-height: 1.5;
    word-break: break-word;
}

.signal-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.signal-meta .confidence,
.signal-meta .contribution {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #22272d;
}

.signal-meta .contribution {
    color: #10b981;
    font-weight: 600;
}

.signal-meta .evidence-link {
    color: var(--audit-primary, #005D5D);
    text-decoration: none;
    transition: color 0.2s;
}

.signal-meta .evidence-link:hover {
    color: #10b981;
}

.signal-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    font-size: 0.8125rem;
    font-style: italic;
}

/* ============================================================================
   GROWTH OPPORTUNITIES SECTION STYLES
   ============================================================================ */

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.opportunity-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.opportunity-card:hover {
    box-shadow: 0 8px 24px rgba(0, 93, 93, 0.1);
    transform: translateY(-2px);
}

.opportunity-card.priority-critical {
    border-left: 4px solid #dc2626;
}

.opportunity-card.priority-high {
    border-left: 4px solid #f59e0b;
}

.opportunity-card.priority-medium {
    border-left: 4px solid var(--audit-primary, #005D5D);
}

.opportunity-card.priority-low {
    border-left: 4px solid #10b981;
}

.opportunity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.opportunity-type {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.opportunity-priority {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
}

.priority-badge-critical {
    background: #fef2f2;
    color: #dc2626;
}

.priority-badge-high {
    background: #fef3c7;
    color: #d97706;
}

.priority-badge-medium {
    background: rgba(0, 93, 93, 0.1);
    color: var(--audit-primary, #005D5D);
}

.priority-badge-low {
    background: #d1fae5;
    color: #047857;
}

.opportunity-content {
    flex: 1;
}

.opportunity-recommendation {
    font-size: 0.9375rem;
    color: var(--elite-slate, #0f172a);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.opportunity-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #22272d;
    margin-bottom: 0.5rem;
}

.opportunity-meta-item i {
    color: var(--audit-primary, #005D5D);
    width: 16px;
    text-align: center;
}

.opportunity-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.impact-effort {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.impact-effort .impact,
.impact-effort .effort {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.impact.impact-high { color: #10b981; }
.impact.impact-very_high { color: #059669; }
.impact.impact-medium { color: #f59e0b; }
.impact.impact-low { color: #22272d; }

.effort.effort-low { color: #10b981; }
.effort.effort-minimal { color: #059669; }
.effort.effort-moderate { color: #f59e0b; }
.effort.effort-significant { color: #ef4444; }
.effort.effort-high { color: #dc2626; }

.competitor-evidence {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #22272d;
}

.competitor-evidence i {
    color: var(--audit-primary, #005D5D);
}

/* ============================================================================
   OVERVIEW METRICS GRID - For Technical Details Section
   ============================================================================ */

.overview-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.metric-card-elite {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.metric-card-elite:hover {
    box-shadow: 0 4px 12px rgba(0, 93, 93, 0.08);
    border-color: var(--audit-primary, #005D5D);
}

.metric-card-elite .metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.metric-card-elite .metric-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,93,93,0.1) 0%, rgba(16,185,129,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--audit-primary, #005D5D);
    font-size: 1.125rem;
}

.metric-card-elite .metric-content {}

.metric-card-elite .metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #22272d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
}

.metric-card-elite .metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--elite-slate, #0f172a);
    line-height: 1.4;
    word-break: break-word;
}

.metric-card-elite .metric-description {
    font-size: 0.8125rem;
    color: #22272d;
    margin-top: 0.375rem;
}

.metric-value-elite {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metric-value-elite.excellent { color: #047857; }
.metric-value-elite.good { color: var(--audit-primary, #005D5D); }
.metric-value-elite.needs-improvement { color: #b45309; }
.metric-value-elite.critical { color: #be123c; }

/* Insights Grid */
.insights-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.insight-card.info {
    border-left: 3px solid var(--audit-primary, #005D5D);
}

.insight-card.danger {
    border-left: 3px solid #dc2626;
    background: #fef2f2;
}

.insight-card.success {
    border-left: 3px solid #10b981;
    background: #f0fdf4;
}

.insight-card .insight-icon {
    flex-shrink: 0;
}

.insight-card .insight-content {
    flex: 1;
}

.insight-card .insight-title {
    font-weight: 600;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* Empty state for sections */
.technical-details-section .empty-state,
.competitors-section .empty-state,
.signals-section .empty-state,
.opportunities-section .empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #22272d;
}

.technical-details-section .empty-state i,
.competitors-section .empty-state i,
.signals-section .empty-state i,
.opportunities-section .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

.technical-details-section .empty-state p,
.competitors-section .empty-state p,
.signals-section .empty-state p,
.opportunities-section .empty-state p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Responsive adjustments for additional sections */
@media (max-width: 767px) {
    .technical-details-section .section-header,
    .competitors-section .section-header,
    .signals-section .section-header,
    .opportunities-section .section-header {
        padding: 1.25rem;
    }
    
    .technical-details-section .content-body,
    .competitors-section .content-body,
    .signals-section .content-body,
    .opportunities-section .content-body {
        padding: 1.25rem;
    }
    
    .competitor-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .competitors-grid,
    .opportunities-grid {
        grid-template-columns: 1fr;
    }
    
    .signal-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .signal-meta {
        justify-content: flex-start;
    }
    
    .overview-metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* ============================================================================
   ADDITIONAL SECTIONS HEADER - Elite Controls
   ============================================================================ */

.additional-sections-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    margin: 3rem 0 2rem;
    background: linear-gradient(135deg, #f8fffe 0%, #f0fdfa 50%, #e0f7fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 93, 93, 0.1);
    position: relative;
    overflow: hidden;
}

.additional-sections-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--audit-primary, #005D5D) 0%, #10b981 50%, #06b6d4 100%);
}

.additional-sections-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-divider-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--audit-primary, #005D5D), #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 93, 93, 0.2);
    flex-shrink: 0;
}

.section-divider-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin: 0 0 0.25rem 0;
}

.section-divider-text p {
    font-size: 0.9rem;
    color: #22272d;
    margin: 0;
}

.section-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-section-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn-section-control:hover {
    background: var(--audit-primary, #005D5D);
    border-color: var(--audit-primary, #005D5D);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 93, 93, 0.25);
}

.btn-section-control:active {
    transform: translateY(0);
}

.btn-section-control i {
    font-size: 1rem;
}

/* Section Animations */
@keyframes sectionExpand {
    0% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        max-height: 2000px;
        transform: translateY(0);
    }
}

@keyframes sectionCollapse {
    0% {
        opacity: 1;
        max-height: 2000px;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

.section-expanding {
    animation: sectionExpand 0.4s ease-out forwards;
}

.section-collapsing {
    animation: sectionCollapse 0.3s ease-in forwards;
}

/* Enhanced Section Card Hover Effects */
.technical-details-section,
.competitors-section,
.signals-section,
.opportunities-section {
    position: relative;
}

.technical-details-section::before,
.competitors-section::before,
.signals-section::before,
.opportunities-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--audit-primary, #005D5D) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.technical-details-section:hover::before,
.competitors-section:hover::before,
.signals-section:hover::before,
.opportunities-section:hover::before {
    opacity: 1;
}

/* Section-specific left border colors */
.technical-details-section::before {
    background: linear-gradient(180deg, #036d4a 0%, transparent 100%);
}

.competitors-section::before {
    background: linear-gradient(180deg, #f59e0b 0%, transparent 100%);
}

.signals-section::before {
    background: linear-gradient(180deg, #10b981 0%, transparent 100%);
}

.opportunities-section::before {
    background: linear-gradient(180deg, #ec4899 0%, transparent 100%);
}

/* Enhanced Status Badges */
.technical-details-section .status-badge,
.competitors-section .status-badge,
.signals-section .status-badge,
.opportunities-section .status-badge {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
}

.status-badge.status-complete {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.status-badge.status-ready {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #22272d;
    border: 1px solid #cbd5e1;
}

/* Enhanced Toggle Icon */
.toggle-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 93, 93, 0.05);
    color: #22272d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header:hover .toggle-icon {
    background: rgba(0, 93, 93, 0.1);
    color: var(--audit-primary, #005D5D);
}

.toggle-icon.rotated {
    transform: rotate(180deg);
    background: var(--audit-primary, #005D5D);
    color: white;
}

/* Enhanced Empty States */
.technical-details-section .empty-state,
.competitors-section .empty-state,
.signals-section .empty-state,
.opportunities-section .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    position: relative;
    overflow: hidden;
}

.technical-details-section .empty-state::before,
.competitors-section .empty-state::before,
.signals-section .empty-state::before,
.opportunities-section .empty-state::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 93, 93, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.empty-state .empty-icon i {
    font-size: 2rem;
    color: #22272d;
}

.empty-state .empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.empty-state .empty-description {
    font-size: 0.9375rem;
    color: #22272d;
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Pulse animation for pending status */
@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 93, 93, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 93, 93, 0);
    }
}

.status-badge.status-ready {
    animation: statusPulse 2s infinite;
}

/* Metric card enhancements */
.metric-card-elite {
    position: relative;
    overflow: hidden;
}

.metric-card-elite::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.metric-card-elite:hover::after {
    left: 100%;
}

/* Signal item hover effect */
.signal-item {
    position: relative;
    transition: all 0.2s ease;
}

.signal-item:hover {
    background: rgba(0, 93, 93, 0.02);
    transform: translateX(4px);
}

.signal-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--audit-primary, #005D5D);
    transition: height 0.2s ease;
}

.signal-item:hover::before {
    height: 60%;
}

/* Competitor card enhancements */
.competitor-card {
    position: relative;
}

.competitor-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--audit-primary, #005D5D), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.competitor-card:hover::after {
    opacity: 1;
}

/* Opportunity card priority indicators */
.opportunity-card.priority-critical {
    border-left: 4px solid #ef4444;
}

.opportunity-card.priority-high {
    border-left: 4px solid #f59e0b;
}

.opportunity-card.priority-medium {
    border-left: 4px solid #3b82f6;
}

.opportunity-card.priority-low {
    border-left: 4px solid #10b981;
}

/* Focus states for accessibility */
.section-header:focus-visible {
    outline: 2px solid var(--audit-primary, #005D5D);
    outline-offset: 2px;
}

.btn-section-control:focus-visible {
    outline: 2px solid var(--audit-primary, #005D5D);
    outline-offset: 2px;
}

/* Responsive adjustments for additional sections header */
@media (max-width: 767px) {
    .additional-sections-header {
        padding: 1.25rem;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .additional-sections-title {
        flex-direction: column;
        text-align: center;
    }
    
    .section-controls {
        justify-content: center;
    }
    
    .btn-section-control {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

/* ============================================================================
   ELITE DATA VISUALIZATION ENHANCEMENTS
   ============================================================================ */

/* Analysis Section Elite - Enhanced Containers */
.analysis-section-elite {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.analysis-section-elite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--audit-primary, #005D5D) 0%, #10b981 100%);
    opacity: 0.6;
}

.analysis-section-elite:hover::before {
    opacity: 1;
}

.section-title-elite {
    font-size: 1rem;
    font-weight: 700;
    color: var(--elite-slate, #0f172a);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.section-title-elite i {
    color: var(--audit-primary, #005D5D);
    font-size: 1.125rem;
}

/* Insight Cards - Enhanced */
.insight-card {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.insight-card:hover {
    border-color: var(--audit-primary, #005D5D);
    box-shadow: 0 4px 12px rgba(0, 93, 93, 0.08);
    transform: translateX(4px);
}

.insight-card.info {
    border-left: 3px solid var(--audit-primary, #005D5D);
}

.insight-card .insight-icon {
    flex-shrink: 0;
}

.insight-card .insight-icon .badge {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
}

.insight-card .insight-content {
    flex: 1;
    min-width: 0;
}

.insight-card .insight-title {
    font-weight: 600;
    color: var(--elite-slate, #0f172a);
    margin: 0 0 0.375rem 0;
    font-size: 0.9375rem;
}

/* Data Count Badge */
.data-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, rgba(0, 93, 93, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--audit-primary, #005D5D);
}

.data-count-badge i {
    font-size: 0.6875rem;
}

/* Schema Pills - Enhanced */
.schema-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    margin: 0.125rem;
    border: 1px solid #6ee7b7;
}

.schema-pill.more {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #22272d;
    border-color: #cbd5e1;
}

/* Rating Stars */
.rating-display {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-display .star {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-display .star.empty {
    color: #e2e8f0;
}

/* Progress Bars - Mini */
.progress-mini {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-mini .progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.progress-mini .progress-fill.excellent {
    background: linear-gradient(90deg, #047857 0%, #10b981 100%);
}

.progress-mini .progress-fill.good {
    background: linear-gradient(90deg, var(--audit-primary, #005D5D) 0%, #0d9488 100%);
}

.progress-mini .progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.progress-mini .progress-fill.critical {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

/* Tooltip Styling */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: var(--elite-slate, #0f172a);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--elite-slate, #0f172a);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Quick Stats Row */
.quick-stats-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.quick-stat {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.2s ease;
}

.quick-stat:hover {
    border-color: var(--audit-primary, #005D5D);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 93, 93, 0.08);
}

.quick-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--audit-primary, #005D5D);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.quick-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #22272d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Data Table Enhancements */
.data-table-elite {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

.data-table-elite th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: #22272d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.data-table-elite td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--elite-slate, #0f172a);
}

.data-table-elite tbody tr:hover {
    background: rgba(0, 93, 93, 0.02);
}

.data-table-elite tbody tr:last-child td {
    border-bottom: none;
}

/* Loading Skeleton */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-title {
    height: 1.5rem;
    width: 40%;
    margin-bottom: 1rem;
}

/* Print Styles for sections */
@media print {
    .additional-sections-header {
        display: none;
    }
    
    .section-card .section-content {
        display: block !important;
    }
    
    .toggle-icon {
        display: none;
    }
    
    .btn-section-control {
        display: none;
    }
}
