:root {
    /* Color Palette Extracted */
    --void-bg: #020202;
    --energy-primary: #FF8A00;
    --energy-secondary: #00F3FF;
    --cobalt-blue: #0A192F;
    --accent-white: #FFFFFF;

    /* Layout Variables */
    --gap-sm: 8px;
    --gap-md: 16px;
    --gap-lg: 32px;

    /* Borders & Glass */
    --glass-blur: blur(40px);
    --glass-bg: rgba(10, 25, 47, 0.4);
    --laser-border-color: rgba(0, 243, 255, 0.3);
    --laser-glow: 0 0 10px rgba(0, 243, 255, 0.5);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--void-bg);
    color: var(--accent-white);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    /* Act like a console viewport */
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Typography Classes */
.orbitron-text {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.roboto-mono {
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.1em;
}

.glow-text {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 16px var(--energy-primary);
}

/* Background Effects */
.void-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0a1128 0%, var(--void-bg) 70%);
    z-index: -2;
    /* CSS Noise */
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
}

.perspective-grid {
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    z-index: -1;
    opacity: 0.3;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* Laser Scanner Live Feedback */
.laser-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--energy-secondary), transparent);
    box-shadow: 0 0 15px var(--energy-secondary);
    z-index: 999;
    opacity: 0.8;
    animation: scan 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: -10px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Base Layout Container */
.console-viewport {
    width: 95%;
    height: calc(100vh - 200px);
    /* Leave room for ads */
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
    z-index: 10;
    position: relative;
    margin: auto;
}

/* Ad Banners */
.ad-banner-top,
.ad-banner-bottom {
    position: fixed;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(240, 240, 240, 0.4);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    z-index: 999;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.ad-banner-top {
    top: 0;
    border-top: none;
}

.ad-banner-bottom {
    bottom: 0;
    border-bottom: none;
}

/* Glassmorphism Panel */
.panel-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle inner drop */
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Laser Border Effect Element */
.laser-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg,
            rgba(0, 243, 255, 0.1) 0%,
            rgba(0, 243, 255, 0.8) 50%,
            rgba(0, 243, 255, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

/* Dynamic sweep animation for borders */
.laser-border::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            var(--energy-secondary) 90deg,
            transparent 180deg);
    animation: border-sweep 4s linear infinite;
    z-index: -1;
}

@keyframes border-sweep {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Header / Command Bar */
.command-bar {
    display: flex;
    flex-direction: column;
    /* Stack logo and controls */
    justify-content: center;
    align-items: center;
    padding: var(--gap-md) var(--gap-lg);
    gap: var(--gap-md);
    /* Space between logo and controls */
    flex-shrink: 0;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bloom-logo {
    height: 160px;
    /* Increased massively to be center stage */
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
    transition: all 0.3s ease;
}

.bloom-logo:hover {
    filter: drop-shadow(0 0 25px rgba(0, 243, 255, 0.8));
    transform: scale(1.05);
}

.controls-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicators {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
}

.latency-sync {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    font-size: 0.8rem;
    color: var(--energy-secondary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--energy-secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--energy-secondary);
}

.pulse-dot.active {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 243, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0);
    }
}

.mode-selector,
.team-size-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.mode-btn .icon {
    width: 16px;
    height: 16px;
}

