﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * X-Chromosome Ancestry Report - Shared Styles for Report Views
 * Premium cinematic design for XChromosomeWorld, XChromosomeNoData, and XChromosomeProcessing views.
 */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
    /* Primary Colors - Cyan/Teal theme for X chromosome */
    --xcr-primary: #0891b2;
    --xcr-primary-dark: #0e7490;
    --xcr-primary-light: #22d3ee;
    --xcr-secondary: #155e75;
    --xcr-accent: #d4af37;
    --xcr-accent-light: #f0e4c3;
    
    /* Neutral Colors */
    --xcr-dark: #1a1a2e;
    --xcr-dark-soft: #2d2d44;
    --xcr-text: #333344;
    --xcr-text-muted: #64748b;
    --xcr-light: #f8fafa;
    --xcr-white: #ffffff;
    --xcr-border: rgba(15, 23, 42, 0.08);
    
    /* Sex-specific Colors */
    --xcr-male: #3b82f6;
    --xcr-male-light: #dbeafe;
    --xcr-female: #ec4899;
    --xcr-female-light: #fce7f3;
    
    /* Status Colors */
    --xcr-success: #10b981;
    --xcr-success-light: #d1fae5;
    --xcr-warning: #f59e0b;
    --xcr-warning-light: #fef3c7;
    --xcr-info: #3b82f6;
    --xcr-info-light: #dbeafe;
    
    /* Typography */
    --xcr-font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --xcr-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Shadows */
    --xcr-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --xcr-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --xcr-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --xcr-shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
    --xcr-shadow-glow: 0 8px 32px rgba(8, 145, 178, 0.25);
    
    /* Borders */
    --xcr-radius-sm: 8px;
    --xcr-radius-md: 16px;
    --xcr-radius-lg: 24px;
    --xcr-radius-xl: 32px;
    
    /* Transitions */
    --xcr-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --xcr-transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Base & Typography
   ======================================== */
.xcr-main {
    font-family: var(--xcr-font-sans);
    color: var(--xcr-text);
    background: var(--xcr-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.xcr-main h1,
.xcr-main h2,
.xcr-main h3,
.xcr-main h4 {
    font-family: var(--xcr-font-serif);
    font-weight: 600;
    color: var(--xcr-dark);
    line-height: 1.2;
}

/* ========================================
   Scroll Progress Bar
   ======================================== */
.xcr-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--xcr-primary) 0%, var(--xcr-accent) 100%);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ========================================
   Back to Top Button
   ======================================== */
.xcr-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--xcr-primary) 0%, var(--xcr-primary-dark) 100%);
    color: var(--xcr-white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--xcr-transition);
    box-shadow: var(--xcr-shadow-lg);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xcr-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.xcr-back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--xcr-shadow-glow);
}

/* ========================================
   HERO SECTION - REPORT RESULTS
   ======================================== */
