@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --fz-primary: #6366f1;
    --fz-primary-deep: #4f46e5;
    --fz-primary-hover: #4338ca;
    --fz-primary-light: #eef2ff;
    --fz-cyan: #06b6d4;
    --fz-secondary: #0ea5e9;
    --fz-success: #10b981;
    --fz-success-deep: #059669;
    --fz-warning: #f59e0b;
    --fz-danger: #ef4444;
    
    /* Obsidian & Slate Palette */
    --fz-dark-canvas: #080c15;
    --fz-dark: #0f172a;
    --fz-dark-surface: #141e33;
    --fz-dark-card: #1e293b;
    --fz-border-dark: rgba(255, 255, 255, 0.08);
    --fz-border: #e2e8f0;
    --fz-bg-light: #f8fafc;
    --fz-text-dark: #0f172a;
    --fz-text-muted: #64748b;
    --fz-sidebar-width: 260px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--fz-bg-light);
    color: #334155;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Typography & Gradient Accents
   ========================================================================== */

.font-mono {
    font-family: 'JetBrains Mono', monospace !important;
}

.text-gradient-hero {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 55%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Modern Navbar & Glass Panels
   ========================================================================== */

.navbar-glass {
    background: rgba(8, 12, 21, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.3s ease;
}

.nav-link-glass {
    color: #94a3b8 !important;
    font-weight: 500;
    font-size: 0.93rem;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.nav-link-glass:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link-glass.active {
    color: #ffffff !important;
    background: rgba(99, 102, 241, 0.18);
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.brand-emblem {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.45);
}

/* ==========================================================================
   Hero Section & Cosmic Mesh
   ========================================================================== */

.hero-cosmic {
    background: 
        radial-gradient(circle at 18% 20%, rgba(99, 102, 241, 0.22) 0%, transparent 40%),
        radial-gradient(circle at 82% 25%, rgba(6, 182, 212, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        var(--fz-dark-canvas);
    position: relative;
    overflow: hidden;
}

.hero-cosmic::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.65;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #e0e7ff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.pulse-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: led-pulse 2s infinite;
}

@keyframes led-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   Unified Command Search Bar & Demo Chips
   ========================================================================== */

.search-console-card {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(99, 102, 241, 0.2);
    border-radius: 1.25rem;
    position: relative;
    z-index: 10;
    padding: 1.65rem;
}

.unified-search-bar {
    display: flex;
    align-items: center;
    background: rgba(2, 6, 23, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.85rem;
    padding: 0.35rem 0.4rem 0.35rem 1.15rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.unified-search-bar:focus-within {
    border-color: #818cf8;
    background: rgba(2, 6, 23, 0.85);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.28), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-bar-icon {
    color: #818cf8;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 0.85rem;
    flex-shrink: 0;
}

.search-bar-input {
    flex-grow: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-size: 1.02rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 0.65rem 0.5rem;
    box-shadow: none !important;
    min-width: 0;
}

.search-bar-input::placeholder {
    color: #94a3b8 !important;
    opacity: 0.8;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
}

.search-bar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 60%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.65rem;
    padding: 0.75rem 1.55rem;
    font-weight: 700;
    font-size: 0.96rem;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.search-bar-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 60%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
    transform: translateY(-1px);
    color: #ffffff;
}

.search-bar-btn i {
    color: #fde047;
    font-size: 0.95rem;
}

@media (max-width: 575.98px) {
    .unified-search-bar {
        flex-wrap: wrap;
        padding: 0.75rem;
        gap: 0.65rem;
    }
    .search-bar-btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}

.demo-serials-container {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 0.65rem;
}

.demo-serials-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 0.25rem;
}

.sample-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.38rem 0.75rem;
    border-radius: 0.55rem;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.35;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sample-chip:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.sample-chip .chip-context {
    opacity: 0.75;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ==========================================================================
   Telemetry HUD Deck (Hero Right) & 4-Node Pipeline
   ========================================================================== */

.telemetry-deck {
    background: linear-gradient(135deg, rgba(20, 30, 51, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    padding: 1.65rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.telemetry-deck::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.telemetry-node-chain {
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.95rem;
    padding: 1.25rem 1.15rem;
    margin-bottom: 1.25rem;
}

.telemetry-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.telemetry-pipeline-title {
    font-size: 0.74rem;
    color: #cbd5e1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.telemetry-nodes-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(129, 140, 248, 0.45);
    color: #e0e7ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.telemetry-pipeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pipeline-node {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.65rem;
    padding: 0.65rem 0.35rem;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pipeline-node:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
}

.pipeline-node-orig {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.55);
}

.pipeline-node-rep {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.1);
}

.pipeline-node-active {
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.14);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.22);
}

.pipeline-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.pipeline-tag-orig {
    color: #cbd5e1 !important;
}

.pipeline-tag-rep {
    color: #fcd34d !important;
}

.pipeline-tag-active {
    color: #34d399 !important;
}

.pipeline-serial {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.pipeline-arrow {
    color: #818cf8;
    font-size: 0.72rem;
    opacity: 0.9;
}

.telemetry-footer-status {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: #94a3b8;
}

.telemetry-tile {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.95rem 0.55rem;
    transition: all 0.2s ease;
}

.telemetry-tile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Enterprise Trust Bar
   ========================================================================== */

.trust-ribbon {
    background: #0d1322;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.95rem 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
}

.trust-item i {
    color: var(--fz-primary);
    font-size: 1rem;
}

/* ==========================================================================
   Bento Grid & Elevated Feature Cards
   ========================================================================== */

.bento-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem 1.35rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(99, 102, 241, 0.15);
    border-color: #cbd5e1;
}

.bento-card:hover::before {
    background: linear-gradient(90deg, #6366f1, #06b6d4);
}

.step-num-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
    font-weight: 800;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.bento-card:hover .feature-icon-box {
    transform: scale(1.08);
}

.icon-box-primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.icon-box-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.icon-box-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.icon-box-gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary-custom {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 60%, #2563eb 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    border-radius: 0.65rem;
    padding: 0.65rem 1.35rem;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 60%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.55);
    transform: translateY(-1px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
    border-radius: 0.65rem;
    padding: 0.65rem 1.35rem;
    transition: all 0.2s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-cosmic-card {
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
        #0d1527;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    padding: 2.25rem 2.5rem;
}

@media (max-width: 768px) {
    .cta-cosmic-card {
        padding: 1.75rem 1.5rem;
    }
}

/* ==========================================================================
   Admin & Customer Portal Layout
   ========================================================================== */

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--fz-sidebar-width);
    background: #0a0f1d;
    color: #94a3b8;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand i {
    color: #6366f1;
    font-size: 1.5rem;
}

.sidebar-nav {
    padding: 1rem 0;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-category {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
    padding: 0.8rem 1.25rem 0.4rem;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link-custom:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.nav-link-custom.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.15);
    border-left-color: #6366f1;
    font-weight: 600;
}

.nav-link-custom i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
}

.app-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid var(--fz-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    position: sticky;
    top: 0;
    z-index: 900;
}

.app-content {
    padding: 2rem 1.75rem;
    flex-grow: 1;
}

/* Sidebar responsive toggle */
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -100%;
    }
    .app-sidebar.show {
        left: 0;
    }
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    .sidebar-backdrop.show {
        display: block;
    }
}

/* ==========================================================================
   Dashboard Cards & Metrics
   ========================================================================== */

.metric-card {
    background: #fff;
    border-radius: 1.15rem;
    border: 1px solid var(--fz-border);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.metric-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.metric-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-top: 0.35rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ==========================================================================
   Replacement Timeline Component
   ========================================================================== */

.timeline-container {
    position: relative;
    padding-left: 2.75rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 19px;
    width: 2px;
    background: linear-gradient(to bottom, #6366f1, #06b6d4, #10b981);
}

.timeline-node {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-node:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.75rem;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--fz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--fz-primary);
    box-shadow: 0 0 0 4px #fff, 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.timeline-node.active-unit .timeline-marker {
    background: var(--fz-success);
    border-color: var(--fz-success);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25), 0 0 16px rgba(16, 185, 129, 0.4);
}

.timeline-node.searched-unit .timeline-marker {
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.35), 0 0 20px rgba(99, 102, 241, 0.5);
}

