/* Fondo de NEXA (components/background.php): el de la web publica, ahora tambien en el dashboard y en las pantallas de acceso.
   Solo los colores del logo (verde #2deda9 y azul #79b9fd) y muy apagados, para que acompane sin resaltar.
   Va detras de todo (z-index -1, por encima solo del color del body) */
.nexa-bg{
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.nexa-bg-aurora{
    position: absolute;
    top: -95vmax;
    left: 50%;
    width: 125vmax;
    height: 125vmax;
    margin-left: -62.5vmax;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #1d9f74, #2f6fb8, #1d8a8f, #2f6fb8, #1d9f74);
    filter: blur(140px);
    opacity: .16;
    animation: nexa-bg-spin 90s linear infinite;
}
.nexa-bg-orb{
    position: absolute;
    right: -15vw;
    bottom: -25vh;
    width: 50vw;
    height: 50vw;
    max-width: 650px;
    max-height: 650px;
    border-radius: 50%;
    background: #2f6fb8;
    filter: blur(150px);
    opacity: .06;
    animation: nexa-bg-drift 30s ease-in-out infinite alternate;
}
/* Malla de hexagonos finos (como celdas de una cadena de bloques), muy tenue y difuminada hacia abajo, con un foco de luz suave cayendo
   desde el centro (.nexa-bg-horizon::after).
   Antes rayas diagonales: background: repeating-linear-gradient(-44deg, transparent, transparent 5px, rgba(255,255,255,.028) 8px, rgba(255,255,255,.028) 9px); */
.nexa-bg-lines{
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='%23ffffff' fill-opacity='0.035' d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/svg%3E");
    background-size: 42px 73.5px;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 70%);
}
.nexa-bg-horizon::after{
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 900px;
    height: 600px;
    margin-left: -450px;
    background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(121,185,253,.10), rgba(45,237,169,.04) 45%, transparent 75%);
    pointer-events: none;
}
.nexa-bg-horizon{
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45,237,169,.35), rgba(121,185,253,.35), transparent);
    box-shadow: 0 0 50px 4px rgba(121,185,253,.12);
}
@keyframes nexa-bg-spin{
    to{ transform: rotate(360deg); }
}
@keyframes nexa-bg-drift{
    from{ transform: translate(0, 0) scale(1); }
    to{ transform: translate(-120px, -80px) scale(1.2); }
}
@media (prefers-reduced-motion: reduce){
    .nexa-bg-aurora,
    .nexa-bg-orb{
        animation: none;
    }
}

/* Dashboard (front.php, body.nexa-app), solo en modo oscuro: pagina, cabecera y contenido transparentes para que se vea el fondo y el
   menu izquierdo semitransparente. Antes: pagina y contenido #06080a, cabecera con background.webp (style en components/header.php)
   y menu #111417. En modo claro (html.light-mode) se queda todo como estaba y sin este fondo */
html:not(.light-mode) body.nexa-app{
    background-color: #0b0e10;
    --mobile-bg: rgba(11,14,16,.88);    /* cabecera fija del movil (mobile.css): casi opaca para que el contenido no se lea por debajo */
}
html:not(.light-mode) .nexa-app main,
html:not(.light-mode) .nexa-app header{
    background-color: transparent;
}
html:not(.light-mode) .nexa-app .header-content{
    background: none !important;    /* el style de components/header.php pone background.webp */
}
html:not(.light-mode) .nexa-app .left-menu-container{
    background-color: rgba(17,20,23,.55);
}
html.light-mode .nexa-bg{
    display: none;
}
/* Filas de las tablas un poco mas oscuras que el fondo: negro muy transparente en las celdas (las cabeceras siguen con su color,
   #111417, y sus esquinas de arriba redondeadas). En las celdas y no en la tabla: con el fondo en la tabla asomaba por detras de las
   esquinas redondeadas de la cabecera. Con :where() pesa lo minimo y no pisa los colores de las filas al pasar el raton.
   Sin repetirlo en tablas dentro de otra tabla, que quedarian el doble de oscuras, ni en los formularios (New user, Edit account...
   estan maquetados con una tabla .fstep-table y salia una franja oscura encima de cada campo). Antes rgba(0,0,0,.28) en la tabla */
:where(html:not(.light-mode) .nexa-app main table:not(table table):not(.fstep-table)) > :where(tbody, thead, tfoot) > tr > td,
:where(html:not(.light-mode) .nexa-app main table:not(table table):not(.fstep-table)) > tr > td{
    background-color: rgba(0,0,0,.18);
}
/* Top traded coins y Win rate (Dashboard, .home-side-box) con el mismo gris que la cabecera "Good night ..." (#111417,
   .home-title-container). En dashboard.css siguen con #06080a, que se queda para el modo claro */
