:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

.site-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-brand {
    display: flex;
    align-items: baseline;
}

.logo-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1E3A8A;
}

.logo-tld {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0F4C81;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-trigger {
    padding: 10px 14px;
    border-radius: 8px;
}

.nav-trigger:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
}

.nav-trigger svg {
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.dropdown:hover .nav-trigger svg {
    transform: rotate(180deg);
}

.nav-icon {
    font-size: 1rem;
    margin-right: 6px;
    opacity: 0.8;
}

.nav-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.nav-highlight:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    color: white !important;
}

.highlight-icon {
    font-size: 0.9rem;
}

.nav-links .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    list-style: none;
}

.nav-links .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-links .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--white);
}

.nav-links .dropdown-menu li {
    padding: 0;
}

.nav-links .dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--text);
    border-radius: 8px;
    font-size: 0.875rem;
}

.nav-links .dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.04) 100%);
    color: var(--primary);
}

.mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    min-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
}

.nav-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-section h4 {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding-left: 8px;
}

.mega-section a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--text);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.mega-section a:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.04) 100%);
    color: var(--primary);
}

.auth-section {
    margin-left: 8px;
}

.auth-loading {
    display: flex;
    align-items: center;
    padding: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.login-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-google {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-google:hover {
    background: #f8fafc;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.user-menu:hover {
    background: rgba(0,0,0,0.04);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

.user-menu .user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    min-width: 180px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
}

.user-dropdown li {
    list-style: none;
}

.user-dropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
}

.user-dropdown a:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.04) 100%);
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: rgba(0,0,0,0.05);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.3s ease;
}

@media (max-width: 1100px) {
    .logo-tagline {
        display: none;
    }
    
    .mega-menu {
        min-width: 500px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mega-section:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 16px 0;
    }
    
    .nav-links .dropdown-menu,
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-radius: 0;
        transform: none;
        min-width: 100%;
        display: none;
        grid-template-columns: 1fr;
        padding: 0 0 16px 16px;
    }
    
    .dropdown.active .dropdown-menu,
    .nav-mega.active .mega-menu {
        display: block;
    }
    
    .mega-section {
        margin-bottom: 16px;
    }
    
    .nav-highlight {
        margin-top: 16px;
        text-align: center;
        justify-content: center;
    }
    
    .auth-section {
        margin: 16px 0 0;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.page-hero {
    text-align: center;
    margin-bottom: 40px;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.calculator-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-group label small {
    font-weight: 400;
    color: var(--text-light);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.input-prefix {
    position: relative;
}

.input-prefix::before {
    content: '₹';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-weight: 500;
}

.input-prefix input {
    padding-left: 35px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 30px 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text);
}

.section-title:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.results-container {
    margin-top: 40px;
    display: none;
}

.results-container.show {
    display: block;
}

.regime-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.regime-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    position: relative;
}

.regime-card.recommended {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.regime-card.recommended::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--secondary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.regime-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text);
}

.tax-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.tax-breakdown {
    margin-top: 20px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-row.total {
    font-weight: 600;
    border-top: 2px solid var(--text);
    margin-top: 10px;
    padding-top: 15px;
}

.recommendation-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
}

