/* ============================================
   CONNECTION HOLDINGS - CEO ROADMAP DASHBOARD
   ============================================ */

:root {
    /* Color Palette - Deep Navy & Gold */
    --primary-900: #0a1628;
    --primary-800: #0f2137;
    --primary-700: #162d4a;
    --primary-600: #1e3a5f;
    --primary-500: #2a4a73;
    
    --accent-gold: #d4a853;
    --accent-gold-light: #e8c97a;
    --accent-gold-dark: #b8923f;
    
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --surface-1: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.06);
    --surface-3: rgba(255, 255, 255, 0.09);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-light: rgba(255, 255, 255, 0.12);
    
    /* Typography */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(212, 168, 83, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--primary-900);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

.login-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(212, 168, 83, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(42, 74, 115, 0.3) 0%, transparent 50%),
        linear-gradient(180deg, var(--primary-800) 0%, var(--primary-900) 100%);
}

.bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

.login-card {
    position: relative;
    z-index: 1;
    background: var(--surface-2);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.logo-icon {
    width: 128px;
    height: 128px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header .subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: var(--primary-900);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 168, 83, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    text-align: center;
    min-height: 1.25rem;
}

.login-footer {
    margin-top: var(--space-2xl);
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   DASHBOARD PAGE
   ============================================ */

.dashboard-page {
    min-height: 100vh;
    background: var(--primary-900);
}

/* Navigation */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-md) var(--space-xl);
}

.nav-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-brand .logo-icon {
    width: 80px;
    height: 80px;
}

.nav-brand h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--surface-2);
}

.nav-link.active {
    color: var(--accent-gold);
}

.btn-logout {
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: var(--surface-3);
    color: var(--text-primary);
}

/* Main Content */
.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-2xl);
}

/* Section Headers */
.section-header {
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

/* Metric Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.metric-card {
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--border-color-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-card.highlight {
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.1);
}

.metric-card.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: var(--space-sm);
}

.metric-value.success {
    color: var(--success);
}

.metric-value.warning {
    color: var(--warning);
}

.metric-value.gold {
    color: var(--accent-gold);
}

.metric-change {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.metric-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.metric-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Charts */
.chart-section {
    margin-bottom: var(--space-3xl);
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1200px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.chart-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.chart-container {
    position: relative;
    height: 300px;
}

.chart-container.tall {
    height: 400px;
}

/* Timeline */
.timeline-section {
    margin-bottom: var(--space-3xl);
}

.timeline {
    position: relative;
    padding-left: var(--space-3xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--primary-600) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-2xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-3xl) + 4px);
    top: 4px;
    width: 18px;
    height: 18px;
    background: var(--primary-900);
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
}

.timeline-item.completed .timeline-marker {
    background: var(--accent-gold);
}

.timeline-item.current .timeline-marker {
    background: var(--accent-gold);
    box-shadow: 0 0 0 6px rgba(212, 168, 83, 0.2);
}

