    body {
        background-image: url('assets/images/fondo.jpg');
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
    .container {
        padding: 0 10px;
    }
    .result-box {
        text-align: center;
        padding: 5px;
        margin: 5px;
        font-size: 1.5em;
        font-weight: bold;
    }
    .ganancias-positivo {
        color: green;
    }.plan-card{
    background:rgba(30,30,30,.75);
    backdrop-filter:blur(8px);
    padding:2rem;

    /* 🔸 NUEVO: recuadro + ajuste al contenido */
    border:1px solid #444;      /* recuadro visible */
    border-radius:12px;
    width:fit-content;          /* ancho se adapta al contenido */
    max-width:90vw;             /* evita desbordes en pantallas pequeñas */
    margin-inline:auto;         /* centrado horizontal */

    box-shadow:0 8px 24px rgba(0,0,0,.5);
    }
    .ganancias-negativo {
        color: red;
    }
    .binance {
      color: #ffcc00;
    }

    /* Estilo para cada recuadro */
    .recuadro {
      background: linear-gradient(145deg, #111, #1c1c1c);
      color: #fff;
      padding: 5px;
      border-radius: 15px;
      border: 2px solid rgba(255, 255, 255, 0.15);
      box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      flex: 1 1 300px; /* Ocupa mínimo 300px, pero se adapta */
      box-sizing: border-box;
      max-width: 95%;
      margin: auto;

    }

    .recuadro:hover {
      transform: scale(1.03);
      box-shadow: 0 0 20px rgba(255, 255, 0, 0.4);
    }


.recuadro h3 {
  color: #FFD700; /* Amarillo oro */
  font-size: 1.4em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

#stopLoss {
  color: #ff4c4c; /* rojo más intenso */
  font-weight: 500;
  font-size: 12px;
}

#takeProfit {
  color: #00ff88; /* verde brillante */
  font-weight: 500;
  font-size: 12px;
}


  /* Estilos adicionales para pantallas pequeñas */
  @media (max-width: 768px) {
      .recuadro {
          flex: 1 1 calc(50% - 20px); /* 2 recuadros por fila en pantallas pequeñas */
      }

      .recuadro h3 {
          font-size: 1.0em; /* Reducir el tamaño de los encabezados */
      }

      .recuadro p {
          font-size: 0.9em; /* Reducir el tamaño del texto */
      }
  }

  /* Estilos adicionales para pantallas muy pequeñas */
  @media (max-width: 480px) {
      .recuadro {
          flex: 1 1 calc(100% - 20px); /* 1 recuadro por fila en pantallas muy pequeñas */
      }

      .recuadro h3 {
          font-size: 1em; /* Reducir aún más el tamaño de los encabezados */
      }

      .recuadro p {
          font-size: 0.8em; /* Reducir aún más el tamaño del texto */
      }
  }

    #container {
display: flex;
flex-wrap: wrap; /* Para que se ajusten en dispositivos pequeños */
justify-content: space-between; /* Ajusta el espacio entre los divs */
max-width: 100%; /* Ajusta el ancho máximo del contenedor */
margin: 0 auto; /* Centra el contenedor */
}
#orderblock-status, #rsi, #divergence, #movingAvgCross, #macdCross {
font-family: Arial, sans-serif;
padding: 2px;
border-radius: 5px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
color: #000;
background-color: #000;
font-weight: bold;
flex: 1 1 10%; /* Permite que los divs ocupen un 10% del ancho del contenedor */
margin: 3px; /* Espacio entre los divs */
transition: background-color 0.5s ease;
text-align: center; /* Centra el texto horizontalmente */
display: flex; /* Utiliza flexbox */
align-items: center; /* Centra el texto verticalmente */
justify-content: center; /* Centra el texto horizontalmente */
}