.xcr-hero {
    position: relative;
    padding: 100px 20px 80px;
    overflow: hidden;
    background: linear-gradient(145deg, #0c4a6e 0%, #155e75 30%, #1a1a2e 100%);
}

.xcr-hero-overlay {
    position: absolute;
    inset: 0;
    background: url('/img/icons/dashboard/X.svg') no-repeat center center;
    background-size: 25%;
    opacity: 0.04;
    pointer-events: none;
}

.xcr-hero-paths {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.xcr-hero-paths::before,
.xcr-hero-paths::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: xcrPathLine 12s ease-in-out infinite;
}

.xcr-hero-paths::before {
    top: 30%;
    left: -50%;
    transform: rotate(10deg);
}

.xcr-hero-paths::after {
    top: 70%;
    left: -50%;
    transform: rotate(-10deg);
    animation-delay: 6s;
}

@keyframes xcrPathLine {
    0%, 100% { opacity: 0; transform: translateX(-10%) rotate(10deg); }
    50% { opacity: 0.5; transform: translateX(10%) rotate(10deg); }
}

.xcr-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.xcr-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(8, 145, 178, 0.2);
    border: 1px solid rgba(8, 145, 178, 0.4);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--xcr-primary-light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.xcr-hero-title {
    font-size: 3rem;
    font-weight: 500;
    color: var(--xcr-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.xcr-title-line {
    display: block;
    color: rgba(255, 255, 255, 0.85);
}

.xcr-title-accent {
    display: block;
    color: var(--xcr-primary-light);
    font-weight: 600;
}

.xcr-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Result Status Badge */
.xcr-result-status {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: var(--xcr-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 2rem;
}

.xcr-result-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.xcr-status-ready .xcr-result-icon {
    background: var(--xcr-success);
}

.xcr-status-processing .xcr-result-icon {
    background: var(--xcr-warning);
}

.xcr-status-unavailable .xcr-result-icon {
    background: var(--xcr-text-muted);
}

.xcr-result-info {
    text-align: left;
}

.xcr-result-info h3 {
    color: var(--xcr-white);
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
    font-family: var(--xcr-font-sans);
    font-weight: 600;
}

.xcr-result-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Trust Badges */
.xcr-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.xcr-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.xcr-trust-item i {
    color: var(--xcr-primary-light);
}

/* ========================================
   SECTION STYLES
   ======================================== */
.xcr-section {
    padding: 80px 0;
}

.xcr-section-alt {
    background: var(--xcr-white);
}

.xcr-chapter-header {
    text-align: center;
    margin-bottom: 3rem;
}

.xcr-chapter-number {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--xcr-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.xcr-section-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--xcr-dark);
}

.xcr-section-subtitle {
    font-size: 1.1rem;
    color: var(--xcr-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   INHERITANCE CARDS
   ======================================== */
.xcr-inheritance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.xcr-inheritance-card {
    background: var(--xcr-white);
    border-radius: var(--xcr-radius-lg);
    box-shadow: var(--xcr-shadow-md);
    overflow: hidden;
    transition: var(--xcr-transition);
}

.xcr-inheritance-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--xcr-shadow-lg);
}

.xcr-inheritance-card.xcr-male {
    border-top: 4px solid var(--xcr-male);
}

.xcr-inheritance-card.xcr-female {
    border-top: 4px solid var(--xcr-female);
}

.xcr-inheritance-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.xcr-male .xcr-inheritance-header {
    background: var(--xcr-male-light);
}

.xcr-female .xcr-inheritance-header {
    background: var(--xcr-female-light);
}

.xcr-inheritance-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--xcr-white);
}

.xcr-male .xcr-inheritance-icon {
    background: var(--xcr-male);
}

.xcr-female .xcr-inheritance-icon {
    background: var(--xcr-female);
}

.xcr-inheritance-icon i {
    font-size: 1.1rem;
}

.xcr-inheritance-header h3 {
    margin: 0;
    font-size: 1.35rem;
}

.xcr-inheritance-body {
    padding: 1.5rem;
}

.xcr-inheritance-body p {
    color: var(--xcr-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   ANALYSIS MODEL CARDS
   ======================================== */
.xcr-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.xcr-model-card {
    background: var(--xcr-white);
    border-radius: var(--xcr-radius-lg);
    box-shadow: var(--xcr-shadow-md);
    overflow: hidden;
    transition: var(--xcr-transition);
}

.xcr-model-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--xcr-shadow-lg);
}

.xcr-model-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.xcr-model-card.xcr-k9 .xcr-model-header {
    background: linear-gradient(135deg, var(--xcr-primary) 0%, var(--xcr-primary-dark) 100%);
}

.xcr-model-card.xcr-k23 .xcr-model-header {
    background: linear-gradient(135deg, var(--xcr-accent) 0%, #c9a227 100%);
}

.xcr-model-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xcr-model-icon i {
    font-size: 1.25rem;
    color: var(--xcr-white);
}

.xcr-model-header h3 {
    margin: 0;
    color: var(--xcr-white);
    font-size: 1.25rem;
    font-family: var(--xcr-font-sans);
    font-weight: 600;
}

.xcr-model-body {
    padding: 1.5rem;
}

.xcr-model-body p {
    color: var(--xcr-text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.xcr-model-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xcr-model-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--xcr-text);
    font-size: 0.95rem;
}

.xcr-model-features li i {
    color: var(--xcr-success);
    margin-top: 0.2rem;
}

/* ========================================
   COMPOSITION TABS
   ======================================== */
.xcr-composition-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.xcr-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--xcr-white);
    border: 2px solid var(--xcr-border);
    border-radius: 50px;
    font-weight: 600;
    color: var(--xcr-text);
    cursor: pointer;
    transition: var(--xcr-transition);
    font-size: 1rem;
}