.mode-btn.active {
    background: rgba(0, 243, 255, 0.1);
    color: var(--energy-secondary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.action-buttons-row {
    display: flex;
    gap: var(--gap-md);
}

.share-btn {
    background: transparent;
    border: 1px solid var(--energy-primary);
    color: var(--energy-primary);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.share-btn:hover {
    background: rgba(255, 138, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 138, 0, 0.3);
}

.audio-btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.audio-btn.playing {
    border-color: var(--energy-secondary);
    color: var(--energy-secondary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* Neural Input Module */
.neural-input-module {
    padding: var(--gap-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Promotional Neon Text Banner */
.promo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: var(--gap-lg);
    padding: 0 var(--gap-md);
}

.promo-text-epic {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    max-width: 900px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--energy-secondary);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.6), 0 0 20px rgba(0, 243, 255, 0.3);
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding: 15px 20px;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.05), transparent);
}

.promo-text-epic .highlight {
    color: var(--energy-primary);
    text-shadow: 0 0 15px rgba(255, 138, 0, 0.8), 0 0 30px rgba(255, 138, 0, 0.4);
    font-weight: 700;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-md);
    width: 100%;
    margin-bottom: var(--gap-lg);
}

.input-slot {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    padding: 12px;
}

.slot-id {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    margin-right: 12px;
}

.neural-input {
    background: transparent;
    border: none;
    color: var(--accent-white);
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

.neural-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.neural-input:focus {
    color: var(--energy-primary);
    text-shadow: 0 0 5px var(--energy-primary);
}

.neural-input.flicking {
    animation: text-flicker 0.1s infinite alternate;
}

@keyframes text-flicker {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

.input-slot:focus-within .laser-border {
    background: linear-gradient(90deg, rgba(255, 138, 0, 0.2) 0%, var(--energy-primary) 50%, rgba(255, 138, 0, 0.2) 100%);
    opacity: 1;
}

/* Buttons */
.action-btn.primary {
    background: rgba(255, 138, 0, 0.1);
    border: 1px solid var(--energy-primary);
    color: var(--energy-primary);
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: inset 0 0 10px rgba(255, 138, 0, 0.2), 0 0 15px rgba(255, 138, 0, 0.3);
    transition: all 0.2s;
    text-shadow: 0 0 5px var(--energy-primary);
}

.action-btn.primary:hover {
    background: rgba(255, 138, 0, 0.2);
    box-shadow: inset 0 0 20px rgba(255, 138, 0, 0.4), 0 0 30px rgba(255, 138, 0, 0.5);
    transform: scale(1.02);
}

/* Bracket Container */
.bracket-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Changed from center to allow normal scrolling */
    overflow: auto;
    /* Changed from hidden to auto to allow scrolling */
    position: relative;
    padding: var(--gap-lg);
    width: 100%;
}

.hyper-bento-grid {
    display: flex;
    justify-content: space-between;
    min-width: max-content;
    /* Ensure it takes up enough space horizontally */
    min-height: max-content;
    /* Ensure it takes up enough space vertically */
    padding-bottom: 40px;
    /* Add some padding so bottom nodes don't get cut by scrollbar */
}

/* Rounds */
.round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    z-index: 2;
}

.matchup {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    /* Keep opposing teams close together */
    position: relative;
    margin-bottom: 48px;
    /* High margin between different matchups */
}

/* Nodes */
.node {
    padding: 10px 15px;
    /* Reduced from 20px 30px */
    min-width: 140px;
    /* Reduced from 200px */
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
    /* True shield shape */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: auto;
    margin-bottom: auto;
}

.node.waiting {
    opacity: 0.5;
}

.team-name {
    font-size: 1.1rem;
    z-index: 1;
}

/* Energy Connectors visually inside nodes layout */
.connector-column {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 60px;
}

.bracket-lines {
    position: absolute;
    inset: 0;
    overflow: visible;
}

.line-path {
    fill: none;
    stroke: rgba(0, 243, 255, 0.2);
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke 0.5s ease;
}

.line-path.active {
    stroke: var(--energy-secondary);
    filter: drop-shadow(0 0 5px var(--energy-secondary));
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-line 1.5s forwards ease-in-out;
}

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

/* Final Node */
.node.final-node {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(255, 138, 0, 0.3);
}

.final-node .laser-border {
    background: linear-gradient(90deg, rgba(255, 138, 0, 0.2) 0%, var(--energy-primary) 50%, rgba(255, 138, 0, 0.2) 100%);
}

.shield-icon {
    width: 24px;
    height: 24px;
    background: url('Logo.png') center/contain no-repeat;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 10px var(--energy-primary));
}

/* --- League Mode Configuration --- */
.system-mode-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.league-config {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}

.neural-input.small {
    width: 60px;
    padding: 6px;
    text-align: center;
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    margin-right: 10px;
}

/* --- League Dashboard View --- */
.league-container {
    flex-grow: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: auto;
    position: relative;
    padding: var(--gap-lg);
    width: 100%;
}

.league-split-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--gap-xl);
    width: 100%;
    max-width: 1400px;
}

/* Match Calendar */
.calendar-module {
    padding: var(--gap-lg);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 350px);
    overflow-y: auto;
}

.glow-text.sm {
    font-size: 1.2rem;
    margin-bottom: var(--gap-lg);
    text-align: left;
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

.match-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-team {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-white);
    flex: 1;
}

.match-team.right {
    text-align: right;
}

.score-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px;
}

.score-input {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--energy-secondary);
    color: var(--energy-secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 4px;
}

/* Leaderboard */
.leaderboard-module {
    padding: var(--gap-lg);
    display: flex;
    flex-direction: column;
}

