:root {
    /* Modern: cool slate + refined blue accent */
    --bg-primary: #18181b;
    --bg-secondary: #27272a;
    --bg-tertiary: #3f3f46;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #3f3f46;
    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-cyan: #2563eb;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --speed-color: #3b82f6;
    --security-color: #10b981;
    --modern-color: #8b5cf6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.dashboard-header {
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.calculator-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.08));
    border: 1px solid var(--accent-primary);
    border-radius: 10px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.calculator-link:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(96, 165, 250, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.calc-icon {
    font-size: 1.1rem;
}

.calc-text {
    white-space: nowrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-healthy {
    background: rgba(52, 211, 153, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Hero Section - Three Pillars */
.hero-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.pillar-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 30px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pillar-speed {
    border-color: var(--speed-color);
}

.pillar-security {
    border-color: var(--security-color);
}

.pillar-modern {
    border-color: var(--modern-color);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.pillar-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pillar-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.pillar-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-badge, .security-badge, .modern-badge {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    margin-top: 15px;
}

.encryption-types-info {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.info-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

.badge-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Metrics Section */
.metrics-section {
    margin-bottom: 40px;
}

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

.metric-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.metric-content {
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Sections */
.section {
    margin-bottom: 40px;
}

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

.card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Backup List */
.backup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.backup-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.backup-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed, .status-success {
    background: rgba(52, 211, 153, 0.2);
    color: var(--success-color);
}

.status-running, .status-in_progress {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning-color);
}

.status-failed, .status-error {
    background: rgba(248, 113, 113, 0.2);
    color: var(--error-color);
}

.backup-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.backup-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Recovery Stats */
.recovery-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recovery-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

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

.recovery-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Encryption Grid */
.encryption-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.encryption-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

.encryption-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.encryption-name {
    font-weight: 600;
    color: var(--text-primary);
}

.encryption-mode {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.encryption-mode strong {
    color: var(--text-primary);
    font-weight: 600;
}

.encryption-badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--security-color);
    font-size: 0.75rem;
    font-weight: 600;
}

.encryption-badge.encryption-user {
    background: rgba(139, 92, 246, 0.2);
    color: var(--modern-color);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.encryption-badge.encryption-slide {
    background: rgba(16, 185, 129, 0.2);
    color: var(--security-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.feature-item.feature-indent {
    margin-left: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.feature-icon {
    color: var(--security-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Screenshot Gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.screenshot-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.screenshot-thumb {
    width: 100%;
    height: 150px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.screenshot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-info {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.screenshot-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Agent Grid */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.agent-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-online, .status-active, .status-connected {
    background: var(--success-color);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.status-offline, .status-inactive, .status-disconnected {
    background: var(--error-color);
}

.status-warning {
    background: var(--warning-color);
}

.agent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agent-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.agent-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Alerts */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.alert-critical {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alert-message {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.alert-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.comparison-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid var(--border-color);
}

.comparison-card.competitor {
    border-color: var(--error-color);
}

.comparison-card.slide {
    border-color: var(--success-color);
}

.comparison-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.comparison-card.competitor h3 {
    color: var(--error-color);
}

.comparison-card.slide h3 {
    color: var(--success-color);
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-list li {
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 90%;
    max-height: 90%;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
}

.modal-close:hover {
    color: var(--error-color);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.modal-info {
    margin-top: 15px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.empty-state.success {
    color: var(--success-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ============================================
   RTO/RPO CALCULATOR STYLES
   ============================================ */

.calculator-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Calculator Header */
.calculator-header {
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.calculator-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-left {
    flex: 1;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-primary);
}

.calculator-header .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-print {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-print:hover {
    background: var(--border-color);
    border-color: var(--accent-primary);
}

/* Main Layout */
.calculator-main {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

/* Input Column */
.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

/* Input Groups */
.input-group {
    margin-bottom: 20px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-row {
    display: flex;
    gap: 15px;
}

.input-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.input-row-4 .input-group {
    margin-bottom: 0;
}

.input-group.half {
    flex: 1;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.tooltip {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: help;
}

.input-field {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.input-with-prefix .input-field {
    padding-left: 30px;
}

.input-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.assumptions-line {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.assumptions-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 6px;
}

/* Sliders */
.input-slider {
    width: 100%;
    height: 8px;
    margin-top: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-tertiary);
    border-radius: 4px;
    outline: none;
}

.input-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.input-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.input-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.input-slider.slider-warning::-webkit-slider-thumb {
    background: var(--warning-color);
}

.input-slider.slider-danger::-webkit-slider-thumb {
    background: var(--error-color);
}

.input-slider.slider-ok::-webkit-slider-thumb {
    background: var(--success-color);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.slider-value-display {
    text-align: center;
    margin-bottom: 5px;
}

.value-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warning-color);
}

/* Preset Buttons */
.preset-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    border-color: var(--accent-primary);
}

.preset-btn.active {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

.preset-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.preset-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Incident Selector */
.incidents-selector {
    display: flex;
    gap: 8px;
}

.incident-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.incident-btn:hover {
    border-color: var(--warning-color);
}

.incident-btn.active {
    border-color: var(--warning-color);
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning-color);
}

/* Stats Callout */
.stats-callout {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
}

.stats-callout h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-row:last-of-type {
    border-bottom: none;
}

.stat-row .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-row .stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-row .stat-value.highlight {
    color: var(--error-color);
    font-size: 1rem;
}

.stat-source {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
}

/* Results Column */
.calculator-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.result-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.result-badge {
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.result-badge.badge-warning {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning-color);
}

/* Hourly Cost Card */
.result-hourly {
    border-top: 4px solid var(--accent-primary);
}

.result-value-large {
    text-align: center;
    margin-bottom: 20px;
}

.result-value-large .currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
    vertical-align: top;
}

.result-value-large .animated-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.result-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.breakdown-item {
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    text-align: center;
}

.breakdown-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.breakdown-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.formula-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
}

/* Comparison Section */
.result-comparison {
    border-top: 4px solid var(--warning-color);
}

.slide-advantage-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
}

.comparison-column {
    display: flex;
    flex-direction: column;
}

.comparison-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.comparison-current .comparison-title {
    color: var(--error-color);
    border-color: var(--error-color);
}

.comparison-slide .comparison-title {
    color: var(--success-color);
    border-color: var(--success-color);
}

.comparison-metrics {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.metric-item.highlight-bad {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.metric-item.highlight-good {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

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

/* Metric Select Dropdown */
.metric-item-select {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.metric-select {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--success-color);
    border-radius: 6px;
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.metric-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2);
}

.metric-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Bar Chart */
.comparison-bar {
    width: 100%;
    height: 120px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

.bar-fill {
    width: 60%;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease-out;
}

.bar-current {
    background: linear-gradient(180deg, var(--error-color), #991b1b);
}

.bar-slide {
    background: linear-gradient(180deg, var(--success-color), #065f46);
}

/* Savings Arrow */
.comparison-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.arrow-line {
    width: 2px;
    height: 40px;
    background: var(--border-color);
    position: relative;
}

.arrow-line::after {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--success-color);
}

.savings-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: rgba(52, 211, 153, 0.1);
    border: 2px solid var(--success-color);
    border-radius: 12px;
    margin-top: 15px;
}

.savings-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.savings-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-color);
}

.savings-percent {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--success-color);
    opacity: 0.8;
}

/* Data Loss Section */
.result-data-loss {
    border-top: 4px solid var(--warning-color);
}

.data-loss-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.data-loss-item {
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.data-loss-item.current {
    border-color: rgba(248, 113, 113, 0.3);
}

.data-loss-item.slide {
    border-color: rgba(52, 211, 153, 0.3);
}

.data-loss-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.data-loss-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.data-loss-item.current .data-loss-value {
    color: var(--error-color);
}

.data-loss-value.good {
    color: var(--success-color);
}

.data-loss-detail {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* HIPAA Callout */
.result-hipaa {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-left: 4px solid var(--warning-color);
}

.hipaa-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.hipaa-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--warning-color);
    margin-bottom: 8px;
}

.hipaa-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.hipaa-content strong {
    color: var(--text-primary);
}

/* CTA Section */
.result-cta {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.05));
    border: 2px solid var(--accent-primary);
}

.cta-content {
    text-align: center;
}

.cta-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

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

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Footer */
.calculator-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}

.calculator-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 5px 0;
}

.calculator-footer strong {
    color: var(--accent-primary);
}

/* Calculator Responsive */
@media (max-width: 1200px) {
    .calculator-main {
        grid-template-columns: 1fr;
    }
    
    .calculator-inputs {
        order: 1;
    }
    
    .calculator-results {
        order: 2;
    }
}

@media (max-width: 768px) {
    .calculator-container {
        padding: 10px;
    }
    
    .calculator-header .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .preset-buttons {
        grid-template-columns: 1fr;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .input-row-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
    }
    
    .comparison-arrow {
        flex-direction: row;
        padding: 15px 0;
    }
    
    .arrow-line {
        width: 40px;
        height: 2px;
    }
    
    .data-loss-comparison {
        grid-template-columns: 1fr;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 12px;
    }
    
    .result-value-large .animated-number {
        font-size: 2.5rem;
    }
}

/* Total Downtime Cost Card */
.result-total {
    border-top: 4px solid var(--error-color);
}

.result-danger .animated-number {
    color: var(--error-color);
}

/* The Pitch Section */
.result-pitch {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.05));
    border: 2px solid var(--accent-primary);
}

.pitch-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.pitch-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.pitch-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.pitch-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Print-only elements (hidden on screen) */
.print-only {
    display: none;
}

/* Print Styles */
@media print {
    .print-only {
        display: block !important;
    }
    
    .report-print-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 2px solid #333;
    }
    
    .report-print-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0 0 8px 0;
        color: #111;
    }
    
    .report-print-date {
        font-size: 0.9rem;
        color: #444;
        margin: 0;
    }
    
    .executive-summary {
        margin-bottom: 24px;
        padding: 16px;
        background: #f5f5f5;
        border: 1px solid #ccc;
        border-radius: 6px;
    }
    
    .executive-summary-title {
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0 0 10px 0;
        color: #111;
    }
    
    .executive-summary-list {
        margin: 0;
        padding-left: 20px;
        font-size: 0.95rem;
        color: #333;
        line-height: 1.8;
    }
    
    .executive-summary-list strong {
        color: #111;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .calculator-container {
        max-width: none;
        padding: 0;
    }
    
    .calculator-header {
        background: none;
        border: none;
        box-shadow: none;
    }
    
    .back-link,
    .btn-print,
    .btn-cta,
    .result-cta {
        display: none;
    }
    
    .input-section,
    .result-card,
    .stats-callout {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }
    
    .assumptions-line {
        border-top-color: #ccc;
        color: #333;
    }
    
    .assumptions-label {
        color: #222;
    }
    
    .calculator-main {
        display: block;
    }
    
    .calculator-inputs,
    .calculator-results {
        margin-bottom: 20px;
    }
}