.xcr-tab-btn:hover {
    border-color: var(--xcr-primary);
    color: var(--xcr-primary);
}

.xcr-tab-btn.active {
    background: linear-gradient(135deg, var(--xcr-primary) 0%, var(--xcr-primary-dark) 100%);
    border-color: var(--xcr-primary);
    color: var(--xcr-white);
}

.xcr-tab-btn .badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.xcr-tab-btn.active .badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--xcr-white);
}

.xcr-tab-content {
    display: none;
}

.xcr-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ========================================
   COMPOSITION CARD
   ======================================== */
.xcr-composition-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

@media (max-width: 991px) {
    .xcr-composition-wrapper {
        grid-template-columns: 1fr;
    }
}

.xcr-composition-card {
    background: var(--xcr-white);
    border-radius: var(--xcr-radius-lg);
    box-shadow: var(--xcr-shadow-md);
    overflow: hidden;
}

.xcr-composition-header {
    background: linear-gradient(135deg, var(--xcr-primary) 0%, var(--xcr-secondary) 100%);
    color: var(--xcr-white);
    padding: 1.5rem 2rem;
}

.xcr-composition-header h4 {
    margin: 0 0 0.25rem;
    color: var(--xcr-white);
    font-size: 1.35rem;
}

.xcr-composition-header p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.xcr-composition-body {
    padding: 0;
}

/* Continent Group Headers */
.xcr-continent-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 0.875rem 1.5rem;
    border-left: 4px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xcr-continent-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.xcr-continent-total {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Composition Items */
.xcr-composition-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    background: var(--xcr-white);
}

.xcr-composition-item:hover {
    background: #f8fafa;
}

.xcr-composition-item.sub-item {
    padding-left: 2rem;
    background: #fcfcfc;
}

.xcr-composition-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    flex-shrink: 0;
}

.xcr-composition-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.xcr-percentage-bar {
    flex: 1;
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 1rem;
}

.xcr-percentage-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.xcr-percentage-value {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 55px;
    text-align: right;
    color: var(--xcr-dark);
}

/* Insights Sidebar */
.xcr-insights-card {
    background: var(--xcr-white);
    border-radius: var(--xcr-radius-lg);
    box-shadow: var(--xcr-shadow-md);
    padding: 1.5rem;
    height: fit-content;
}

.xcr-insights-card h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--xcr-primary);
    font-family: var(--xcr-font-sans);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.xcr-insights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xcr-insights-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--xcr-text);
    font-size: 0.95rem;
}

.xcr-insights-list li i {
    color: var(--xcr-success);
    margin-top: 0.2rem;
}

/* ========================================
   TECHNICAL DETAILS
   ======================================== */
.xcr-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.xcr-tech-card {
    background: var(--xcr-white);
    border-radius: var(--xcr-radius-lg);
    box-shadow: var(--xcr-shadow-md);
    overflow: hidden;
}

.xcr-tech-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.xcr-tech-card.xcr-tech-positive .xcr-tech-header {
    background: linear-gradient(135deg, var(--xcr-primary) 0%, var(--xcr-primary-dark) 100%);
}

