/* Strategic Report v2 - Dynamic Styles */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    --accent-gold: #f5c518;
    --accent-green: #4ade80;
    --accent-red: #ef4444;
    --accent-yellow: #fbbf24;
    --accent-blue: #3b82f6;
    --border-color: #2a2a3a;
    --sidebar-width: 280px;
    --inspector-width: 260px;
    --header-height: 50px;
    --footer-height: 40px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-areas:
        "header header header"
        "sidebar main inspector"
        "footer footer footer";
    grid-template-columns: var(--sidebar-width) 1fr var(--inspector-width);
    grid-template-rows: var(--header-height) 1fr var(--footer-height);
}

/* Header */
.header {
    grid-area: header;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

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

.logo {
    height: 28px;
}

.header-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

/* Data Classification Badge */
.header-classification {
    display: flex;
    align-items: center;
}

.classification-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: 4px;
    text-transform: uppercase;
    animation: classification-pulse 3s ease-in-out infinite;
}

.classification-badge.confidential {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.25) 100%);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.classification-badge.internal {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.25) 100%);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.classification-badge.public {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(74, 222, 128, 0.25) 100%);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}

@keyframes classification-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Header Controls Container */
.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Scenario Selector Pills */
.scenario-selector {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.scenario-pill {
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

/* US-011: Inactive header buttons - subtle outline, dimmed text */
.scenario-pill:not(.active) {
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.scenario-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

/* US-011: Active header buttons - scenario-specific gold/blue/purple styling */
.scenario-pill.active {
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}

.scenario-pill[data-scenario="alt"].active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.scenario-pill[data-scenario="visionary"].active {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    border-color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    animation: visionary-glow 2s ease-in-out infinite;
}

@keyframes visionary-glow {
    0%, 100% { box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 4px 16px rgba(139, 92, 246, 0.6); }
}

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-secondary);
}

.org-logos {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.org-logo {
    height: 40px;
    background: var(--bg-tertiary);
    padding: 8px;
    border-radius: 8px;
}

.org-logo-primary {
    height: 40px;
    background: transparent;
    padding: 4px;
    border-radius: 8px;
    object-fit: contain;
}

.org-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.report-title {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Navigation */
.nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.nav-group {
    margin-bottom: 8px;
}

.nav-group-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    padding: 12px 20px 6px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 24px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding-left: 28px;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(245, 197, 24, 0.15) 0%, transparent 100%);
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
    font-weight: 500;
}

/* Active Arrow Indicator with X-axis animation */
.nav-item::before {
    content: '';
    position: absolute;
    left: 8px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid var(--accent-gold);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active::before {
    opacity: 1;
    transform: translateX(0);
}

.nav-item:hover::before {
    opacity: 0.5;
    transform: translateX(0);
}

.nav-item.active:hover::before {
    opacity: 1;
}

/* Nav text with slide animation */
.nav-item-text {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover .nav-item-text,
.nav-item.active .nav-item-text {
    transform: translateX(4px);
}

/* Nav Subsections */
.nav-item-wrapper {
    position: relative;
}

.nav-item.has-subsections {
    cursor: pointer;
}

.nav-expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 10px;
    margin-right: 6px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.nav-item.expanded .nav-expand-icon {
    transform: rotate(90deg);
}

.nav-subsections {
    max-height: 0;
    overflow: hidden;
    background: rgba(10, 10, 15, 0.6);
    border-left: 1px solid var(--border-color);
    margin-left: 30px;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    opacity: 0;
}

.nav-subsections.expanded {
    max-height: 500px;
    opacity: 1;
}

.nav-subsection {
    padding: 8px 15px 8px 16px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-subsection::before {
    content: '→';
    position: absolute;
    left: 4px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--accent-gold);
    font-size: 10px;
}

.nav-subsection:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left-color: var(--accent-gold);
    padding-left: 22px;
}

.nav-subsection:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.nav-subsection.active {
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
    background: rgba(245, 197, 24, 0.1);
}

/* Main Content */
.main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Main doesn't scroll - content-wrapper does */
}

.breadcrumb {
    padding: 10px 30px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-primary);
}

.breadcrumb .separator {
    margin: 0 8px;
}

.content-wrapper {
    flex: 1;
    padding: 30px;
    padding-bottom: 10px; /* Reduced padding since pagination is separate */
    overflow-y: auto; /* This is now the scroll container */
    overflow-x: hidden;
}

.section-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-shrink: 0; /* Don't shrink - stay at bottom */
    z-index: 100; /* High z-index to stay above content */
}

.nav-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.section-indicator {
    text-align: center;
}

.section-indicator #section-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
}

.section-indicator #section-counter {
    font-size: 11px;
    color: var(--text-muted);
}

/* Content */
.content {
    max-width: 900px;
}

.content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
}

.content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 20px;
    font-family: 'JetBrains Mono', monospace;
}

.content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 15px;
}

.content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 20px 0 10px;
}

.content p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.content .subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.kpi-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.kpi-value {
    font-size: x-large;
    font-weight: 200;
    color: var(--accent-gold);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.5px;
}

.kpi-value sup {
    font-size: 12px;
    color: var(--text-muted);
}

.kpi-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* Callout Boxes */
.callout {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.callout.critical {
    border-left: 4px solid var(--accent-red);
}

.callout.outcome {
    border-left: 4px solid var(--accent-green);
}

.callout-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.callout-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.callout.critical .callout-badge {
    background: var(--accent-red);
    color: white;
}

.callout.outcome .callout-badge {
    background: var(--accent-green);
    color: var(--bg-primary);
}

.callout-title {
    font-weight: 600;
}

/* Lists */
.content ul {
    margin: 15px 0 15px 25px;
}

.content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* Inspector */
.inspector {
    grid-area: inspector;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s;
}

.inspector.collapsed {
    width: 40px;
}

.inspector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-secondary);
}

.inspector-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
}

.collapse-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
}

.inspector-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.inspector-section {
    margin-bottom: 20px;
}

.inspector-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.inspector-tag {
    display: inline-block;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    margin: 2px;
    font-size: 11px;
    color: var(--text-secondary);
    text-decoration: none;
}

.inspector-tag:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.inspector-tag.policy {
    border-left: 3px solid var(--accent-yellow);
}

.inspector-tag.compliance {
    border-left: 3px solid var(--accent-blue);
}

/* Compliance Bars */
.compliance-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
}

.compliance-id {
    width: 60px;
    color: var(--text-secondary);
}

.compliance-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin: 0 10px;
    overflow: hidden;
}

.compliance-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

.compliance-fill.high { background: var(--accent-green); }
.compliance-fill.medium { background: var(--accent-yellow); }
.compliance-fill.low { background: var(--accent-red); }

.compliance-value {
    width: 35px;
    text-align: right;
    color: var(--text-muted);
}

/* Policy Discovery Section */
.policy-gap {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 4px;
    font-size: 11px;
}

.policy-gap.complete {
    background: rgba(74, 222, 128, 0.1);
}

.policy-gap-name {
    flex: 1;
    color: var(--text-secondary);
}

.policy-gap-bar {
    width: 50px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin: 0 8px;
    overflow: hidden;
}

.policy-gap-fill {
    height: 100%;
    border-radius: 2px;
}

.policy-gap-value {
    width: 30px;
    text-align: right;
    font-size: 10px;
}

.policy-link {
    display: block;
    padding: 4px 0;
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.policy-link:hover {
    color: var(--accent-gold);
}

.search-link {
    display: block;
    margin-top: 10px;
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: none;
}

.search-link:hover {
    color: var(--accent-gold);
}

/* Footer */
.footer {
    grid-area: footer;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 12px;
}

.footer-author {
    color: var(--text-secondary);
}

.author-name {
    color: var(--accent-gold);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.version {
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Loading States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
}

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

.data-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.data-table td {
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: var(--bg-secondary);
}

/* Phase Timeline */
.phase-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.phase-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-gold);
}

.phase-title {
    font-size: 18px;
    font-weight: 600;
    margin: 5px 0;
}

.phase-duration {
    font-size: 12px;
    color: var(--text-muted);
}

.phase-priority {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.phase-priority.critical {
    background: var(--accent-red);
    color: white;
}

/* Responsive */
@media (max-width: 1200px) {
    body {
        grid-template-columns: var(--sidebar-width) 1fr;
        grid-template-areas:
            "header header"
            "sidebar main"
            "footer footer";
    }
    .inspector {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "main"
            "footer";
    }
    .sidebar {
        display: none;
    }
}

/* ============================================
   TOOLTIPS - Highest z-index layer
   ============================================ */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before,
.tooltip::after {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10000;
    pointer-events: none;
}

.tooltip::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--accent-gold);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-primary);
    white-space: normal;
    max-width: 280px;
    min-width: 150px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

.tooltip::after {
    content: '';
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--accent-gold);
}

.tooltip:hover::before,
.tooltip:hover::after {
    visibility: visible;
    opacity: 1;
}

/* Tooltip below variant */
.tooltip.tooltip-below::before {
    bottom: auto;
    top: calc(100% + 8px);
}

.tooltip.tooltip-below::after {
    bottom: auto;
    top: calc(100% + 2px);
    border-top-color: transparent;
    border-bottom-color: var(--accent-gold);
}

/* ============================================
   MINI NAV - Abridged < > at top
   ============================================ */
.mini-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: sticky;
    top: 37px; /* Below breadcrumb */
    z-index: 9;
}

.mini-nav-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-nav-btn:hover:not(:disabled) {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.mini-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mini-nav-indicator {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 80px;
    text-align: center;
}

/* Section navigation styles are in main section above */

/* ============================================
   WORK ORDER CTA BAR - Sticky contextual CTA
   ============================================ */
.work-order-cta-bar {
    position: sticky;
    top: 79px; /* Below mini-nav (37px breadcrumb + 42px mini-nav) */
    z-index: 8;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.08));
    border-bottom: 1px solid var(--accent-gold);
    padding: 10px 24px;
    animation: ctaSlideIn 0.3s ease-out;
}

@keyframes ctaSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-bar-icon {
    font-size: 18px;
    color: var(--accent-gold);
}

.cta-bar-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.cta-bar-btn {
    background: linear-gradient(135deg, var(--accent-gold), #c9a227);
    color: var(--bg-primary);
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.cta-bar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

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

.cta-arrow {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.cta-bar-btn:hover .cta-arrow {
    transform: translateX(3px);
}

/* ============================================
   STICKY TABLE HEADERS & COLUMNS
   ============================================ */
.data-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 13px;
}

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
}

.data-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid var(--accent-gold);
    position: sticky;
    top: 0;
}

.data-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 101;
    background: var(--bg-tertiary);
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.data-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-secondary);
    z-index: 50;
}

.data-table tr:hover td {
    background: rgba(245, 197, 24, 0.05);
}

.data-table tr:hover td:first-child {
    background: rgba(245, 197, 24, 0.1);
}

/* ============================================
   INSPECTOR INTERACTIVITY
   ============================================ */
.inspector-tag {
    display: inline-block;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    margin: 2px;
    font-size: 11px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.inspector-tag:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
    background: rgba(245, 197, 24, 0.1);
}

.inspector-tag.expanded {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

/* Inspector tag tooltip */
.inspector-tag[data-definition]::before {
    content: attr(data-definition);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--accent-gold);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-primary);
    white-space: normal;
    width: 220px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10001;
    pointer-events: none;
}

.inspector-tag[data-definition]:hover::before {
    visibility: visible;
    opacity: 1;
}

/* Expanded detail panel */
.inspector-detail-panel {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin: 8px 0;
    padding: 12px;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inspector-detail-panel h4 {
    font-size: 12px;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.inspector-detail-panel ul {
    margin: 0;
    padding-left: 16px;
}

.inspector-detail-panel li {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    cursor: help;
}

.inspector-detail-panel li:hover {
    color: var(--text-primary);
}

.inspector-detail-close {
    float: right;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.inspector-detail-close:hover {
    color: var(--accent-gold);
}

/* Compliance bar tooltips */
.compliance-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.compliance-item:hover {
    background: rgba(245, 197, 24, 0.1);
}

.compliance-item[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 10px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--accent-gold);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-primary);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10001;
}

/* Policy gap row interactivity */
.policy-gap {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.policy-gap:hover {
    background: rgba(251, 191, 36, 0.2);
    transform: translateX(2px);
}

.policy-gap.complete {
    background: rgba(74, 222, 128, 0.1);
}

.policy-gap.complete:hover {
    background: rgba(74, 222, 128, 0.2);
}

/* ============================================
   KPI CARD TOOLTIPS
   ============================================ */
.kpi-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    position: relative;
    cursor: default;
}

.kpi-card[data-tooltip] {
    cursor: help;
}

.kpi-card[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--accent-gold);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-primary);
    white-space: normal;
    max-width: 250px;
    min-width: 180px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10000;
}

