/* Ensysto — Premium Design System
 *
 *   font-display  →  Plus Jakarta Sans   – headings, titles, hero text
 *   font-sans     →  Inter               – body copy, descriptions, form labels
 *   font-mono     →  JetBrains Mono      – code, file paths, commit SHAs
 *   font-data     →  DM Sans             – scores, metrics, charts, numbers
 */

/* ================================================================== */
/* CSS DESIGN TOKENS                                                   */
/* ================================================================== */
:root {
    --font-display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    --font-body:    Inter, system-ui, -apple-system, sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
    --font-data:    "DM Sans", Inter, system-ui, sans-serif;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring:   cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);

    /* Durations */
    --duration-fast:   150ms;
    --duration-normal: 300ms;
    --duration-slow:   500ms;
    --duration-reveal: 700ms;

    /* Premium color tokens */
    --brand-50:  #eff6ff;
    --brand-100: #dbeafe;
    --brand-200: #bfdbfe;
    --brand-500: #3b82f6;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --brand-900: #1e3a5f;

    /* Glow tokens */
    --glow-brand: rgba(59, 130, 246, 0.15);
    --glow-cyan:  rgba(34, 211, 238, 0.12);
    --glow-purple: rgba(139, 92, 246, 0.12);

    /* Surface tokens */
    --surface-primary: #ffffff;
    --surface-raised: rgba(255, 255, 255, 0.8);
    --surface-overlay: rgba(255, 255, 255, 0.6);
    --surface-glass: rgba(255, 255, 255, 0.7);

    /* Shadow tokens */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px -12px rgba(0,0,0,0.12), 0 8px 16px -8px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 20px -5px rgba(59,130,246,0.15);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
}

/* Pro visual system (Team / Enterprise / local mode) */
.theme-pro {
    --brand-50:  #ecfeff;
    --brand-100: #cffafe;
    --brand-200: #a5f3fc;
    --brand-500: #14b8a6;
    --brand-600: #0d9488;
    --brand-700: #0f766e;
    --brand-900: #134e4a;
    --glow-brand: rgba(20, 184, 166, 0.18);
    --glow-cyan: rgba(16, 185, 129, 0.14);
    --surface-primary: #f7faf9;
}

/* ================================================================== */
/* BASE RESET                                                          */
/* ================================================================== */
html, body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

button, input, select, textarea {
    font-family: inherit;
}

/* ================================================================== */
/* HEADINGS                                                            */
/* ================================================================== */
h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

/* ================================================================== */
/* MONOSPACE                                                           */
/* ================================================================== */
.font-mono, code, pre, kbd, samp {
    font-family: var(--font-mono);
    font-feature-settings: "liga" 1, "calt" 1;
}

/* ================================================================== */
/* DATA / METRICS                                                      */
/* ================================================================== */
.font-data {
    font-family: var(--font-data);
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.font-black,
[class*="text-2xl"][class*="font-black"],
[class*="text-3xl"][class*="font-black"],
[class*="text-4xl"][class*="font-black"] {
    font-family: var(--font-data);
    font-feature-settings: "tnum" 1, "lnum" 1;
    letter-spacing: -0.02em;
}

/* ================================================================== */
/* LABELS & BADGES                                                     */
/* ================================================================== */
.uppercase.tracking-wider,
.uppercase.tracking-widest {
    font-family: var(--font-display);
}

/* ================================================================== */
/* TRUNCATE                                                            */
/* ================================================================== */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ================================================================== */
/* LOGO                                                                */
/* ================================================================== */
.ensysto-logo {
    width: auto;
    display: block;
}


/* ================================================================== */
/*                                                                     */
/*              PREMIUM COMPONENT SYSTEM                               */
/*                                                                     */
/* ================================================================== */

/* ================================================================== */
/* PREMIUM BACKGROUND                                                  */
/* ================================================================== */
.bg-page {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59,130,246,0.05), transparent),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

.theme-pro.bg-page {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(20,184,166,0.08), transparent),
        linear-gradient(180deg, #f6faf8 0%, #eef6f3 100%);
}