.xcr-tech-card.xcr-tech-warning .xcr-tech-header {
    background: linear-gradient(135deg, var(--xcr-warning) 0%, #d97706 100%);
}

.xcr-tech-header i {
    color: var(--xcr-white);
    font-size: 1.1rem;
}

.xcr-tech-header h6 {
    margin: 0;
    color: var(--xcr-white);
    font-size: 1rem;
    font-family: var(--xcr-font-sans);
    font-weight: 600;
}

.xcr-tech-body {
    padding: 1.5rem;
}

.xcr-tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xcr-tech-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--xcr-text);
    font-size: 0.9rem;
}

.xcr-tech-card.xcr-tech-positive .xcr-tech-list li i {
    color: var(--xcr-success);
}

.xcr-tech-card.xcr-tech-warning .xcr-tech-list li i {
    color: var(--xcr-warning);
}

/* ========================================
   AI ASSISTANT SECTION
   ======================================== */
.xcr-ai-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--xcr-radius-xl);
    padding: 2.5rem;
    margin-top: 3rem;
}

.xcr-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.xcr-ai-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.xcr-ai-title i {
    font-size: 1.5rem;
    color: var(--xcr-primary-light);
}

.xcr-ai-title h4 {
    margin: 0;
    color: var(--xcr-white);
    font-family: var(--xcr-font-sans);
    font-weight: 600;
}

.xcr-ai-title small {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.xcr-ai-badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.xcr-ai-badge.badge-success {
    background: var(--xcr-success);
    color: var(--xcr-white);
}

.xcr-ai-badge.badge-warning {
    background: var(--xcr-warning);
    color: var(--xcr-dark);
}

.xcr-ai-info {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--xcr-radius-md);
    margin-bottom: 1.5rem;
}

.xcr-ai-info i {
    color: var(--xcr-primary-light);
    margin-top: 0.2rem;
}

.xcr-ai-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.xcr-suggested-prompts {
    margin-bottom: 1.5rem;
}

.xcr-suggested-prompts > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.xcr-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--xcr-transition);
}

.xcr-prompt-btn:hover {
    background: rgba(8, 145, 178, 0.2);
    border-color: var(--xcr-primary);
    color: var(--xcr-white);
}

.xcr-ai-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--xcr-primary) 0%, var(--xcr-primary-dark) 100%);
    border: none;
    border-radius: 50px;
    color: var(--xcr-white);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--xcr-transition);
    box-shadow: var(--xcr-shadow-glow);
}

.xcr-ai-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(8, 145, 178, 0.4);
}

.xcr-ai-main-btn img {
    width: 24px;
    height: 24px;
}

.xcr-sample-output {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--xcr-radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.xcr-sample-output h6 {
    color: var(--xcr-accent);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-family: var(--xcr-font-sans);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.xcr-sample-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--xcr-radius-sm);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.xcr-sample-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.xcr-sample-content p strong {
    color: var(--xcr-white);
}

.xcr-unlock-cta {
    text-align: center;
    margin-top: 1rem;
}

.xcr-unlock-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--xcr-success);
    border-radius: 50px;
    color: var(--xcr-white);
    font-weight: 600;
    text-decoration: none;
    transition: var(--xcr-transition);
}

.xcr-unlock-btn:hover {
    background: #059669;
    color: var(--xcr-white);
    text-decoration: none;
}

.xcr-ai-results {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--xcr-radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.xcr-ai-results:empty {
    display: none;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.xcr-faq-section {
    padding: 60px 0;
    background: var(--xcr-white);
}

.xcr-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.xcr-faq-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.xcr-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.xcr-faq-item {
    background: var(--xcr-light);
    border-radius: var(--xcr-radius-md);
    overflow: hidden;
    box-shadow: var(--xcr-shadow-sm);
}

.xcr-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--xcr-dark);
    transition: var(--xcr-transition);
}

.xcr-faq-question:hover {
    background: rgba(8, 145, 178, 0.05);
}

.xcr-faq-question i {
    color: var(--xcr-primary);
    transition: transform 0.3s ease;
}