.timeline-content {
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-goals {
    margin-top: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.timeline-goal {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--surface-3);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Risk & Strategy Cards */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.strategy-card {
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.strategy-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.strategy-card .icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-3);
    border-radius: var(--radius-sm);
    color: var(--accent-gold);
}

.strategy-list {
    list-style: none;
}

.strategy-list li {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.strategy-list li:last-child {
    border-bottom: none;
}

.strategy-list .bullet {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.strategy-list .content {
    flex: 1;
}

.strategy-list .title {
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.strategy-list .desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Footer */
.dashboard-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) 0;
    margin-top: var(--space-3xl);
    text-align: center;
}

.dashboard-footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: var(--space-lg);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .strategy-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================
   NEW STYLES FOR COMPREHENSIVE DASHBOARD
   ============================================ */

/* Subsection Titles */
.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.subsection-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.success-text { color: var(--success); }
.danger-text { color: var(--danger); }
.warning-text { color: var(--warning); }
.gold-text { color: var(--accent-gold) !important; }

/* Data Tables */
.data-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--surface-2);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.data-table tbody tr:hover {
    background: var(--surface-2);
}

.data-table .highlight-cell {
    color: var(--accent-gold);
    font-weight: 600;
}

.data-table .total-row {
    background: var(--surface-2);
    font-weight: 600;
}

.data-table .total-row td {
    border-top: 2px solid var(--accent-gold);
}

.data-table .highlight-row td {
    background: rgba(212, 168, 83, 0.1);
}

.data-table .danger-row {
    background: rgba(239, 68, 68, 0.15);
}

.data-table .danger-row td {
    border-left: 3px solid var(--error);
}

.table-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.status-badge.neutral {
    background: var(--surface-2);
    color: var(--text-secondary);
}

/* Card Border Variants */
.strategy-card.danger-border {
    border-left: 3px solid var(--danger);
}

.strategy-card.warning-border {
    border-left: 3px solid var(--warning);
}

.strategy-card.success-border {
    border-left: 3px solid var(--success);
}

/* Bullet Variants */
.bullet.danger {
    background: var(--danger);
}

.bullet.warning {
    background: var(--warning);
}

/* Metric Card Variants */
.metric-card.danger-border {
    border: 1px solid var(--danger);
}

.metric-card.warning-border {
    border: 1px solid var(--warning);
}

.metric-card.success-border {
    border: 1px solid var(--success);
}

.metric-value.warning {
    color: var(--warning);
}

/* Summary Table */
.summary-table .total-row td:first-child {
    font-size: 1.1rem;
}

/* Closing Statement */
.closing-statement {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    border: 1px solid var(--accent-gold);
}

.closing-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.closing-signature {
    font-size: 1.1rem;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Nav Links Scrollable */
.nav-links {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.nav-link {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

/* Responsive adjustments for new content */
@media (max-width: 1024px) {
    .nav-links {
        gap: 0.1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* =============================================================================
   LIVE DATA SECTION
============================================================================= */

.live-data-section {
    background: linear-gradient(135deg, #0a0f1a 0%, #121a2e 50%, #0d1424 100%);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: #a0a0a0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(201, 162, 39, 0.2);
    border-top-color: #c9a227;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Data Freshness Banner */
.data-freshness {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #4ade80;
    font-size: 0.9rem;
}

.pulse {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.date-range {
    margin-left: auto;
    color: #a0a0a0;
}

/* Contribution Summary */
.contribution-summary {
    margin-bottom: 3rem;
}

.contribution-summary h3 {
    color: #f0f0f0;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

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

.contribution-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contribution-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.3);
}

.contribution-card.primary {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15) 0%, rgba(201, 162, 39, 0.05) 100%);
    border-color: rgba(201, 162, 39, 0.4);
}

.contribution-value {
    font-size: 2rem;
    font-weight: 700;
    color: #c9a227;
    font-family: 'Space Mono', monospace;
    margin-bottom: 0.5rem;
}

.contribution-label {
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* Performance Section */
.performance-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.performance-section h3 {
    color: #f0f0f0;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.live-data-section .metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.live-data-section .metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.live-data-section .metric-card:hover {
    border-color: rgba(201, 162, 39, 0.3);
}

.live-data-section .metric-card.highlight {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(74, 222, 128, 0.03) 100%);
    border-color: rgba(74, 222, 128, 0.3);
}

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

.metric-details {
    flex: 1;
}

.live-data-section .metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f0f0f0;
    font-family: 'Space Mono', monospace;
}

.live-data-section .metric-label {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-top: 0.25rem;
}

/* Client Context */
.client-context {
    background: rgba(201, 162, 39, 0.08);
    border-left: 3px solid #c9a227;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.client-context p {
    color: #d0d0d0;
    font-size: 0.9rem;
    margin: 0;
}

/* Campaigns Breakdown */
.campaigns-breakdown {
    margin-top: 2rem;
}

.campaigns-breakdown h4 {
    color: #d0d0d0;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.campaigns-table-wrapper,
.verticals-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.campaigns-table,
.verticals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.campaigns-table th,
.verticals-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #a0a0a0;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.campaigns-table td,
.verticals-table td {
    padding: 0.75rem 1rem;
    color: #d0d0d0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.campaigns-table tr:hover,
.verticals-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.campaigns-table td.positive,
.verticals-table td.positive {
    color: #4ade80;
}

.campaigns-table td.negative,
.verticals-table td.negative {
    color: #f87171;
}

/* Projection Section */
.projection-section {
    margin-bottom: 3rem;
}

.projection-section h3 {
    color: #f0f0f0;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.projection-note {
    color: #808080;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.projection-note-small {
    color: #666;
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.projection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.projection-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.projection-card.highlight {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15) 0%, rgba(201, 162, 39, 0.05) 100%);
    border-color: rgba(201, 162, 39, 0.4);
}

.projection-label {
    color: #a0a0a0;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.projection-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #c9a227;
    font-family: 'Space Mono', monospace;
}

.projection-growth {
    color: #4ade80;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.projection-chart-container {
    height: 300px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1rem;
}

/* Verticals Section */
.verticals-section h3 {
    color: #f0f0f0;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.verticals-chart-container {
    height: 350px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
}

/* Error Card */
.error-card {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.error-card h4 {
    color: #f87171;
    margin-bottom: 0.5rem;
}

.error-card p {
    color: #a0a0a0;
}

/* Animation for live data items */
#live-data-content .animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#live-data-content .animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Profit Breakdown Section */
.profit-breakdown {
    margin-bottom: 2rem;
}

.profit-breakdown h4 {
    color: #d0d0d0;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.breakdown-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
}

.breakdown-header {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.75rem;
}

.breakdown-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #c9a227;
    font-family: 'Space Mono', monospace;
    margin-bottom: 0.25rem;
}

.breakdown-leads {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.breakdown-note {
    color: #707070;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Meta Cost Section */
.meta-cost-section {
    background: rgba(248, 113, 113, 0.05);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.meta-cost-section h4 {
    color: #f87171;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.meta-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.meta-card.cost {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.meta-icon {
    font-size: 1.25rem;
}

.meta-details {
    flex: 1;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0f0f0;
    font-family: 'Space Mono', monospace;
}

.meta-value.negative {
    color: #f87171;
}

.meta-value.positive {
    color: #4ade80;
}

.meta-label {
    font-size: 0.75rem;
    color: #a0a0a0;
    margin-top: 0.2rem;
}

/* TRUE Profit Calculation */
.true-profit-calc {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.08) 0%, rgba(74, 222, 128, 0.02) 100%);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.true-profit-calc h4 {
    color: #4ade80;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.calc-breakdown {
    max-width: 500px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.calc-row.subtotal {
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.calc-row.total {
    border-top: 2px solid rgba(74, 222, 128, 0.4);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.calc-row.margin {
    padding-top: 0.5rem;
}

.calc-row.section-header {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    padding-top: 1rem;
    border-bottom: none;
}

.calc-row.section-header:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.calc-label {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.calc-row.total .calc-label {
    color: #e0e0e0;
    font-weight: 600;
}

.calc-value {
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    font-size: 1rem;
}

.calc-value.positive {
    color: #4ade80;
}

.calc-value.negative {
    color: #f87171;
}

.calc-value.profit {
    color: #4ade80;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Vertical Type Badge */
.vertical-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.vertical-type.hi {
    background: rgba(201, 162, 39, 0.2);
    color: #c9a227;
}

.vertical-type.health {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

/* Contribution Card Highlight */
.contribution-card.highlight-profit {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(74, 222, 128, 0.05) 100%);
    border-color: rgba(74, 222, 128, 0.4);
}

.contribution-card.highlight-profit .contribution-value {
    color: #4ade80;
}

/* Meta Trend Section */
.meta-trend-section {
    margin-bottom: 3rem;
}

.meta-trend-section h3 {
    color: #f0f0f0;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.meta-trend-chart-container {
    height: 300px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1rem;
}

/* Responsive adjustments for live data */
@media (max-width: 768px) {
    .data-freshness {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .date-range {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .contribution-value {
        font-size: 1.5rem;
    }
    
    .projection-value {
        font-size: 1.4rem;
    }
    
    .live-data-section .metric-card {
        flex-direction: column;
        text-align: center;
    }
    
    .projection-chart-container,
    .verticals-chart-container {
        height: 250px;
    }
}

/* Contribution Comparison Section */
.contribution-comparison-section {
    background: var(--surface-1);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.contribution-comparison-section h3 {
    margin: 0 0 0.5rem 0;
    color: #e0e0e0;
    font-size: 1.25rem;
}

.contribution-comparison-section .section-desc {
    color: #888;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
}

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-card.my-contribution {
    border-left: 3px solid var(--accent-gold);
    background: rgba(201, 162, 39, 0.05);
}

.comparison-card.company-total {
    border-left: 3px solid #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

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

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

.comparison-label {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 1rem;
}

.comparison-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.comparison-metric {
    text-align: center;
}

.comparison-metric .comparison-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e0e0e0;
    font-family: 'Space Mono', monospace;
}

.comparison-card.my-contribution .comparison-metric.highlight .comparison-value {
    color: var(--accent-gold);
}

.comparison-metric .comparison-sublabel {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.contribution-percentage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.percentage-bar-container {
    display: grid;
    grid-template-columns: 180px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

.percentage-label {
    font-size: 0.85rem;
    color: #a0a0a0;
}

.percentage-bar {
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.percentage-bar .percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #e0c068);
    border-radius: 12px;
    transition: width 0.5s ease;
    min-width: 2px;
}

.percentage-bar.profit .percentage-fill {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

.percentage-value {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-gold);
    text-align: right;
}

.percentage-bar.profit + .percentage-value {
    color: #4ade80;
}

/* Impact Callout Section */
.impact-callout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.impact-stat {
    text-align: center;
    padding: 1rem;
}

.impact-stat.primary {
    background: rgba(201, 162, 39, 0.1);
    border-radius: 8px;
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    color: var(--accent-gold);
    line-height: 1;
}

.impact-stat.primary .impact-number {
    font-size: 3rem;
}

.impact-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-top: 0.5rem;
}

.impact-detail {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
}

/* Comparison Submetrics */
.comparison-submetrics {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #888;
}

/* Impact Insight */
.impact-insight {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(74, 222, 128, 0.1);
    border-left: 3px solid #4ade80;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #d0d0d0;
    line-height: 1.6;
}

.impact-insight strong {
    color: #4ade80;
}

.impact-insight.focus-insight {
    margin-top: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-left-color: #d4af37;
}

.impact-insight.focus-insight strong {
    color: #d4af37;
}

.focus-list {
    margin: 0.75rem 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.focus-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: #c0c0c0;
}

.focus-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #d4af37;
}

.focus-list li strong {
    color: #f0f0f0;
}

@media (max-width: 768px) {
    .comparison-cards {
        grid-template-columns: 1fr;
    }
    
    .comparison-metrics {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .percentage-bar-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .percentage-bar {
        height: 20px;
    }
    
    .percentage-value {
        text-align: center;
    }
    
    .impact-callout {
        grid-template-columns: 1fr;
    }
    
    .impact-number {
        font-size: 2rem;
    }
    
    .impact-stat.primary .impact-number {
        font-size: 2.5rem;
    }
    
    .comparison-submetrics {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* =============================================================================
   PAY-PER-CALL SECTION STYLES
   ============================================================================= */

.pay-per-call-section {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(20, 40, 65, 0.8) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.pay-per-call-section h3 {
    color: #4ade80;
    margin-bottom: 0.5rem;
}

.pay-per-call-section .section-desc {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* PPC Summary Grid */
.ppc-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.ppc-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.ppc-card:hover {
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.ppc-card.primary {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.1);
}

.ppc-card.revenue {
    border-color: rgba(212, 168, 83, 0.4);
    background: rgba(212, 168, 83, 0.1);
}

.ppc-card.profit {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.15);
}

.ppc-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ppc-value {
    font-family: 'Space Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.ppc-value.negative {
    color: #f87171;
}

.ppc-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* PPC Table Styles */
.ppc-offers-breakdown,
.ppc-buyers-breakdown {
    margin-top: 1.5rem;
}

.ppc-offers-breakdown h4,
.ppc-buyers-breakdown h4 {
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.ppc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ppc-table th {
    background: rgba(0, 0, 0, 0.3);
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ppc-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #d0d0d0;
}

.ppc-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.ppc-table td.positive {
    color: #4ade80;
}

.ppc-table td.negative {
    color: #f87171;
}

/* Buyers Grid */
.ppc-buyers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ppc-buyer-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.ppc-buyer-name {
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ppc-buyer-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
}

.ppc-buyer-stats span:last-child {
    color: var(--accent-gold);
    font-weight: 600;
}

/* PPC Note */
.ppc-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.note-icon {
    font-size: 1.2rem;
}

/* Responsive for PPC */
@media (max-width: 1200px) {
    .ppc-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ppc-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ppc-buyers-grid {
        grid-template-columns: 1fr;
    }
    
    .ppc-table {
        font-size: 0.8rem;
    }
    
    .ppc-table th,
    .ppc-table td {
        padding: 0.5rem;
    }
}