.timeline-card {
    background: #fff;
    border: 1px solid var(--fz-border);
    border-radius: 1rem;
    padding: 1.35rem 1.65rem;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.timeline-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.timeline-node.active-unit .timeline-card {
    border-color: #a7f3d0;
    background: linear-gradient(to bottom right, #ffffff, #f0fdf4);
    box-shadow: 0 8px 25px -4px rgba(16, 185, 129, 0.12);
}

.timeline-node.searched-unit .timeline-card {
    border-color: #c7d2fe;
    background: linear-gradient(to bottom right, #ffffff, #f5f3ff);
}

/* ==========================================================================
   Badges, Tables, Forms & General Styles
   ========================================================================== */

.badge-soft-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-soft-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-soft-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-soft-primary {
    background-color: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.badge-soft-secondary {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.table-custom th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid var(--fz-border);
    padding: 0.95rem 1.15rem;
}

.table-custom td {
    padding: 1rem 1.15rem;
    vertical-align: middle;
    font-size: 0.93rem;
    border-bottom: 1px solid #f1f5f9;
}

/* ==========================================================================
   Print Warranty Certificate Styling
   ========================================================================== */

.certificate-frame {
    background: #fff;
    border: 12px double #0f172a;
    padding: 3.5rem;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.certificate-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 6.5rem;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.04);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

@media print {
    body * {
        visibility: hidden;
    }
    .certificate-frame, .certificate-frame * {
        visibility: visible;
    }
    .certificate-frame {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: 4px double #000;
        box-shadow: none;
        padding: 2rem;
    }
    .no-print {
        display: none !important;
    }
}
