:root {
    --brand-900: #064E3B;
    --brand-700: #047857;
    --brand-500: #10B981;
    --brand-300: #6EE7B7;
    --brand-100: #D1FAE5;
    --accent-900: #164E63;
    --accent-700: #0E7490;
    --accent-500: #06B6D4;
    --accent-300: #67E8F9;
    --accent-100: #CFFAFE;
}

.country-tab {
    color: #6B7280;
}
.country-tab.active {
    background: linear-gradient(135deg, var(--brand-700), var(--accent-700));
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.section-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.section-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.05);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}
.sidebar-item:hover {
    background: rgba(55, 65, 81, 0.5);
    color: #D1D5DB;
}
.sidebar-item.active {
    background: rgba(16, 185, 129, 0.15);
    color: #6EE7B7;
    font-weight: 600;
}

.sidebar-group {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4B5563;
    padding: 1rem 0.875rem 0.375rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
}
.badge-green { background: rgba(16, 185, 129, 0.15); color: #6EE7B7; }
.badge-cyan { background: rgba(6, 182, 212, 0.15); color: #67E8F9; }
.badge-amber { background: rgba(245, 158, 11, 0.15); color: #FCD34D; }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: #C4B5FD; }

.demo-flow {
    display: grid;
    gap: 1rem;
}
.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}
.flow-step:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateX(4px);
}
.flow-step .step-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
}
.step-auto { background: rgba(16, 185, 129, 0.2); color: #6EE7B7; }
.step-human { background: rgba(245, 158, 11, 0.2); color: #FCD34D; }
.step-ai { background: rgba(139, 92, 246, 0.2); color: #C4B5FD; }

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
}
.data-table th {
    background: rgba(17, 24, 39, 0.8);
    padding: 0.625rem 0.875rem;
    text-align: left;
    font-weight: 600;
    color: #9CA3AF;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.data-table td {
    padding: 0.5rem 0.875rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.15);
    color: #D1D5DB;
}
.data-table tr:hover td {
    background: rgba(16, 185, 129, 0.03);
}

.matrix-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.75rem;
}
.score-high { background: rgba(16, 185, 129, 0.2); color: #6EE7B7; }
.score-mid { background: rgba(245, 158, 11, 0.2); color: #FCD34D; }
.score-low { background: rgba(239, 68, 68, 0.2); color: #FCA5A5; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeIn 0.4s ease-out;
}

/* Mobile: sidebar as slide-over drawer */
@media (max-width: 767px) {
    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    #sidebar.open {
        transform: translateX(0);
    }
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}
.sidebar-overlay.hidden { display: none; }