/* ================================================================== */
/* GLASSMORPHISM NAV                                                   */
/* ================================================================== */
.nav-glass {
    background: rgba(15, 30, 55, 0.92);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 8px 32px rgba(0,0,0,0.08);
}

.theme-pro .nav-glass {
    background: linear-gradient(90deg, rgba(11, 32, 42, 0.96), rgba(18, 50, 56, 0.96));
    border-bottom: 1px solid rgba(148, 255, 236, 0.14);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 8px 32px rgba(2, 132, 199, 0.08);
}

.theme-pro .card-premium:hover {
    border-color: rgba(20,184,166,0.22);
}

.theme-pro .text-gradient-brand {
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 45%, #0ea5a4 100%);
    background-size: 200% auto;
}

/* ================================================================== */
/* PREMIUM CARDS                                                       */
/* ================================================================== */
.card-premium {
    background: var(--surface-primary);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-out-expo),
                box-shadow 0.3s var(--ease-out-expo),
                border-color 0.3s ease;
}
.card-premium:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(59,130,246,0.15);
}

/* Metric card */
.card-metric {
    background: var(--surface-primary);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.card-metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-500), #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card-metric:hover::before {
    opacity: 1;
}

/* Chart container */
.card-chart {
    background: var(--surface-primary);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.card-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.2), transparent);
}

/* ================================================================== */
/* CARD HOVER EFFECTS                                                  */
/* ================================================================== */
.card-hover {
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo),
                border-color var(--duration-normal) ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.12),
                0 4px 16px -4px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Dark variant */
.card-hover-dark {
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo),
                border-color var(--duration-normal) ease;
}
.card-hover-dark:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.4),
                0 0 24px -4px var(--glow-cyan);
    border-color: rgba(34, 211, 238, 0.25);
}

/* ================================================================== */
/* PREMIUM HERO SECTION                                                */
/* ================================================================== */
.hero-section {
    background: linear-gradient(135deg, rgba(59,130,246,0.04) 0%, rgba(6,182,212,0.03) 50%, rgba(139,92,246,0.02) 100%);
    border: 1px solid rgba(59,130,246,0.08);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.06), transparent 70%);
    pointer-events: none;
}

/* ================================================================== */
/* PREMIUM BUTTONS                                                     */
/* ================================================================== */
.btn-premium {
    position: relative;
    font-weight: 600;
    font-family: var(--font-display);
    border-radius: var(--radius-sm);
    transition: transform 0.15s var(--ease-out-expo),
                box-shadow 0.2s var(--ease-out-expo),
                background-color 0.15s ease;
    box-shadow: var(--shadow-sm);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-premium:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.btn-premium-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
}
.btn-premium-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 8px 25px -5px rgba(37,99,235,0.4);
}

.btn-premium-secondary {
    background: white;
    color: #1e3a5f;
    border: 1px solid rgba(0,0,0,0.1);
}
.btn-premium-secondary:hover {
    background: #f8fafc;
    border-color: rgba(59,130,246,0.3);
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.08);
}

.btn-premium-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}
.btn-premium-dark:hover {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    box-shadow: 0 8px 25px -5px rgba(0,0,0,0.3);
}

/* ================================================================== */
/* BUTTON INTERACTIONS (existing)                                      */
/* ================================================================== */
.btn-interactive {
    position: relative;
    transition: transform 0.15s var(--ease-out-expo),
                box-shadow 0.2s var(--ease-out-expo),
                background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.btn-interactive:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -4px var(--glow-brand);
}
.btn-interactive:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* ================================================================== */
/* PREMIUM BADGES                                                      */
/* ================================================================== */
.badge-premium {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ================================================================== */
/* PREMIUM SECTION HEADER                                              */
/* ================================================================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,0,0,0.08), transparent);
}
.section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-family: var(--font-display);
    white-space: nowrap;
}

/* ================================================================== */
/* PREMIUM ZOOM CONTROLS                                               */
/* ================================================================== */
.zoom-bar {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 3px;
    border: 1px solid rgba(0,0,0,0.06);
}
.zoom-btn-premium {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.2s var(--ease-smooth);
    color: #64748b;
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: var(--font-data);
    -webkit-tap-highlight-color: transparent;
}
.zoom-btn-premium:hover {
    color: #1e293b;
    background: rgba(255,255,255,0.8);
}
.zoom-btn-premium:active {
    transform: scale(0.92);
    transition: transform 0.08s ease;
}
.zoom-btn-premium.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ================================================================== */
/* PREMIUM BREADCRUMBS                                                 */
/* ================================================================== */
.breadcrumb-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
}
.breadcrumb-premium a {
    color: #64748b;
    transition: color 0.2s ease, transform 0.1s ease;
    text-decoration: none;
    display: inline-block;
}
.breadcrumb-premium a:hover {
    color: #2563eb;
}
.breadcrumb-premium a:active {
    transform: scale(0.93);
}
.breadcrumb-premium .separator {
    color: #cbd5e1;
}
.breadcrumb-premium .current {
    color: #1e293b;
    font-weight: 600;
}