.recommendation-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.savings-badge {
    background: var(--secondary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.breakeven-section {
    background: #fef3c7;
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

.breakeven-section h4 {
    margin-bottom: 10px;
}

.slab-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.slab-table th,
.slab-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.slab-table th {
    background: var(--bg);
    font-weight: 600;
}

.faq-section {
    margin-top: 60px;
}

.faq-section h2 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    text-align: center;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 15px;
    padding: 20px 25px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
}

.faq-item p {
    color: var(--text-light);
}

.how-it-works {
    margin-top: 60px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
}

.how-it-works h2 {
    font-size: 1.75rem;
    margin-bottom: 30px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-item {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 15px;
}

.step-item h4 {
    margin-bottom: 10px;
}

.step-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.site-footer {
    background: var(--text);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-section p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

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

.toggle-details {
    color: var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
}

.details-panel {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.details-panel.show {
    display: block;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
}

.chart-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.chart-section h4 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text);
}

.download-section {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

.btn-secondary {
    background: var(--text-light);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: var(--text);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.info-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text);
}

.info-table tr:last-child td {
    border-bottom: none;
}

.result-card.warning {
    border-left: 4px solid var(--warning);
}

.result-card.info {
    border-left: 4px solid var(--primary);
    background: #f0f9ff;
}

.result-note.success {
    color: var(--success);
    font-weight: 500;
}

.result-note.warning {
    color: var(--warning);
}

.calendar-section {
    margin-bottom: 40px;
}

.calendar-section h2 {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 1.5rem;
}

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

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text);
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.info-card li:last-child {
    border-bottom: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 1024px) {
    .nav-links li a {
        font-size: 0.85rem;
        padding: 5px 8px;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .regime-comparison {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links li {
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }
    
    .nav-links .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .nav-links .dropdown.active .dropdown-menu {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .page-hero h1 {
        font-size: 1.75rem;
    }
    
    .calculator-card {
        padding: 20px;
    }
    
    .info-table {
        display: block;
        overflow-x: auto;
    }
    
    .info-table th,
    .info-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .page-hero {
        padding: 30px 0;
    }
    
    .main-content {
        padding: 20px 0;
    }
}

/* Level 7 & Level 8 Badge Styles */
.level7-badge, .level8-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.level7-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.level8-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

/* Level 8 Section Styles */
.level8-section {
    border-left: 4px solid #f59e0b;
}

/* Audit Readiness Styles */
.audit-score-container {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 16px;
    margin-bottom: 24px;
}

.audit-meter {
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.audit-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.audit-score-display {
    margin: 16px 0;
}

.audit-score-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--text);
}

.audit-score-label {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 4px;
}

.audit-level {
    font-size: 18px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
}

.audit-level.excellent { background: #dcfce7; color: #15803d; }
.audit-level.good { background: #dbeafe; color: #1d4ed8; }
.audit-level.fair { background: #fef3c7; color: #b45309; }
.audit-level.needs-attention { background: #fee2e2; color: #dc2626; }

.audit-checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.audit-check-card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--white);
}

.audit-check-card.passed { border-left: 4px solid #22c55e; }
.audit-check-card.warning { border-left: 4px solid #f59e0b; }
.audit-check-card.critical { border-left: 4px solid #ef4444; }

/* Evidence Section Styles */
.evidence-summary {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.evidence-stat {
    text-align: center;
    padding: 20px 30px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    min-width: 150px;
}

.evidence-stat.highlight {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border-color: #2563eb;
}

.evidence-stat .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.evidence-stat .stat-label {
    font-size: 13px;
    color: var(--text-light);
}

.evidence-recommendation-card {
    padding: 20px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.evidence-recommendation-card .risk-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.risk-badge.low { background: #dcfce7; color: #15803d; }
.risk-badge.medium { background: #fef3c7; color: #b45309; }
.risk-badge.high { background: #fee2e2; color: #dc2626; }
.risk-badge.critical { background: #7f1d1d; color: white; }

/* Knowledge Graph Styles */
.knowledge-graph-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 24px;
}

.kg-stat {
    text-align: center;
}

.kg-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.kg-stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.what-if-simulator {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
}

.what-if-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.what-if-form select,
.what-if-form input {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.what-if-result {
    margin-top: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Learning Section Styles */
.learning-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.topic-card {
    padding: 24px;
    text-align: center;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.topic-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.topic-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.topic-desc {
    font-size: 13px;
    color: var(--text-light);
}

.learning-detail {
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.learning-insights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.learning-insight-card {
    padding: 16px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

/* Snapshot Section Styles */
.snapshot-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.snapshots-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.snapshot-card {
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.snapshot-card .snapshot-name {
    font-weight: 600;
    color: var(--text);
}

.snapshot-card .snapshot-date {
    font-size: 13px;
    color: var(--text-light);
}

.snapshot-comparison {
    padding: 24px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 20px;
}

/* Section intro text */
.section-intro {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 15px;
}