html:not(.light-mode) .nexa-app .home-side-box{
    background-color: #111417;
}
/* Los 8 recuadros del Dashboard (Avg. time, Capital... Return, .home-kpi-container) con el negro transparente de las filas de las
   tablas. Antes sin fondo (se veia el fondo tal cual) */
html:not(.light-mode) .nexa-app .home-kpi-container{
    background-color: rgba(0,0,0,.18);
}
/* Lo mismo en las filas de Alerts, que no son una tabla (divs .alr-row en .alr-card, alerts.css). Con el mismo peso que .alr-row:hover,
   que va despues (alerts.css se carga al final) y sigue ganando al pasar el raton. Antes transparentes */
:where(html:not(.light-mode) .nexa-app) .alr-card .alr-row{
    background-color: rgba(0,0,0,.18);
}
/* Y en los tickets (tickets.css: details .sup-row en .sup-card): la tarjeta transparente, la cabecera con el gris que tenia toda la
   tarjeta (#0b0e10, como la cabecera de Alerts) y las filas con el negro transparente. Al pasar el raton y abierto, el resumen y el
   mensaje siguen en #111417. Antes toda la tarjeta #0b0e10 */
html:not(.light-mode) .nexa-app .sup-card{
    background-color: transparent;
}
html:not(.light-mode) .nexa-app .sup-header{
    background-color: #0b0e10;
}
:where(html:not(.light-mode) .nexa-app) .sup-card .sup-row,
html:not(.light-mode) .nexa-app .sup-tabs{    /* la fila de All / Unread / Read tambien (antes transparente, se veia el fondo) */
    background-color: rgba(0,0,0,.18);
}
/* Lo mismo en Passkeys y Remembered devices (devices.css: divs .dev-row en .dev-card): la tarjeta transparente, la cabecera con el
   gris que tenia toda la tarjeta (#0b0e10) y el cuerpo (filas y el aviso de "No passkeys yet") con el negro transparente.
   Antes toda la tarjeta #0b0e10 */
html:not(.light-mode) .nexa-app .dev-card{
    background-color: transparent;
}
html:not(.light-mode) .nexa-app .dev-header{
    background-color: #0b0e10;
}
:where(html:not(.light-mode) .nexa-app) .dev-card .dev-row,
:where(html:not(.light-mode) .nexa-app) .dev-card .dev-empty{
    background-color: rgba(0,0,0,.18);
}
/* Lo mismo en las ventanas de Trader bot logs (bot-logs.css): la ventana transparente, la cabecera (nombre de la cuenta y botones) con
   su gris y solo la zona de las lineas con el negro transparente de las filas. Antes toda la ventana #111417 */
html:not(.light-mode) .nexa-app .bot-log-window{
    background-color: transparent;
}
:where(html:not(.light-mode) .nexa-app) .bot-log-window .bot-log-body{
    background-color: rgba(0,0,0,.18);
}

/* Sin el circulo que tapa el logo de TradingView en los graficos de BTC y ETH (dashboard.css, .tradingview-logo-cover): era del color
   del fondo antiguo (#06080A) y sobre el fondo nuevo se veia como un circulo negro. Ahora el logo de TradingView se ve (en modo claro
   el circulo sigue, alli se confunde con el fondo) */
html:not(.light-mode) .nexa-app .tradingview-logo-cover{
    display: none;
}

/* Pantallas de acceso (body.nexa-auth): el fondo en la columna izquierda y la derecha (formulario) en el negro de siempre.
   En movil no hay columna izquierda y el fondo va detras del formulario. Antes background.webp en la columna izquierda (y en movil);
   el login tuvo un tiempo el fondo anterior de la web (luces de colores y rejilla, .auth-bg en login.css) */
.nexa-auth{
    background-color: #06080a;
}
.nexa-auth .login-logo,
.nexa-auth .login-logo-expanded,
.nexa-auth .header-background,
.nexa-auth .header-background-right-column{
    background: transparent;
}
.nexa-auth .login-logo{
    border-right-color: rgba(255,255,255,.08);
}
/* La columna derecha (formulario) con un negro transparente, algo mas oscuro que el de las tablas del dashboard (.18), y el fondo
   en toda la pantalla. Antes el fondo solo en la mitad izquierda (.nexa-bg con right: 50%) y la columna derecha #06080a */
@media (min-width: 1025px){
    .nexa-auth .login-right-column{
        background-color: rgba(0,0,0,.45);    /* antes .35 */
    }
}