/* ================================================================== */
/* PREMIUM TABLE                                                       */
/* ================================================================== */
.table-premium {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.table-premium thead th {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
    font-family: var(--font-display);
}
.table-premium tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.table-premium tbody tr {
    transition: background 0.15s ease;
}
.table-premium tbody tr:hover {
    background: rgba(59,130,246,0.03);
}

/* ================================================================== */
/* PREMIUM EMPTY STATE                                                 */
/* ================================================================== */
.empty-state {
    padding: 48px 24px;
    text-align: center;
}
.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #cbd5e1;
    opacity: 0.6;
}
.empty-state-title {
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    font-family: var(--font-display);
}
.empty-state-desc {
    font-size: 14px;
    color: #94a3b8;
    max-width: 320px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

/* ================================================================== */
/* PREMIUM SEVERITY INDICATOR                                          */
/* ================================================================== */
.severity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.severity-dot-critical { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.4); }
.severity-dot-high     { background: #f97316; box-shadow: 0 0 8px rgba(249,115,22,0.3); }
.severity-dot-medium   { background: #eab308; box-shadow: 0 0 8px rgba(234,179,8,0.3); }
.severity-dot-low      { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.3); }

/* ================================================================== */
/* PREMIUM PROGRESS BAR                                                */
/* ================================================================== */
.progress-premium {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.progress-premium-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transition: width 0.5s var(--ease-out-expo);
    position: relative;
}
.progress-premium-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer-slide 2s ease-in-out infinite;
}

/* ================================================================== */
/* PREMIUM FOOTER                                                      */
/* ================================================================== */
.footer-premium {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-top: 1px solid #e2e8f0;
}


/* ================================================================== */
/*                                                                     */
/*              INTERACTIVE ANIMATION SYSTEM                           */
/*                                                                     */
/* ================================================================== */

/* ================================================================== */
/* 1. SCROLL-REVEAL ANIMATIONS                                         */
/* ================================================================== */
[data-animate] {
    opacity: 0;
    will-change: opacity, transform;
}

[data-animate="fade-up"] {
    transform: translateY(28px);
}
[data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
                transform var(--duration-reveal) var(--ease-out-expo);
}

[data-animate="fade-in"].is-visible {
    opacity: 1;
    transition: opacity var(--duration-reveal) var(--ease-out-expo);
}

[data-animate="scale-in"] {
    transform: scale(0.92);
}
[data-animate="scale-in"].is-visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
                transform var(--duration-reveal) var(--ease-out-back);
}

[data-animate="slide-left"] {
    transform: translateX(-32px);
}
[data-animate="slide-left"].is-visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
                transform var(--duration-reveal) var(--ease-out-expo);
}

[data-animate="slide-right"] {
    transform: translateX(32px);
}
[data-animate="slide-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
                transform var(--duration-reveal) var(--ease-out-expo);
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 80ms !important; }
[data-delay="2"] { transition-delay: 160ms !important; }
[data-delay="3"] { transition-delay: 240ms !important; }
[data-delay="4"] { transition-delay: 320ms !important; }
[data-delay="5"] { transition-delay: 400ms !important; }
[data-delay="6"] { transition-delay: 480ms !important; }