.preciobtc {
font-family: Arial, sans-serif;
padding: 3px;
border-radius: 5px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
color: #fff;
font-weight: bold;
margin: 3px; /* Espacio entre los divs */
transition: background-color 0.5s ease;
text-decoration: none;
font-size: 1.5em !important;
animation: pulse1 1.5s infinite ease-in-out;

}

  label, input, select, button {
      margin: 5px 0;
      padding: 5px;
      border-radius: 5px;
      font-size: 12px;
  }

  input, select, button {
      background-color: #333;
      border: 1px solid #555;
      color: #fff;
  }

  button {
      background-color: #555;
      cursor: pointer;
  }

  button:hover {
      background-color: #777;
  }
  .recuadros-container {
display: flex;
flex-wrap: wrap;
justify-content: flex-start; /* Que empiecen alineados a la izquierda */
gap: 10px; /* Espacio entre recuadros */
padding: 5px 10px;
width: 100%;
box-sizing: border-box;
}
.conteo-box {
text-align: center;
padding: 3px;
margin: 3px;
font-size: 0.8em;
font-weight: bold;
}
.boton-acceso {
display: block;
background: linear-gradient(135deg, #1f1f1f, #2c2c2c);
color: #FFD700;
font-weight: bold;
text-align: center;
text-decoration: none;
padding: 5px 10px;
border-radius: 10px;
margin: 5px;
font-size: 1.0em;
box-shadow: 0 0 10px rgba(255, 255, 0, 0.1);
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.2);
}

.boton-acceso:hover {
background: linear-gradient(135deg, #FFD700, #f2f200);
color: #000;
transform: scale(1.05);
box-shadow: 0 0 20px rgba(255, 255, 0, 0.4);
}
.boton-acceso-chico {
display: block;
background: linear-gradient(135deg, #1f1f1f, #2c2c2c);
color: #FFD700;
font-weight: bold;
text-align: center;
text-decoration: none;
padding: 3px 5px;
border-radius: 5px;
margin: 3px;
font-size: 0.8em;
box-shadow: 0 0 10px rgba(255, 255, 0, 0.1);
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.2);
}

.boton-acceso-chico:hover {
background: linear-gradient(135deg, #FFD700, #f2f200);
color: #000;
transform: scale(1.05);
box-shadow: 0 0 20px rgba(255, 255, 0, 0.4);
}
/* Estilos para el modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed; /* Fijo en pantalla */
    z-index: 1000; /* Por encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%; /* Ancho completo */
    height: 100%; /* Alto completo */
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
}

/* Contenedor del contenido del modal */
.modal-content {
    background-color: rgba(0, 0, 0, 1.0); /* Fondo negro con 80% de opacidad */
    margin: 15% auto; /* Centrar verticalmente */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Ancho del modal */
    max-width: 500px; /* Ancho máximo del modal */
    text-align: left;
    border-radius: 10px;
    color: #fff; /* Texto blanco */
}

/* Botón para cerrar el modal */
.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.text-black {
    color: #000;
    font-size: 1.0em;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}
/* Estilo para el spinner */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #FFD700;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}


@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
#btnCompra {
    background-color: #28a745; /* Verde */
    border: 1px solid #1e7e34;
    padding: 3px 6px;         /* Aumenta el espacio interno del botón */
    font-size: 16px;            /* Agranda el texto */
    border-radius: 5px;         /* (Opcional) bordes más redondeados */
    width: 160px;               /* (Opcional) ancho fijo */
    height: 25px;               /* (Opcional) alto fijo */
}

#btnCompra:hover {
background-color: #218838;
}

#btnVenta {
background-color: #dc3545; /* Rojo */
border: 1px solid #bd2130;
padding: 3px 6px;         /* Aumenta el espacio interno del botón */
font-size: 16px;            /* Agranda el texto */
border-radius: 5px;         /* (Opcional) bordes más redondeados */
width: 160px;               /* (Opcional) ancho fijo */
height: 25px;               /* (Opcional) alto fijo */
}

#btnVenta:hover {
background-color: #c82333;
}
table thead tr {
    background-color: #333;
    text-align: left;
}

table th,
table td {
    padding: 12px 15px;
}

table tbody tr {
    border-bottom: 1px solid #555;
}

table tbody tr:nth-of-type(even) {
    background-color: #000;
}

table tbody tr:last-of-type {
    border-bottom: 2px solid #000;
}