.kpi-card[data-tooltip]:hover::before {
    visibility: visible;
    opacity: 1;
}

/* ============================================
   CALLOUT TOOLTIPS
   ============================================ */
.callout-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    cursor: help;
    position: relative;
}

.callout-badge[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--accent-gold);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-primary);
    white-space: normal;
    width: 200px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10000;
    letter-spacing: 0;
}

.callout-badge[data-tooltip]:hover::before {
    visibility: visible;
    opacity: 1;
}

/* Signature Block Styles */
.signature-block {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.signature-item {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px dashed var(--border-color);
}

.signature-item p {
    margin-bottom: 10px;
}

.signature-item p:last-child {
    margin-bottom: 0;
}

/* Total Row in Tables */
.data-table .total-row {
    background: var(--bg-tertiary);
    border-top: 2px solid var(--accent-gold);
}

.data-table .total-row td {
    font-weight: 600;
    color: var(--accent-gold);
    padding: 12px 15px;
}

/* Blockquote styling */
blockquote {
    border-left: 3px solid var(--accent-gold);
    padding: 15px 20px;
    margin: 20px 0;
    background: var(--bg-tertiary);
    border-radius: 0 6px 6px 0;
    color: var(--text-secondary);
}

blockquote em {
    font-style: italic;
    color: var(--text-primary);
}

/* Badge status colors */
.badge.success {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-green);
}

.badge.stable {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.badge.improving {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-green);
}