/* ================================================================== */
/* 4. NAV LINK HOVER UNDERLINE                                         */
/* ================================================================== */
.nav-link {
    position: relative;
    padding-bottom: 2px;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease, opacity 0.1s ease;
}
.nav-link:active {
    transform: scale(0.93);
    opacity: 0.7;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(59,130,246,0.8), rgba(34,211,238,0.6));
    border-radius: 1px;
    transition: width var(--duration-normal) var(--ease-out-expo),
                left var(--duration-normal) var(--ease-out-expo);
}
.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* ================================================================== */
/* 5. INPUT FOCUS GLOW                                                 */
/* ================================================================== */
.input-glow {
    transition: border-color var(--duration-fast) ease,
                box-shadow var(--duration-normal) var(--ease-out-expo);
}
.input-glow:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12),
                0 0 20px -4px rgba(59, 130, 246, 0.15);
}

/* ================================================================== */
/* 6. SHIMMER / LOADING                                                */
/* ================================================================== */
.shimmer {
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer-slide 1.5s ease-in-out infinite;
}
@keyframes shimmer-slide {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================================================================== */
/* 7. PULSE / LIVE INDICATOR                                           */
/* ================================================================== */
.pulse-dot {
    position: relative;
}
.pulse-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s var(--ease-out-expo) infinite;
}
@keyframes pulse-ring {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* ================================================================== */
/* 8. FLOATING / BREATHING (login particles)                           */
/* ================================================================== */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33%      { transform: translateY(-12px) rotate(1deg); }
    66%      { transform: translateY(-6px) rotate(-1deg); }
}
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(8px, -16px); }
    50%      { transform: translate(-4px, -8px); }
    75%      { transform: translate(-12px, -20px); }
}
.float-gentle { animation: float-gentle 6s ease-in-out infinite; }
.float-slow   { animation: float-slow 8s ease-in-out infinite; }

/* ================================================================== */
/* 9. COUNTER ANIMATION                                                */
/* ================================================================== */
.counter-animate {
    display: inline-block;
    min-width: 1.5ch;
}

/* ================================================================== */
/* 10. PILL / TAG HOVER                                                */
/* ================================================================== */
.pill-hover {
    transition: background-color var(--duration-fast) ease,
                color var(--duration-fast) ease,
                border-color var(--duration-fast) ease,
                transform var(--duration-fast) var(--ease-out-expo);
}
.pill-hover:hover {
    transform: translateY(-2px);
    background-color: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    color: #3b82f6;
}

.pill-hover-dark {
    transition: background-color var(--duration-fast) ease,
                color var(--duration-fast) ease,
                border-color var(--duration-fast) ease,
                transform var(--duration-fast) var(--ease-out-expo);
    cursor: default;
}
.pill-hover-dark:hover {
    transform: translateY(-2px);
    background-color: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.3);
    color: #67e8f9;
}

/* ================================================================== */
/* 11. PROGRESS STEP ANIMATIONS                                        */
/* ================================================================== */
.step-connector {
    transition: background-color var(--duration-slow) ease;
}
.step-circle {
    transition: background-color var(--duration-normal) ease,
                border-color var(--duration-normal) ease,
                transform var(--duration-normal) var(--ease-out-back),
                box-shadow var(--duration-normal) ease;
}
.step-circle.is-active {
    animation: step-pulse 2s ease-in-out infinite;
}
@keyframes step-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50%      { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

/* ================================================================== */
/* 12. TABLE ROW INTERACTIONS                                          */
/* ================================================================== */
tbody tr {
    transition: background-color 0.15s ease;
}
tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.04);
}

/* ================================================================== */
/* 13. SPARKLINE DRAW ANIMATION                                        */
/* ================================================================== */
.sparkline-draw {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}
.sparkline-draw.is-visible {
    animation: draw-line 1.8s var(--ease-out-expo) forwards;
}
@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}