.xcr-faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.xcr-faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
}

.xcr-faq-answer.show {
    display: block;
}

.xcr-faq-answer p {
    color: var(--xcr-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   PROCESSING STATE
   ======================================== */
.xcr-processing-card {
    background: var(--xcr-white);
    border-radius: var(--xcr-radius-xl);
    box-shadow: var(--xcr-shadow-lg);
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.xcr-processing-header {
    background: linear-gradient(135deg, var(--xcr-primary) 0%, var(--xcr-secondary) 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.xcr-processing-header i {
    font-size: 1.5rem;
    color: var(--xcr-white);
}

.xcr-processing-header h4 {
    margin: 0;
    color: var(--xcr-white);
    font-family: var(--xcr-font-sans);
    font-weight: 600;
}

.xcr-processing-body {
    padding: 2.5rem;
    text-align: center;
}

.xcr-processing-visual {
    margin-bottom: 2rem;
}

.xcr-processing-visual img {
    width: 100px;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.xcr-processing-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--xcr-border);
    border-top: 4px solid var(--xcr-primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.xcr-processing-body h5 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-family: var(--xcr-font-sans);
    font-weight: 600;
}

.xcr-processing-body p {
    color: var(--xcr-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.xcr-processing-progress {
    height: 8px;
    background: var(--xcr-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.xcr-processing-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--xcr-primary) 0%, var(--xcr-primary-light) 100%);
    border-radius: 4px;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { width: 70%; }
    50% { width: 85%; }
}

.xcr-processing-status {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.xcr-status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.xcr-status-item i {
    font-size: 0.75rem;
}

.xcr-status-item.processing i {
    color: var(--xcr-warning);
}

.xcr-status-item.complete i {
    color: var(--xcr-success);
}

.xcr-status-item.queued i {
    color: var(--xcr-text-muted);
}

.xcr-time-estimate {
    background: var(--xcr-light);
    padding: 1rem 1.5rem;
    border-radius: var(--xcr-radius-md);
    margin-bottom: 2rem;
}

.xcr-time-estimate i {
    color: var(--xcr-primary);
    margin-right: 0.5rem;
}

.xcr-processing-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.xcr-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--xcr-primary) 0%, var(--xcr-primary-dark) 100%);
    border: none;
    border-radius: 50px;
    color: var(--xcr-white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--xcr-transition);
}

.xcr-refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--xcr-shadow-glow);
}

.xcr-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 2px solid var(--xcr-border);
    border-radius: 50px;
    color: var(--xcr-text);
    font-weight: 600;
    text-decoration: none;
    transition: var(--xcr-transition);
}

.xcr-home-btn:hover {
    border-color: var(--xcr-primary);
    color: var(--xcr-primary);
    text-decoration: none;
}

.xcr-auto-refresh {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--xcr-text-muted);
}

/* ========================================
   NO DATA STATE
   ======================================== */
.xcr-nodata-showcase {
    background: var(--xcr-white);
    border-radius: var(--xcr-radius-xl);
    box-shadow: var(--xcr-shadow-lg);
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.xcr-nodata-icon {
    width: 100px;
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.xcr-nodata-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--xcr-font-sans);
    font-weight: 600;
}

.xcr-nodata-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--xcr-warning-light);
    color: #92400e;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.xcr-nodata-desc {
    color: var(--xcr-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Reasons Grid */
.xcr-reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.xcr-reason-card {
    background: var(--xcr-white);
    border-radius: var(--xcr-radius-lg);
    box-shadow: var(--xcr-shadow-md);
    overflow: hidden;
}

.xcr-reason-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--xcr-light);
    border-bottom: 1px solid var(--xcr-border);
}

.xcr-reason-header i {
    font-size: 1.1rem;
    color: var(--xcr-primary);
}

.xcr-reason-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--xcr-font-sans);
    font-weight: 600;
}

.xcr-reason-body {
    padding: 1.5rem;
}