/* Añadir contenedor para hacer la tabla responsiva */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 1em;
  background-color: #000;
  color: #fff;
  border-radius: 15px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .table-responsive {
      overflow-x: auto; /* Permitir el desplazamiento horizontal en pantallas pequeñas */
  }

  table {
      width: 100%; /* Asegura que la tabla se ajuste al ancho de la pantalla */
  }

  table td {
      display: block;
      text-align: right;
      padding-left: 50%; /* Ajusta el espacio para que el data-label no quede cortado */
      position: relative;
  }

  table td::before {
      content: attr(data-label);
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      font-weight: bold;
      text-align: left;
  }

  .hide-on-mobile {
      display: none;
  }
}

 @media (min-width: 601px) {
    .mobile-only {
        display: none;
    }
}
@media (max-width: 600px) {
table td {
    padding: 12px 5px;
}
/* Ocultar todas las columnas excepto la fecha y el PNL realizado */
.hide-on-mobile {
    display: none;
}
/* Aplicar estilos para que las filas sean clicables */
tr {
    cursor: pointer;
}
}
.total-positivo {
          font-weight: bold;
          color: green;
      }
      .total-negativo {
          font-weight: bold;
          color: red;
      }
      .estado-naranja {
         color: orange;
      }

      .estado-verde {
         color: green;
      }

      .estado-rojo {
         color: red;
      }
      .chart-container {
          display: flex;
          justify-content: center; /* Centra horizontalmente */
          align-items: center;     /* Centra verticalmente si el contenedor tiene altura */
          height: 100%;            /* Asegúrate de que el contenedor ocupe todo el espacio disponible */
          padding: 20px;           /* Opcional, agrega espacio alrededor del gráfico */
      }
      .pagination {
          display: flex;
          gap: 5px; /* Espacio entre botones */
          margin-top: 20px;
          flex-wrap: wrap; /* Si hay muchas páginas, que salte a la línea */
      }
      .boton-acceso.activo {
    font-weight: bold;
    background-color: #333;
    color: white;
}
>
    /* Botón estilo acceso */
    .boton-acceso,
    button,
    input[type="button"] {
        display: block;
        background: linear-gradient(135deg, #1f1f1f, #2c2c2c);
        color: #FFD700;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        padding: 10px 15px;
        border-radius: 10px;
        margin: 10px 0;
        font-size: 1em;
        box-shadow: 0 0 10px rgba(255, 255, 0, 0.1);
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
        cursor: pointer;
    }

    .boton-acceso:hover,
    button:hover,
    input[type="button"]:hover {
        background: linear-gradient(135deg, #FFD700, #f2f200);
        color: #000;
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 255, 0, 0.4);
    }

    /* Inputs, selects y textareas con detalles amarillos */
    input[type="number"],
    input[type="text"],
    select,
    textarea {
        width: 100%;
        padding: 10px 15px;
        margin-bottom: 15px;
        border: 1px solid #FFD700;
        border-radius: 8px;
        background-color: #1a1a1a;
        color: #fff;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    input[type="number"]:focus,
    input[type="text"]:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #f2f200;
        background-color: #222;
        box-shadow: 0 0 5px rgba(255, 255, 0, 0.3);
    }

    label {
        color: #FFD700;
        font-weight: 600;
        margin-bottom: 5px;
        display: block;
    }
    .indicator-line {
    width: 25px !important;
    height: 25px !important;
    background: transparent !important; /* sin fondo */
    padding: 0;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: none;
    color: inherit;
    overflow: hidden;
  }

  /* Ocultar cualquier texto que pueda haber */
  .indicator-line::after {
    content: '';
    display: none;
  }

  /* LED circular */
  .indicator-line::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: pulse 1.5s infinite ease-in-out;
  }

  /* Animación de pulso */
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
      opacity: 0.9;
    }
    50% {
      transform: scale(1.4);
      opacity: 1;
    }
  }
  @keyframes pulse1 {
    0%, 100% {
      transform: scale(1);
      opacity: 0.9;
    }
    50% {
      transform: scale(1.1);
      opacity: 1;
    }
  }
  #indicator-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  .saldos-flex {
    display: flex;
    gap: 10px; /* espacio entre los dos saldos */
    align-items: center;
  }
  .logo-binance {
    width: 16px !important;
    height: 16px !important;
    vertical-align: middle;
    margin-left: 5px;
  }
  .recuadro label {
          display: block;
          margin-top: 15px;
          font-weight: 600;
          color: #ffcc00;
      }
      .recuadro input[type="number"],
      .recuadro textarea,
      .recuadro select {
          width: 100%;
          padding: 10px 14px;
          margin-top: 5px;
          border-radius: 8px;
          border: none;
          background-color: #2a2a2a;
          color: white;
          font-size: 16px;
          box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
      }
      .recuadro textarea {
          resize: vertical;
      }

      .recuadro a input[type="button"] {
          margin-top: 10px;
          background-color: transparent;
          color: #ffcc00;
          border: 2px solid #ffcc00;
          font-weight: bold;
          transition: background 0.3s;
      }
      .recuadro a input[type="button"]:hover {
          background-color: #ffcc00;
          color: black;
      }
      #spinnerOverlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: black;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }

      .spinner2 {
        border: 8px solid #444;
        border-top: 8px solid #f0b90b;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: spin 1s linear infinite;
      }

      .mensaje {
        color: #f0b90b;
        font-size: 1.5em;
        margin-top: 20px;
        font-weight: bold;
        text-align: center;
      }

      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }
      .plan-card{
      background:rgba(30,30,30,.75);
      backdrop-filter:blur(8px);
      padding:2rem;

      /* 🔸 NUEVO: recuadro + ajuste al contenido */
      border:1px solid #444;      /* recuadro visible */
      border-radius:12px;
      width:fit-content;          /* ancho se adapta al contenido */
      max-width:90vw;             /* evita desbordes en pantallas pequeñas */
      margin-inline:auto;         /* centrado horizontal */

      box-shadow:0 8px 24px rgba(0,0,0,.5);
      }
      /* Tira de HUD compacta */
      .hud-strip {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 6px auto 4px;
        max-width: 900px;
      }

      /* Tarjetas finitas tipo pill */
      .hud-card {
        display: flex;
        align-items: center;
        padding: 4px 12px;
        border-radius: 999px;
        background: radial-gradient(circle at top, #262626 0%, #000 60%);
        box-shadow: 0 0 8px rgba(0,0,0,0.7);
        min-height: 38px;
        white-space: nowrap;
      }

      /* Texto base dentro de la tarjeta */
      .hud-card span {
        display: inline-block;
      }

      /* Etiqueta (GANANCIAS HOY, OPERACIONES, CAPITAL...) */
      .hud-label {
        font-size: 11px;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        color: #ffd700;
        margin-right: 4px;
      }

      /* Valor principal ($, cantidad, etc.) */
      .hud-value {
        font-size: 14px;
        font-weight: 700;
        margin-right: 6px;
      }

      /* Subtexto para Ventas / Compras */
      .hud-sub {
        font-size: 11px;
        opacity: 0.85;
        margin-left: 4px;
      }

      .hud-sell {
        color: #ff4d4d;   /* rojo suave */
      }

      .hud-buy {
        color: #4dff7a;   /* verde suave */
      }

      /* Spinner más chico dentro del HUD */
      .hud-value .spinner {
        transform: scale(0.6);
      }

      /* Mobile: se apilan pero siguen siendo bajas */
      @media (max-width: 768px) {
        .hud-strip {
          flex-wrap: wrap;
          gap: 6px;
          justify-content: center;
        }
        .hud-card {
          min-height: 34px;
          padding: 4px 10px;
        }
        .hud-label {
          font-size: 10px;
        }
        .hud-value {
          font-size: 13px;
        }
        .hud-sub {
          font-size: 10px;
        }
      }
      /* Asegurar color visible para valores del HUD */
      .hud-value,
      #operaciones,
      #capitalTotal {
        color: #ffffff !important;  /* blanco puro visible */
      }

      /* Subtextos siguen con sus colores personalizados */
      .hud-sell {
        color: #ff4d4d !important;
      }

      .hud-buy {
        color: #4dff7a !important;
      }
      /* ALERTAS COMPACTAS Y MODERNAS — FORZADAS */
      .alert-box {
        display: block !important;
        width: 100% !important;
        max-width: 900px;
        margin: 4px auto !important;

        padding: 6px 12px !important;
        height: auto !important;

        border-radius: 8px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;

        color: white !important;     /* textos siempre visibles */
        background-color: rgba(0,0,0,0.25) !important;  /* fondo moderno */
        backdrop-filter: blur(4px) !important;

        border: 1px solid rgba(255,255,255,0.15) !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;

        overflow: hidden !important;
      }

      /* COLOR DEL ESTADO (viene desde PHP → lo aplicamos SOLO al borde izquierdo) */
      .alert-box[data-color] {
        border-left: 6px solid var(--alert-color) !important;
      }

      /* Mobile aún más compacto */
      @media (max-width: 600px) {
        .alert-box {
          font-size: 11px !important;
          padding: 4px 10px !important;
        }
      }
