/* ================= VISUAL EFFECT UTILITIES ================= */

.neon-border {
    border: 1px solid var(--border-strong);
    box-shadow: 0 0 18px var(--primary-glow);
}

.gradient-text {
    background: linear-gradient(95deg, var(--primary), #6ce7ff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scanlines::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: repeating-linear-gradient(
        to bottom,
        rgba(160, 220, 255, 0.03),
        rgba(160, 220, 255, 0.03) 1px,
        transparent 2px,
        transparent 4px
    );
    opacity: 0.22;
}

.noise::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.015;
}

/* ================= LEGACY INTRO / MODAL CLASSES ================= */

.boot-body,
.intro-container,
.welcome {
    background: radial-gradient(65% 55% at 50% 10%, rgba(45, 212, 255, 0.14), transparent 60%), #03050d;
    color: #dff5ff;
}

.boot-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(rgba(124, 206, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 206, 255, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    animation: gridMove 44s linear infinite;
}

.boot-scanline {
    position: fixed;
    width: 100%;
    height: 2px;
    top: 0;
    z-index: -1;
    background: rgba(45, 212, 255, 0.45);
    animation: scanMove 7s linear infinite;
}

@keyframes gridMove {
    from { transform: translateY(0); }
    to { transform: translateY(44px); }
}

@keyframes scanMove {
    0% { top: 0%; }
    100% { top: 100%; }
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(2, 4, 10, 0.85);
}

.modal.show {
    display: flex;
}

.modal-content {
    width: min(720px, 92vw);
    max-height: 86vh;
    overflow: auto;
    background: linear-gradient(165deg, rgba(12, 20, 38, 0.96), rgba(7, 12, 24, 0.96));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: clamp(20px, 3vw, 36px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.46);
}

.warning-text,
.badge {
    color: var(--primary-strong);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    font-size: 0.74rem;
}

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
    .scanlines::after,
    .noise::before {
        display: none;
    }
}

body.perf-lite .scanlines::after,
body.perf-lite .noise::before,
body.perf-lite .boot-grid,
body.perf-lite .boot-scanline {
    display: none !important;
    animation: none !important;
}
