* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Xeo Brand Colors - Pastel/Light Versions */
    --cyan-light: #E6F9FD;
    --cyan-pastel: #B3ECF7;
    --cyan: #00B9DA;
    --cyan-dark: #0099B8;

    --pink-light: #FEE6F2;
    --pink-pastel: #FCB8DA;
    --pink: #f31c7e;
    --pink-dark: #D11766;

    --purple-light: #F3EBFA;
    --purple-pastel: #D9C0EC;
    --purple: #7D41A5;
    --purple-deep: #5B2D7A;

    --teal-light: #E8F5F4;
    --teal-pastel: #B8DDD9;
    --teal: #4DACA6;
    --teal-dark: #3D8A85;

    /* Rich Marketing Purple - Sidebar */
    --violet-deep: #4A1F5E;
    --violet-rich: #5E2875;
    --violet-medium: #7B3A94;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--cyan-light) 100%);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding-top: 40px;
    position: relative;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

/* ===== INPUT SECTION ===== */
.input-section {
    text-align: center;
    margin-bottom: 30px;
}

.input-section h2 {
    margin-bottom: 15px;
    color: var(--gray-900);
}

.url-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.url-input {
    flex: 1;
    max-width: 400px;
    padding: 15px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.url-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 185, 218, 0.1);
}

.analyze-btn {
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(125, 65, 165, 0.4);
}

.analyze-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.disclaimer {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ===== LOADING SECTION ===== */
.loading, .error-section, .results {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-100);
    border-top: 4px solid var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px auto 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple) 0%, var(--pink) 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

/* ===== ERROR SECTION ===== */
.error-section h3 {
    color: var(--pink);
    margin-bottom: 15px;
}

/* ===== RESULTS SECTION ===== */
.industry-detection {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--cyan-light) 0%, var(--purple-light) 100%);
    border-radius: 15px;
    margin-bottom: 30px;
}

.industry-detection h3 {
    color: var(--gray-900);
    margin-bottom: 10px;
}

