/* ==========================================================================
   CYBERNETIC NEO-MATRIX DESIGN SYSTEM (HIGH CONTRAST DUAL-THEME ARCHITECTURE)
   ========================================================================== */

:root {
    --matrix-panel-bg: rgba(6, 10, 23, 0.65);
    --matrix-border-alpha: rgba(255, 255, 255, 0.06);
    --matrix-text-bright: #f1f5f9;
    --matrix-text-dim: #64748b;
    --matrix-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Default Neon Glow Theme Spec Base Fallbacks */
    --h-glow: #00f0ff; 
    --h-bg: rgba(0, 240, 255, 0.08);
}

.ach-holo-container {
    width: 100% !important;
    min-height: calc(100vh - 120px);
    position: relative;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: var(--matrix-text-bright);
    overflow: hidden;
}

/* Background Cyber Grid Gridline Mask */
.ach-matrix-bg-grid {
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

/* Hub Workspace Layout Master Wrapper */
.ach-matrix-hub {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: holoMatrixGateOpen 0.6s cubic-bezier(0.15, 0.85, 0.45, 1) forwards;
}

.ach-matrix-header {
    text-align: center;
    margin-bottom: 4rem;
}

.ach-cyber-tag {
    font-family: var(--matrix-font-mono);
    font-size: 0.8rem;
    color: #00f0ff;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    margin-bottom: 0.75rem;
}

.ach-matrix-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 40%, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 1rem 0;
}

.ach-matrix-header p {
    font-size: 0.95rem;
    color: var(--matrix-text-dim);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Grid Alignment Platform Layout */
.ach-timeline-pipeline {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)) !important;
    gap: 1.5rem !important;
    max-width: 1400px;
    margin: 0 auto;
}

.ach-timeline-pipeline::before { display: none !important; }

/* Dashboard Component Capsule Container */
.ach-pipeline-node {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0 !important;
    background: var(--matrix-panel-bg);
    border: 1px solid var(--matrix-border-alpha);
    border-radius: 20px;
    padding: 1.75rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    opacity: 0;
    animation: holoItemDeploy 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: calc(var(--node-index) * 0.04s) !important;
}

/* Decorative Card Bracket Ornaments */
.ach-pipeline-node::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 12px; height: 12px;
    border-top: 2px solid transparent; border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Distinct Global Spectrum Assignments Mapping on Dynamic Variables (Dark Baseline) */