.xcr-reason-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xcr-reason-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--xcr-text);
}

.xcr-reason-list li i {
    color: var(--xcr-text-muted);
    margin-top: 0.2rem;
}

/* Provider Cards */
.xcr-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.xcr-provider-card {
    background: var(--xcr-white);
    border-radius: var(--xcr-radius-md);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--xcr-shadow-sm);
    border: 2px solid transparent;
    transition: var(--xcr-transition);
}

.xcr-provider-card:hover {
    border-color: var(--xcr-primary);
}

.xcr-provider-card.compatible {
    border-color: var(--xcr-success);
    background: var(--xcr-success-light);
}

.xcr-provider-card h6 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
    font-family: var(--xcr-font-sans);
    font-weight: 600;
}

.xcr-provider-card p {
    font-size: 0.8rem;
    color: var(--xcr-text-muted);
    margin: 0;
}

/* Action Cards */
.xcr-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.xcr-action-card {
    background: var(--xcr-white);
    border-radius: var(--xcr-radius-lg);
    box-shadow: var(--xcr-shadow-md);
    padding: 2rem;
    text-align: center;
    transition: var(--xcr-transition);
}

.xcr-action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--xcr-shadow-lg);
}

.xcr-action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(8, 145, 178, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.xcr-action-icon i {
    font-size: 1.5rem;
    color: var(--xcr-primary);
}

.xcr-action-card h5 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-family: var(--xcr-font-sans);
    font-weight: 600;
}

.xcr-action-card p {
    color: var(--xcr-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.xcr-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--xcr-transition);
}

.xcr-action-btn.primary {
    background: linear-gradient(135deg, var(--xcr-primary) 0%, var(--xcr-primary-dark) 100%);
    color: var(--xcr-white);
}

.xcr-action-btn.primary:hover {
    box-shadow: var(--xcr-shadow-glow);
    color: var(--xcr-white);
    text-decoration: none;
}

.xcr-action-btn.secondary {
    background: var(--xcr-success);
    color: var(--xcr-white);
}

.xcr-action-btn.secondary:hover {
    background: #059669;
    color: var(--xcr-white);
    text-decoration: none;
}

.xcr-action-btn.outline {
    border: 2px solid var(--xcr-border);
    color: var(--xcr-text);
    background: transparent;
}

.xcr-action-btn.outline:hover {
    border-color: var(--xcr-primary);
    color: var(--xcr-primary);
    text-decoration: none;
}

/* Resources Grid */
.xcr-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.xcr-resource-card {
    display: block;
    background: var(--xcr-white);
    border-radius: var(--xcr-radius-md);
    padding: 1.5rem;
    box-shadow: var(--xcr-shadow-sm);
    text-decoration: none;
    transition: var(--xcr-transition);
    border: 1px solid var(--xcr-border);
}

.xcr-resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--xcr-shadow-md);
    border-color: var(--xcr-primary);
    text-decoration: none;
}

.xcr-resource-card i {
    font-size: 1.75rem;
    color: var(--xcr-primary);
    margin-bottom: 1rem;
}

.xcr-resource-card h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--xcr-dark);
    font-family: var(--xcr-font-sans);
    font-weight: 600;
}

.xcr-resource-card p {
    font-size: 0.85rem;
    color: var(--xcr-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   CALLOUT BOXES
   ======================================== */
.xcr-callout {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--xcr-radius-md);
    margin: 2rem 0;
}

.xcr-callout i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.xcr-callout p {
    margin: 0;
    line-height: 1.6;
}

.xcr-callout-info {
    background: var(--xcr-info-light);
    border-left: 4px solid var(--xcr-info);
}

.xcr-callout-info i {
    color: var(--xcr-info);
}

.xcr-callout-success {
    background: var(--xcr-success-light);
    border-left: 4px solid var(--xcr-success);
}

.xcr-callout-success i {
    color: var(--xcr-success);
}

.xcr-callout-warning {
    background: var(--xcr-warning-light);
    border-left: 4px solid var(--xcr-warning);
}

.xcr-callout-warning i {
    color: var(--xcr-warning);
}

/* ========================================
   FOOTER NOTE
   ======================================== */
.xcr-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(8, 145, 178, 0.08);
    border-radius: var(--xcr-radius-md);
    border-left: 4px solid var(--xcr-primary);
    margin-top: 3rem;
}

