/* ACY Project Specific Overrides & Enhancements - Premium FinTech Edition */

/* Typography Overrides for Data Displays */
.data-metric {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    letter-spacing: -0.5px;
}

/* Base Panel Glassmorphism */
.premium-panel {
    background: rgba(13, 13, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Micro-Grid Background for Tech Feel */
.tech-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

/* 1. High-Fidelity A/B Testing Visualization */
.ab-test-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

/* Responsive Grid for Before/After boxes and Multi-column layouts */
.responsive-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .ab-test-container,
    .responsive-comparison-grid {
        grid-template-columns: 1fr;
    }
}

.ab-variation {
    padding: 2rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ab-variation>* {
    position: relative;
    z-index: 1;
}

.ab-variation:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ab-variation.loser {
    border-top: 2px solid rgba(255, 107, 107, 0.3);
}

.ab-variation.winner {
    border-top: 2px solid rgba(201, 169, 89, 0.8);
    background: linear-gradient(180deg, rgba(201, 169, 89, 0.05) 0%, rgba(13, 13, 18, 0.8) 100%);
}

.ab-variation.winner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a959, transparent);
    opacity: 0.8;
}

.ab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ab-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ab-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
}

.ab-badge.negative {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.1);
}

.ab-badge.positive {
    background: rgba(201, 169, 89, 0.1);
    color: #c9a959;
    border: 1px solid rgba(201, 169, 89, 0.4);
    box-shadow: 0 0 15px rgba(201, 169, 89, 0.15);
}

.wireframe-ui {
    background: #08080c;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    min-height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

/* Intricate UI Component Lines */
.wf-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    width: 100%;
}