/* ===== SCORE HEADER ===== */
.score-header {
    text-align: center;
    margin: 40px 0;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.score-poor {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
}

.score-fair {
    background: linear-gradient(135deg, var(--warning) 0%, #ff7043 100%);
}

.score-good {
    background: linear-gradient(135deg, var(--teal) 0%, var(--cyan) 100%);
}

.score-header h2 {
    color: var(--gray-900);
    margin-bottom: 10px;
}

.score-header p {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CATEGORIES ===== */
.score-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.category {
    background: var(--gray-50);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-poor { border-left-color: var(--pink); }
.category-fair { border-left-color: var(--warning); }
.category-good { border-left-color: var(--teal); }

.category h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: var(--gray-900);
    flex-wrap: wrap;
    gap: 10px;
}

.category-score {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
}

.category-progress {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-small {
    flex: 1;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, var(--teal) 0%, var(--cyan) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 50px;
    text-align: right;
}

/* ===== RECOMMENDATIONS ===== */
.recommendations {
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--cyan-light) 100%);
    border: 2px solid var(--teal);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.recommendations h3 {
    color: var(--gray-900);
    margin-bottom: 15px;
}

.quick-wins {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.quick-win {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--teal);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-win:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.quick-win h4 {
    color: var(--gray-900);
    margin-bottom: 10px;
}

.quick-win p {
    color: var(--gray-600);
    margin: 5px 0;
}

/* ===== ANALYSIS DETAILS ===== */
.analysis-details {
    margin-top: 30px;
}

.analysis-details summary {
    cursor: pointer;
    font-weight: 600;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.analysis-details summary:hover {
    background: var(--gray-100);
}

.analysis-details[open] summary {
    margin-bottom: 15px;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    color: var(--white);
    padding: 20px 0;
    opacity: 0.8;
}

.footer a {
    color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .main-content {
        padding: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

    .url-form {
        flex-direction: column;
        align-items: stretch;
    }

    .url-input {
        max-width: 100%;
        margin-bottom: 10px;
    }

    .analyze-btn {
        min-width: auto;
        width: 100%;
    }

    .score-categories {
        grid-template-columns: 1fr;
    }

    .score-circle {
        width: 150px;
        height: 150px;
        font-size: 2rem;
    }

    .category-progress {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .progress-text {
        text-align: center;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* ===== USER MENU BUTTON HOVER ===== */
.header button:hover {
    background: var(--white) !important;
    color: var(--cyan) !important;
}

/* ========================================
   NEW STYLES - Guest Scan Flow & Modals
   ======================================== */

/* Signup Overlay Styles */
.signup-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7));
    padding: 30px 20px 40px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.signup-overlay.visible {
    transform: translateY(0);
}

.signup-prompt {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.4);
}

.prompt-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.signup-prompt h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.signup-prompt p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 25px;
}

.prompt-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 25px 0;
    text-align: left;
}

.benefit {
    padding: 10px;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--gray-800);
}

.prompt-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.prompt-actions .btn-primary,
.prompt-actions .btn-secondary {
    flex: 1;
    max-width: 200px;
}

/* Modal Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.coming-soon-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--warning) 0%, #f59e0b 100%);
    color: var(--white);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--gray-900);
    margin: 20px 0;
}

.plan-price span {
    font-size: 1.5rem;
    color: var(--gray-500);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.plan-features li {
    padding: 12px 0;
    font-size: 1.05rem;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-200);
}

.plan-features li:last-child {
    border-bottom: none;
}

.limit-info {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.limit-usage {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
}

.limit-reset {
    color: #78350f;
    font-size: 0.95rem;
}

.upgrade-offer {
    background: linear-gradient(135deg, var(--cyan-light) 0%, #e0f2fe 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 25px 0;
}

.upgrade-offer h3 {
    color: var(--cyan-dark);
    margin-bottom: 15px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--gray-200);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.loading-state p {
    color: var(--gray-500);
    margin: 5px 0;
}

.loading-detail {
    font-size: 0.9rem;
    font-style: italic;
}

/* Error Banner */
.error-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fee;
    color: var(--error);
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    animation: slideDown 0.3s ease;
    font-weight: 600;
}

@keyframes slideDown {
    from { transform: translate(-50%, -100%); }
    to { transform: translate(-50%, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Results Container Styles */
.results-container {
    max-width: 900px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.analyzed-url {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-top: 10px;
    font-family: monospace;
}

.score-display {
    text-align: center;
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.main-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.score-number {
    font-size: 5rem;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 2rem;
    opacity: 0.9;
}

.score-description {
    font-size: 1.1rem;
    opacity: 0.95;
}

.pillars-section,
.recommendations-section {
    margin: 40px 0;
}

.pillars-section h3,
.recommendations-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--gray-900);
}

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

.pillar-score {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.pillar-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.pillar-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.pillar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan) 0%, var(--teal) 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.pillar-value {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-align: right;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    align-items: start;
}

.rec-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.recommendation p {
    margin: 0;
    color: var(--gray-800);
    line-height: 1.6;
}

.upgrade-prompt {
    margin-top: 40px;
    background: linear-gradient(135deg, var(--cyan-light) 0%, var(--purple-light) 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.upgrade-content h3 {
    font-size: 1.8rem;
    color: var(--purple);
    margin-bottom: 15px;
}

.upgrade-content p {
    color: var(--purple-deep);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .signup-prompt {
        padding: 30px 20px;
    }
    
    .prompt-benefits {
        grid-template-columns: 1fr;
    }
    
    .prompt-actions {
        flex-direction: column;
    }
    
    .prompt-actions .btn-primary,
    .prompt-actions .btn-secondary {
        max-width: 100%;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .score-number {
        font-size: 3.5rem;
    }
}

/* ============================================
   IMPLEMENTATION PROGRESS PAGE STYLES
   ============================================ */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
}

/* Progress Overview Section */
.progress-overview-section {
    margin-bottom: 2rem;
}

.progress-overview-content {
    padding: 2rem;
}

.overall-progress-bar-container {
    margin-bottom: 2rem;
}

.progress-bar-large {
    width: 100%;
    height: 48px;
    background: var(--gray-200);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill-large {
    height: 100%;
    background: linear-gradient(90deg, var(--purple) 0%, var(--pink) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s ease;
}

.progress-bar-text {
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Progress Stats Grid */
.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.progress-stat-card {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Progress Actions */
.progress-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Optimization Status Card - Xeo Brand Styling */
.optimization-status-card {
    background: linear-gradient(135deg, var(--cyan-light) 0%, var(--purple-light) 100%);
    border: 3px solid var(--cyan);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 185, 218, 0.15);
}

/* Header Section */
.optimization-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.optimization-icon {
    font-size: 3rem;
    line-height: 1;
}

.optimization-title-section {
    flex: 1;
}

.optimization-mode-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
}

.optimization-subtitle {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin: 0;
    line-height: 1.6;
}

/* Stats Grid */
.optimization-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.stat-item:hover {
    border-color: var(--cyan);
    box-shadow: 0 4px 12px rgba(0, 185, 218, 0.25);
    transform: translateY(-2px);
}

/* Primary Stat (Current Score) */
.stat-item.primary-stat {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    color: var(--white);
}

.stat-item.primary-stat .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-item.primary-stat .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Stat Values */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan) 0%, var(--pink) 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Highlight Stat */
.stat-item.highlight {
    background: linear-gradient(135deg, var(--cyan-light) 0%, var(--teal-light) 100%);
    border: 2px solid var(--cyan);
}

.stat-item.highlight .stat-value {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item.highlight .stat-label {
    color: var(--gray-700);
}

/* Action Text - Purple Accent */
.action-text {
    color: var(--purple);
    font-weight: 600;
}

/* Optimization Mode Box - Xeo Brand Styling */
.optimization-mode-box {
    background: linear-gradient(135deg, #E6F9FD 0%, #F3EBFA 100%);
    border: 2px solid #00B9DA;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 185, 218, 0.15);
}

.mode-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mode-icon {
    font-size: 1.5rem;
}

.optimization-mode-heading {
    color: #5E2875;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.mode-description {
    color: #64748B;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.score-section {
    margin: 1.5rem 0;
}

.score-label {
    color: #64748B;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.score-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.current-score-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00B9DA 0%, #7D41A5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-percentage {
    font-size: 1.25rem;
    color: #64748B;
    font-weight: 600;
}

.progress-bar-container {
    background: #E2E8F0;
    border-radius: 12px;
    height: 12px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #00B9DA 0%, #f31c7e 100%);
    height: 100%;
    border-radius: 12px;
    transition: width 0.3s ease;
}

.stats-grid {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.optimization-mode-box .stat-item {
    color: #64748B;
    font-size: 0.9375rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 0;
    border: none;
}

.optimization-mode-box .stat-label {
    color: #475569;
}

.optimization-mode-box .stat-value {
    color: #00B9DA;
    font-weight: 600;
    background: none;
    -webkit-text-fill-color: #00B9DA;
}

.optimization-mode-box .action-text {
    color: #7D41A5;
    font-weight: 500;
    font-size: 0.9375rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 185, 218, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .optimization-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .optimization-stats {
        grid-template-columns: 1fr;
    }

    .optimization-header {
        flex-direction: column;
        text-align: center;
    }

    .optimization-icon {
        font-size: 2.5rem;
    }
}

/* Filter Tabs */
.filter-tabs-section {
    margin-bottom: 2rem;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    color: var(--white);
    border-color: transparent;
}

/* Achievements Section */
.achievements-section {
    margin-bottom: 2rem;
}

.achievement-card {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--pink-light) 100%);
    border: 2px solid var(--purple);
    border-radius: 16px;
    padding: 2rem;
}

.achievement-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple-deep);
    margin: 0 0 1.5rem 0;
}

.achievement-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.achievement-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.achievement-label {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.achievement-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple);
}

/* Sort Controls */
.sort-controls {
    margin-bottom: 1.5rem;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.sort-wrapper label {
    font-weight: 600;
    color: var(--gray-700);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--white);
    cursor: pointer;
}

/* Recommendation Cards */
.recommendation-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.recommendation-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--purple-pastel);
}

/* Completed Card */
.recommendation-card.completed {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--cyan-light) 100%);
}

/* In Progress Card */
.recommendation-card.in-progress {
    border-left: 4px solid var(--purple);
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--pink-light) 100%);
}