.ach-pipeline-node:nth-child(9n+1) { --h-glow: #3b82f6; --h-bg: rgba(59, 130, 246, 0.12); }
.ach-pipeline-node:nth-child(9n+2) { --h-glow: #8b5cf6; --h-bg: rgba(139, 92, 246, 0.12); }
.ach-pipeline-node:nth-child(9n+3) { --h-glow: #06b6d4; --h-bg: rgba(6, 182, 212, 0.12); }
.ach-pipeline-node:nth-child(9n+4) { --h-glow: #a3e635; --h-bg: rgba(163, 230, 53, 0.12); }
.ach-pipeline-node:nth-child(9n+5) { --h-glow: #ef4444; --h-bg: rgba(239, 68, 68, 0.12); }
.ach-pipeline-node:nth-child(9n+6) { --h-glow: #f59e0b; --h-bg: rgba(245, 158, 11, 0.12); }
/* CRITICAL FIX: Track 07 Assigned to Gardening -> Emerald Green Matrix Core Glow Configuration Specs */
.ach-pipeline-node:nth-child(9n+7) { --h-glow: #10b981; --h-bg: rgba(16, 185, 129, 0.15); }
.ach-pipeline-node:nth-child(9n+8) { --h-glow: #ec4899; --h-bg: rgba(236, 72, 153, 0.12); }
.ach-pipeline-node:nth-child(9n+9) { --h-glow: #d946ef; --h-bg: rgba(217, 70, 239, 0.12); }

.node-index-tag {
    font-family: var(--matrix-font-mono);
    font-size: 0.7rem;
    color: var(--matrix-text-dim);
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.node-icon-sphere {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.4rem !important;
    margin-bottom: 1.25rem !important;
    margin-right: 0 !important;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.node-details { width: 100%; }

.node-details h3 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: #ffffff !important;
    margin: 0 0 0.5rem 0 !important;
    transition: color 0.3s ease;
}

.node-topic-desc {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: var(--matrix-text-dim) !important;
    margin: 0 !important;
    transition: color 0.3s ease;
}

.node-indicator, .node-arrow, .node-status { display: none !important; }

/* Interactive Hover Trigger Transitions */
.ach-pipeline-node:hover {
    border-color: var(--h-glow);
    transform: translateY(-6px);
    background: rgba(6, 10, 23, 0.85);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 15px var(--h-bg);
}

.ach-pipeline-node:hover::before {
    border-top-color: var(--h-glow);
    border-left-color: var(--h-glow);
    width: 20px; height: 20px;
}

.ach-pipeline-node:hover .node-index-tag { color: var(--h-glow); }

.ach-pipeline-node:hover .node-icon-sphere {
    background: var(--h-glow) !important;
    color: #060a17 !important;
    border-color: var(--h-glow) !important;
    box-shadow: 0 0 15px var(--h-glow);
}

.ach-pipeline-node:hover .node-details h3 { color: var(--h-glow) !important; }
.ach-pipeline-node:hover .node-topic-desc { color: #e2e8f0 !important; }

/* ==========================================================================
   DETAIL STAGE COMING SOON LAYOUT DECORATION
   ========================================================================= */

.ach-stream-view {
    padding: 2rem;
    animation: holoLayerIn 0.5s cubic-bezier(0.15, 0.85, 0.45, 1) forwards;
}

.ach-stream-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 3.5rem;
}

.ach-matrix-breadcrumbs {
    display: flex;
    align-items: center;
    font-family: var(--matrix-font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.matrix-root { color: var(--matrix-text-dim); }
.matrix-active { color: #00f0ff; font-weight: 700; }

.ach-back-btn {
    background: transparent;
    border: 1px solid var(--matrix-border-alpha);
    color: var(--matrix-text-bright);
    font-family: var(--matrix-font-mono);
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.ach-back-btn:hover {
    border-color: #00f0ff;
    color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.ach-coming-soon-zone {
    max-width: 600px;
    margin: 8rem auto;
    text-align: center;
}

.cs-glitch-text {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cs-sub-text {
    font-size: 0.95rem;
    color: var(--matrix-text-dim);
    line-height: 1.6;
    margin: 0 0 2.5rem 0;
}

.cs-sub-text strong { color: #ffffff; }

.cs-loading-bar {
    width: 160px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.cs-bar-progress {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 40%;
    background: #00f0ff;
    border-radius: 4px;
    animation: infiniteTrackLoad 2s infinite ease-in-out;
}

/* Keyframe Core Animations */
@keyframes holoMatrixGateOpen {
    from { opacity: 0; transform: scale(0.98) translateY(12px); filter: blur(5px); }
    to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
@keyframes holoItemDeploy {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes holoLayerIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes infiniteTrackLoad {
    0% { left: -40%; width: 30%; }
    50% { width: 45%; }
    100% { left: 110%; width: 10%; }
}

@media (max-width: 640px) {
    .ach-matrix-hub { padding: 1rem 0.5rem; }
    .ach-timeline-pipeline { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .ach-stream-view { padding: 1rem 0.5rem; }
    .ach-coming-soon-zone { margin: 4rem auto; padding: 0 1rem; }
}

/* ==========================================================================
   EXPLICIT LIGHT MINIMAL THEME CONTRAST OVERRIDES
   ========================================================================= */
html[data-theme="light-white"] {
    --matrix-panel-bg: #ffffff;
    --matrix-border-alpha: rgba(15, 23, 42, 0.08);
    --matrix-text-bright: #0f172a;
    --matrix-text-dim: #64748b;
}

html[data-theme="light-white"] .ach-matrix-bg-grid {
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, white, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse at center, white, transparent 95%);
}

html[data-theme="light-white"] .ach-matrix-header h1 {
    color: #0f172a;
    background: none;
    -webkit-text-fill-color: initial;
}

html[data-theme="light-white"] .node-details h3 {
    color: #0f172a !important;
}

html[data-theme="light-white"] .node-icon-sphere {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

html[data-theme="light-white"] .ach-pipeline-node {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

/* High Contrast Light Hover Rules Override Variables to Retain Crisp Visibility */
html[data-theme="light-white"] .ach-pipeline-node:nth-child(9n+1):hover { --h-glow: #2563eb; --h-bg: rgba(37, 99, 235, 0.06); }
html[data-theme="light-white"] .ach-pipeline-node:nth-child(9n+2):hover { --h-glow: #7c3aed; --h-bg: rgba(124, 58, 237, 0.06); }
html[data-theme="light-white"] .ach-pipeline-node:nth-child(9n+3):hover { --h-glow: #0891b2; --h-bg: rgba(8, 145, 178, 0.06); }
html[data-theme="light-white"] .ach-pipeline-node:nth-child(9n+4):hover { --h-glow: #65a30d; --h-bg: rgba(101, 163, 13, 0.06); }
html[data-theme="light-white"] .ach-pipeline-node:nth-child(9n+5):hover { --h-glow: #dc2626; --h-bg: rgba(220, 38, 38, 0.06); }
html[data-theme="light-white"] .ach-pipeline-node:nth-child(9n+6):hover { --h-glow: #d97706; --h-bg: rgba(217, 119, 6, 0.06); }
/* Gardening Track Light Theme Accent Switch Override Handling -> Pure Organic Green */
html[data-theme="light-white"] .ach-pipeline-node:nth-child(9n+7):hover { --h-glow: #059669; --h-bg: rgba(5, 150, 105, 0.08); }
html[data-theme="light-white"] .ach-pipeline-node:nth-child(9n+8):hover { --h-glow: #db2777; --h-bg: rgba(219, 39, 119, 0.06); }
html[data-theme="light-white"] .ach-pipeline-node:nth-child(9n+9):hover { --h-glow: #c026d3; --h-bg: rgba(192, 38, 211, 0.06); }

html[data-theme="light-white"] .ach-pipeline-node:hover {
    background: #ffffff !important;
    border-color: var(--h-glow) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), inset 0 0 0 1px var(--h-bg) !important;
}

html[data-theme="light-white"] .ach-pipeline-node:hover .node-details h3 {
    color: var(--h-glow) !important;
}

html[data-theme="light-white"] .ach-pipeline-node:hover .node-icon-sphere {
    background: var(--h-glow) !important;
    color: #ffffff !important;
    border-color: var(--h-glow) !important;
    box-shadow: 0 4px 12px var(--h-bg);
}

html[data-theme="light-white"] .ach-pipeline-node:hover .node-topic-desc {
    color: #334155 !important;
}

html[data-theme="light-white"] .cs-glitch-text { color: #0f172a; }
html[data-theme="light-white"] .matrix-active { color: #2563eb; }
html[data-theme="light-white"] .cs-bar-progress { background: #2563eb; }