/* Container Base */
.abrz-flow-universe {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999999;
    background: #040711;
    display: none;
    pointer-events: none;
    font-family: system-ui, -apple-system, sans-serif;
    overflow: hidden;
    box-sizing: border-box;
}
.abrz-flow-universe.active { display: block; pointer-events: all; }

/* Texturas de Fundo */
.abrz-cyber-grid {
    position: absolute; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 35px 35px;
    z-index: 1; opacity: 0; transition: opacity 0.8s ease;
}
.abrz-flow-universe.active .abrz-cyber-grid { opacity: 1; }

.abrz-vignette {
    position: absolute; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(2, 3, 6, 0.95) 100%);
    z-index: 2; pointer-events: none;
}

/* Título */
.abrz-universe-title {
    position: absolute; top: 4vh; left: 50%;
    transform: translateX(-50%) translateY(-10px);
    text-align: center; width: 100%; z-index: 5; opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.1s;
}
.abrz-flow-universe.active .abrz-universe-title { opacity: 1; transform: translateX(-50%) translateY(0); }
.abrz-universe-title h2 { margin: 0; color: #ffffff; font-size: 24px; font-weight: 800; letter-spacing: 2px; text-shadow: 0 0 15px rgba(99,102,241,0.3); }
.abrz-universe-title p { margin: 6px 0 0 0; color: #64748b; font-size: 13.5px; padding: 0 20px; }

/* Botão Fechar */
.abrz-close-flow {
    position: absolute; top: 4vh; right: 4vw;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8; padding: 8px 18px; border-radius: 30px;
    cursor: pointer; font-weight: 600; font-size: 12px; z-index: 10;
    display: flex; align-items: center; transition: all 0.3s ease;
}
.abrz-close-flow:hover { background: #6366f1; color: #ffffff; box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }

/* GRID DE DISTRIBUIÇÃO */
.abrz-grid-universe {
    position: absolute; top: 58%; left: 50%;
    transform: translate(-50%, -50%);
    width: 94vw; max-width: 1500px;
    display: flex; justify-content: space-between; align-items: stretch; z-index: 4;
}
.abrz-grid-col { width: 31%; display: flex; flex-direction: column; gap: 3vh; justify-content: center; }
.abrz-col-center { justify-content: space-between; padding: 4vh 0; min-height: 55vh; }

/* CARDS ESTILO NEON GLASS */
.abrz-holo-card {
    position: relative;
    background: rgba(10, 14, 28, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-left: 4px solid #f3df00;
    padding: 16px 20px; border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    color: white; opacity: 0; transform: translateY(20px);
    transition: background 0.3s, border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.abrz-flow-universe.active .abrz-holo-card {
    animation: abrzFadeInGrid 0.5s ease-out forwards;
    animation-delay: calc(var(--card-order) * 0.1s + 0.2s);
}
@keyframes abrzFadeInGrid { to { opacity: 1; transform: translateY(0); } }

.abrz-card-glow-effect {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(99, 102, 241, 0.12) 0%, transparent 60%);
    border-radius: 12px; pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
.abrz-holo-card:hover .abrz-card-glow-effect { opacity: 1; }

.abrz-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.abrz-holo-badge { font-size: 9px; font-weight: 800; color: #f3df00; letter-spacing: 0.5px; display: flex; align-items: center; gap: 4px; }
.abrz-card-status { font-size: 8px; background: rgba(99, 102, 241, 0.15); color: #a5b4fc; padding: 1px 6px; border-radius: 20px; font-weight: 700; border: 1px solid rgba(99, 102, 241, 0.2); }

.abrz-holo-card h4 { margin: 0 0 4px 0; font-size: 15px; font-weight: 700; color: #ffffff; }
.abrz-holo-card p { margin: 0 0 10px 0; font-size: 12px; color: #94a3b8; line-height: 1.4; }

.abrz-card-features { list-style: none; padding: 0; margin: 0 0 10px 0; border-top: 1px dashed rgba(255, 255, 255, 0.06); padding-top: 8px; }
.abrz-card-features li { font-size: 11px; color: #cbd5e1; display: flex; align-items: flex-start; gap: 5px; margin-bottom: 4px; }
.abrz-card-features li i { color: #f3df00; font-size: 11px; margin-top: 2px; }

.abrz-card-tech { display: flex; flex-wrap: wrap; gap: 4px; }
.abrz-card-tech span { font-size: 9px; background: rgba(255, 255, 255, 0.03); color: #94a3b8; padding: 1px 6px; border-radius: 4px; }

.abrz-holo-card:hover {
    background: rgba(14, 20, 38, 0.95); border-color: rgba(99, 102, 241, 0.4);
    border-left-color: #f3df00; box-shadow: 0 10px 25px rgba(99, 102, 241, 0.12);
    transform: scale(1.015);
}

/* NÚCLEO CENTRAL (ORQUESTRADOR) */
.abrz-ai-core {
    position: absolute; top: 58%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 150px; height: 150px; background: #03050b;
    border: 2px solid #f3df00; border-radius: 50%; z-index: 5;
    display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}
.abrz-flow-universe.active .abrz-ai-core { transform: translate(-50%, -50%) scale(1); }
.abrz-ai-core i { font-size: 34px; color: #f3df00; }
.abrz-ai-core span { font-size: 9px; font-weight: 800; letter-spacing: 0.5px; margin-top: 4px; color: #f3df00; }

.abrz-core-scanner {
    position: absolute; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, #f3df00, transparent);
    animation: abrzScan 2.5s linear infinite;
}
@keyframes abrzScan { 0% { top: 0%; opacity: 0; } 50% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.abrz-core-glow {
    position: absolute; width: 100%; height: 100%; background: rgba(99, 102, 241, 0.15);
    border-radius: 50%; z-index: -1; animation: abrzCorePulse 3s infinite ease-in-out;
}
@keyframes abrzCorePulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.25); opacity: 0.1; } }

/* CANVAS SVG DAS LINHAS */
.abrz-svg-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

.abrz-path-bg {
    fill: none !important; stroke: rgba(99, 102, 241, 0.2);
    stroke-width: 1.5px;
}

.abrz-path-pulse {
    fill: none !important; stroke: #f3df00;
    stroke-width: 2px; stroke-dasharray: 8, 40;
    stroke-dashoffset: 100; opacity: 0;
}
.abrz-flow-universe.active .abrz-path-pulse { opacity: 1; animation: abrzPulseTrain 3s linear infinite; }
@keyframes abrzPulseTrain { to { stroke-dashoffset: -200; } }

.pulse-delay-1 { animation-delay: 0s !important; }
.pulse-delay-2 { animation-delay: 0.5s !important; }
.pulse-delay-3 { animation-delay: 1s !important; }
.pulse-delay-4 { animation-delay: 1.5s !important; }
.pulse-delay-5 { animation-delay: 2s !important; }
.pulse-delay-6 { animation-delay: 2.5s !important; }
.pulse-delay-7 { animation-delay: 3s !important; }

/* COMPORTAMENTO SEGURO MOBILE */
@media (max-width: 1150px) {
    .abrz-flow-universe { overflow-y: auto !important; pointer-events: all !important; }
    .abrz-ai-core, .abrz-svg-canvas, .abrz-cyber-grid { display: none !important; }

    .abrz-universe-title { position: relative !important; top: 0 !important; left: 0 !important; transform: none !important; padding: 80px 20px 20px 20px !important; opacity: 1 !important; }
    .abrz-universe-title h2 { font-size: 20px !important; }

    .abrz-grid-universe {
        position: relative !important; top: 0 !important; left: 0 !important; transform: none !important;
        width: 100% !important; flex-direction: column !important; padding: 0 20px 50px 20px !important;
        box-sizing: border-box !important; display: flex !important; gap: 20px !important;
    }
    .abrz-grid-col { width: 100% !important; gap: 20px !important; padding: 0 !important; min-height: auto !important; }
    .abrz-holo-card { opacity: 1 !important; transform: none !important; animation: none !important; border-radius: 12px !important; }
}