/* Skipped Card */
.recommendation-card.skipped {
    border-left: 4px solid var(--gray-400);
    background: var(--gray-50);
}

/* Card Header */
.rec-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.rec-card-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.rec-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.rec-priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.rec-priority-badge.critical {
    background: var(--pink-light);
    color: var(--pink-dark);
}

.rec-priority-badge.high {
    background: var(--purple-light);
    color: var(--purple-deep);
}

.rec-priority-badge.medium {
    background: var(--cyan-light);
    color: var(--cyan-dark);
}

.rec-priority-badge.low {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* Card Metadata */
.rec-card-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.rec-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Score Visualization */
.score-visualization {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--gray-200);
}

.score-before-after {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.score-box {
    font-size: 1.125rem;
    font-weight: 700;
}

.score-arrow {
    color: var(--gray-400);
}

.score-progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.score-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple) 0%, var(--pink) 100%);
    transition: width 0.6s ease;
}

/* Notes Section */
.rec-notes {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid var(--purple);
    margin-bottom: 1.5rem;
}

.rec-notes-header {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.rec-note-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.rec-note-item:last-child {
    border-bottom: none;
}

.rec-note-date {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.rec-note-text {
    color: var(--gray-700);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Card Actions */
.rec-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary-small {
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    color: var(--white);
}

.btn-primary-small:hover {
    box-shadow: 0 4px 12px rgba(125, 65, 165, 0.3);
}

.btn-secondary-small {
    background: var(--white);
    color: var(--purple);
    border: 2px solid var(--purple);
}

.btn-secondary-small:hover {
    background: var(--purple-light);
}

/* Verification Status */
.verification-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

.verification-status.verified {
    background: var(--teal-light);
    color: var(--teal-dark);
}

.verification-status.pending {
    background: var(--warning);
    color: var(--white);
}

/* Reminder Badge */
.reminder-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--cyan-light);
    color: var(--cyan-dark);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .progress-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievement-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .progress-stats-grid {
        grid-template-columns: 1fr;
    }

    .achievement-stats {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        flex-direction: column;
    }

    .filter-tab {
        width: 100%;
    }
}

/* ============================================
   MODAL STYLES
   ============================================ */

/* Modal Overlay */
.xeo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

/* Modal Container */
.xeo-modal {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Modal Header */
.xeo-modal-header {
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.xeo-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Body */
.xeo-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1 1 auto;
}

.modal-item-info {
    margin-bottom: 1.5rem;
}

.modal-item-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.modal-impact {
    color: var(--gray-600);
    margin: 0;
}

.modal-impact span {
    font-weight: 700;
    color: var(--purple);
}

.modal-description {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Modal Sections */
.modal-section {
    margin-bottom: 1.5rem;
}

.modal-label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.checkbox-label:hover {
    background: var(--purple-light);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label span {
    color: var(--gray-700);
}

/* Textarea */
.modal-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    transition: all 0.2s;
}

.modal-textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(125, 65, 165, 0.1);
}

/* Reminder Options */
.reminder-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.reminder-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.reminder-btn:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.reminder-btn.active {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
}

.reminder-preview {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Modal Alert */
.modal-alert {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--warning);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-alert svg {
    flex-shrink: 0;
    color: var(--warning);
}

.modal-alert p {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Modal Footer */
.xeo-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(125, 65, 165, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* Phase 3B.2A: CTA emphasis animation for seat limit reached */
.cta-emphasis {
    animation: cta-pulse 1s ease-in-out infinite;
    box-shadow: 0 0 0 3px rgba(125, 65, 165, 0.3) !important;
}

@keyframes cta-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(125, 65, 165, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(125, 65, 165, 0.15), 0 4px 12px rgba(125, 65, 165, 0.4);
    }
}

/* ===== CERTIFICATION DISPLAY ENHANCEMENTS ===== */

/* Certification list styling in recommendations */
.rec-description p {
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.rec-description strong {
    color: var(--gray-900);
    font-weight: 600;
}

/* Style for certification items (lines starting with ✓) */
.rec-description {
    line-height: 1.8;
}

/* Add spacing for certification recommendations section */
.rec-description > p:has(strong):not(:first-child) {
    margin-top: 1rem;
}

/* Certification list container */
.certification-list {
    margin-top: 1.5rem;
}

.certification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--cyan);
    transition: all 0.2s;
}

.certification-item:hover {
    background: #F3F4F6;
    border-left-color: var(--purple);
}

.cert-checkmark {
    color: var(--cyan);
    font-size: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1;
}

.cert-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.cert-content p {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
}

.cert-industries {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.cert-industries strong {
    color: var(--gray-800);
}

/* Enhanced typography for certification descriptions */
.rec-description {
    font-size: 0.9375rem;
    color: var(--gray-800);
}

/* Better spacing between certification items in markdown text */
.rec-description br + br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}
