/* CSS Variables */
:root {
    --color-bg: #050510;
    --color-bg-alt: #0a0a1f;
    --color-text: #e0e0e0;
    --color-text-muted: #8b8b9e;
    --color-primary: #00f0ff;
    --color-primary-glow: rgba(0, 240, 255, 0.4);
    --color-secondary: #7000ff;
    --color-secondary-glow: rgba(112, 0, 255, 0.4);
    --color-accent: #ffffff;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --border-radius-sm: 4px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    color: white;
    box-shadow: 0 4px 15px var(--color-secondary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-secondary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
}

.logo-icon {
    font-size: 0;
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--color-primary-glow);
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-normal);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--color-bg) 80%);
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--color-primary-glow);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    animation: glow-pulse 2s infinite;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Features Section */
.features {
    background-color: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.icon-maintain::before {
    content: '⚙️';
}

.icon-secure::before {
    content: '🛡️';
}

.icon-evolve::before {
    content: '🧬';
}

/* or some other evolve icon */

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-accent);
}

.card-text {
    color: var(--color-text-muted);
}

/* How It Works Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.step-item {
    display: flex;
    gap: var(--spacing-sm);
    opacity: 0.5;
    transition: var(--transition-normal);
    cursor: default;
}

.step-item:hover,
.step-item.active {
    opacity: 1;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    min-width: 30px;
}

.step-details h3 {
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.step-details p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.code-window {
    background: #1e1e2e;
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
    background: #151520;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background-color: #ff5f56;
}

.yellow {
    background-color: #ffbd2e;
}

.green {
    background-color: #27c93f;
}

.code-title {
    margin-left: 10px;
    color: #8b8b9e;
    font-size: 0.8rem;
}

.code-content {
    padding: 20px;
    color: #a9b7c6;
    font-size: 0.9rem;
}

.line {
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
}

.prompt {
    color: #5af;
    margin-right: 8px;
}

.info {
    color: #27c93f;
    font-weight: bold;
    margin-right: 8px;
}

.success {
    color: #ffbd2e;
    font-weight: bold;
    margin-right: 8px;
}

.typing-cursor {
    animation: blink 1s step-end infinite;
}

/* CTA Section */
.cta-section {
    background: radial-gradient(circle at center, #1a0b2e 0%, var(--color-bg) 70%);
}

.cta-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.cta-form {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.cta-input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-accent);
    outline: none;
    font-size: 1rem;
}

.cta-input:focus {
    border-color: var(--color-primary);
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-accent);
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    padding-top: var(--spacing-md);
}

/* Animations */
@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--color-bg);
        padding: var(--spacing-md);
        transform: translateY(-100%);
        transition: transform var(--transition-normal);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cta-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
}

.feature-card {
    /* Ensure flex context for alignment */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.btn-link {
    margin-top: auto;
    /* Push to bottom */
    padding-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.feature-card:hover .btn-link {
    opacity: 1;
}

/* =========================================
   SECURITY DASHBOARD THEME
   ========================================= */

.security-theme .sidebar {
    background: #050510;
    border-right-color: rgba(255, 95, 86, 0.1);
}

.security-glow {
    text-shadow: 0 0 10px rgba(255, 95, 86, 0.5);
}

.security-text {
    color: #ff5f56;
}

.security-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--spacing-md);
    padding-bottom: 50px;
}

.scan-panel {
    grid-column: 1 / 2;
    background: #0a0a12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-window {
    background: #000;
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #0f0;
    height: 300px;
    overflow-y: hidden;
    position: relative;
}

.scan-line {
    margin-bottom: 5px;
    opacity: 0.9;
}

.text-success {
    color: #27c93f;
}

.text-danger {
    color: #ff5f56;
    text-shadow: 0 0 5px rgba(255, 95, 86, 0.5);
}

.stats-panel {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.security-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
}

.faq-question {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question i {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.faq-answer {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-left: 24px;
}

.badge-pro {
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    color: #000;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
}

.compliance-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0 20px 0;
}

.compliance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    opacity: 0.5;
    /* Locked state */
}

.lock-icon {
    margin-left: auto;
    font-size: 0.8rem;
}

.nav-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #27c93f;
    background: rgba(39, 201, 63, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 5px #27c93f;
    animation: pulse 1.5s infinite;
}

/* Vulnerability List */
.vuln-panel {
    grid-column: 1 / 2;
}

.vuln-row {
    background: rgba(255, 95, 86, 0.05);
    border-left: 3px solid #ff5f56;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 0 6px 6px 0;
}

.vuln-row.critical {
    border-left-color: #ff0000;
    background: rgba(255, 0, 0, 0.05);
}

.vuln-icon {
    font-size: 1.2rem;
    color: #ff5f56;
    width: 40px;
    text-align: center;
}

.vuln-info {
    flex: 1;
}

.vuln-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #fff;
}

.cve-tag {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.glow-effect {
    animation: glow-pulse-red 2s infinite;
}

@keyframes glow-pulse-red {
    0% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
    }
}

/* Circular Chart */
.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    max-height: 150px;
}

.circle-bg {
    fill: none;
    stroke: #333;
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
    stroke: #ff9f00;
}