.xcr-footer-note i {
    color: var(--xcr-primary);
    margin-top: 0.2rem;
}

.xcr-footer-note span {
    font-size: 0.9rem;
    color: var(--xcr-text);
    line-height: 1.6;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.xcr-animate-fade-in {
    opacity: 0;
    animation: xcrFadeIn 0.6s ease forwards;
}

.xcr-animate-fade-in-up {
    opacity: 0;
    animation: xcrFadeInUp 0.6s ease forwards;
}

.xcr-animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.xcr-animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.xcr-delay-1 { animation-delay: 0.1s; }
.xcr-delay-2 { animation-delay: 0.2s; }
.xcr-delay-3 { animation-delay: 0.3s; }
.xcr-delay-4 { animation-delay: 0.4s; }

@keyframes xcrFadeIn {
    to { opacity: 1; }
}

@keyframes xcrFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 991px) {
    .xcr-hero-title {
        font-size: 2.25rem;
    }
    
    .xcr-section-title {
        font-size: 2rem;
    }
    
    .xcr-inheritance-grid {
        grid-template-columns: 1fr;
    }
    
    .xcr-composition-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .xcr-hero {
        padding: 80px 15px 60px;
    }
    
    .xcr-hero-title {
        font-size: 1.75rem;
    }
    
    .xcr-section {
        padding: 60px 0;
    }
    
    .xcr-section-title {
        font-size: 1.5rem;
    }
    
    .xcr-section-subtitle {
        font-size: 1rem;
    }
    
    .xcr-result-status {
        flex-direction: column;
        text-align: center;
    }
    
    .xcr-result-info {
        text-align: center;
    }
    
    .xcr-composition-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .xcr-tab-btn {
        justify-content: center;
    }
    
    .xcr-trust-badges {
        gap: 1rem;
    }
    
    .xcr-processing-status {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .xcr-ai-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .xcr-scroll-progress,
    .xcr-back-to-top,
    .xcr-ai-section,
    .xcr-faq-section,
    .xcr-processing-actions,
    .xcr-action-grid,
    .xcr-suggested-prompts,
    .xcr-ai-main-btn,
    .xcr-unlock-cta {
        display: none !important;
    }
    
    .xcr-hero {
        padding: 40px 20px;
        background: #155e75 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .xcr-section {
        padding: 30px 0;
    }
    
    .xcr-composition-card,
    .xcr-model-card,
    .xcr-inheritance-card,
    .xcr-tech-card {
        break-inside: avoid;
    }
}

/* ========================================
   CUSTOM LOADING OVERLAY - X-Chromosome Theme
   ======================================== */
.xcr-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0e7490 0%, #155e75 50%, #0c4a5f 100%);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.xcr-loading-overlay.xcr-overlay-fadeout {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Background with Chromosome Pattern */
.xcr-loading-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.xcr-loading-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(14, 116, 144, 0.6) 60%, rgba(12, 74, 95, 0.95) 100%),
        linear-gradient(180deg, rgba(236, 72, 153, 0.08) 0%, transparent 40%, transparent 60%, rgba(8, 145, 178, 0.05) 100%);
}

/* Pink/Cyan Glow Effect */
.xcr-loading-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 40% 40%, rgba(236, 72, 153, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 60%, rgba(34, 211, 238, 0.1) 0%, transparent 35%);
    animation: xcrChromosomeGlow 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes xcrChromosomeGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* Loading Content Container */
.xcr-loading-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 500px;
}