.table-container {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto Mono', monospace;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.leaderboard-table th {
    font-family: 'Orbitron', sans-serif;
    color: var(--energy-secondary);
    padding: 12px 8px;
    border-bottom: 2px solid rgba(0, 243, 255, 0.2);
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.leaderboard-table th.text-left {
    text-align: left;
}

.leaderboard-table td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.leaderboard-table td.text-left {
    text-align: left;
    color: var(--accent-white);
}

.leaderboard-row:hover {
    background: rgba(0, 243, 255, 0.05);
}

.leaderboard-row.rank-1 td {
    color: var(--energy-primary);
    font-weight: bold;
}

.leaderboard-row.rank-1 td.text-left {
    text-shadow: 0 0 10px rgba(255, 138, 0, 0.5);
}

/* Victory Vortex Overlay */
.victory-vortex {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    backdrop-filter: blur(50px);
}

.victory-vortex.active {
    opacity: 1;
    pointer-events: auto;
}

.particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--energy-primary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: particle-float 20s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-100px) scale(1.1);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.champion-display {
    text-align: center;
    transform: scale(0.5);
    transition: transform 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.victory-vortex.active .champion-display {
    transform: scale(1);
}

.trophy-bloom {
    max-width: 400px;
    filter: drop-shadow(0 0 50px var(--energy-primary));
    margin-bottom: 30px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

.victory-title {
    font-size: 4rem;
    color: var(--energy-primary);
    text-shadow: 0 0 20px rgba(255, 138, 0, 0.5);
    margin-bottom: 10px;
}

.winner-name {
    font-size: 2.5rem;
    color: var(--accent-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .input-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .controls-row {
        flex-direction: column;
        gap: 20px;
    }

    .status-indicators {
        flex-direction: column;
        gap: 15px;
    }

    .action-buttons-row {
        flex-direction: column;
        width: 100%;
    }

    .action-buttons-row .share-btn {
        width: 100%;
    }

    .bloom-logo.xl {
        height: 100px;
        /* Scale back down a bit for mobile */
    }

    .hyper-bento-grid {
        padding-right: 40px;
        /* Extra padding for swipe */
    }

    /* League Dashboard Mobile Layout */
    .league-split-grid {
        display: flex;
        flex-direction: column-reverse;
        /* Leaderboard on top, Calendar on bottom */
        gap: var(--gap-lg);
    }

    .leaderboard-module {
        overflow-x: auto;
        /* Allow horizontal scroll for the table if it doesn't fit */
        padding: var(--gap-md);
    }

    .calendar-module {
        padding: var(--gap-md);
    }

    .export-container {
        margin-top: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
        z-index: 999;
    }

    .export-container .action-btn {
        width: 100%;
        font-size: 0.8rem;
        padding: 10px;
        white-space: normal;
        text-align: center;
    }

    .victory-vortex .export-container {
        position: relative;
        z-index: 1000;
        bottom: 20px;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .input-grid {
        grid-template-columns: 1fr;
        /* 1 column on very small phones */
    }

    .console-viewport {
        height: auto;
        min-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .neural-input-module {
        padding: var(--gap-md);
    }
}

/* Energy Burst transition effect */
.energy-burst {
    animation: cyan-burst 0.5s ease-out;
}

@keyframes cyan-burst {
    0% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 5px var(--energy-secondary));
    }

    50% {
        transform: scale(1.1);
        filter: brightness(2) drop-shadow(0 0 20px var(--energy-secondary));
    }

    100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 5px var(--energy-secondary));
    }
}

/* =========================================================================
   Epic 3: Legal Footer & Modals
   ========================================================================= */

.neon-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    margin-bottom: 60px;
    /* Space for AdSense bottom banner */
}

.footer-links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: var(--energy-secondary);
    text-shadow: 0 0 10px var(--energy-secondary);
}

.separator {
    color: rgba(0, 243, 255, 0.3);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
}

/* Cyber Modals */
.cyber-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 2, 2, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cyber-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cyber-modal {
    width: 90%;
    max-width: 600px;
    background: rgba(10, 10, 15, 0.9);
    padding: 30px;
    position: relative;
    border: 1px solid var(--energy-secondary);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.cyber-modal-overlay.active .cyber-modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--energy-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--energy-primary);
    text-shadow: 0 0 10px var(--energy-primary);
    transform: scale(1.1);
}

.modal-content p {
    color: var(--accent-white);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Export Tool */
.export-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}