.wf-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.wf-data-label {
    width: 40%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.wf-data-value {
    width: 25%;
    height: 4px;
    background: rgba(100, 149, 237, 0.4);
    border-radius: 2px;
}

.wf-data-value.up {
    background: rgba(76, 175, 80, 0.5);
}

.wf-data-value.down {
    background: rgba(255, 107, 107, 0.5);
}

.wf-chart {
    height: 40px;
    background: linear-gradient(180deg, rgba(100, 149, 237, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(100, 149, 237, 0.4);
    margin: 0.5rem 0;
}

.wf-btn {
    height: 36px;
    margin-top: auto;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-btn::after {
    content: '';
    width: 40%;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.winner .wf-btn {
    background: rgba(100, 149, 237, 0.1);
    border-color: rgba(100, 149, 237, 0.3);
}

.winner .wf-btn::after {
    background: rgba(100, 149, 237, 0.8);
}

/* Modal Specifics */
.wf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.wf-modal-box {
    background: #111116;
    border: 1px solid rgba(255, 107, 107, 0.6);
    border-radius: 8px;
    padding: 1.5rem;
    width: 80%;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wf-modal-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ff6b6b;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    font-size: 0.8rem;
}

/* Inline Context Specifics */
.wf-inline-warning {
    background: rgba(201, 169, 89, 0.08);
    border: 1px solid rgba(201, 169, 89, 0.3);
    border-top: 2px solid rgba(201, 169, 89, 0.6);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: inset 0 0 15px rgba(201, 169, 89, 0.05);
}

.wf-inline-warning-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wf-inline-warning-text .l1 {
    width: 100%;
    height: 3px;
    background: rgba(201, 169, 89, 0.6);
    border-radius: 2px;
}

.wf-inline-warning-text .l2 {
    width: 60%;
    height: 3px;
    background: rgba(201, 169, 89, 0.3);
    border-radius: 2px;
}

.wf-inline-slider-track {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    margin: 0.5rem 0;
}

.wf-inline-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 45%;
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.wf-inline-slider-thumb {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 14px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}


/* 2. Enterprise UI State Evolution (Before/After) */
.state-evolution-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 3rem 0;
    background: #0a0a0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.state-panel {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 200px;
}

@media (max-width: 768px) {
    .state-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto 200px;
    }
}

.state-info {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.v1-indicator {
    border-top: 2px solid rgba(255, 107, 107, 0.6);
}

.v2-indicator {
    border-top: 2px solid rgba(100, 149, 237, 0.6);
}

.state-tag {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.state-tag.v1::before {
    content: '❌';
    font-size: 0.9rem;
}

.state-tag.v2::before {
    content: '✅';
    font-size: 0.9rem;
}

.state-desc {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin: 0;
}

.density-visualizer {
    padding: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* V1: Cognitive Overload Terminal */
.density-v1 {
    background: repeating-linear-gradient(45deg,
            rgba(255, 107, 107, 0.02),
            rgba(255, 107, 107, 0.02) 10px,
            rgba(0, 0, 0, 0) 10px,
            rgba(0, 0, 0, 0) 20px);
}

.terminal-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
    height: 100%;
}

.term-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.term-block.alert {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.4);
    animation: pulseAlert 2s infinite;
}

@keyframes pulseAlert {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* V2: Layered Information Dashboard */
.density-v2 {
    background: radial-gradient(circle at center, rgba(100, 149, 237, 0.08) 0%, transparent 80%);
    perspective: 1000px;
}

.clean-dashboard {
    width: 85%;
    height: 85%;
    background: rgba(13, 13, 18, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(100, 149, 237, 0.15);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 220px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard-3d-float {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
}

.floating-chart-widget {
    width: 100%;
    background: rgba(20, 20, 26, 0.8);
    border: 1px solid rgba(100, 149, 237, 0.3);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(100, 149, 237, 0.2);
    overflow: hidden;
    animation: masterFloat 5s ease-in-out infinite alternate;
}

.chart-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.chart-pair {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

.chart-live-price {
    font-size: 1.1rem;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.trend-up {
    font-size: 0.7rem;
    animation: arrowPulse 2s infinite;
}

.svg-chart-container {
    width: 100%;
    height: 140px;
    position: relative;
}

.floating-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.chart-line-precise {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawPreciseLine 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.chart-fill-anim {
    opacity: 0;
    animation: fadeInFill 1.5s ease-out 1s forwards;
}

.chart-node-hyper {
    animation: hyperPulse 1.5s ease-in-out infinite alternate;
}

.chart-node-ring {
    animation: ringExpand 2s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    transform-origin: 200px 10px;
}

.chart-tracker-line {
    opacity: 0;
    animation: fadeInFill 0.5s ease-out 2.5s forwards;
}

@keyframes masterFloat {
    0% {
        transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(0) translateZ(10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(100, 149, 237, 0.1);
    }

    100% {
        transform: perspective(1000px) rotateX(4deg) rotateY(1deg) translateY(-12px) translateZ(30px);
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(100, 149, 237, 0.25);
    }
}

@keyframes drawPreciseLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInFill {
    to {
        opacity: 1;
    }
}

@keyframes hyperPulse {
    0% {
        filter: drop-shadow(0 0 2px #fff);
        transform: scale(0.9);
    }

    100% {
        filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 12px #6495ed);
        transform: scale(1.1);
    }
}

@keyframes ringExpand {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.dashboard-sidebar {
    background: rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-panel {
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-panel.active {
    background: rgba(201, 169, 89, 0.1);
    border-color: rgba(201, 169, 89, 0.4);
}

.state-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}


/* 3. Multi-Perspective High-Fidelity Metrics Grid */
.perspective-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 3rem 0;
}

@media (max-width: 768px) {
    .perspective-grid {
        grid-template-columns: 1fr;
    }
}

.perspective-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s ease;
}

.perspective-card:hover {
    transform: translateY(-5px);
}

.pc-business {
    --card-glow: rgba(201, 169, 89, 0.15);
    --card-accent: #c9a959;
}

.pc-ux {
    --card-glow: rgba(100, 149, 237, 0.15);
    --card-accent: #6495ed;
}

.pc-eng {
    --card-glow: rgba(76, 175, 80, 0.15);
    --card-accent: #4CAF50;
}

.pc-reg {
    --card-glow: rgba(255, 152, 0, 0.15);
    --card-accent: #FF9800;
}

.perspective-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 40px var(--card-glow);
    border-color: rgba(255, 255, 255, 0.15);
}

.pc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pc-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 0 20px var(--card-glow);
}

.pc-huge-metric {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--card-accent);
    line-height: 1;
    text-align: right;
}

.pc-huge-metric span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.4rem;
    font-family: inherit;
}

.pc-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.pc-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a0a0a0;
    margin: 0;
}

.tooltip-trigger {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    color: #e0e0e0;
    cursor: help;
    transition: all 0.2s;
}

.tooltip-trigger:hover {
    color: #fff;
    border-bottom-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}