/* Chromosome Spinner */
.xcr-loading-spinner {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xcr-spinner-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.xcr-ring-outer {
    width: 100%;
    height: 100%;
    border-top-color: var(--xcr-female);
    border-right-color: var(--xcr-female);
    animation: xcrSpinnerRotate 3s linear infinite;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.3);
}

.xcr-ring-middle {
    width: 75%;
    height: 75%;
    border-bottom-color: var(--xcr-primary-light);
    border-left-color: var(--xcr-primary-light);
    animation: xcrSpinnerRotate 2.5s linear infinite reverse;
    opacity: 0.7;
}

.xcr-ring-inner {
    width: 50%;
    height: 50%;
    border-top-color: #fff;
    border-right-color: #fff;
    animation: xcrSpinnerRotate 2s linear infinite;
    opacity: 0.4;
}

.xcr-spinner-icon {
    font-size: 2.5rem;
    color: var(--xcr-female);
    animation: xcrIconPulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.5));
}

@keyframes xcrSpinnerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes xcrIconPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* Decorative Rings */
.xcr-loading-spinner::before,
.xcr-loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(236, 72, 153, 0.2);
    animation: xcrDecorRotate 25s linear infinite;
}

.xcr-loading-spinner::before {
    width: 160%;
    height: 160%;
}

.xcr-loading-spinner::after {
    width: 180%;
    height: 180%;
    animation-direction: reverse;
    animation-duration: 30s;
    border-color: rgba(34, 211, 238, 0.15);
}

@keyframes xcrDecorRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Typography */
.xcr-loading-title {
    font-family: var(--xcr-font-serif);
    font-size: 2.25rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.xcr-loading-subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.xcr-loading-narrative {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    min-height: 1.6em;
    transition: opacity 0.4s ease;
    line-height: 1.6;
}

/* Progress Bar */
.xcr-loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    position: relative;
}

.xcr-loading-progress-bar {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, var(--xcr-primary), var(--xcr-female), var(--xcr-primary-light));
    border-radius: 2px;
    animation: xcrProgressFlow 2.2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

@keyframes xcrProgressFlow {
    0% { transform: translateX(-100%); width: 30%; }
    50% { width: 45%; }
    100% { transform: translateX(400%); width: 30%; }
}

/* Hint Text */
.xcr-loading-hint {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.xcr-loading-hint i {
    animation: xcrHintPulse 2s ease-in-out infinite;
    color: var(--xcr-primary-light);
    opacity: 0.6;
}

@keyframes xcrHintPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Content Hidden State */
.xcr-content-hidden {
    opacity: 0 !important;
    visibility: hidden;
}

.xcr-content-reveal {
    opacity: 1 !important;
    visibility: visible !important;
    animation: xcrContentReveal 0.6s ease-out forwards;
}

.xcr-content-hidden.xcr-content-reveal {
    opacity: 1 !important;
    visibility: visible !important;
}

@keyframes xcrContentReveal {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .xcr-loading-content {
        padding: 1.5rem;
    }
    
    .xcr-loading-spinner {
        width: 110px;
        height: 110px;
        margin-bottom: 2rem;
    }
    
    .xcr-spinner-icon {
        font-size: 2rem;
    }
    
    .xcr-loading-title {
        font-size: 1.875rem;
    }
    
    .xcr-loading-narrative {
        font-size: 0.9375rem;
    }
    
    .xcr-loading-progress {
        width: 160px;
    }
}

/* Print Styles - Loading Overlay */
@media print {
    .xcr-loading-overlay {
        display: none !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .xcr-loading-bg::before,
    .xcr-spinner-ring,
    .xcr-spinner-icon,
    .xcr-loading-progress-bar,
    .xcr-loading-hint i,
    .xcr-loading-spinner::before,
    .xcr-loading-spinner::after {
        animation: none;
    }
    
    .xcr-loading-overlay,
    .xcr-content-reveal {
        transition: opacity 0.3s ease;
    }
    
    .xcr-loading-progress-bar {
        width: 50%;
        transform: none;
    }
}