.badge.at-risk {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

/* Diagram Container Styles */
.diagram-container {
    margin: 24px 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.diagram-header {
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.diagram-header h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.diagram-description {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.diagram-embed {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.diagram-embed svg {
    width: 100%;
    height: auto;
    max-height: 450px;
    border-radius: 8px;
}

.diagram-loading {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

.diagram-error {
    color: var(--accent-red);
    font-size: 14px;
    font-style: italic;
}

/* ROI Analysis Sections */
.roi-subsection {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.roi-metric-detail {
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.roi-metric-detail h3 {
    color: var(--accent-gold);
    margin-bottom: 16px;
    font-size: 16px;
}

.roi-metric-detail p {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.roi-note {
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.roi-recommendation {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
}

.roi-recommendation h4 {
    color: var(--accent-green);
    margin-bottom: 8px;
}

.roi-takeaway {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-gold);
    font-size: 13px;
}

.roi-summary-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* D3 Chart Containers */
.d3-chart-container {
    margin: 20px 0;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.d3-chart-container svg {
    display: block;
    margin: 0 auto;
}

.d3-chart-container svg text {
    font-family: var(--font-mono);
}

/* Benefits Grid for Intangibles */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.benefit-card {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.benefit-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.benefit-card h4 {
    color: var(--accent-blue);
    font-size: 13px;
    margin-bottom: 8px;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* D3 Axis Styling */
.d3-chart-container .tick line {
    stroke: #374151;
}

.d3-chart-container .domain {
    stroke: #374151;
}

/* Glassmorphism Modal */
.glass-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.glass-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.glass-modal {
    background: rgba(31, 41, 55, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.glass-modal-overlay.active .glass-modal {
    transform: translateY(0) scale(1);
}

.glass-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0;
}

.glass-modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.glass-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}

/* Modal Metrics Grid */
.modal-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.modal-metric-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.modal-metric-value {
    font-size: 24px;
    font-weight: 300;
    color: var(--accent-green);
    font-family: var(--font-mono);
}

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

.modal-metric-value.critical {
    color: var(--accent-red);
}

.modal-metric-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Data Sources */
.modal-sources {
    margin-bottom: 24px;
}

.modal-sources h4 {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    font-size: 11px;
    color: var(--accent-blue);
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Time-gated Results */
.modal-time-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.time-filter-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-filter-btn:hover,
.time-filter-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Results Table in Modal */
.modal-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.modal-results-table th {
    text-align: left;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-results-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

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

/* Modal Pagination */
.modal-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 11px;
    color: var(--text-muted);
    padding: 0 10px;
}

/* Glass effect for other cards */
.benefit-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.roi-metric-detail {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   E-SIGNATURE WORK ORDER SECTION
   ============================================ */
.esignature-work-order {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(16, 24, 40, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.esignature-work-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-yellow) 50%, var(--accent-gold) 100%);
}

.esignature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.esignature-title-block h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 8px 0;
    font-family: 'JetBrains Mono', monospace;
}

.esignature-title-block p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
}

.work-order-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.work-order-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.work-order-status {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.work-order-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-yellow);
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.work-order-status.signed {
    background: rgba(74, 222, 128, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(74, 222, 128, 0.4);
}

/* Signatory Cards */
.esignature-signatories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.signatory-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.signatory-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.signatory-card.signed {
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.05);
}

.signatory-role {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

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

.signatory-title {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.signatory-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.signatory-status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.signatory-status-icon.pending {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-yellow);
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.signatory-status-icon.signed {
    background: rgba(74, 222, 128, 0.3);
    color: var(--accent-green);
}

.signatory-signature {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.signature-placeholder {
    font-family: 'Brush Script MT', cursive;
    font-size: 24px;
    color: var(--text-muted);
    font-style: italic;
}

.signature-actual {
    font-family: 'Brush Script MT', cursive;
    font-size: 28px;
    color: var(--accent-gold);
}

.signature-timestamp {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Terms Checklist */
.esignature-terms {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 28px;
}

.esignature-terms h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.term-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-checkbox:hover {
    color: var(--text-primary);
}

.term-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.term-checkbox input[type="checkbox"]:checked {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.term-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: bold;
}

.term-checkbox span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* CTA Button */
.esignature-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

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

.cta-button.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button.secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.cta-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.cta-icon {
    font-size: 20px;
}

/* Document Hash */
.document-hash {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 10px;
    color: var(--text-muted);
}

.document-hash code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

/* E-Signature Modal */
.esignature-modal-content {
    padding: 20px 0;
}

.esignature-modal-content h4 {
    font-size: 14px;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.signature-pad-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.signature-pad {
    width: 100%;
    height: 120px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
    background: white;
    position: relative;
}

.signature-pad-placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
}

.signature-type-input {
    width: 100%;
    padding: 16px;
    font-family: 'Brush Script MT', cursive;
    font-size: 28px;
    text-align: center;
    border: none;
    background: transparent;
    color: #1a1a25;
    outline: none;
}

.signature-type-input::placeholder {
    color: #999;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.signature-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.signature-action-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.signature-action-btn.clear {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.signature-action-btn.confirm {
    background: var(--accent-gold);
    border: none;
    color: var(--bg-primary);
    font-weight: 600;
}

/* ========================================
   ENHANCED E-SIGNATURE MODAL STYLES
   ======================================== */

.esignature-modal-enhanced {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

/* Party Headers */
.esig-parties-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.1) 0%, rgba(74, 222, 128, 0.05) 100%);
    border-radius: 12px;
    margin-bottom: 24px;
}

.esig-party {
    display: flex;
    align-items: center;
    gap: 12px;
}

.esig-party.provider {
    flex-direction: row-reverse;
}

.esig-party-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.esig-party-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.esig-logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.esig-party-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.esig-party-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.esig-party-role {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.esig-party-connector {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    padding: 0 20px;
}

.connector-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.4), transparent);
}

.connector-icon {
    color: var(--accent-gold);
    font-size: 18px;
    opacity: 0.6;
}

/* Section Titles */
.esig-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* Representatives Section */
.esig-representatives {
    margin-bottom: 24px;
}

.esig-rep-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.esig-rep-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
}

.esig-rep-card:hover {
    border-color: rgba(245, 197, 24, 0.3);
}

.esig-rep-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.esig-rep-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e6ac00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.esig-rep-avatar.provider {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.esig-rep-avatar.sub {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    width: 34px;
    height: 34px;
    font-size: 12px;
}

.esig-rep-card.sub-signatory {
    opacity: 0.85;
}

.esig-rep-card.sub-signatory .esig-rep-header {
    margin-bottom: 8px;
}

.esig-rep-role-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

/* Content Anchor for Navigation */
.content-anchor {
    scroll-margin-top: 20px;
}

/* Sub-Signatory Tag in Main Page */
.signature-item.sub-signatory {
    opacity: 0.8;
    border-left: 2px solid #64748b;
    padding-left: 12px;
}

.sub-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.esig-rep-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.esig-rep-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.esig-rep-title {
    font-size: 11px;
    color: var(--text-muted);
}

.esig-rep-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.esig-rep-status.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.esig-rep-status.pending .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    animation: pulse 1.5s infinite;
}

.esig-rep-status.signed {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.esig-rep-status.signed .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
}

.esig-rep-signature {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.signature-placeholder {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

/* Signature Section */
.esig-signature-section {
    margin-bottom: 24px;
}

.esig-mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.esig-mode-tab {
    flex: 1;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.esig-mode-tab:hover {
    border-color: rgba(245, 197, 24, 0.3);
    color: var(--text-primary);
}

.esig-mode-tab.active {
    background: rgba(245, 197, 24, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.tab-icon {
    font-size: 16px;
}

/* Signature Panels */
.esig-panel {
    display: none;
}

.esig-panel.active {
    display: block;
}

.esig-type-input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    color: #1a1a25;
    outline: none;
    transition: border-color 0.2s ease;
}

.esig-type-input:focus {
    border-color: var(--accent-gold);
}

.esig-type-input::placeholder {
    color: #999;
}

.esig-type-preview {
    margin-top: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    font-size: 12px;
    color: var(--text-muted);
}

.signature-display {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 36px;
    color: var(--accent-gold);
    text-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}

/* Canvas Container */
.esig-canvas-container {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 4px;
}

#signature-canvas {
    display: block;
    width: 100%;
    height: 150px;
    border-radius: 6px;
    cursor: crosshair;
    touch-action: none;
}

.canvas-instructions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #999;
    pointer-events: none;
}

.esig-clear-canvas {
    margin-top: 8px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.esig-clear-canvas:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Terms Section */
.esig-terms-section {
    margin-bottom: 24px;
}

.esig-terms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.esig-term-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.esig-term-item:hover {
    border-color: rgba(245, 197, 24, 0.2);
}

.esig-term-item input[type="checkbox"] {
    display: none;
}

.esig-term-item .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.esig-term-item input:checked + .checkmark {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.esig-term-item input:checked + .checkmark::after {
    content: '✓';
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 700;
}

.term-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Actions */
.esig-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.esig-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.esig-btn.cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.esig-btn.cancel:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
}

.esig-btn.confirm {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e6ac00 100%);
    border: none;
    color: var(--bg-primary);
}

.esig-btn.confirm:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.4);
}

.esig-btn.confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 16px;
}

/* Legal Notice */
.esig-legal-notice {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

/* Signature Display Styles */
.signature-typed {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 28px;
    color: var(--accent-gold);
}

.signature-drawn-img {
    max-height: 50px;
    width: auto;
}

/* Pricing Tier Section */
.esig-pricing-section {
    margin-bottom: 24px;
}

.esig-pricing-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.esig-tier-option {
    position: relative;
    cursor: pointer;
}

.esig-tier-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.esig-tier-option .tier-content {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 12px;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.esig-tier-option:hover .tier-content {
    border-color: rgba(245, 197, 24, 0.3);
    background: rgba(245, 197, 24, 0.05);
}

.esig-tier-option.selected .tier-content,
.esig-tier-option input:checked + .tier-content {
    border-color: var(--accent-gold);
    background: rgba(245, 197, 24, 0.1);
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.15);
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
}

.tier-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.tier-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 6px;
    border-radius: 4px;
}

.tier-badge.best-value {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e6ac00 100%);
    color: var(--bg-primary);
}

.tier-badge.popular {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tier-price {
    margin-bottom: 8px;
}

.tier-price .price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.tier-price .price-period {
    font-size: 12px;
    color: var(--text-muted);
}

.tier-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tier-savings {
    font-size: 11px;
    font-weight: 600;
    color: #4ade80;
}

.tier-savings.no-discount {
    color: var(--text-muted);
}

.tier-total {
    font-size: 10px;
    color: var(--text-muted);
}

.tier-savings-badge {
    margin-top: auto;
    padding-top: 12px;
}

.tier-savings-badge .savings-amount {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

/* Price Summary */
.esig-price-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row .strikethrough {
    text-decoration: line-through;
    color: var(--text-muted);
}

.summary-row.discount {
    color: #4ade80;
}

.summary-row.discount .discount-amount {
    font-weight: 600;
}

.summary-row.total {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.summary-row.total .total-amount {
    font-family: var(--font-mono);
    color: var(--accent-gold);
    font-size: 18px;
}

.summary-row.hint {
    color: var(--text-muted);
    font-size: 11px;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .esig-parties-header {
        flex-direction: column;
        gap: 16px;
    }

    .esig-pricing-tiers {
        grid-template-columns: repeat(2, 1fr);
    }

    .esig-party.provider {
        flex-direction: row;
    }

    .esig-party-connector {
        transform: rotate(90deg);
        padding: 0;
        width: 60px;
    }

    .esig-rep-cards {
        grid-template-columns: 1fr;
    }

    .esig-mode-tabs {
        flex-direction: column;
    }
}

/* ============================================
   Existing Services Section
   ============================================ */

.existing-services-section {
    margin-bottom: 40px;
}

.provider-badge {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.current-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.current-service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.current-service-card .service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.current-service-card .service-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.current-service-card .coverage-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.current-service-card .service-scope {
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.current-service-card .service-details {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.incident-coverage-block {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.coverage-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.coverage-level {
    font-size: 14px;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
}

.coverage-level.limited {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.coverage-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.incident-coverage-block p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.limitations-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 16px;
}

.limitations-list strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ef4444;
    margin-bottom: 10px;
}

.limitations-list ul {
    margin: 0;
    padding-left: 20px;
}

.limitations-list li {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.limitations-list li:last-child {
    margin-bottom: 0;
}

.upgrade-rationale {
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(34, 197, 94, 0.08);
    border-left: 3px solid #22c55e;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    margin-top: 20px;
}

.upgrade-rationale strong {
    color: #22c55e;
}

/* ============================================
   Subscription Tiers / Pill Tabs
   ============================================ */

.subscription-tiers-section {
    margin-bottom: 40px;
}

.tier-selector {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.tier-pills {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tier-pill {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tier-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tier-pill.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.tier-pill.recommended {
    border: 1px solid var(--accent-primary);
}

.tier-pill.recommended.active {
    border-color: transparent;
}

.discount-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.tier-pill.active .discount-badge {
    background: rgba(255, 255, 255, 0.25);
}

.recommended-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    background: #f59e0b;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.tier-details {
    position: relative;
}

.tier-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tier-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tier-pricing {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price-main .currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
}

.price-main .amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.price-main .period {
    font-size: 16px;
    color: var(--text-secondary);
}

.price-comparison {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.original-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.savings-amount {
    font-size: 14px;
    font-weight: 600;
    color: #22c55e;
}

.tier-billing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.billing-detail {
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.billing-detail .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.billing-detail .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.billing-detail .value.savings {
    color: #22c55e;
}

.billing-detail.highlight {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tier-notes {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    font-style: italic;
}

/* Responsive Tier Pills */
@media (max-width: 768px) {
    .tier-pills {
        flex-direction: column;
    }

    .tier-pill {
        flex-direction: row;
        justify-content: space-between;
    }

    .recommended-tag {
        position: static;
        margin-left: 8px;
    }

    .price-main .amount {
        font-size: 36px;
    }

    .tier-billing-info {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SCENARIO-SPECIFIC CONTENT STYLES
   ======================================== */

/* Scenario Content Container */
.scenario-content {
    margin-top: 40px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.scenario-content.scenario-primary {
    border-left: 4px solid var(--accent-gold);
}

.scenario-content.scenario-alt {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.scenario-header h2 {
    margin: 0;
    font-size: 20px;
}

.scenario-badge {
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    animation: badge-pulse 2s ease-in-out infinite;
}

.scenario-badge.recommended {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.scenario-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

/* Staffing Model Table */
.staffing-model {
    margin-bottom: 30px;
}

.staffing-model h3 {
    margin-bottom: 8px;
}

.staffing-model .subtitle {
    color: #3b82f6;
    font-weight: 500;
    margin-bottom: 12px;
}

.staffing-model .rationale {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.staffing-table .calculation {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.staffing-table .cost {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

.staffing-table .cost.total {
    color: var(--accent-gold);
    font-size: 16px;
}

.staffing-table .scope {
    font-size: 12px;
    color: var(--text-secondary);
}

.staffing-model .context {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Savings Analysis */
.savings-analysis {
    margin-bottom: 30px;
}

.comparison-table td.savings {
    color: #22c55e;
    font-weight: 600;
}

.comparison-table td.added {
    color: #f59e0b;
    font-weight: 600;
}

.comparison-table .totals-row {
    background: rgba(0, 0, 0, 0.3);
}

.comparison-table .totals-row td {
    font-weight: 600;
    padding-top: 12px;
    padding-bottom: 12px;
}

.comparison-table .net-savings {
    color: #22c55e;
    font-size: 16px;
    font-weight: 700;
}

/* Triage Model */
.triage-model {
    margin-bottom: 30px;
}

.triage-table .tier-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.tier-badge.tier-tier-1 {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.tier-badge.tier-tier-2 {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.tier-badge.tier-tier-3 {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.triage-benefits {
    margin-top: 20px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.triage-benefits h4 {
    margin: 0 0 12px 0;
    color: #22c55e;
    font-size: 14px;
}

.triage-benefits ul {
    margin: 0;
    padding-left: 20px;
}

.triage-benefits li {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Risk Mitigation */
.risk-mitigation {
    margin-bottom: 20px;
}

.risk-table .risk-item {
    font-weight: 500;
}

.risk-table .residual-low {
    color: #22c55e;
    font-weight: 600;
}

.risk-table .residual-minimal {
    color: #22c55e;
    font-weight: 600;
}

.risk-table .residual-medium {
    color: #f59e0b;
    font-weight: 600;
}

.risk-table .residual-high {
    color: #ef4444;
    font-weight: 600;
}

/* Responsive Scenario Selector */
@media (max-width: 768px) {
    .scenario-selector {
        order: -1;
    }

    .header-controls {
        flex-wrap: wrap;
        gap: 8px;
    }

    .scenario-pill {
        padding: 4px 12px;
        font-size: 10px;
    }

    .scenario-content {
        padding: 20px;
    }
}

/* ========================================
   INLINE SCENARIO TOGGLE (Cost Summary)
   ======================================== */

.inline-scenario-toggle {
    margin: 32px 0 8px 0;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.inline-toggle-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.inline-toggle-pills {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.inline-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'JetBrains Mono', monospace;
    position: relative;
}

.inline-pill .pill-label {
    font-size: 12px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.inline-pill .pill-cost {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.inline-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.inline-pill:hover .pill-cost {
    color: var(--text-secondary);
}

/* Active states per scenario */
.inline-pill[data-scenario="primary"].active {
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    color: var(--bg-primary);
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(245, 197, 24, 0.3);
}

.inline-pill[data-scenario="primary"].active .pill-cost {
    color: rgba(10, 10, 15, 0.7);
}

.inline-pill[data-scenario="alt"].active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.inline-pill[data-scenario="alt"].active .pill-cost {
    color: rgba(255, 255, 255, 0.7);
}

.inline-pill[data-scenario="visionary"].active {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4);
    animation: visionary-glow 2s ease-in-out infinite;
}

.inline-pill[data-scenario="visionary"].active .pill-cost {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   SCENARIO TRANSITION ANIMATIONS
   ======================================== */

.scenario-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scenario-fade-out {
    opacity: 0;
    transform: translateY(8px);
}

.scenario-fade-in {
    animation: scenarioFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes scenarioFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated value pop for cost/savings numbers */
.scenario-animate-value {
    transition: color 0.3s ease;
}

.scenario-animate-value.value-pop {
    animation: valuePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes valuePop {
    0% {
        opacity: 0.3;
        transform: scale(0.85);
    }
    60% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive inline toggle */
@media (max-width: 768px) {
    .inline-scenario-toggle {
        padding: 16px;
    }

    .inline-toggle-pills {
        flex-direction: column;
    }

    .inline-pill {
        flex-direction: row;
        justify-content: space-between;
        padding: 8px 14px;
    }
}

/* ========================================
   VISIONARY SCENARIO STYLES
   ======================================== */

.scenario-content.scenario-visionary {
    border-left: 4px solid #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.scenario-badge.visionary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    animation: badge-pulse 2s ease-in-out infinite;
}

/* ========================================
   US-011: SCENARIO CONTEXT BANNER
   Global scenario state indicator for proposal sections
   ======================================== */

.scenario-context-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0 24px 0;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.scenario-context-banner.scenario-banner-transitioning {
    opacity: 0;
    transform: translateY(-4px);
}

.scenario-context-banner.scenario-banner-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scenario-specific banner border colors */
.scenario-context-banner:has(.scenario-banner-primary) {
    border-color: rgba(245, 197, 24, 0.3);
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.05) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.scenario-context-banner:has(.scenario-banner-alt) {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.scenario-context-banner:has(.scenario-banner-visionary) {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.scenario-banner-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.scenario-banner-primary {
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    color: var(--bg-primary);
}

.scenario-banner-alt {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.scenario-banner-visionary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
}

.scenario-banner-icon {
    font-size: 12px;
}

.scenario-banner-label {
    font-size: 11px;
}

.scenario-banner-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.scenario-banner-summary {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.3;
}

.scenario-banner-emphasis {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.3;
}

/* Table transition effect on scenario change */
.scenario-table-transition {
    animation: tableFlash 0.3s ease;
}

@keyframes tableFlash {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Body-level scenario indicator for CSS conditional styling */
body[data-active-scenario="primary"] .scenario-context-banner {
    border-color: rgba(245, 197, 24, 0.3);
}

body[data-active-scenario="alt"] .scenario-context-banner {
    border-color: rgba(59, 130, 246, 0.3);
}

body[data-active-scenario="visionary"] .scenario-context-banner {
    border-color: rgba(139, 92, 246, 0.3);
}

/* Responsive scenario context banner */
@media (max-width: 768px) {
    .scenario-context-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .scenario-banner-indicator {
        align-self: flex-start;
    }
}

/* SaaS Consolidation Matrix */
.saas-consolidation {
    margin-bottom: 30px;
}

.consolidation-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.consolidation-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.consolidation-card:hover {
    border-color: #8b5cf6;
}

.consolidation-card.eliminate {
    border-left: 3px solid #ef4444;
}

.consolidation-card.consolidate {
    border-left: 3px solid #f59e0b;
}

.consolidation-card.optimize {
    border-left: 3px solid #22c55e;
}

.consolidation-card.retain {
    border-left: 3px solid #3b82f6;
}

.consolidation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.consolidation-card-title {
    font-weight: 600;
    font-size: 14px;
}

.consolidation-action-badge {
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
}

.consolidation-action-badge.eliminate {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.consolidation-action-badge.consolidate {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.consolidation-action-badge.optimize {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.consolidation-action-badge.retain {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.consolidation-card-cost {
    display: flex;
    gap: 16px;
    font-size: 12px;
    margin-bottom: 8px;
}

.consolidation-card-cost .current {
    color: var(--text-muted);
    text-decoration: line-through;
}

.consolidation-card-cost .new {
    color: #22c55e;
    font-weight: 600;
}

.consolidation-card-reason {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Drive Consolidation */
.drive-consolidation {
    margin-bottom: 30px;
}

.drive-consolidation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.drive-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 12px;
}

.drive-item.keep {
    border-color: rgba(34, 197, 94, 0.3);
}

.drive-item.merge {
    border-color: rgba(245, 158, 11, 0.3);
}

.drive-item.archive {
    border-color: rgba(239, 68, 68, 0.3);
    opacity: 0.7;
}

.drive-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.drive-item-action {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drive-item-action.keep { color: #22c55e; }
.drive-item-action.merge { color: #f59e0b; }
.drive-item-action.archive { color: #ef4444; }

/* Unified Framework */
.unified-framework {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.framework-diagram {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.framework-layer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.framework-layer-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    font-size: 18px;
}

.framework-layer-content {
    flex: 1;
}

.framework-layer-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.framework-layer-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Cost Projection Table */
.cost-projection {
    margin-bottom: 30px;
}

.cost-projection-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.cost-projection-card {
    text-align: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.cost-projection-card.savings {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.cost-projection-value {
    font-size: 24px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px;
}

.cost-projection-card.savings .cost-projection-value {
    color: #22c55e;
}

.cost-projection-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* Automation Benefits */
.automation-benefits {
    margin-bottom: 30px;
}

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

.automation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.automation-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    font-size: 14px;
    flex-shrink: 0;
}

.automation-content {
    flex: 1;
}

.automation-title {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
}

.automation-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .cost-projection-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .consolidation-matrix {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SCENARIO INFO ICONS & TOOLTIPS
   ============================================ */

.scenario-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.scenario-info-icon:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: scale(1.1);
}

/* Scenario Hover Tooltip */
.scenario-tooltip {
    position: fixed;
    z-index: 1500;
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid rgba(245, 197, 24, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    text-align: center;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.scenario-tooltip.visible {
    opacity: 1;
}

.scenario-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(245, 197, 24, 0.3);
}

.tooltip-cost {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.tooltip-savings {
    font-size: 12px;
    color: var(--text-muted);
}

/* Scenario Comparison Modal */
.scenario-comparison-modal {
    max-width: 950px;
    width: 95%;
}

.scenario-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.scenario-compare-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.scenario-compare-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.scenario-compare-card.primary {
    border-color: rgba(245, 197, 24, 0.3);
}

.scenario-compare-card.primary:hover {
    background: rgba(245, 197, 24, 0.1);
}

.scenario-compare-card.alt {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.08);
}

.scenario-compare-card.alt::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.scenario-compare-card.visionary {
    border-color: rgba(139, 92, 246, 0.5);
}

.scenario-compare-card.visionary:hover {
    background: rgba(139, 92, 246, 0.1);
}

.scenario-compare-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.scenario-compare-cost {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--text-primary);
}

.scenario-compare-savings {
    font-size: 14px;
    color: var(--accent-green);
    font-weight: 500;
    margin-bottom: 16px;
}

.scenario-compare-savings.baseline {
    color: var(--text-muted);
}

.scenario-compare-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.scenario-compare-features {
    text-align: left;
    font-size: 12px;
    color: var(--text-secondary);
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.scenario-compare-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.scenario-compare-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
}

.scenario-select-btn {
    width: 100%;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scenario-select-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.scenario-compare-card.selected .scenario-select-btn {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

/* ============================================
   SCROLL-BASED ACTIVE NAVIGATION
   ============================================ */

.nav-item.scroll-active {
    background: rgba(245, 197, 24, 0.08) !important;
    border-left: 3px solid var(--accent-gold);
    margin-left: -3px;
}

.nav-item.scroll-active .nav-text {
    color: var(--accent-gold) !important;
    font-weight: 500;
}

.nav-item.scroll-active .nav-arrow {
    color: var(--accent-gold);
}

/* Parent section highlighting when child is active */
.nav-section.has-active-child > .nav-group > .nav-item {
    background: rgba(245, 197, 24, 0.04);
}

/* ============================================
   SPOTIFY WRAPPED-STYLE SLIDESHOW
   ============================================ */

.wrapped-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow: hidden;
    /* Base dark background */
    background: linear-gradient(135deg, #0a0a0f 0%, #0d0d14 50%, #0a0a0f 100%);
}

/* Animated background orbs for glassmorphism depth */
.wrapped-overlay::before,
.wrapped-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    pointer-events: none;
    animation: wrapped-orb-float 25s ease-in-out infinite;
}

.wrapped-overlay::before {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.25) 0%, transparent 70%);
    top: -300px;
    right: -200px;
    animation-delay: 0s;
}

.wrapped-overlay::after {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
    animation-delay: -12s;
}

@keyframes wrapped-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.15); }
    50% { transform: translate(-40px, 60px) scale(0.9); }
    75% { transform: translate(40px, 40px) scale(1.1); }
}

.wrapped-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wrapped-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Individual Slide - Glassmorphism Card */
.wrapped-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(100%);
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
    transform: translate(-50%, -50%) translateX(100%) translate3d(0,0,0);
    /* Glassmorphism */
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Slide inner glow based on theme */
.wrapped-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 24px;
    opacity: 0.6;
    transition: opacity 0.6s ease;
}

.wrapped-slide.active {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0);
}

.wrapped-slide.prev {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(-100%);
}

/* Slide Theme Accents - Inner glow gradients */
.wrapped-slide[data-id="intro"]::before {
    background: radial-gradient(ellipse at top, rgba(245, 197, 24, 0.1) 0%, transparent 50%);
}

.wrapped-slide[data-id="risk"]::before {
    background: radial-gradient(ellipse at top, rgba(239, 68, 68, 0.15) 0%, transparent 50%);
}

.wrapped-slide[data-id="compliance"]::before {
    background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
}

.wrapped-slide[data-id="cost"]::before {
    background: radial-gradient(ellipse at top, rgba(34, 197, 94, 0.12) 0%, transparent 50%);
}

.wrapped-slide[data-id="velocity"]::before {
    background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.12) 0%, transparent 50%);
}

.wrapped-slide[data-id="security"]::before {
    background: radial-gradient(ellipse at top, rgba(20, 184, 166, 0.12) 0%, transparent 50%);
}

.wrapped-slide[data-id="roi"]::before {
    background: radial-gradient(ellipse at top, rgba(245, 197, 24, 0.15) 0%, transparent 50%);
}

.wrapped-slide[data-id="lifecycle"]::before {
    background: radial-gradient(ellipse at top, rgba(212, 165, 55, 0.12) 0%, transparent 50%);
}

.wrapped-slide[data-id="scenario"]::before {
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.12) 0%, transparent 50%);
}

.wrapped-slide[data-id="cta"]::before {
    background: radial-gradient(ellipse at top, rgba(245, 197, 24, 0.1) 0%, transparent 50%);
}

.wrapped-slide[data-id="access-cert"]::before {
    background: radial-gradient(ellipse at top, rgba(212, 165, 55, 0.12) 0%, transparent 50%);
}

/* Wrapped Content */
.wrapped-content {
    max-width: 900px;
    animation: wrapped-fadeIn 0.8s ease forwards;
}

@keyframes wrapped-fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
.wrapped-eyebrow {
    font-size: clamp(12px, 2vw, 16px);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.wrapped-headline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.wrapped-stat {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(56px, 14vw, 160px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 0.95;
    margin-bottom: 20px;
    letter-spacing: -3px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.wrapped-stat.accent-critical { color: #ef4444; }
.wrapped-stat.accent-warning { color: #fbbf24; }
.wrapped-stat.accent-success { color: #22c55e; }
.wrapped-stat.accent-info { color: #3b82f6; }
.wrapped-stat.accent-gold { color: var(--accent-gold); }

.wrapped-stat-secondary {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.wrapped-subtext {
    font-size: clamp(14px, 2.5vw, 22px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.wrapped-header-logo {
    height: 16px;
    width: auto;
    opacity: 0.7;
    margin-right: 8px;
    vertical-align: middle;
    filter: brightness(2);
}

/* Sticky Slide Header */
.wrapped-slide-header {
    position: absolute;
    top: 24px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    opacity: 0.7;
}

.wrapped-slide-header-icon {
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wrapped-slide-header-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* Improved wrapped-slide-content spacing */
.wrapped-slide-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 900px;
    width: 100%;
}

/* Labels - dopamine micro-label style */
.wrapped-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 16px;
}

/* Context text - more breathing room */
.wrapped-context {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 16px auto 8px;
}

/* Insight text - accent color */
.wrapped-insight {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-gold);
    opacity: 0.8;
    margin-top: 4px;
}

/* Morph stat display - improved */
.wrapped-morph {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(32px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: -2px;
}

.wrapped-from {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: line-through;
    text-decoration-color: rgba(239, 68, 68, 0.5);
}

.wrapped-to {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wrapped-arrow {
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
}

/* Savings badge - pill style */
.wrapped-savings-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 8px 20px;
    border-radius: 24px;
    margin-bottom: 20px;
}

/* ============================================
   VELOCITY PIPELINE
   ============================================ */

.velocity-pipeline {
    max-width: 800px;
    width: 100%;
    margin: 24px auto 16px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.velocity-pipeline::-webkit-scrollbar {
    display: none;
}

.pipeline-svg {
    width: 100%;
    height: auto;
    min-width: 600px;
}

.pipeline-stage-box {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
    transition: fill 0.3s ease;
}

.pipeline-stage-box:hover {
    fill: rgba(255, 255, 255, 0.08);
}

.pipeline-stage-name {
    fill: rgba(255, 255, 255, 0.85);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pipeline-timing-old {
    fill: rgba(255, 255, 255, 0.3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
}

.pipeline-strike {
    stroke: rgba(239, 68, 68, 0.45);
    stroke-width: 1;
}

.pipeline-timing-new {
    fill: #10b981;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
}

.pipeline-arrow {
    stroke: #d4a537;
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
    stroke-linecap: round;
    animation: pipelineDash 1.5s linear infinite;
}

.pipeline-arrow-head {
    fill: #d4a537;
    opacity: 0.8;
}

.pipeline-pulse {
    fill: #d4a537;
    filter: url(#pipeline-glow);
}

.pipeline-gemini circle {
    animation: geminiPulse 2s ease-in-out infinite;
}

.pipeline-total-label {
    fill: rgba(255, 255, 255, 0.4);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pipeline-total-old {
    fill: rgba(255, 255, 255, 0.3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.pipeline-total-arrow {
    fill: rgba(255, 255, 255, 0.25);
    font-size: 12px;
}

.pipeline-total-new {
    fill: #10b981;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
}

@keyframes pipelineDash {
    to {
        stroke-dashoffset: -20;
    }
}

@keyframes geminiPulse {
    0%, 100% { opacity: 0.4; r: 5; }
    50% { opacity: 1; r: 7; }
}

@keyframes pipelineFlow {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* Wrapped title (intro) - gradient text */
.wrapped-title {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 0.95;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #fbbf24 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.wrapped-subtitle {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.wrapped-company {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 32px;
}

.wrapped-tap-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
    animation: wrapped-pulse 2s ease-in-out infinite;
}

/* Section title (scenarios, cta) */
.wrapped-section-title {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.wrapped-cta-title {
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.wrapped-cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Dual logo container */
.wrapped-logo-anim {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.wrapped-logo {
    height: 56px;
    object-fit: contain;
    filter: brightness(1.1);
}

/* Progress bar improvements */
.wrapped-progress-bar {
    width: 100%;
    max-width: 500px;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin: 0 auto 20px;
    position: relative;
    overflow: visible;
}

.wrapped-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.wrapped-progress-target {
    position: absolute;
    top: -6px;
    width: 2px;
    height: 20px;
    background: var(--accent-green);
    border-radius: 1px;
}

/* Timeline milestones */
.wrapped-timeline {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.wrapped-milestone {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    min-width: 140px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.milestone-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.milestone-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* Vendor chip seats display */
.vendor-chip-seats {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 500;
}

.vendor-chip-perseat {
    font-size: 8px;
    color: rgba(255, 201, 91, 0.6);
    font-family: 'JetBrains Mono', monospace;
}

/* Scenario card hover detail — hidden inline, content source only */
.scenario-hover-detail {
    display: none;
}

/* Floating tooltip that lives on document.body, outside clipping ancestors */
.scenario-cursor-tooltip {
    position: fixed;
    background: rgba(15, 15, 25, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    width: 300px;
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    scrollbar-width: none;
}

.scenario-cursor-tooltip::-webkit-scrollbar {
    display: none;
}

.scenario-cursor-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.scenario-cursor-tooltip .scenario-hover-features li {
    font-size: 11px;
    padding: 2px 0 2px 14px;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    list-style: none;
}

.scenario-cursor-tooltip .scenario-hover-features li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-gold, #d4a843);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.scenario-cursor-tooltip .scenario-hover-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scenario-hover-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scenario-hover-features li {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.scenario-hover-features li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

/* Scenario Cost Breakdown */
.scenario-cost-breakdown {
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.cost-group {
    margin-bottom: 8px;
}

.cost-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    margin-bottom: 2px;
}

.cost-group-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.vantage-header .cost-group-label {
    color: var(--accent-gold);
}

.staffing-header .cost-group-label {
    color: #a855f7;
}

.external-header .cost-group-label {
    color: rgba(255, 255, 255, 0.5);
}

.infra-header .cost-group-label {
    color: #06b6d4;
}

.cost-group-total {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.cost-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0 2px 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    border-left: 2px solid rgba(255, 255, 255, 0.06);
}

.cost-line-item.is-vantage {
    border-left-color: var(--accent-gold);
}

.cost-line-name {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cost-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1px 4px;
    border-radius: 3px;
    flex-shrink: 0;
}

.cost-tag.vantage {
    background: rgba(255, 201, 91, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 201, 91, 0.25);
}

.cost-seats {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    margin-left: 4px;
    flex-shrink: 0;
}

.cost-line-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    text-align: right;
    margin-left: 8px;
}

.cost-delta {
    font-size: 8px;
    color: #10b981;
    margin-left: 4px;
}

.cost-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 201, 91, 0.2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
}

/* Scenario comparison overlay */
.scenario-compare-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.scenario-compare-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.scenario-compare-vs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scenario-compare-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scenario-compare-item.selected {
    background: rgba(245, 197, 24, 0.15);
    border-color: rgba(245, 197, 24, 0.4);
    color: var(--accent-gold);
}

.scenario-compare-divider {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

/* Scenario Comparison Grid (modal) */
.scenario-compare-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.compare-row {
    display: grid;
    grid-template-columns: 140px repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: center;
}

.compare-header-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.compare-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-col-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-gold);
    text-align: center;
}

.compare-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.compare-cost {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 16px;
}

.compare-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.compare-feature-list li {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    padding: 2px 0 2px 12px;
    position: relative;
}

.compare-feature-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

/* Recommended badge improvements */
.recommended-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    padding: 5px 14px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    color: white;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    white-space: nowrap;
}

/* Progress Dots - Glassmorphism pill container */
.wrapped-progress {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 12px 20px;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.wrapped-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wrapped-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.wrapped-dot.active {
    background: var(--accent-gold);
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(245, 197, 24, 0.5);
}

.wrapped-dot.viewed {
    background: rgba(245, 197, 24, 0.4);
}

/* Skip Button - Glassmorphism */
.wrapped-skip {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.wrapped-skip:hover {
    background: rgba(40, 40, 55, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.wrapped-skip-icon {
    transition: transform 0.2s ease;
}

.wrapped-skip:hover .wrapped-skip-icon {
    transform: translateX(4px);
}

/* Navigation Arrows - Glassmorphism */
.wrapped-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.wrapped-prev { left: 20px; }
.wrapped-next { right: 20px; }

.wrapped-nav-btn:hover:not(:disabled) {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-50%) scale(1.1);
}

.wrapped-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* Scenario Cards in Wrapped - Glassmorphism */
.wrapped-scenario-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    max-width: 900px;
}

.wrapped-scenario-card {
    position: relative;
    background: rgba(30, 30, 45, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.wrapped-scenario-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.wrapped-scenario-card[data-scenario="primary"]:hover {
    border-color: rgba(245, 197, 24, 0.5);
    background: rgba(245, 197, 24, 0.1);
    box-shadow: 0 20px 48px rgba(245, 197, 24, 0.15);
}

.wrapped-scenario-card[data-scenario="alt"] {
    border-color: rgba(59, 130, 246, 0.3);
}

.wrapped-scenario-card[data-scenario="alt"]:hover {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 20px 48px rgba(59, 130, 246, 0.15);
}

.wrapped-scenario-card[data-scenario="visionary"]:hover {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 0 20px 48px rgba(139, 92, 246, 0.15);
}

.wrapped-scenario-card.selected {
    border-width: 2px;
}

.wrapped-scenario-card[data-scenario="primary"].selected {
    border-color: var(--accent-gold);
    background: rgba(245, 197, 24, 0.15);
}

.wrapped-scenario-card[data-scenario="alt"].selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
}

.wrapped-scenario-card[data-scenario="visionary"].selected {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.2);
}

.wrapped-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.wrapped-scenario-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.wrapped-scenario-cost {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.wrapped-scenario-savings {
    font-size: 14px;
    color: var(--accent-green);
    font-weight: 500;
    margin-bottom: 12px;
}

.wrapped-scenario-savings.baseline {
    color: var(--text-muted);
}

.wrapped-scenario-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* CTA Buttons */
.wrapped-cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.wrapped-cta-btn {
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wrapped-cta-btn.primary {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
}

.wrapped-cta-btn.primary:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.4);
}

.wrapped-cta-btn.secondary {
    background: rgba(30, 30, 45, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.wrapped-cta-btn.secondary:hover {
    background: rgba(50, 50, 70, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* View Again Button */
.wrapped-replay-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wrapped-replay-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.replay-icon {
    font-size: 10px;
}

/* Counter Animation Keyframes */
@keyframes wrapped-countUp {
    from { opacity: 0; transform: translateY(40px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wrapped-statReveal {
    0% { opacity: 0; transform: scale(0.8); }
    50% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes wrapped-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes wrapped-slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes wrapped-slideInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   LOTTIE ANIMATION CONTAINERS
   ============================================ */

.wrapped-lottie-container {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.6s ease;
}

.lottie-background {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.lottie-accent-right {
    top: 10%;
    right: -5%;
    width: 40%;
    height: 80%;
}

.lottie-accent-left {
    top: 10%;
    left: -5%;
    width: 40%;
    height: 80%;
}

.lottie-accent-top {
    top: -10%;
    left: 20%;
    width: 60%;
    height: 50%;
}

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

/* ============================================
   VENDOR ECOSYSTEM GRID
   ============================================ */

.vendor-ecosystem {
    max-width: 800px;
    margin: 20px auto 16px;
    width: 100%;
}

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.vendor-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(30, 30, 45, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.vendor-chip:hover {
    background: rgba(40, 40, 60, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
}

.vendor-chip.eliminated {
    opacity: 0.45;
}

.vendor-chip-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vendor-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0.9);
}

.vendor-icon-fallback {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.vendor-chip-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.vendor-chip-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vendor-chip-name.strike {
    text-decoration: line-through;
    color: var(--text-muted);
}

.vendor-chip-cost {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
}

.vendor-savings {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-green);
}

.vendor-action-badge {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border: 1px solid;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.vendor-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(245, 197, 24, 0.08);
    border: 1px solid rgba(245, 197, 24, 0.2);
    border-radius: 12px;
    margin-top: 4px;
}

.vendor-total-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vendor-total-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
}

/* ============================================
   COMPETITIVE SCENARIO STYLES
   ============================================ */

.competitive-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.competitive-split {
    display: flex;
    gap: 0;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

.competitive-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.competitive-col-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.competitive-vs-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-gold);
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.25);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.competitive-col-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 10px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.without-header {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-bottom: none;
}

.with-header {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-bottom: none;
}

.competitive-col-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.competitive-line-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 10px;
    font-size: 10px;
}

.competitive-line-item.included {
    justify-content: flex-start;
    gap: 6px;
}

.competitive-item-check {
    color: #22c55e;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.competitive-item-name {
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.competitive-item-cost {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    color: #ef4444;
    flex-shrink: 0;
    margin-left: 8px;
}

.competitive-col-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 0 0 8px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
}

.without-total {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-top: none;
}

.with-total {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-top: none;
}

@media (max-width: 768px) {
    .competitive-split {
        flex-direction: column;
        gap: 8px;
    }
    .competitive-col-divider {
        padding: 4px 0;
    }
}

.competitive-market-context {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.competitive-differentiators {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.competitive-diff-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    max-width: 160px;
    text-align: center;
}

.competitive-diff-chip .diff-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.competitive-diff-chip .diff-desc {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

.competitive-bottom-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02));
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
}

.competitive-vs-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.competitive-vs-cost {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
}

.competitive-vs-savings {
    font-size: 11px;
    color: rgba(34, 197, 94, 0.7);
    font-style: italic;
}

/* ============================================
   SCENARIO VENDOR PREVIEW (inside cards)
   ============================================ */

.scenario-vendor-preview {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 12px;
    padding-top: 10px;
}

.scenario-vendor-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.scenario-vendor-row:last-child {
    margin-bottom: 0;
}

.scenario-vendor-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-width: 72px;
}

.scenario-vendor-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.vendor-mini-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0.85);
    opacity: 0.8;
}

.vendor-mini-fallback {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
}

/* ============================================
   TIMELINE COMPARISON (2025 vs 2026)
   ============================================ */

.timeline-comparison {
    width: 100%;
    max-width: 820px;
    margin: 16px auto 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Header row: 2025 | divider | 2026 */
.tc-header-row {
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    align-items: center;
    margin-bottom: 10px;
}

.tc-era-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tc-era-2025 {
    justify-content: flex-end;
}

.tc-era-2026 {
    justify-content: flex-start;
}

.tc-era-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
}

.tc-era-2025 .tc-era-year {
    color: rgba(239, 68, 68, 0.85);
}

.tc-era-2026 .tc-era-year {
    color: rgba(34, 197, 94, 0.9);
}

.tc-era-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 6px;
}

.tc-badge-broken {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.tc-badge-restored {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.tc-divider-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center horizontal gradient divider */
.tc-divider-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(239, 68, 68, 0.4) 0%,
        rgba(239, 68, 68, 0.6) 30%,
        rgba(250, 204, 21, 0.5) 50%,
        rgba(34, 197, 94, 0.6) 70%,
        rgba(34, 197, 94, 0.4) 100%
    );
    border-radius: 1px;
    margin-bottom: 12px;
}

/* Row container */
.tc-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Each domain row */
.tc-row {
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    align-items: stretch;
    gap: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: tcReveal 0.5s ease forwards;
}

@keyframes tcReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cell: before (red) or after (green) */
.tc-cell {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    min-height: 48px;
    transition: background 0.2s ease;
}

.tc-before {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.1);
    flex-direction: row-reverse;
    text-align: right;
}

.tc-after {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.tc-before:hover {
    background: rgba(239, 68, 68, 0.1);
}

.tc-after:hover {
    background: rgba(34, 197, 94, 0.1);
}

/* Status icons */
.tc-status-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}

.tc-icon-broken {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.tc-icon-restored {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Cell text content */
.tc-cell-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tc-domain-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: left;
}

.tc-before .tc-domain-label {
    text-align: right;
}

.tc-desc {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.35;
}

.tc-before .tc-cell-content {
    align-items: flex-end;
}

.tc-after .tc-cell-content {
    align-items: flex-start;
    text-align: left;
}

/* Center arrow column */
.tc-arrow-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
    padding: 4px 0;
}

.tc-metric-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.2);
    border-radius: 4px;
    padding: 2px 5px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    z-index: 1;
}

.tc-arrow-line {
    width: 2px;
    flex: 1;
    min-height: 6px;
    background: linear-gradient(180deg,
        rgba(239, 68, 68, 0.4),
        rgba(34, 197, 94, 0.4)
    );
    border-radius: 1px;
}

.tc-arrow-head {
    font-size: 8px;
    color: rgba(34, 197, 94, 0.6);
    line-height: 1;
}

/* ============================================
   LIFECYCLE MANAGEMENT SLIDE
   ============================================ */

.lifecycle-dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
}

.lifecycle-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: rgba(212, 165, 55, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: -4px;
}

/* Pipeline SVG container */
.lifecycle-pipeline {
    max-width: 760px;
    width: 100%;
    margin: 8px auto 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lifecycle-pipeline::-webkit-scrollbar {
    display: none;
}

.lifecycle-pipeline-svg {
    width: 100%;
    height: auto;
    min-width: 560px;
}

/* Stage boxes */
.lifecycle-stage-box {
    fill: rgba(255, 255, 255, 0.04);
    stroke: rgba(212, 165, 55, 0.25);
    stroke-width: 1;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.lifecycle-stage-box:hover {
    fill: rgba(212, 165, 55, 0.08);
    stroke: rgba(212, 165, 55, 0.5);
}

.lifecycle-stage-name {
    fill: rgba(255, 255, 255, 0.8);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* Flow lines between stages */
.lifecycle-flow-line {
    stroke: #d4a537;
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
    stroke-linecap: round;
    animation: lifecycleFlowDash 1.5s linear infinite;
}

.lifecycle-flow-head {
    fill: #d4a537;
    opacity: 0.8;
}

/* Return path (Monitor -> Discover) */
.lifecycle-return-path {
    stroke: rgba(212, 165, 55, 0.3);
    stroke-width: 1.2;
    stroke-dasharray: 4 6;
    stroke-linecap: round;
    animation: lifecycleFlowDash 2.5s linear infinite;
}

.lifecycle-return-label {
    fill: rgba(212, 165, 55, 0.45);
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 3px;
}

/* Pulse dot traveling the pipeline */
.lifecycle-pulse-dot {
    fill: #d4a537;
}

/* Flow dash animation */
@keyframes lifecycleFlowDash {
    to {
        stroke-dashoffset: -20;
    }
}

/* Savings grid (2x3) */
.lifecycle-savings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 720px;
    margin: 4px auto;
}

/* Vendor cards - glassmorphism */
.lifecycle-vendor-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.lifecycle-vendor-card:hover {
    border-color: rgba(212, 165, 55, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

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

.lifecycle-vendor-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.lifecycle-vendor-savings {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
}

.lifecycle-vendor-waste {
    font-size: 11px;
    font-weight: 500;
    color: #ef4444;
    opacity: 0.9;
    line-height: 1.3;
}

.lifecycle-vendor-action {
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    opacity: 0.85;
    line-height: 1.3;
}

/* Total impact bar */
.lifecycle-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 720px;
    margin: 4px auto 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(212, 165, 55, 0.08) 0%, rgba(212, 165, 55, 0.15) 100%);
    border: 1px solid rgba(212, 165, 55, 0.3);
    border-radius: 12px;
    gap: 16px;
}

.lifecycle-total-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lifecycle-total-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(212, 165, 55, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lifecycle-total-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 800;
    color: #d4a537;
    letter-spacing: -0.5px;
}

.lifecycle-total-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.lifecycle-total-percent {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.lifecycle-total-note {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    line-height: 1.3;
}

/* ========================================
   ROI Metrics Grid (Wrapped Slide)
   ======================================== */

.roi-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 680px;
    margin: 16px auto 20px;
}

.roi-metric-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 20px 18px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: roiCardReveal 0.6s ease forwards;
    opacity: 0;
    transform: translateY(12px);
}

.roi-metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 165, 55, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes roiCardReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.roi-metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.roi-value-gold {
    background: linear-gradient(135deg, #f5c518 0%, #d4a537 60%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(212, 165, 55, 0.3));
}

.roi-value-green {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 60%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(74, 222, 128, 0.3));
}

.roi-value-white {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roi-metric-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.roi-metric-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.4;
}

/* Superscript Reference Badges */
.roi-ref-sup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #d4a537;
    border: 1px solid rgba(212, 165, 55, 0.45);
    border-radius: 50%;
    background: rgba(212, 165, 55, 0.08);
    vertical-align: super;
    line-height: 1;
    cursor: default;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.roi-ref-sup:hover {
    background: rgba(212, 165, 55, 0.2);
    border-color: rgba(212, 165, 55, 0.7);
}

/* Footnote Bar */
.roi-footnotes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    max-width: 780px;
    margin: 0 auto;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.roi-footnote {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
    line-height: 1.3;
}

.roi-footnote:hover {
    color: rgba(255, 255, 255, 0.65);
}

.roi-footnote-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 8px;
    font-weight: 700;
    color: #d4a537;
    border: 1px solid rgba(212, 165, 55, 0.4);
    border-radius: 50%;
    background: rgba(212, 165, 55, 0.08);
    flex-shrink: 0;
    line-height: 1;
}

.roi-footnote:hover .roi-footnote-num {
    background: rgba(212, 165, 55, 0.18);
    border-color: rgba(212, 165, 55, 0.65);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .wrapped-overlay::before {
        width: 400px;
        height: 400px;
        top: -150px;
        right: -100px;
    }

    .wrapped-overlay::after {
        width: 300px;
        height: 300px;
        bottom: -100px;
        left: -80px;
    }

    .wrapped-slide {
        width: calc(100% - 32px);
        height: calc(100% - 120px);
        padding: 40px 20px;
        border-radius: 20px;
    }

    .wrapped-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .wrapped-prev { left: 10px; }
    .wrapped-next { right: 10px; }

    .wrapped-skip {
        top: 12px;
        right: 12px;
        padding: 8px 14px;
        font-size: 12px;
    }

    .wrapped-progress {
        bottom: 12px;
        gap: 8px;
        padding: 10px 16px;
    }

    .wrapped-dot {
        width: 8px;
        height: 8px;
    }

    .wrapped-scenario-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 320px;
    }

    .wrapped-cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .scenario-comparison-grid {
        grid-template-columns: 1fr;
    }

    /* Lottie - reduce accent opacity on mobile */
    .lottie-accent-right,
    .lottie-accent-left,
    .lottie-accent-top {
        opacity: 0.5;
    }

    /* Vendor grid - single column on mobile */
    .vendor-grid {
        grid-template-columns: 1fr;
    }

    .vendor-ecosystem {
        margin: 12px auto 10px;
    }

    /* Hide scenario vendor preview on mobile (too cramped) */
    .scenario-vendor-preview {
        display: none;
    }

    /* ROI Metrics Grid - stack to 1x4 on mobile */
    .roi-metrics-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 340px;
        margin: 10px auto 14px;
    }

    .roi-metric-card {
        padding: 16px 14px 12px;
        border-radius: 12px;
    }

    .roi-metric-value {
        font-size: 28px;
    }

    .roi-metric-label {
        font-size: 10px;
    }

    .roi-metric-note {
        font-size: 11px;
    }

    .roi-ref-sup {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }

    .roi-footnotes {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 4px 10px;
        padding: 8px 12px;
        max-width: 100%;
        border-radius: 8px;
    }

    .roi-footnote {
        font-size: 8px;
    }

    .roi-footnote-num {
        width: 12px;
        height: 12px;
        font-size: 7px;
    }

    .wrapped-slide-header {
        top: 16px;
        left: 16px;
    }

    .wrapped-slide-header-text {
        font-size: 9px;
    }

    .wrapped-morph {
        flex-direction: column;
        gap: 8px;
    }

    /* Velocity pipeline - scrollable on mobile */
    .velocity-pipeline {
        margin: 16px auto 10px;
    }

    .pipeline-svg {
        min-width: 520px;
    }

    .pipeline-stage-name {
        font-size: 9px;
    }

    .pipeline-timing-old,
    .pipeline-timing-new {
        font-size: 8px;
    }

    .wrapped-timeline {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    /* Timeline comparison - stack to single column on mobile */
    .timeline-comparison {
        margin: 12px auto 8px;
    }

    .tc-header-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .tc-divider-header {
        display: none;
    }

    .tc-era-2025 {
        justify-content: center;
    }

    .tc-era-2026 {
        justify-content: center;
    }

    .tc-era-year {
        font-size: 16px;
    }

    .tc-era-badge {
        font-size: 8px;
        padding: 2px 7px;
    }

    .tc-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tc-before {
        flex-direction: row;
        text-align: left;
        border-radius: 10px 10px 0 0;
        border-bottom: none;
        padding: 8px 10px;
    }

    .tc-before .tc-cell-content {
        align-items: flex-start;
    }

    .tc-arrow-col {
        flex-direction: row;
        justify-content: center;
        gap: 6px;
        padding: 4px 10px;
        background: rgba(255, 255, 255, 0.02);
    }

    .tc-arrow-line {
        height: 2px;
        width: 20px;
        min-height: auto;
        background: linear-gradient(90deg,
            rgba(239, 68, 68, 0.4),
            rgba(34, 197, 94, 0.4)
        );
    }

    .tc-after {
        border-radius: 0 0 10px 10px;
        border-top: none;
        padding: 8px 10px;
    }

    .tc-domain-label {
        font-size: 10px;
    }

    .tc-desc {
        font-size: 10px;
    }

    .tc-status-icon {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .scenario-hover-detail {
        display: none;
    }

    /* Lifecycle slide mobile */
    .lifecycle-savings-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 340px;
    }

    .lifecycle-total-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .lifecycle-total-right {
        align-items: flex-start;
    }

    .lifecycle-total-note {
        text-align: left;
    }

    .lifecycle-pipeline {
        margin: 4px auto;
    }

    .lifecycle-subtitle {
        font-size: 11px;
        letter-spacing: 1px;
    }
}

/* ============================================================
   Access Certification Dashboard - Wrapped Slide
   ============================================================ */

.access-cert-dashboard {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

/* Subtitle */
.cert-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #d4a537;
    margin-bottom: 8px;
}

/* Certification Cycle Status Bar */
.cert-cycle-bar {
    width: 100%;
    background: rgba(30, 30, 45, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 20px;
}

.cert-cycle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cert-cycle-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.cert-cycle-meta {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Certification Progress Bar */
.cert-progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: visible;
    margin-bottom: 8px;
}

.cert-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, #d4a537 0%, #10b981 60%, #22c55e 100%);
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 12px rgba(212, 165, 55, 0.4);
    position: relative;
}

.cert-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid rgba(20, 20, 30, 0.9);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.cert-progress-label {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.cert-cycle-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.cert-detail-item {
    font-size: 11px;
    color: var(--text-secondary);
}

.cert-detail-item strong {
    color: var(--text-primary);
}

/* Department Grid */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.dept-card {
    background: rgba(30, 30, 45, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 14px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dept-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.dept-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dept-icon {
    font-size: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.dept-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.dept-user-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
}

.dept-card-stats {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
}

.dept-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.dept-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
}

.dept-stat-pending {
    color: #fbbf24;
}

.dept-stat-retained {
    color: #10b981;
}

.dept-stat-revoked {
    color: #ef4444;
}

.dept-stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.dept-card-scope {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.dept-scope-tag {
    font-size: 10px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 2px 8px;
    font-family: 'JetBrains Mono', monospace;
}

/* Gemini AI Callout */
.gemini-callout {
    width: 100%;
    background: rgba(212, 165, 55, 0.06);
    border: 1px solid rgba(212, 165, 55, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    text-align: left;
}

.gemini-callout-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.gemini-callout-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(212, 165, 55, 0.12);
    border-radius: 8px;
    border: 1px solid rgba(212, 165, 55, 0.2);
}

.gemini-callout-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #d4a537;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gemini-callout-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gemini-item {
    font-size: 12px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.gemini-item::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: #d4a537;
    font-size: 10px;
}

/* Impact Metrics Row */
.cert-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

.cert-metric-item {
    background: rgba(30, 30, 45, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cert-metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 800;
    color: #10b981;
    line-height: 1.2;
}

.cert-metric-savings {
    color: #10b981;
}

.cert-metric-compliance {
    font-size: 11px;
    color: #3b82f6;
}

.cert-metric-audit {
    color: #d4a537;
    font-size: 14px;
}

.cert-metric-label {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: center;
}

/* Access Cert Scope Footnote */
.cert-scope-footnote {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    padding: 8px 20px 0;
    line-height: 1.5;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

.cert-footnote-icon {
    color: var(--accent-gold);
    font-style: normal;
    font-weight: 700;
    margin-right: 2px;
}

/* ============================================================
   ZTNA / Jamf Trust Dashboard Slide
   ============================================================ */

.wrapped-slide[data-id="ztna"]::before {
    background: radial-gradient(ellipse at top, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
}

.wrapped-slide[data-id="ztna"] {
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 30px;
}

.wrapped-slide[data-id="ztna"]::-webkit-scrollbar {
    width: 4px;
}

.wrapped-slide[data-id="ztna"]::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 55, 0.2);
    border-radius: 4px;
}

.wrapped-slide[data-id="ztna"]::-webkit-scrollbar-track {
    background: transparent;
}

.ztna-dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 8px;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.ztna-slide-subtitle {
    font-size: clamp(11px, 1.8vw, 14px);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* Status Overview (Foundation vs Gaps) */
.ztna-status-overview {
    display: flex;
    width: 100%;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 16px;
    align-items: flex-start;
}

.ztna-status-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ztna-status-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    align-self: stretch;
    margin: 0 16px;
}

.ztna-col-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ztna-col-icon {
    font-size: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ztna-icon-good {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.ztna-icon-bad {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    font-size: 10px;
}

.ztna-col-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ztna-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.ztna-item-good {
    background: rgba(16, 185, 129, 0.04);
}

.ztna-item-good:hover {
    background: rgba(16, 185, 129, 0.08);
}

.ztna-item-bad {
    background: rgba(239, 68, 68, 0.04);
}

.ztna-item-bad:hover {
    background: rgba(239, 68, 68, 0.08);
}

.ztna-item-indicator {
    font-size: 8px;
    flex-shrink: 0;
}

.ztna-indicator-good {
    color: #10b981;
}

.ztna-indicator-critical {
    color: #ef4444;
}

.ztna-indicator-high {
    color: #f59e0b;
}

.ztna-item-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    flex: 1;
}

.ztna-item-detail {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    color: rgba(239, 68, 68, 0.8);
    padding: 2px 6px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 4px;
    white-space: nowrap;
}

/* Gauge Section */
.ztna-gauge-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ztna-gauge-container {
    position: relative;
    width: 220px;
    height: 120px;
}

.ztna-gauge-svg {
    width: 100%;
    height: 100%;
}

.ztna-gauge-value {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ztna-gauge-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 800;
    color: #ef4444;
    line-height: 1;
}

.ztna-gauge-subtitle {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.ztna-gauge-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.ztna-gauge-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ztna-gauge-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #d4a537;
}

.ztna-gauge-stat-dim {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.ztna-gauge-stat-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.ztna-gauge-stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
}

.ztna-risk-medium {
    color: #f59e0b;
}

.ztna-risk-high {
    color: #ef4444;
}

.ztna-risk-low {
    color: #10b981;
}

/* Benefits Section */
.ztna-benefits-section {
    width: 100%;
}

.ztna-benefits-header {
    font-size: 10px;
    font-weight: 700;
    color: rgba(212, 165, 55, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-align: center;
}

.ztna-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.ztna-benefit-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ztna-benefit-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 165, 55, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ztna-benefit-title {
    font-size: 11px;
    font-weight: 700;
    color: #d4a537;
    line-height: 1.3;
}

.ztna-benefit-detail {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

.ztna-benefit-relevance {
    font-size: 9px;
    color: rgba(16, 185, 129, 0.7);
    font-style: italic;
    line-height: 1.3;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Domains Bar Chart */
.ztna-domains-section {
    width: 100%;
}

.ztna-domains-header {
    font-size: 10px;
    font-weight: 700;
    color: rgba(212, 165, 55, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-align: center;
}

.ztna-domains-chart {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 12px 14px;
    background: rgba(30, 30, 45, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.ztna-domain-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ztna-domain-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    width: 110px;
    flex-shrink: 0;
    text-align: right;
}

.ztna-domain-bar-track {
    flex: 1;
    height: 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.ztna-domain-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 165, 55, 0.6) 0%, rgba(212, 165, 55, 0.9) 100%);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.ztna-domain-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: #d4a537;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 6px rgba(212, 165, 55, 0.5);
}

.ztna-domain-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    width: 50px;
    flex-shrink: 0;
    text-align: left;
}

/* ============================================================
   ZTNA - Mobile Responsive
   ============================================================ */

@media (max-width: 768px) {
    .ztna-dashboard {
        gap: 10px;
        padding-top: 4px;
    }

    .ztna-status-overview {
        flex-direction: column;
        padding: 10px 12px;
    }

    .ztna-status-divider {
        width: 100%;
        height: 1px;
        margin: 8px 0;
    }

    .ztna-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ztna-benefit-card {
        padding: 10px 8px 8px;
    }

    .ztna-benefit-title {
        font-size: 10px;
    }

    .ztna-benefit-detail {
        font-size: 9px;
    }

    .ztna-benefit-relevance {
        font-size: 8px;
    }

    .ztna-gauge-container {
        width: 180px;
        height: 100px;
    }

    .ztna-gauge-number {
        font-size: 22px;
    }

    .ztna-gauge-stats {
        gap: 10px;
        padding: 8px 12px;
    }

    .ztna-gauge-stat-value {
        font-size: 12px;
    }

    .ztna-domain-name {
        width: 80px;
        font-size: 9px;
    }

    .ztna-domain-value {
        font-size: 9px;
        width: 40px;
    }

    .ztna-domain-bar-track {
        height: 12px;
    }
}

/* ============================================================
   Access Cert - Mobile Responsive
   ============================================================ */

@media (max-width: 768px) {
    .access-cert-dashboard {
        gap: 12px;
    }

    .dept-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dept-card {
        padding: 12px 10px;
    }

    .dept-card-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .cert-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .cert-cycle-details {
        flex-direction: column;
        gap: 4px;
    }

    .gemini-callout {
        padding: 10px 14px;
    }

    .gemini-callout-title {
        font-size: 10px;
    }

    .gemini-item {
        font-size: 11px;
    }

    .cert-metric-value {
        font-size: 14px;
    }

    .cert-metric-label {
        font-size: 9px;
    }

    .cert-progress-fill::after {
        width: 10px;
        height: 10px;
    }
}

/* ============================================
   INTEGRATION STATUS DASHBOARD
   ============================================ */

.integrations-dashboard {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* Spend Summary Cards */
.integrations-spend-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.integrations-spend-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.integrations-spend-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.integrations-spend-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.integrations-spend-period {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.integrations-spend-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Status Summary */
.integrations-status-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.integrations-status-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    font-size: 20px;
    font-weight: 700;
}

.integrations-status-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.integrations-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Sort Bar */
.integrations-sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.integrations-sort-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.integrations-sort-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.integrations-sort-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.integrations-sort-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}

/* Integration Grid */
.integrations-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Integration Card */
.integration-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.integration-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.integration-card.expanded {
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.integration-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
}

.integration-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.integration-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.integration-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.integration-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.integration-type-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.integration-cost {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 70px;
    text-align: right;
}

.integration-expand-icon {
    font-size: 10px;
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}

/* Expanded Card Details */
.integration-card-details {
    padding: 0 16px 16px 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    animation: integrationSlideDown 0.2s ease;
}

@keyframes integrationSlideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.integration-detail-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.integration-detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 70px;
}

.integration-detail-value {
    font-size: 13px;
    color: var(--text-secondary);
}

.integration-capabilities {
    padding-top: 8px;
}

.integration-capabilities-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.integration-capabilities-list li {
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 3px 8px;
}

/* Responsive: stack summary cards on small screens */
@media (max-width: 900px) {
    .integrations-spend-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .integrations-spend-summary {
        grid-template-columns: 1fr;
    }

    .integration-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .integration-card-right {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ==============================================
   US-006: Addon Selector Cards & Sticky Footer
   ============================================== */

/* Addon Cards Grid */
.addon-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0 80px;
}

@media (max-width: 768px) {
    .addon-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .addon-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.addon-loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* Addon Card */
.addon-card {
    position: relative;
    background: rgba(18, 18, 26, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.3s ease;
}

.addon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.addon-card--selected {
    border-color: var(--accent-gold);
    box-shadow: 0 0 18px rgba(200, 169, 97, 0.12);
}

.addon-card--selected:hover {
    box-shadow: 0 10px 28px rgba(200, 169, 97, 0.15);
}

.addon-card--included {
    border-color: rgba(74, 222, 128, 0.25);
}

.addon-card--included.addon-card--selected {
    border-color: var(--accent-green);
    box-shadow: 0 0 18px rgba(74, 222, 128, 0.1);
}

/* Addon Card Header */
.addon-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.addon-card-info {
    flex: 1;
    min-width: 0;
}

.addon-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.addon-card-timeline {
    font-size: 11px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 2px 8px;
}

/* Toggle Switch */
.addon-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 12px;
    cursor: pointer;
}

.addon-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.addon-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.addon-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.addon-toggle-input:checked + .addon-toggle-slider {
    background: rgba(200, 169, 97, 0.2);
    border-color: var(--accent-gold);
}

.addon-toggle-input:checked + .addon-toggle-slider::before {
    transform: translateX(20px);
    background: var(--accent-gold);
}

.addon-toggle-input:focus-visible + .addon-toggle-slider {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Addon Card Pricing */
.addon-card-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.addon-card-price span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

.addon-card-price--included {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.addon-included-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid var(--accent-green);
    border-radius: 50%;
    font-size: 12px;
    color: var(--accent-green);
}

.addon-card-onetime {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.addon-onetime-desc {
    color: var(--text-muted);
    font-style: italic;
}

/* SIEM Calculator */
.addon-siem-calculator {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.addon-siem-label {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.addon-siem-input {
    width: 80px;
    padding: 6px 10px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -moz-appearance: textfield;
}

.addon-siem-input::-webkit-outer-spin-button,
.addon-siem-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.addon-siem-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(200, 169, 97, 0.15);
}

.addon-siem-total {
    font-size: 13px;
    color: var(--text-secondary);
}

.addon-siem-total strong {
    color: var(--text-primary);
    font-size: 15px;
}

/* Addon Capabilities List */
.addon-card-section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.addon-card-capabilities {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.addon-card-capabilities li {
    font-size: 12px;
    color: var(--text-primary);
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.addon-card-capabilities li::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    min-width: 5px;
    border-radius: 50%;
    background: var(--accent-gold);
    margin-top: 6px;
}

.addon-card--included .addon-card-capabilities li::before {
    background: var(--accent-green);
}

/* Addon Sticky Footer Bar */
.addon-sticky-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: var(--inspector-width);
    z-index: 100;
    background: rgba(18, 18, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 12px 24px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.addon-sticky-footer.visible {
    transform: translateY(0);
    pointer-events: auto;
}

.addon-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.addon-footer-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.addon-footer-count {
    color: var(--text-secondary);
    font-weight: 500;
}

.addon-footer-separator {
    color: var(--border-color);
}

.addon-footer-total {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

.addon-footer-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    letter-spacing: 0.3px;
}

.addon-footer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 169, 97, 0.3);
}

.addon-footer-btn:active {
    transform: translateY(0);
    opacity: 0.9;
}

/* Responsive: Footer adjustments for collapsed sidebar/inspector */
@media (max-width: 768px) {
    .addon-sticky-footer {
        left: 0;
        right: 0;
    }

    .addon-footer-content {
        flex-direction: column;
        gap: 8px;
    }

    .addon-footer-btn {
        width: 100%;
    }
}

/* ==============================================
   US-012: Interactive ROI Calculator
   ============================================== */
.roi-calculator {
    margin: 32px 0;
    padding: 28px;
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.roi-calculator h2 {
    color: var(--accent-gold);
    font-size: 20px;
    margin-bottom: 8px;
}

.roi-calc-description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* KPI Cards Grid */
.roi-calc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.roi-calc-kpi-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.roi-calc-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.roi-calc-kpi-highlight {
    border-color: rgba(200, 169, 97, 0.3);
    background: rgba(200, 169, 97, 0.08);
}

.roi-calc-kpi-highlight .roi-calc-kpi-value {
    background: linear-gradient(135deg, #f5c518, #c8a961);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roi-calc-kpi-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.2;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.roi-calc-kpi-value.roi-calc-updating {
    transform: scale(1.05);
    opacity: 0.7;
}

.roi-calc-kpi-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Sensitivity Sliders */
.roi-calc-sliders {
    margin-bottom: 28px;
}

.roi-calc-sliders h3 {
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 16px;
}

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

.roi-calc-slider-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px;
    transition: border-color 0.3s ease;
}

.roi-calc-slider-group:hover {
    border-color: rgba(200, 169, 97, 0.2);
}

.roi-calc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.roi-calc-slider-header label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.roi-calc-slider-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold);
    background: rgba(200, 169, 97, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

.roi-calc-slider-range {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Range Slider Styling */
.roi-calc-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.roi-calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c518, #c8a961);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(200, 169, 97, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roi-calc-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(200, 169, 97, 0.6);
}

.roi-calc-range::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.roi-calc-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c518, #c8a961);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(200, 169, 97, 0.4);
}

.roi-calc-range::-moz-range-track {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
}

/* Chart Section */
.roi-calc-chart-section {
    margin-bottom: 28px;
}

.roi-calc-chart-section h3,
.roi-calc-scenarios h3 {
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 12px;
}

/* Scenario Table */
.roi-calc-scenario-table {
    width: 100%;
}

.roi-calc-scenario-table tbody tr {
    transition: background 0.3s ease;
}

.roi-calc-scenario-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.roi-calc-scenario-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.04);
}

.roi-calc-scenario-table tbody tr:hover {
    background: rgba(200, 169, 97, 0.08);
}

.roi-calc-scenario-table td,
.roi-calc-scenario-table th {
    transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .roi-calc-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .roi-calc-slider-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .roi-calc-kpi-value {
        font-size: 22px;
    }

    .roi-calculator {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .roi-calc-kpi-grid {
        grid-template-columns: 1fr;
    }

    .roi-calc-kpi-value {
        font-size: 24px;
    }
}

/* ============================================
   US-007: Pricing Calculator Modal
   ============================================ */

.pricing-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pricing-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pricing-modal {
    background: rgba(18, 18, 26, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(245, 197, 24, 0.15);
    border-radius: 16px;
    max-width: 640px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(245, 197, 24, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(40px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-modal-overlay.active .pricing-modal {
    transform: translateY(0) scale(1);
}

/* Scrollbar styling for modal */
.pricing-modal::-webkit-scrollbar {
    width: 6px;
}
.pricing-modal::-webkit-scrollbar-track {
    background: transparent;
}
.pricing-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.pricing-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Header */
.pricing-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 28px 28px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 0;
    letter-spacing: -0.3px;
}

.pricing-modal-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.pricing-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pricing-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}

/* Modal Body */
.pricing-modal-body {
    padding: 20px 28px;
}

/* Loading State */
.pricing-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    gap: 16px;
    color: var(--text-secondary);
}

.pricing-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(245, 197, 24, 0.15);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: pricing-spin 0.8s linear infinite;
}

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

/* Error State */
.pricing-modal-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.pricing-error-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.pricing-error-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
}

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

.pricing-section-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-gold);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(245, 197, 24, 0.12);
}

/* Line Items */
.pricing-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.15s ease;
}

.pricing-line-even {
    background: rgba(255, 255, 255, 0.03);
}

.pricing-line-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pricing-line-label {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-line-label strong {
    font-weight: 600;
}

.pricing-line-muted {
    color: var(--text-muted);
    font-style: italic;
}

.pricing-line-value {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

.pricing-line-subtotal {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
    padding-top: 10px;
    font-weight: 500;
}

.pricing-line-subtotal .pricing-line-value {
    color: var(--text-primary);
    font-weight: 600;
}

.pricing-recommended-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Grand Total */
.pricing-totals-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.pricing-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 12px;
    margin-top: 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.1), rgba(184, 134, 11, 0.08));
    border: 1px solid rgba(245, 197, 24, 0.2);
}

.pricing-grand-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-gold);
}

.pricing-grand-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.5px;
}

/* Callout Boxes */
.pricing-callout {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.pricing-callout-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.pricing-callout-savings {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.pricing-callout-savings .pricing-callout-icon {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-green);
}

.pricing-callout-savings .pricing-callout-title {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 14px;
}

.pricing-callout-savings .pricing-callout-detail {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 3px;
}

.pricing-callout-roi {
    background: rgba(245, 197, 24, 0.06);
    border: 1px solid rgba(245, 197, 24, 0.15);
}

.pricing-callout-roi .pricing-callout-icon {
    background: rgba(245, 197, 24, 0.12);
    color: var(--accent-gold);
}

.pricing-callout-roi .pricing-callout-title {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 14px;
}

.pricing-callout-roi .pricing-callout-detail {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 3px;
}

/* Modal Footer */
.pricing-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
    color: var(--bg-primary);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.pricing-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(245, 197, 24, 0.35);
    transform: translateY(-1px);
}

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

.pricing-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.pricing-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 640px) {
    .pricing-modal {
        width: 96%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .pricing-modal-header,
    .pricing-modal-body,
    .pricing-modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pricing-modal-title {
        font-size: 18px;
    }

    .pricing-grand-value {
        font-size: 18px;
    }

    .pricing-modal-footer {
        flex-direction: column;
    }

    .pricing-btn-primary,
    .pricing-btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   US-009: Work Authorization Interactive Form
   ========================================= */

/* Authorized state - green border glow */
.esignature-work-order.is-authorized {
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.1), inset 0 0 30px rgba(74, 222, 128, 0.03);
}

.esignature-work-order.is-authorized::before {
    background: linear-gradient(90deg, var(--accent-green) 0%, #34d399 50%, var(--accent-green) 100%);
}

.work-order-status.authorized {
    background: rgba(74, 222, 128, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(74, 222, 128, 0.4);
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* Section Labels */
.wa-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(200, 169, 97, 0.15);
}

/* Subscription Summary Table Card */
.wa-subscription-summary {
    margin-bottom: 32px;
}

.wa-summary-table-card {
    background: linear-gradient(135deg, rgba(200, 169, 97, 0.08) 0%, rgba(16, 24, 40, 0.6) 100%);
    border: 1px solid rgba(200, 169, 97, 0.2);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wa-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.wa-summary-table thead th {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 20px;
    text-align: left;
    background: rgba(200, 169, 97, 0.1);
    border-bottom: 1px solid rgba(200, 169, 97, 0.15);
}

.wa-summary-table thead th:last-child {
    text-align: right;
}

.wa-summary-table tbody td {
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.wa-summary-table tbody tr:last-child td {
    border-bottom: none;
}

.wa-summary-table tbody tr:hover {
    background: rgba(200, 169, 97, 0.04);
}

.wa-summary-value {
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.wa-summary-value.wa-highlight {
    color: var(--accent-gold);
    font-size: 15px;
    font-weight: 700;
}

.wa-summary-value.wa-savings {
    color: var(--accent-green);
}

.wa-savings-row td {
    background: rgba(74, 222, 128, 0.04);
}

/* Signatory Cards Grid */
.wa-signatories-section {
    margin-bottom: 32px;
}

.wa-signatories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.wa-signatory-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wa-signatory-card:hover {
    border-color: rgba(200, 169, 97, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.wa-signatory-card.signed {
    border-color: rgba(74, 222, 128, 0.4);
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.06) 0%, rgba(74, 222, 128, 0.02) 100%);
}

.wa-signatory-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(200, 169, 97, 0.3) 0%, rgba(200, 169, 97, 0.1) 100%);
    border: 2px solid rgba(200, 169, 97, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 0 auto 12px;
    font-family: 'JetBrains Mono', monospace;
}

.wa-signatory-card.signed .wa-signatory-avatar {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.3) 0%, rgba(74, 222, 128, 0.1) 100%);
    border-color: rgba(74, 222, 128, 0.5);
    color: var(--accent-green);
}

.wa-signatory-role {
    font-size: 9px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.wa-sub-tag {
    display: inline-block;
    background: rgba(200, 169, 97, 0.15);
    color: var(--accent-gold);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.wa-signatory-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.wa-signatory-title {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.4;
}

/* Status Badge */
.wa-signatory-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.wa-signatory-status-badge.pending {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.wa-signatory-status-badge.signed {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.wa-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.wa-signatory-status-badge.pending .wa-status-dot {
    background: var(--accent-yellow);
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.5);
    animation: wa-pulse 2s infinite;
}

.wa-signatory-status-badge.signed .wa-status-dot {
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

@keyframes wa-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.wa-signatory-timestamp {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Terms Checkboxes */
.wa-terms-section {
    margin-bottom: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 24px;
}

.wa-terms-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wa-term-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.wa-term-checkbox:hover {
    background: rgba(255, 255, 255, 0.03);
}

.wa-term-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    margin-top: 1px;
}

.wa-term-checkbox input[type="checkbox"]:hover {
    border-color: rgba(200, 169, 97, 0.5);
}

.wa-term-checkbox input[type="checkbox"]:checked {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(200, 169, 97, 0.3);
}

.wa-term-checkbox input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-primary);
    font-size: 13px;
    font-weight: bold;
}

.wa-term-checkbox input[type="checkbox"]:disabled {
    opacity: 0.7;
    cursor: default;
}

.wa-checkmark {
    display: none;
}

.wa-term-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.2s ease;
}

.wa-term-checkbox:has(input:checked) .wa-term-text {
    color: var(--text-primary);
}

/* Authorize Button */
.wa-authorize-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 32px 0 16px;
}

.wa-authorize-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 56px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
    color: var(--bg-primary);
    box-shadow: 0 6px 24px rgba(200, 169, 97, 0.35);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.wa-authorize-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(200, 169, 97, 0.45);
}

.wa-authorize-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.wa-authorize-btn:disabled {
    background: rgba(100, 100, 100, 0.3);
    color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.wa-btn-icon {
    font-size: 20px;
}

.wa-authorize-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* Authorized Confirmation */
.wa-authorized-confirmation {
    text-align: center;
    padding: 32px;
    border: 2px solid rgba(74, 222, 128, 0.4);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.08) 0%, rgba(74, 222, 128, 0.02) 100%);
}

.wa-authorized-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.3) 0%, rgba(74, 222, 128, 0.1) 100%);
    border: 3px solid var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent-green);
    margin: 0 auto 16px;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.2);
}

.wa-authorized-label {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-green);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.wa-authorized-timestamp {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.wa-authorized-details {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Authorization animation */
.wa-authorize-animate {
    animation: wa-authorize-appear 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes wa-authorize-appear {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Celebration particle animation */
@keyframes wa-particle-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--wa-px), var(--wa-py)) scale(0.3);
    }
}

/* Confirmation Modal */
.wa-confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.wa-confirmation-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.wa-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 37, 0.98) 0%, rgba(10, 10, 15, 0.98) 100%);
    border: 1px solid rgba(200, 169, 97, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    animation: wa-modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes wa-modal-enter {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wa-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(200, 169, 97, 0.15);
    background: rgba(200, 169, 97, 0.05);
}

.wa-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0;
}

.wa-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.wa-modal-close:hover {
    color: var(--text-primary);
}

.wa-modal-body {
    padding: 24px;
}

.wa-modal-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 4px 0;
    margin-bottom: 20px;
}

.wa-modal-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-size: 13px;
}

.wa-modal-summary-row span:first-child {
    color: var(--text-secondary);
}

.wa-modal-summary-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.wa-modal-summary-row.wa-modal-total {
    border-top: 1px solid rgba(200, 169, 97, 0.15);
    margin-top: 4px;
    padding-top: 14px;
}

.wa-modal-summary-row.wa-modal-total span:last-child {
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: 700;
}

.wa-modal-legal {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.wa-modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-modal-cancel {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.wa-modal-cancel:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.wa-modal-authorize {
    flex: 2;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(200, 169, 97, 0.3);
}

.wa-modal-authorize:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(200, 169, 97, 0.4);
}

/* Responsive: Stack signatory cards on smaller screens */
@media (max-width: 1200px) {
    .wa-signatories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wa-signatories-grid {
        grid-template-columns: 1fr;
    }

    .wa-authorize-btn {
        width: 100%;
        justify-content: center;
    }

    .wa-modal-content {
        width: 95%;
    }

    .wa-modal-actions {
        flex-direction: column;
    }

    .wa-modal-cancel,
    .wa-modal-authorize {
        flex: none;
        width: 100%;
    }
}