.percentage {
    fill: #fff;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 0.5em;
    text-anchor: middle;
}

/* Pricing Table (For Index) */
.pricing-section {
    padding-bottom: var(--spacing-xl);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--color-primary);
    background: rgba(0, 240, 255, 0.05);
    transform: scale(1.05);
}

.featured-tag {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--color-primary);
    color: #000;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 1rem 0;
    font-family: var(--font-heading);
}

.period {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.plan-features {
    margin: 2rem 0;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
}

.plan-features li i {
    color: var(--color-primary);
    margin-right: 10px;
}


/* =========================================
   DASHBOARD STYLES

   ========================================= */

body.dashboard-body {
    background-color: var(--color-bg);
    height: 100vh;
    overflow: hidden;
    /* App-like feel */
}

.dashboard-layout {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: rgba(10, 10, 31, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-small {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    color: var(--color-accent);
}

.sidebar-nav {
    flex: 1;
    padding: var(--spacing-md) 0;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text);
}

.nav-item.active {
    background: rgba(0, 240, 255, 0.05);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.sidebar-footer {
    padding: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-profile {
    display: flex;
    gap: 10px;
    align-items: center;
}

.avatar {
    width: 35px;
    height: 35px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
}

.user-role {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: radial-gradient(circle at top right, #101030 0%, var(--color-bg) 40%);
}

.top-bar {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.crumb-project {
    color: var(--color-text);
    font-weight: 600;
}

.crumb-view {
    color: var(--color-primary);
}

.top-actions {
    display: flex;
    gap: 10px;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.view-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.stats-row {
    display: flex;
    gap: var(--spacing-md);
}

.dash-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Diff Viewer (Refactoring) */
.diff-container {
    background: #15151a;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.diff-header {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.diff-tag {
    background: rgba(255, 189, 46, 0.1);
    color: #ffbd2e;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.diff-viewer {
    padding: 15px;
    background: #0d0d12;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.code-line {
    display: block;
    padding: 2px 0;
}

.line-num {
    color: #444;
    margin-right: 15px;
    user-select: none;
}

.code-line.remove {
    background: rgba(255, 95, 86, 0.1);
    color: #ff5f56;
}

.code-line.add {
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
}

.diff-actions {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-reasoning {
    color: var(--color-primary);
    font-size: 0.9rem;
}

/* Badge Utilities */
.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(39, 201, 63, 0.2);
    color: #27c93f;
}

.badge-warning {
    background: rgba(255, 189, 46, 0.2);
    color: #ffbd2e;
}

.badge-error {
    background: rgba(255, 95, 86, 0.2);
    color: #ff5f56;
}

/* Test Grid */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.test-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid transparent;
}

.test-card.success {
    border-color: rgba(39, 201, 63, 0.3);
}

.test-card.error {
    border-color: rgba(255, 95, 86, 0.3);
}

.test-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.test-card.success .test-icon {
    background: rgba(39, 201, 63, 0.2);
    color: #27c93f;
}

.test-card.error .test-icon {
    background: rgba(255, 95, 86, 0.2);
    color: #ff5f56;
}

.test-info h4 {
    font-size: 0.9rem;
    margin: 0;
}

.test-info p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

.console-output {
    background: #0d0d12;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 10px;
}

.console-header {
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.log-line {
    margin-bottom: 4px;
}

.log-line.error {
    color: #ff5f56;
}

.log-line.info {
    color: #00f0ff;
}

.log-line.indent {
    margin-left: 20px;
    color: #888;
}

/* Security */
.security-radar {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    justify-content: center;
}

.radar-circle {
    width: 200px;
    height: 200px;
    border: 1px solid var(--color-primary-glow);
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary));
    transform-origin: left center;
    animation: radar-spin 3s linear infinite;
}

.radar-circle .dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: red;
    border-radius: 50%;
    box-shadow: 0 0 5px red;
    animation: pulse 1s infinite alternate;
}

.vuln-list {
    flex: 1;
}

.vuln-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vuln-item .severity {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}

.vuln-item.high .severity {
    background: rgba(255, 95, 86, 0.2);
    color: #ff5f56;
}

.vuln-item.low .severity {
    background: rgba(0, 240, 255, 0.2);
    color: #00f0ff;
}

.vuln-details h4 {
    font-size: 0.95rem;
    color: #eee;
    margin: 0;
}

.vuln-details p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

/* Reviews Chat */
.split-view {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-md);
    height: 500px;
}

.pr-list {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.pr-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.pr-item.active,
.pr-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pr-avatar {
    width: 30px;
    height: 30px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.pr-info h4 {
    font-size: 0.9rem;
    margin: 0;
    color: #eee;
}

.pr-info p {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

.chat-container {
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    display: flex;
    gap: 10px;
    max-width: 80%;
}

.msg.ai .msg-content {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: #e0e0e0;
}

.msg-content {
    padding: 10px 15px;
    border-radius: 0 12px 12px 12px;
    font-size: 0.9rem;
}

.msg-avatar {
    width: 30px;
    height: 30px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: black;
}

@keyframes radar-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    from {
        opacity: 0.5;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}