.sparkline-dot {
    opacity: 0;
    transform-origin: center;
}
.sparkline-dot.is-visible {
    animation: dot-pop 0.4s var(--ease-out-back) 1.2s forwards;
}
@keyframes dot-pop {
    0%   { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

/* ================================================================== */
/* 14. TOOLTIP                                                         */
/* ================================================================== */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 12px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 11px;
    font-family: var(--font-body);
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-fast) ease,
                transform var(--duration-fast) var(--ease-out-expo);
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ================================================================== */
/* 15. GRADIENT TEXT                                                    */
/* ================================================================== */
.text-gradient-brand {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #3b82f6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 200% center; }
}

/* ================================================================== */
/* 16. PARTICLE CANVAS                                                 */
/* ================================================================== */
.particle-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particle-float linear infinite;
}
@keyframes particle-float {
    0%   { opacity: 0; transform: translateY(100vh) scale(0); }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* ================================================================== */
/* 17. PAGE TRANSITIONS                                                */
/* ================================================================== */
.page-enter {
    animation: page-fade-in 0.4s var(--ease-out-expo) forwards;
}
@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================== */
/* 18. FOCUS VISIBLE (accessibility)                                   */
/* ================================================================== */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ================================================================== */
/* 19. SMOOTH SCROLLBAR                                                */
/* ================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.45);
}

/* ================================================================== */
/* 20. SIGNAL CARD LEFT-BORDER GLOW                                    */
/* ================================================================== */
.signal-card {
    position: relative;
    border-left: 4px solid transparent;
    transition: all 0.25s var(--ease-out-expo);
}
.signal-card:hover {
    transform: translateY(-2px) translateX(2px);
}
.signal-card-critical { border-left-color: #ef4444; }
.signal-card-high     { border-left-color: #f97316; }
.signal-card-medium   { border-left-color: #eab308; }
.signal-card-low      { border-left-color: #22c55e; }

/* ================================================================== */
/* 21. ALERT FEED ITEMS                                                */
/* ================================================================== */
.alert-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
}
.alert-item:hover {
    transform: translateX(4px);
}

/* ================================================================== */
/* 22. DETAILS/ACCORDION                                               */
/* ================================================================== */
details {
    transition: all 0.2s ease;
}
details summary {
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
details summary::-webkit-details-marker {
    display: none;
}
details summary::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.25s var(--ease-out-expo), background-color 0.2s ease;
}
details[open] summary::before {
    transform: rotate(90deg);
    background-color: #dbeafe;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}

/* ================================================================== */
/* 23. SCORE RING ANIMATION                                            */
/* ================================================================== */
.score-ring-animate {
    animation: score-ring-draw 1.2s var(--ease-out-expo) forwards;
    stroke-dasharray: 314.16;
    stroke-dashoffset: 314.16;
}
@keyframes score-ring-draw {
    to { stroke-dashoffset: var(--ring-offset, 0); }
}

/* ================================================================== */
/* 24. INVESTIGATION STAGE CARDS                                       */
/* ================================================================== */
.stage-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.stage-card:hover {
    border-color: rgba(59,130,246,0.15);
}
.stage-card[open] {
    border-color: rgba(59,130,246,0.2);
    box-shadow: var(--shadow-md);
}

/* ================================================================== */
/* 25. STAT VALUE GRADIENT                                             */
/* ================================================================== */
.stat-value {
    font-family: var(--font-data);
    font-feature-settings: "tnum" 1, "lnum" 1;
    letter-spacing: -0.02em;
    line-height: 1;
}
@keyframes stat-pulse {
    0%   { transform: scale(0.85); opacity: 0.3; }
    60%  { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ================================================================== */
/* GLOBAL TAP FEEDBACK                                                 */
/* Subtle press-down for ALL interactive elements.                     */
/* Specific overrides above take priority via specificity.             */
/* ================================================================== */
a, button, [role="button"], [onclick], summary,
input[type="submit"], input[type="button"], .cursor-pointer {
    -webkit-tap-highlight-color: transparent;
}

/* Generic anchor / button tap — only when no more specific :active exists */
a:not(.btn-premium):not(.btn-interactive):not(.nav-link):not(.breadcrumb-premium a):active,
button:not(.btn-premium):not(.btn-interactive):not(.zoom-btn-premium):active {
    transform: scale(0.96);
    transition: transform 0.08s ease;
}

/* Card tap (when cards are clickable links) */
a.card-premium:active,
a.card-metric:active,
a.card-chart:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Badge / tag tap */
.badge-premium:active,
span[class*="bg-"]:active {
    transform: scale(0.93);
    transition: transform 0.08s ease;
}
