/* BeeFlow Documentation - Light Theme */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-primary: #f59e0b;
    --accent-secondary: #fbbf24;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --success: #10b981;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.btn-nav {
    background: var(--accent-gradient) !important;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    transform: translateX(-50%) translateY(10px);
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 4rem;
    gap: 3rem;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-home {
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    max-width: 550px;
}

.hero-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* Page Header */
.page-header {
    padding: 7rem 2rem 3rem;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Section Styles */
section {
    padding: 4rem 2rem;
}

/* Content Sections - shared styling for Features, Mission, etc */
.content-section {
    padding: 5rem 2rem;
}

.content-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    max-width: 700px;
}

/* Centered content variant */
.content-section.centered .container {
    text-align: center;
}

.content-section.centered .section-intro {
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.section-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Docs Container */
.docs-section {
    max-width: 1000px;
    margin: 0 auto;
}

.docs-section.alt-bg {
    max-width: none;
    background: var(--bg-secondary);
}

.docs-section.alt-bg>.docs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.docs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.docs-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Features Overview */
.features-overview {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 4rem 2rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.feature-link-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.feature-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.feature-link-card.highlight {
    border-color: var(--accent-primary);
    background: rgba(245, 158, 11, 0.03);
}

.feature-link-card .feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.feature-link-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-link-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.link-arrow {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
}

/* Screenshots Gallery */
.screenshots {
    background: var(--bg-secondary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.screenshot-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.screenshot-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--border);
}

.screenshot-caption {
    padding: 1rem;
}

.screenshot-caption h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Step Cards */
.step-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.step-cards.horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-card {
    display: flex;
    gap: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.step-content ul {
    list-style: none;
    padding-left: 0;
}

.step-content li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.2rem 0;
}

.step-content li::before {
    content: "•";
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

/* Code Sections */
.code-section {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.code-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.code-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.code-section pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.6;
}

.code-section code {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

/* Category Cards */
.category-showcase,
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.category-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.category-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.category-card ul {
    list-style: none;
    padding-left: 0;
}

.category-card li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.2rem 0;
}

/* Config Grid */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.config-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.config-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.config-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.config-card pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    overflow-x: auto;
}

.config-card ul {
    list-style: none;
    padding: 0;
}

.config-card li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

/* Next Steps */
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.next-step-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.next-step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.next-step-card .feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.next-step-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.next-step-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Feature Showcase */
.feature-showcase {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.feature-showcase.reverse {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
}

.showcase-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.showcase-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.showcase-image {
    flex: 1;
}

.showcase-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 0.95rem;
    padding: 0.35rem 0;
    color: var(--text-primary);
}

/* Node Types */
.node-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.node-type-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.node-type-card.trigger {
    border-top: 3px solid #3b82f6;
}

.node-type-card.action {
    border-top: 3px solid #8b5cf6;
}

.node-type-card.flow {
    border-top: 3px solid #10b981;
}

.node-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.node-badge.trigger {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.node-badge.action {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.node-badge.flow {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.node-type-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem;
}

.node-type-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.node-type-card ul {
    list-style: none;
    padding: 0;
}

.node-type-card li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.2rem 0;
}

/* Data Flow Diagram */
.data-flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.flow-node {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-align: center;
}

.flow-node span {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.flow-node small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.flow-node.trigger {
    border-color: #3b82f6;
}

.flow-node.action {
    border-color: #8b5cf6;
}

.flow-node.output {
    border-color: #10b981;
}

.flow-arrow {
    font-size: 1.25rem;
    color: var(--accent-primary);
}

/* Info Box */
.info-box {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.info-box h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.info-box code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Execution Methods */
.execution-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.method-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.method-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.method-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.method-card pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    overflow-x: auto;
}

/* History Features */
.history-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.history-feature {
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.history-feature .feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.history-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.history-feature p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* AI Screenshots Gallery */
.ai-screenshots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.screenshot-step {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.step-label {
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.demo-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--border);
}

.screenshot-step>p {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* AI Demo Section */
.highlight-section {
    border-left: 4px solid var(--accent-primary);
}

.ai-demo {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.demo-header {
    background: var(--bg-tertiary);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.demo-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.chat-demo {
    padding: 1.5rem;
}

.chat-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-content>p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.ai-note {
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 500;
    margin-top: 1rem;
}

.generated-files {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.file-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 500;
}

.file-icon {
    font-size: 1rem;
}

.file-block pre {
    margin: 0;
    border-radius: 0;
    font-size: 0.75rem;
}

.ai-benefits {
    margin-top: 2rem;
}

.ai-benefits h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.benefit-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.benefit-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.benefit-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.benefit-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Field Table */
.field-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.field-table th,
.field-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.field-table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.field-table code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}

/* Tool Flow */
.tool-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.tool-step {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    min-width: 150px;
    box-shadow: var(--shadow);
}

.tool-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tool-step h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tool-step p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Provider Grid */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.provider-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.provider-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.provider-card ul {
    list-style: none;
    padding: 0;
}

.provider-card li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.2rem 0;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.tip-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.tip-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tip-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.tip-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Example Box */
.example-box {
    background: var(--bg-secondary);
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.example-box strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.example-box p {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Stats */
.stats {
    padding: 3rem 2rem;
    background: var(--bg-secondary);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* CTA */
.cta {
    text-align: center;
    padding: 4rem 2rem;
}

.cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer .logo {
    justify-content: center;
    margin-bottom: 0.5rem;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 100%;
    }

    .nav-links a:not(.btn-nav) {
        display: none;
    }

    .feature-showcase,
    .feature-showcase.reverse {
        flex-direction: column;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        gap: 2rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .data-flow-diagram,
    .tool-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }
}

/* ========================================
   ABOUT PAGE STYLES
   ======================================== */

.about-header {
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.about-header .tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.about-header .subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature List */
.feature-list {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex: 1;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.feature-item .feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Platform Highlights */
.platform-highlights {
    background: var(--bg-tertiary);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.platform-highlights h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.platform-highlights li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* Target Audience */
.target-audience {
    background: var(--accent-gradient);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.target-audience p {
    margin: 0;
}

/* Problem Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.problem-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.problem-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.problem-card ul {
    margin: 1rem 0;
    padding-left: 1.25rem;
}

.problem-card li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.problem-card .impact {
    font-style: italic;
    color: var(--accent-primary);
    font-weight: 500;
    margin-top: 1rem;
}

.gap-statement {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 2rem;
    background: var(--accent-gradient);
    color: white;
    border-radius: 12px;
}

/* Solution Grid */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.solution-card .subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.example-box {
    background: var(--bg-primary);
    border-left: 4px solid var(--accent-primary);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.example-box .example-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.example-box blockquote {
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
}

/* Architecture Section */
.arch-section {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.arch-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.arch-section h4 {
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--accent-primary);
}

.design-goals {
    background: var(--bg-tertiary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.design-goals h4 {
    margin-top: 0;
}

/* Standards Grid */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.standard-item {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.standard-item strong {
    color: var(--accent-primary);
}

.standard-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Deployment Modes */
.deployment-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.mode-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.mode-card h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.mode-card ul {
    padding-left: 1.25rem;
    margin: 0;
}

.mode-card li {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

/* Observability Grid */
.observability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.obs-item {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.obs-item strong {
    color: var(--text-primary);
}

.obs-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Target Grid */
.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.target-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.target-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.target-card ul {
    padding-left: 1.25rem;
    margin: 0;
}

.target-card li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Innovation List */
.innovation-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.innovation-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
}

.innovation-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.innovation-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.highlight-text {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-top: 2rem;
}

/* OSS Details */
.oss-details {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.oss-details ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.oss-details li {
    margin-bottom: 0.5rem;
}

/* Business Grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.business-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.business-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.business-card ul {
    padding-left: 1.25rem;
    margin: 0;
}

.business-card li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Team Section */
.team-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.team-profile {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.profile-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.profile-header .role {
    color: var(--accent-primary);
    font-weight: 500;
}

.profile-content h4 {
    font-size: 1rem;
    color: var(--accent-primary);
    margin: 1.5rem 0 0.5rem;
}

.profile-content h4:first-of-type {
    margin-top: 0;
}

.profile-content ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.profile-content li {
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.foundation-text {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 2rem auto 0;
    font-style: italic;
}

/* Responsive About Page */
@media (max-width: 768px) {
    .feature-list {
        flex-direction: column;
    }

    .solution-grid {
        grid-template-columns: 1fr;
    }

    .about-header .tagline {
        font-size: 1.25rem;
    }
}

/* ========================================
   NEW HOME PAGE STYLES
   ======================================== */

/* Hero Main */
.hero-main {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-main .hero-content {
    max-width: 800px;
}

.hero-main h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-main .hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.hero-main .hero-tagline {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.hero-main .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Differentiators Section */
.differentiators {
    padding: 5rem 2rem;
    background: var(--bg-primary);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.diff-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.diff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.diff-card.highlight {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.diff-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.diff-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.diff-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.diff-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works / Approach Section */
.how-it-works {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

.approach-grid {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.approach-card {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.approach-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.approach-icon {
    font-size: 2rem;
}

.approach-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.approach-divider {
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.approach-divider span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Chat Example */
.chat-example {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.chat-bubble.user {
    background: var(--accent-gradient);
    color: white;
    margin-left: 1rem;
}

.chat-bubble.assistant {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    margin-right: 1rem;
}

/* Visual Example */
.visual-example {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.mini-node {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.mini-node.trigger {
    border-color: var(--accent-primary);
}

.mini-arrow {
    color: var(--text-secondary);
    font-weight: bold;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem 2rem;
    background: var(--text-primary);
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-secondary);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Audience Preview */
.audience-preview {
    padding: 5rem 2rem;
    background: var(--bg-primary);
    text-align: center;
}

.audience-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.audience-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.audience-icon {
    font-size: 2rem;
}

.audience-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.link-arrow-large {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
}

.link-arrow-large:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: var(--accent-gradient);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer Redesign */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.footer-links-group h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-links-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive New Home */
@media (max-width: 1024px) {
    .diff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-main h1 {
        font-size: 2rem;
    }

    .diff-grid {
        grid-template-columns: 1fr;
    }

    .approach-grid {
        flex-direction: column;
    }

    .approach-divider {
        justify-content: center;
        padding: 1rem 0;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================
   PLATFORM PAGE STYLES
   ======================================== */

.platform-section {
    padding: 4rem 2rem;
}

.platform-section.alt-bg {
    background: var(--bg-secondary);
}

.platform-layers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.layer-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.layer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.layer-icon {
    font-size: 2rem;
}

.layer-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.layer-card ul {
    padding-left: 1.25rem;
    margin: 1rem 0;
}

.layer-card li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.layer-example {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.layer-example .example-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.layer-example blockquote {
    font-style: italic;
    margin: 0;
}

/* Architecture Diagram */
.arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.arch-layer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.arch-layer.double,
.arch-layer.triple {
    gap: 2rem;
}

.arch-box {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem 2rem;
    text-align: center;
    font-weight: 600;
    min-width: 180px;
}

.arch-box small {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.arch-box.ui {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.arch-box.ai {
    background: #dbeafe;
    border-color: #3b82f6;
}

.arch-box.visual {
    background: #fef3c7;
    border-color: var(--accent-primary);
}

.arch-box.engine {
    background: #d1fae5;
    border-color: #10b981;
}

.arch-box.integration {
    background: var(--bg-primary);
}

.arch-arrow {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.arch-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.arch-feature h4 {
    margin-bottom: 0.5rem;
}

.arch-feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Standards Showcase */
.standards-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.standard-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.standard-card h4 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.standard-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Deployment Grid */
.deployment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.deployment-option {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.deployment-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.deployment-option h3 {
    margin-bottom: 0.5rem;
}

.deployment-option>p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.deployment-option ul {
    text-align: left;
    padding-left: 1.25rem;
    margin: 0;
}

.deployment-option li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

/* Privacy Grid */
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.privacy-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.privacy-card h4 {
    margin-bottom: 0.5rem;
}

.privacy-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.slm-preview {
    background: var(--accent-gradient);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.slm-preview h3 {
    margin-bottom: 0.5rem;
}

.slm-preview p {
    opacity: 0.9;
    margin: 0;
}

/* ========================================
   USE CASES PAGE STYLES
   ======================================== */

.usecase-section {
    padding: 4rem 2rem;
}

.usecase-section.alt-bg {
    background: var(--bg-secondary);
}

.usecase-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.usecase-icon {
    font-size: 2rem;
}

.usecase-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.usecase-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.example-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.example-card h4 {
    margin-bottom: 0.5rem;
}

.example-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.usecase-highlight {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 8px 8px 0;
}

/* ========================================
   DOCS HUB PAGE STYLES
   ======================================== */

.quickstart-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.qs-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.qs-number {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.qs-content {
    flex: 1;
}

.qs-content h4 {
    margin-bottom: 0.5rem;
}

.qs-content pre {
    background: var(--text-primary);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.85rem;
    margin: 0;
}

.docs-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.docs-card {
    display: block;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.docs-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.docs-card.highlight {
    background: var(--accent-gradient);
    border: none;
    color: white;
}

.docs-card.highlight p,
.docs-card.highlight .docs-card-link {
    color: rgba(255, 255, 255, 0.9);
}

.docs-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.docs-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.docs-card.highlight h3 {
    color: white;
}

.docs-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.docs-card-link {
    font-weight: 600;
    color: var(--accent-primary);
}

.code-block-large pre {
    background: var(--text-primary);
    color: #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    font-size: 0.9rem;
}

.docker-notes {
    margin-top: 1.5rem;
}

.docker-notes h4 {
    margin-bottom: 0.75rem;
}

.docker-notes li {
    margin-bottom: 0.5rem;
}

.docker-notes code {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.resource-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.resource-icon {
    font-size: 1.5rem;
}

.resource-item h4 {
    margin-bottom: 0.25rem;
}

.resource-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   ABOUT PAGE STYLES (SIMPLIFIED)
   ======================================== */

.about-section {
    padding: 4rem 2rem;
}

.about-section.alt-bg {
    background: var(--bg-secondary);
}

.mission-statement {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.mission-statement p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.philosophy-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.philosophy-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.philosophy-card h4 {
    margin-bottom: 0.5rem;
}

.philosophy-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.team-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.team-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.team-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--accent-primary);
    font-weight: 500;
}

.team-bio p {
    margin-bottom: 1rem;
}

.team-credentials {
    margin: 1.5rem 0;
}

.credential {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.credential-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.credential strong {
    display: block;
}

.credential span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.team-focus {
    font-style: italic;
    color: var(--text-secondary);
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.innovation-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.innovation-card strong {
    display: block;
    margin-bottom: 0.5rem;
}

.innovation-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive for new pages */
@media (max-width: 1024px) {
    .platform-layers {
        grid-template-columns: 1fr;
    }

    .standards-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .deployment-grid {
        grid-template-columns: 1fr;
    }

    .privacy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .arch-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .usecase-examples {
        grid-template-columns: 1fr;
    }

    .docs-card-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .innovation-grid {
        grid-template-columns: 1fr;
    }

    .arch-layer.double,
    .arch-layer.triple {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Features Page Styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-card.available {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, transparent 100%);
}

.feature-card.available:hover {
    border-color: var(--success);
}

.feature-card.roadmap {
    border-left: 4px solid var(--accent-primary);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, transparent 100%);
}

.feature-card.roadmap:hover {
    border-color: var(--accent-primary);
}

.feature-status {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    width: fit-content;
}

.feature-status.planned {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.feature-card li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.feature-card.roadmap li::before {
    color: var(--accent-primary);
}

.alt-bg {
    background: var(--bg-secondary);
}

/* Mission Page Styles */
.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-block {
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mission-block h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.mission-block p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.mission-block.highlight {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-left: 4px solid var(--accent-primary);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

.problem-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.problem-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.problem-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.comparison-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.comparison-card.featured {
    border: 2px solid var(--accent-primary);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, transparent 100%);
}

.comparison-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.comparison-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.comparison-focus {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.comparison-card li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.comparison-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.comparison-verdict {
    font-size: 0.8rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-secondary);
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

.principle-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.principle-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.principle-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.principle-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Audience Grid */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 700px) {
    .audience-grid {
        grid-template-columns: 1fr;
    }
}

.audience-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.audience-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.audience-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Enhanced Features Page Styling */
.features-grid {
    gap: 1.75rem;
}

.feature-card {
    border-radius: 20px;
    padding: 1.75rem;
    min-height: 240px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card.available::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.feature-card.roadmap::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-status {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Mission Page Styling */
.mission-block {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.mission-block.highlight {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.03) 100%);
    border: none;
    border-left: 5px solid var(--accent-primary);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.1);
}

.mission-block h3 {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.comparison-card {
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.comparison-card.featured {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
        linear-gradient(135deg, #f59e0b, #fbbf24) border-box;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15);
}

.comparison-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.comparison-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.principle-card {
    border-radius: 20px;
    padding: 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.principle-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.principle-icon {
    font-size: 3rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.audience-card {
    border-radius: 20px;
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.audience-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.audience-card:hover::after {
    transform: scaleX(1);
}

.audience-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Page header enhancement for features/mission */
.page-header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Section titles enhancement */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* Problem Grid - Mission Page */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
}

.problem-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.problem-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.problem-card li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.problem-card li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

.problem-impact {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Solution Grid - Mission Page */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 800px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }
}

.solution-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.solution-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.solution-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.solution-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.solution-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-card li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.solution-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

.example-quote {
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-primary);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.target-audience {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Audience card improvements */
.audience-card ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.audience-card li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.audience-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ================================
   Features Page Styles
   ================================ */

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Feature Card */
.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Available Feature Card */
.feature-card.available {
    border-left-color: var(--success);
}

.feature-card.available:hover {
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
}

/* Roadmap Feature Card */
.feature-card.roadmap {
    border-left-color: var(--accent-primary);
}

.feature-card.roadmap:hover {
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15);
}

/* Feature Status Badge */
.feature-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.feature-status.planned {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-primary);
}

/* Feature Card Content */
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-card.available li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

.feature-card.roadmap li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Alt Background for sections */
.content-section.alt-bg {
    background: var(--bg-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.25rem;
    }
}

/* ================================
   Privacy Page Styles
   ================================ */

/* Privacy Philosophy Grid */
.privacy-philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.privacy-philosophy-grid .philosophy-card.highlight {
    border-color: var(--accent-primary);
    background: rgba(245, 158, 11, 0.03);
}

/* Sovereignty Grid */
.sovereignty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.sovereignty-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.sovereignty-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.sovereignty-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.sovereignty-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sovereignty-card li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sovereignty-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

/* AI Privacy Grid */
.ai-privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ai-privacy-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.ai-privacy-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.ai-privacy-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ai-privacy-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Compliance Grid */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.compliance-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.compliance-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.compliance-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Industry Grid */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.2s ease;
}

.industry-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.industry-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.industry-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.industry-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Open Format Note */
.open-format-note {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 2rem;
    text-align: center;
}

.open-format-note p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive adjustments for privacy page */
@media (max-width: 768px) {

    .sovereignty-grid,
    .ai-privacy-grid,
    .compliance-grid,
    .industry-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Monitoring Page Styles
   ================================ */

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.roadmap-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Monitoring Overview Grid */
.monitoring-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.monitoring-overview-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.overview-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.monitoring-overview-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.monitoring-overview-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.dashboard-title {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-icon {
    font-size: 1.2rem;
}

.dashboard-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.time-range {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
}

.time-range.active {
    background: var(--accent-primary);
    color: white;
}

.filter-badge {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.export-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Stats Row */
.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.stat-trend {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.stat-trend.up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.stat-trend.good {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.stat-trend.neutral {
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

/* Dashboard Section */
.dashboard-section {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.dashboard-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Destination Table */
.destination-table {
    overflow-x: auto;
}

.table-header,
.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    align-items: center;
    font-size: 0.85rem;
}

.table-header {
    background: var(--bg-primary);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.table-row {
    border-bottom: 1px solid var(--border);
}

.table-row:last-child {
    border-bottom: none;
}

.destination-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dest-icon {
    font-size: 1.1rem;
}

.region-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.region-badge.local {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.region-badge.eu {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.status-badge.ok {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Residency Dashboard */
.residency-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.residency-map {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.map-legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.approved {
    background: #10b981;
}

.legend-dot.blocked {
    background: #ef4444;
}

.legend-dot.warning {
    background: #f59e0b;
}

.region-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.region-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.region-card.approved {
    border-color: #10b981;
}

.region-card.blocked {
    border-color: #ef4444;
}

.region-card.warning {
    border-color: #f59e0b;
}

.region-flag {
    font-size: 1.5rem;
}

.region-info {
    flex: 1;
}

.region-info h5 {
    font-size: 0.9rem;
    margin: 0;
}

.region-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.region-status {
    font-size: 0.75rem;
    font-weight: 600;
}

.region-card.approved .region-status {
    color: #10b981;
}

.region-card.blocked .region-status {
    color: #ef4444;
}

.region-card.warning .region-status {
    color: #f59e0b;
}

/* Residency Rules */
.residency-rules {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.residency-rules h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.rule-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    opacity: 0.6;
}

.rule-item.active {
    opacity: 1;
}

.rule-icon {
    font-size: 1.25rem;
}

.rule-content {
    flex: 1;
}

.rule-content strong {
    display: block;
    font-size: 0.85rem;
}

.rule-content p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.rule-toggle {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.rule-toggle.on {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.rule-toggle.off {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Log Entries */
.log-entries {
    padding: 1rem;
}

.log-entry {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.log-status {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.log-entry.success .log-status {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.log-entry.error .log-status {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.log-header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.log-workflow {
    font-weight: 600;
    font-size: 0.9rem;
}

.log-id {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.log-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.log-nodes {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.node-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--bg-secondary);
}

.node-badge.trigger {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.node-badge.action {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.node-badge.ai {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.node-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.node-arrow {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.log-expand {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
}

/* Log Detail Panel */
.log-detail-panel {
    margin: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.log-detail-panel h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.log-json pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Metrics Dashboard */
.metrics-dashboard {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.metric-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.metric-panel.wide {
    grid-column: 1 / -1;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.metric-header h5 {
    font-size: 0.95rem;
    margin: 0;
}

.metric-name {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-family: monospace;
}

/* Chart Bars */
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 100px;
    margin-bottom: 0.5rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent-primary), rgba(245, 158, 11, 0.5));
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 10px;
}

.chart-bar.weekend {
    background: linear-gradient(to top, #6b7280, rgba(107, 114, 128, 0.5));
}

.bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.metric-value span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Breakdown */
.metric-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breakdown-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    width: 30px;
}

.breakdown-bar {
    height: 8px;
    background: var(--accent-primary);
    border-radius: 4px;
}

.breakdown-value {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Model Usage Grid */
.model-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.model-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.model-icon {
    font-size: 1.25rem;
}

.model-info {
    flex: 1;
}

.model-info strong {
    display: block;
    font-size: 0.85rem;
}

.model-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.model-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.model-badge.local {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.model-badge.eu {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Prometheus Config */
.prometheus-config,
.otel-config {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.prometheus-config h4,
.otel-config h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.prometheus-config pre,
.otel-config pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.8rem;
    margin: 0;
}

/* Trace Dashboard */
.trace-dashboard {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.trace-example {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.trace-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.trace-id {
    font-family: monospace;
    color: var(--text-secondary);
}

.trace-duration {
    font-weight: 600;
}

.trace-spans {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.span-row {
    display: grid;
    grid-template-columns: 200px 1fr 60px;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 6px;
}

.span-row.child {
    margin-left: 1.5rem;
}

.span-row.grandchild {
    margin-left: 3rem;
}

.span-info {
    display: flex;
    flex-direction: column;
}

.span-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.span-service {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.span-timeline {
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 4px;
    position: relative;
}

.span-bar {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    background: #3b82f6;
}

.span-bar.trigger {
    background: #a855f7;
}

.span-bar.action {
    background: #3b82f6;
}

.span-bar.external {
    background: #6b7280;
}

.span-bar.ai {
    background: #f59e0b;
}

.span-bar.llm {
    background: #10b981;
}

.span-duration {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: right;
}

/* Audit Export Panel */
.audit-export-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.export-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.export-option {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.export-option h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.export-option p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.export-btn.primary {
    background: var(--accent-primary);
    color: white;
}

.export-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.audit-summary {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
}

.audit-summary h4 {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.audit-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.audit-stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.audit-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.audit-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Responsive adjustments for monitoring page */
@media (max-width: 768px) {
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .table-header span:nth-child(3),
    .table-header span:nth-child(4),
    .table-row span:nth-child(3),
    .table-row span:nth-child(4) {
        display: none;
    }

    .residency-dashboard {
        grid-template-columns: 1fr;
    }

    .log-entry {
        grid-template-columns: auto 1fr;
    }

    .log-nodes,
    .log-expand {
        grid-column: 1 / -1;
    }

    .audit-export-panel {
        grid-template-columns: 1fr;
    }

    .span-row.child,
    .span-row.grandchild {
        margin-left: 0.5rem;
    }
}

/* Deep Dive Link */
.deep-dive-link {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.deep-dive-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.deep-dive-icon {
    font-size: 2.5rem;
}

.deep-dive-text {
    flex: 1;
}

.deep-dive-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.deep-dive-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .deep-dive-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================
   Workflow Data Flow Visualizer
   ================================ */

/* Workflow Selector Tabs */
.workflow-selector {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.workflow-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.workflow-tab:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.workflow-tab.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.workflow-icon {
    font-size: 1.1rem;
}

/* Flow Visualization Container */
.flow-viz-container {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.workflow-flow {
    display: none;
    padding: 1.5rem;
}

.workflow-flow.active {
    display: block;
}

/* Flow Header */
.flow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.flow-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.flow-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.flow-status.running {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.flow-status.paused {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.flow-summary {
    display: flex;
    gap: 1rem;
}

.summary-item {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: var(--bg-secondary);
}

.summary-item.local {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.summary-item.eu {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.summary-item.blocked {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
}

.summary-item.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Flow Diagram */
.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}

.flow-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.flow-row.split {
    gap: 1.5rem;
}

.flow-connector {
    font-size: 1.5rem;
    color: var(--text-tertiary);
    padding: 0.5rem 0;
}

/* Flow Node */
.flow-node {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    max-width: 280px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flow-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flow-node.trigger {
    border-color: #a855f7;
}

.flow-node.action {
    border-color: #3b82f6;
}

.flow-node.ai {
    border-color: #f59e0b;
}

.flow-node.highlighted {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.flow-node.warning-node {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.node-type {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.node-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.node-badge.safe {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.node-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.node-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.node-icon {
    font-size: 1.25rem;
}

.node-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.node-destination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: var(--bg-primary);
    border-radius: 6px;
    font-size: 0.8rem;
}

.dest-flag {
    font-size: 1rem;
}

.dest-name {
    color: var(--text-secondary);
}

.node-detail {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.node-detail small {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.node-detail.warning small {
    color: #f59e0b;
}

/* Flow Map */
.flow-map {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.flow-map h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.map-destinations {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.map-dest {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.map-dest.local {
    border-left: 3px solid #6366f1;
}

.map-dest.eu {
    border-left: 3px solid #10b981;
}

.map-dest.warning {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.map-flag {
    font-size: 1.5rem;
}

.map-info {
    flex: 1;
}

.map-info strong {
    display: block;
    font-size: 0.9rem;
}

.map-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.map-status {
    font-size: 1rem;
    font-weight: 600;
}

.map-status.ok {
    color: #10b981;
}

.map-status.warn {
    color: #f59e0b;
}

/* Responsive */
@media (max-width: 768px) {
    .workflow-selector {
        flex-direction: column;
    }

    .workflow-tab {
        justify-content: center;
    }

    .flow-header {
        flex-direction: column;
        gap: 1rem;
    }

    .flow-row.split {
        flex-direction: column;
    }

    .flow-node {
        min-width: 100%;
    }
}

/* ================================
   Unified Dashboard
   ================================ */

.unified-dashboard-section {
    padding: 2rem 0;
}

.unified-dashboard {
    display: grid;
    grid-template-columns: 240px 1fr;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    min-height: 800px;
}

/* Sidebar */
.dashboard-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-icon {
    font-size: 1.5rem;
}

.sidebar-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-align: left;
}

.sidebar-nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-nav-item.active {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-primary);
}

.nav-icon {
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* Dashboard Main */
.dashboard-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.panel-subtitle {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-selector {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 0.25rem;
}

.time-btn {
    padding: 0.4rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.time-btn.active {
    background: var(--accent-primary);
    color: white;
}

.refresh-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Dashboard Panels */
.dashboard-panel {
    display: none;
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.dashboard-panel.active {
    display: block;
}

/* Quick Stats Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.quick-stat-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.quick-stat-card.highlight {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-content .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-content .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stat-content .stat-trend {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.stat-trend.up {
    color: #10b981;
}

.stat-trend.neutral {
    color: var(--text-tertiary);
}

.stat-trend.good {
    color: #10b981;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.overview-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.875rem;
}

.overview-card.wide {
    grid-column: 1 / -1;
}

.overview-card.full-width {
    grid-column: 1 / -1;
}

.overview-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Workflow List */
.workflow-list,
.dest-list,
.activity-list,
.model-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.workflow-item,
.dest-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
}

.wf-status {
    font-size: 0.75rem;
}

.wf-status.running {
    color: #10b981;
}

.wf-status.paused {
    color: #f59e0b;
}

.wf-name,
.dest-name {
    flex: 1;
    font-size: 0.9rem;
}

.wf-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.dest-flag {
    font-size: 1.1rem;
}

.dest-count {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.dest-status {
    font-size: 0.8rem;
}

.dest-status.ok {
    color: #10b981;
}

/* Compliance Bars */
.compliance-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compliance-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.compliance-bar .bar-label {
    width: 140px;
    font-size: 0.85rem;
}

.compliance-bar .bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.compliance-bar .bar-fill {
    height: 100%;
    background: #10b981;
    border-radius: 4px;
}

.compliance-bar .bar-value {
    width: 50px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
}

/* Activity List */
.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.activity-item.success {
    border-left: 3px solid #10b981;
}

.activity-item.error {
    border-left: 3px solid #ef4444;
}

.activity-item.info {
    border-left: 3px solid #6366f1;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    width: 40px;
}

/* Model List */
.model-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
}

.model-item .model-icon {
    font-size: 1.25rem;
}

.model-item .model-info {
    flex: 1;
}

.model-item .model-info strong {
    display: block;
    font-size: 0.85rem;
}

.model-item .model-info span {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.model-item .model-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.model-badge.local {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

/* Workflow Panel */
.panel-toolbar {
    margin-bottom: 1.5rem;
}

.workflow-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.workflow-tab-btn {
    padding: 0.6rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.workflow-tab-btn.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.workflow-detail {
    display: none;
}

.workflow-detail.active {
    display: block;
}

.wf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.wf-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wf-live-badge {
    font-size: 0.75rem;
    color: #10b981;
}

.wf-paused-badge {
    font-size: 0.75rem;
    color: #f59e0b;
}

.wf-summary-badges {
    display: flex;
    gap: 0.5rem;
}

.badge-local,
.badge-eu,
.badge-ok,
.badge-warning {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.badge-local {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.badge-eu {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-ok {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Flow Diagram */
.wf-flow-diagram {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flow-step-split {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-node {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem;
    min-width: 140px;
    text-align: center;
}

.step-node.trigger {
    border-color: #a855f7;
}

.step-node.action {
    border-color: #3b82f6;
}

.step-node.ai {
    border-color: #f59e0b;
}

.step-node.warning {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.step-type {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.step-safe,
.step-warning {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    margin-left: 0.5rem;
}

.step-safe {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.step-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.step-icon {
    display: block;
    font-size: 1.25rem;
    margin: 0.25rem 0;
}

.step-name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
}

.step-dest {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.step-node small {
    display: block;
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.step-arrow {
    font-size: 1.25rem;
    color: var(--text-tertiary);
}

/* Destination Cards */
.wf-destinations h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.dest-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dest-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 200px;
}

.dest-card.local {
    border-left: 3px solid #6366f1;
}

.dest-card.eu {
    border-left: 3px solid #10b981;
}

.dest-card.warning {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.card-flag {
    font-size: 1.25rem;
}

.card-info {
    flex: 1;
}

.card-info strong {
    display: block;
    font-size: 0.85rem;
}

.card-info span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.card-status {
    font-size: 1rem;
}

.card-status.warn {
    color: #f59e0b;
}

/* Traffic Panel */
.traffic-grid {
    display: grid;
    gap: 1.5rem;
}

.traffic-table-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem;
}

.traffic-table-card h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.data-table th {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.dest-icon {
    margin-right: 0.5rem;
}

.region-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.region-tag.local {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.region-tag.eu {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-ok {
    color: #10b981;
    font-size: 0.8rem;
}

/* Residency Panel */
.residency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.residency-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem;
}

.residency-card h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.region-list,
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.region-item.approved {
    border-color: #10b981;
}

.region-item.blocked {
    border-color: #ef4444;
}

.region-item.warning {
    border-color: #f59e0b;
}

.region-flag {
    font-size: 1.25rem;
}

.region-info {
    flex: 1;
}

.region-info strong {
    display: block;
    font-size: 0.9rem;
}

.region-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.region-item .region-status {
    font-size: 0.75rem;
    font-weight: 600;
}

.region-item.approved .region-status {
    color: #10b981;
}

.region-item.blocked .region-status {
    color: #ef4444;
}

.region-item.warning .region-status {
    color: #f59e0b;
}

.rule-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    opacity: 0.6;
}

.rule-row.active {
    opacity: 1;
}

.rule-icon {
    font-size: 1.25rem;
}

.rule-info {
    flex: 1;
}

.rule-info strong {
    display: block;
    font-size: 0.85rem;
}

.rule-info span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.rule-toggle {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.rule-toggle.on {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.rule-toggle.off {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Logs Panel */
.logs-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    gap: 0.25rem;
}

.filter-btn {
    padding: 0.4rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.logs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.log-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.log-row.success .log-status {
    color: #10b981;
}

.log-row.error .log-status {
    color: #ef4444;
}

.log-info strong {
    display: block;
    font-size: 0.9rem;
}

.log-id {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.log-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.log-flow {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.flow-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    background: var(--bg-tertiary);
}

.flow-badge.trigger {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.flow-badge.action {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.flow-badge.ai {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.flow-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.flow-arrow {
    color: var(--text-tertiary);
    font-size: 0.7rem;
}

.log-expand-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
}

.log-detail-box {
    display: none;
    margin-top: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.log-detail-box.visible {
    display: block;
}

.log-detail-box h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.log-detail-box pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.8rem;
}

/* Metrics Panel */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem;
}

.metric-card.wide {
    grid-column: 1 / -1;
}

.metric-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.metric-query {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-family: monospace;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    height: 80px;
    margin: 1rem 0;
}

.mini-chart .bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent-primary), rgba(245, 158, 11, 0.5));
    border-radius: 4px 4px 0 0;
    position: relative;
    text-align: center;
}

.mini-chart .bar span {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.mini-chart .bar.weekend {
    background: linear-gradient(to top, #6b7280, rgba(107, 114, 128, 0.5));
}

.metric-total {
    font-size: 1.25rem;
    font-weight: 700;
}

.metric-total span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.percentile-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.percentile-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.p-label {
    width: 30px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.p-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.p-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 4px;
}

.p-value {
    font-size: 0.85rem;
    font-weight: 600;
    width: 40px;
}

.model-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.model-metric-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
}

.mm-icon {
    font-size: 1.1rem;
}

.model-metric-item strong {
    font-size: 0.85rem;
}

.model-metric-item span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.mm-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.mm-badge.local {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.config-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem;
}

.config-box h4 {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.config-box pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.8rem;
    margin: 0;
}

/* Tracing Panel */
.trace-viewer {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.trace-header-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.trace-id {
    font-family: monospace;
    color: var(--text-secondary);
}

.trace-total {
    font-weight: 600;
}

.trace-spans {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.span-row {
    display: grid;
    grid-template-columns: 180px 1fr 60px;
    gap: 1rem;
    align-items: center;
    padding: 0.4rem 0.5rem;
    background: var(--bg-primary);
    border-radius: 6px;
}

.span-row.child {
    margin-left: 1.5rem;
}

.span-row.grandchild {
    margin-left: 3rem;
}

.span-label strong {
    display: block;
    font-size: 0.8rem;
}

.span-label span {
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.span-bar-track {
    height: 16px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    position: relative;
}

.span-bar-fill {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    background: #3b82f6;
}

.span-bar-fill.trigger {
    background: #a855f7;
}

.span-bar-fill.action {
    background: #3b82f6;
}

.span-bar-fill.external {
    background: #6b7280;
}

.span-bar-fill.ai {
    background: #f59e0b;
}

.span-bar-fill.llm {
    background: #10b981;
}

.span-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: right;
}

/* Audit Panel */
.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.audit-summary-card,
.export-options-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem;
}

.audit-summary-card h3,
.export-options-card h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.audit-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.audit-stat-box {
    text-align: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
}

.audit-big-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.audit-big-value.green {
    color: #10b981;
}

.audit-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.export-option-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.export-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
}

.export-info strong {
    display: block;
    font-size: 0.9rem;
}

.export-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.export-action-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
}

.export-action-btn.primary {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .unified-dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        display: none;
    }

    .quick-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .residency-grid,
    .audit-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .log-row {
        grid-template-columns: auto 1fr;
    }

    .log-meta,
    .log-flow {
        grid-column: 1 / -1;
    }
}

/* ================================
   Enhanced Dashboard Additions
   ================================ */

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.visible {
    display: block;
    opacity: 1;
}

/* Sidebar Close Button */
.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.25rem;
    margin-left: auto;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    margin-right: 0.75rem;
}

/* Navigation Hints */
.nav-hint {
    display: block;
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin-top: 0.15rem;
    opacity: 0.8;
}

.sidebar-nav-item.active .nav-hint {
    color: var(--accent-primary);
    opacity: 0.7;
}

/* Workflow Metrics Row */
.wf-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.wf-metrics-row.warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.03);
}

.wf-metric {
    text-align: center;
}

.wf-metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.wf-metrics-row.warning .wf-metric-value {
    color: #f59e0b;
}

.wf-metric-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Pulse Animation for Live Badges */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* FadeIn Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improved Sidebar Navigation Transitions */
.sidebar-nav-item {
    transition: all 0.2s ease;
}

.sidebar-nav-item:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Panel Transitions */
.dashboard-panel {
    animation: fadeIn 0.3s ease;
}

/* Hover Improvements */
.step-node {
    transition: all 0.2s ease;
    cursor: pointer;
}

.step-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dest-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.dest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile/Tablet Responsive Improvements */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }

    .sidebar-close {
        display: block;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-radius: 0;
    }

    .dashboard-sidebar.open {
        transform: translateX(0);
    }

    .wf-metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .wf-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .wf-summary-badges {
        flex-wrap: wrap;
    }

    .wf-flow-diagram {
        flex-direction: column;
        align-items: stretch;
    }

    .flow-step {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    .flow-step-split {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .wf-metrics-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .wf-metric-value {
        font-size: 1.1rem;
    }

    .topbar-right {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .time-selector {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .refresh-btn {
        order: 2;
    }
}

/* ================================
   Demo Enhancement Features
   ================================ */

/* Sparklines */
.sparkline-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.sparkline {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
    flex-shrink: 0;
}

.spark-bar {
    width: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
    opacity: 0.6;
    min-height: 3px;
}

.spark-bar.active {
    opacity: 1;
    background: var(--accent-primary);
}

.sparkline.success .spark-bar {
    background: #10b981;
}

/* Drill-Link Hover Effects */
.drill-link {
    transition: all 0.2s ease;
}

.drill-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-stat-card.drill-link:hover {
    border-color: var(--accent-primary);
}

.quick-stat-card.drill-link::after {
    content: '→';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    opacity: 0;
    font-size: 0.8rem;
    color: var(--accent-primary);
    transition: opacity 0.2s ease;
}

.quick-stat-card {
    position: relative;
}

.quick-stat-card.drill-link:hover::after {
    opacity: 1;
}

/* Alerts Panel */
.alerts-card {
    border-left: 3px solid #ef4444;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.alert-item.critical {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.alert-item.warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.alert-item.info {
    border-left-color: #6366f1;
}

.alert-item.success {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-content strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.alert-content span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.alert-time {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.alert-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.alert-badge.blocked {
    background: #ef4444;
    color: white;
}

/* Log Action Buttons */
.log-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.log-action-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.log-action-btn:hover {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
}

.log-action-btn.ask-ai {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.log-action-btn.ask-ai:hover {
    background: var(--accent-primary);
    color: white;
}

/* Log Row Layout Update */
.log-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto auto;
    gap: 1rem;
    align-items: center;
}

/* Responsive for alerts and log actions */
@media (max-width: 768px) {
    .alert-item {
        flex-wrap: wrap;
    }

    .alert-content {
        width: calc(100% - 3rem);
    }

    .alert-time {
        order: -1;
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .log-actions {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
    }

    .log-row {
        grid-template-columns: auto 1fr;
    }
}

/* ================================
   Phase 3: Evidence-Based Compliance
   ================================ */

/* Compliance Checks */
.compliance-checks {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.compliance-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border-left: 3px solid #10b981;
    transition: all 0.2s ease;
}

.compliance-check:hover {
    background: var(--bg-secondary);
}

.compliance-check.pass {
    border-left-color: #10b981;
}

.compliance-check.fail {
    border-left-color: #ef4444;
}

.check-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
    color: #10b981;
}

.compliance-check.fail .check-icon {
    color: #ef4444;
}

.check-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.check-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.check-value {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.check-evidence {
    font-size: 0.7rem;
    color: var(--accent-primary);
    cursor: pointer;
    white-space: nowrap;
}

.check-evidence:hover {
    text-decoration: underline;
}

/* Stat Delta */
.stat-delta {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Filter Pills */
.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
}

.pill.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Alerts Header & Toolbar */
.alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.alerts-header h3 {
    margin: 0;
}

.view-all-link {
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

.alerts-toolbar {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* ================================
   Phase 4: Ask AI Analysis Panel
   ================================ */

.ask-ai-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ask-ai-panel.visible {
    right: 0;
}

.ai-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.ai-panel-icon {
    font-size: 1.5rem;
}

.ai-panel-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
}

.ai-panel-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.8;
}

.ai-panel-close:hover {
    opacity: 1;
}

.ai-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.ai-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.ai-section:last-child {
    border-bottom: none;
}

.ai-section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.ai-section.root-cause p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.ai-section.root-cause code {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.ai-section.evidence ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-section.evidence li {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.code-badge {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
}

.code-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.evidence-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.8rem;
}

.evidence-link:hover {
    text-decoration: underline;
}

.ai-section.suggested-fix ol {
    padding-left: 1.25rem;
    margin: 0;
}

.ai-section.suggested-fix li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.fix-detail {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.ai-panel-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.ai-panel-actions .btn-primary,
.ai-panel-actions .btn-secondary {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-panel-actions .btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
}

.ai-panel-actions .btn-primary:hover {
    background: #d97706;
}

.ai-panel-actions .btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.ai-panel-actions .btn-secondary:hover {
    border-color: var(--accent-primary);
}

/* Mobile Ask AI Panel */
@media (max-width: 640px) {
    .ask-ai-panel {
        width: 100%;
        right: -100%;
    }
}

/* Data Classification Badges */
.step-data-class {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.data-badge {
    font-size: 0.55rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.data-badge.pii {
    background: #fef3c7;
    color: #92400e;
}

.data-badge.financial {
    background: #d1fae5;
    color: #065f46;
}

.data-badge.document {
    background: #dbeafe;
    color: #1e40af;
}

.data-badge.system {
    background: #e5e7eb;
    color: #374151;
}

.data-badge.local-ai {
    background: #f3e8ff;
    color: #7c3aed;
}

.data-badge.no-ai {
    background: #f3f4f6;
    color: #6b7280;
}

/* Image Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
    transition: transform 0.2s ease-out;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -10px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.lightbox-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-zoom-level {
    color: white;
    font-size: 0.875rem;
    min-width: 50px;
    text-align: center;
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lightbox-close {
        top: -40px;
        right: 0;
        font-size: 2rem;
    }

    .lightbox-controls {
        padding: 0.35rem 0.75rem;
    }

    .lightbox-controls button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Mockup Notice */
.mockup-notice {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    padding: 1rem 0;
    margin: 0;
}