/* ============================================================================
   1. IMPORTACIÓN DE FUENTES
============================================================================ */

/* Importa la fuente retro */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Orbitron:wght@400;700;900&display=swap');

/* ============================================================================
   2. RESET Y ESTILOS GLOBALES
============================================================================ */

/* AplicAR BOX-SIZING GLOBAL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Estilos base del cuerpo - TEMA RETRO NEÓN */
body {
    font-family: "Orbitron", "Press Start 2P", monospace;
    font-weight: 400;
    font-style: normal;
    background-color: #0f0f23; /* Fondo azul muy oscuro como la app */
    color: #00ff41; /* Verde neón principal */
    overflow-x: hidden;
    padding-bottom: 60px;
    /* Patrón de puntos sutil para efecto retro */
    background-image:
        radial-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        radial-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 15px 15px, 30px 30px;
    background-position: 0 0, 15px 15px;
    /* Efecto de escaneo CRT */
    position: relative;
}

/* Efecto de TV retro global */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.03) 2px,
        rgba(0, 255, 65, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Ocultar elementos visualmente accesibles para lectores de pantalla */
.hidden-name {
    visibility: hidden;
    position: absolute;
    height: 0;
    overflow: hidden;
}
.market-title h1 {
  font-family: "Press Start 2P", monospace;
  font-size: 1rem;
  color: #00ff41;
  text-align: center;
  letter-spacing: 4px;
  text-transform: uppercase;
  position: relative;

  /* Brillo neón */
  text-shadow:
    0 0 5px #00ff41,
    0 0 10px #00ff41,
    0 0 20px #00ff41;

  /* Ligerísima distorsión */
  filter: blur(0.002em);

  /* Animación de parpadeo */
  animation: crt-flicker 1.5s infinite alternate;
}

/* scanlines CRT */
.market-title h1::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Animación CRT flicker */
@keyframes crt-flicker {
  0%   { opacity: 1; }
  5%   { opacity: 0.95; }
  10%  { opacity: 0.85; }
  15%  { opacity: 0.9; }
  20%  { opacity: 1; }
  100% { opacity: 1; }
}

/* ============================================================================
   3. TIPOGRAFÍA - ESTILO RETRO NEÓN
============================================================================ */

/* Encabezados */
h1, h2, h3, h4, h5, h6 {
    font-family: "Press Start 2P", monospace;
    margin: 20px 0;
    padding: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 1.8em;
    color: #00ff41;
    border: 2px solid #00ff41;
    border-radius: 0;
}

h2 {
    font-size: 1.4em;
    color: #00ffff;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.2em;
    color: #ff0080;
}

/* Enlaces */
a {
    color: #00ff41;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: "Orbitron", monospace;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
    transform: scale(1.05);
}

/* ============================================================================
   4. TABLAS - ESTILO RETRO NEÓN
============================================================================ */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    table-layout: auto;
    background-color: rgba(15, 15, 35, 0.9);
    color: #00ff41;
    border: 2px solid #00ff41;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
    font-family: "Orbitron", monospace;
}

th, td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #00aa33;
    font-family: "Orbitron", monospace;
    font-weight: bold;
    background-color: rgba(15, 15, 35, 0.8);
    position: relative;
}

th {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.3), rgba(0, 255, 65, 0.1));
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
    border: 2px solid #00ff41;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

td {
    background-color: rgba(15, 15, 35, 0.7);
}

table tbody tr:hover td {
    background: rgba(0, 255, 65, 0.2);
}

/* Colores para cambios de precios - tema neón */
.price-up, .positive-change, .pl-positive {
    color: #00ff41;
}

.price-down, .negative-change, .pl-negative {
    color: #ff0040;
}

.neutral-change {
    color: #00ffff;
}

/* ============================================================================
   5. BOTONES - ESTILO RETRO NEÓN
============================================================================ */

/* Estilos generales para botones */
button, .styled-button {
    font-family: "Press Start 2P", monospace;
    padding: 12px 20px;
    margin: 10px 5px;
    border: 2px solid #00ff41;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 255, 65, 0.05));
    color: #00ff41;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

button::before, .styled-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before, .styled-button:hover::before {
    left: 100%;
}

button:hover, .styled-button:hover {
    background: rgba(0, 255, 65, 0.2);
    transform: translateY(-2px);
    border-color: #fff;
    color: #fff;
}

/* Botones específicos */
.btn-positive.styled-button,
.styled-button.buy-button {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 255, 65, 0.1)) !important;
    color: #00ff41 !important;
    border-color: #00ff41 !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4) !important;
}

.btn-negative.styled-button,
.styled-button.short-button {
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.2), rgba(255, 0, 64, 0.1)) !important;
    color: #ff0040 !important;
    border-color: #ff0040 !important;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.4) !important;
    text-shadow: 0 0 8px #ff0040 !important;
}

.btn-negative.styled-button:hover,
.styled-button.short-button:hover {
    box-shadow: 0 0 30px rgba(255, 0, 64, 0.6) !important;
    text-shadow: 0 0 15px #ff0040 !important;
}

/* ============================================================================
   6. FORMULARIOS Y CAMPOS DE BÚSQUEDA - ESTILO RETRO NEÓN
============================================================================ */

/* Contenedor del campo de búsqueda */
.search-bar {
    margin-bottom: 20px;
    width: 100%;
    padding: 0;
}

.search-form {
    width: 100%;
}

.search-input-container {
    position: relative;
    width: 100%;
}

.search-input-container input {
    width: 100% !important;
    box-sizing: border-box;
}

/* Ícono de búsqueda */
.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #00ff41;
    font-size: 16px;
    pointer-events: none;
    text-shadow: 0 0 8px #00ff41;
    z-index: 3;
}

/* Campo de búsqueda */
#sticky-search-input,
#ranking-search-input,
#search-input {
    width: 100%;
    padding: 15px 45px 15px 45px;
    font-size: 14px;
    border: 2px solid #00ff41;
    border-radius: 0;
    box-sizing: border-box;
    font-family: "Orbitron", monospace;
    background: rgba(15, 15, 35, 0.8);
    color: #00ff41;
    box-shadow:
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.1);

    font-weight: 700;
    position: relative;
    z-index: 2;
}

#sticky-search-input:focus,
#ranking-search-input:focus,
#search-input:focus {
    border-color: #fff;
    background: rgba(15, 15, 35, 0.9);
    box-shadow:
        0 0 30px rgba(0, 255, 65, 0.6),
        inset 0 0 30px rgba(0, 255, 65, 0.2);
    outline: none;
    text-shadow: 0 0 10px #00ff41;
    color: #fff;
}

/* ============================================================================
   7. LAYOUT Y CONTENEDORES - ESTILO RETRO NEÓN
============================================================================ */

/* Contenedor principal */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto auto 50px auto;
    padding: 20px;
    background: rgba(15, 15, 35, 0.8);
    border: 2px solid #00ff41;
    border-radius: 0;
    box-sizing: border-box;
    box-shadow:
        0 0 40px rgba(0, 255, 65, 0.3),
        inset 0 0 40px rgba(0, 255, 65, 0.1);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

/* Contenedores específicos */
.portfolio, .stock-table {
    width: 100%;
    margin: 15px 0;
    padding: 15px;
    background: rgba(15, 15, 35, 0.9);
    border: 2px solid #00aa33;
    border-radius: 0;
    box-sizing: border-box;
    overflow-x: auto;
    box-shadow:
        0 0 25px rgba(0, 255, 65, 0.2),
        inset 0 0 25px rgba(0, 255, 65, 0.1);
    position: relative;
    z-index: 2;
}

/* ============================================================================
   8. TARJETAS DE STOCK - ESTILO RETRO NEÓN
============================================================================ */

/* Contenedor de tarjetas */
.stock-card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px;
    position: relative;
    z-index: 2;
}

@media screen and (min-width: 768px) {
    .stock-card-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Contenedor de la tarjeta de stock */
.stock-card {
    display: flex;
    align-items: center;
    border: 2px solid #00aa33;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(0, 255, 65, 0.05));
    color: #00ff41;
    padding: 15px;
    width: 100%;
    box-shadow:
        0 0 25px rgba(0, 255, 65, 0.2),
        inset 0 0 25px rgba(0, 255, 65, 0.1);
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.stock-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s;
}

.stock-card:hover::before {
    left: 100%;
}

.stock-card:hover {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15), rgba(0, 255, 65, 0.05));
    box-shadow:
        0 0 35px rgba(0, 255, 65, 0.4),
        inset 0 0 35px rgba(0, 255, 65, 0.2);
    border-color: #00ff41;
    transform: translateY(-2px);
}

/* Imagen del stock */
.stock-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0;
    margin-right: 15px;
    flex-shrink: 0;
    border: 2px solid #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    cursor: pointer;
    position: relative;
    z-index: 3;
}

/* Información del stock */
.stock-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stock-title {
    font-family: "Orbitron", monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: #00ff41;
    text-shadow: 0 0 8px #00ff41;
}

.stock-symbol {
    font-weight: 700;
    color: #00ffff;
    font-size: 1em;
    text-shadow: 0 0 8px #00ffff;
}

.stock-change {
    font-weight: 700;
    font-size: 1rem;
}

.stock-details {
    font-size: 0.9rem;
    font-weight: 600;
    color: #aaa;
    font-family: "Orbitron", monospace;
}

/* ============================================================================
   9. HEADER Y FOOTER - ESTILO RETRO NEÓN
============================================================================ */

/* Header pegajoso */
.sticky-header {
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(0, 255, 65, 0.05));
    border-bottom: 2px solid #00ff41;
    box-shadow: 0px 0px 25px rgba(0, 255, 65, 0.4);
    z-index: 1000;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    backdrop-filter: blur(15px);
    position: relative;
}

/* Logo */
.logo-img {
    height: 30px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px #00ff41);
    position: relative;
    z-index: 2;
}

.logo-img:hover {
    filter: drop-shadow(0 0 10px #00ff41) drop-shadow(0 0 15px #00ff41);
    transform: scale(1.05);
}

.logo-text {
    font-family: "Press Start 2P", monospace;
    font-size: 7px;
    font-weight: 400;
    color: #00ff41;
    text-decoration: none;
    display: inline-block;
    padding: 2px 4px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #00ff41;
    border: 1px solid transparent;
    border-radius: 0;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    text-align: center;
}

.logo-text:hover {
    color: #fff;
    text-shadow: 0 0 10px #00ff41, 0 0 15px #00ff41;
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
    transform: scale(1.05);
}

/* Footer pegajoso */
.sticky-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(0, 255, 65, 0.05));
    border-top: 2px solid #00ff41;
    justify-content: space-around;
    padding: 10px 0;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}

.sticky-footer a {
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border-radius: 0;
    border: 1px solid transparent;
}

.sticky-footer a:hover {
    color: #00ff41;
    text-shadow: 0 0 15px #00ff41;
    background: rgba(0, 255, 65, 0.1);
    border-color: #00ff41;
    transform: translateY(-2px);
}

.sticky-footer a i {
    display: block;
    filter: drop-shadow(0 0 8px currentColor);
}

/* ============================================================================
   10. MODALES - ESTILO RETRO NEÓN
============================================================================ */

/* Modal general */
.modal, #login-required-modal, #stock-chart-container, #error-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(0, 255, 65, 0.05));
    border: 3px solid #00ff41;
    border-radius: 0;
    padding: 25px;
    z-index: 1001;
    width: 80%;
    max-width: 600px;
    box-shadow:
        0 0 50px rgba(0, 255, 65, 0.5),
        inset 0 0 50px rgba(0, 255, 65, 0.1);
    box-sizing: border-box;
    color: #00ff41;
    backdrop-filter: blur(20px);
    font-family: "Orbitron", monospace;
}

.modal input {
    width: 100%;
    padding: 12px;
    font-family: "Orbitron", monospace;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
    background: rgba(15, 15, 35, 0.8);
    border: 2px solid #00ff41;
    color: #00ff41;
    border-radius: 0;
    text-shadow: 0 0 5px #00ff41;
}

.modal input:focus {
    border-color: #fff;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    outline: none;
    color: #fff;
}

/* ============================================================================
   11. ANIMACIONES RETRO NEÓN
============================================================================ */

/* Animación de pulso neón simplificada */
@keyframes neonPulse {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

/* Animación de resplandor neón simplificada */
@keyframes neonGlow {
    0% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
    }
}

/* Animación de parpadeo retro */
@keyframes retroBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================================================
   12. ELEMENTOS ESPECÍFICOS RETRO
============================================================================ */

/* Balance con efecto neón */
.balance {
    position: relative;
    border-radius: 0;
    text-align: center;
    color: #00ff41;
    overflow: hidden;
    font-family: "Orbitron", monospace;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 170, 51, 0.1));
    border: 2px solid #00ff41;
    padding: 20px;
    font-weight: 700;
    font-size: 1.2em;
}

/* Mercados container con efecto neón */
.markets-container, .markets-container-view, .news-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding: 15px;
    align-items: center;
    cursor: grab;
    scrollbar-width: none;
    justify-content: flex-start;
    background: linear-gradient(90deg, rgba(15, 15, 35, 0.9), rgba(0, 255, 65, 0.1), rgba(15, 15, 35, 0.9));
    border: 2px solid #00aa33;
    border-radius: 0;
    box-shadow:
        0 0 25px rgba(0, 255, 65, 0.2),
        inset 0 0 25px rgba(0, 255, 65, 0.1);
    position: relative;
    z-index: 2;
}

.market-item {
    font-size: 12px;
    color: #00aa33;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 700;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: "Orbitron", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.market-item:hover {
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
    transform: scale(1.05);
}

.market-item.live {
    color: #ff0040;
    font-weight: 700;
    border-color: #ff0040;
}

/* ============================================================================
   13. CARD CONTAINERS Y OTROS ELEMENTOS
============================================================================ */

/* Card containers con tema neón */
.card-container {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 400px;
    height: 150px;
    margin: 15px;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(0, 255, 65, 0.1));
    border: 2px solid #00ff41;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    box-shadow:
        0 0 25px rgba(0, 255, 65, 0.3),
        inset 0 0 25px rgba(0, 255, 65, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.card-container:hover {
    box-shadow:
        0 0 35px rgba(0, 255, 65, 0.5),
        inset 0 0 35px rgba(0, 255, 65, 0.2);
    transform: translateY(-3px);
}

.card-content {
    width: 200px;
    padding: 15px;
    color: #00ff41;
    font-weight: 700;
    font-size: 0.9em;
    font-family: "Orbitron", monospace;
}

.card-content button {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #00ff41;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    transition: all 0.3s ease;
    font-family: "Press Start 2P", monospace;
    text-transform: uppercase;
}

.card-content button:hover {
    background: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.5);
    transform: scale(1.05);
    color: #fff;
}

/* Hero section */
.hero-section {
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #0f0f23 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #00ff41;
    box-shadow:
        0 0 40px rgba(0, 255, 65, 0.3),
        inset 0 0 40px rgba(0, 255, 65, 0.1);
}

.hero-start-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 30px;
    font-size: 14px;
    background: rgba(0, 255, 65, 0.2);
    border: 2px solid #00ff41;
    z-index: 2;
    color: #00ff41;
    font-family: "Press Start 2P", monospace;
    text-transform: uppercase;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    animation: neonPulse 2s infinite;
}

.hero-start-button:hover {
    background: rgba(0, 255, 65, 0.3);
    color: #fff;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.7);
}

/* ============================================================================
   14. MATCHES SECTION - RETRO STYLE
============================================================================ */

.matches-section {
    width: 100%;
    margin: 20px 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.matches-header h2 {
    font-family: "Press Start 2P", monospace;
    font-size: 1.2em;
    color: #00ffff;
    margin: 0 0 20px 0;
    text-align: center;
    text-shadow: 0 0 15px #00ffff;
    text-transform: uppercase;
}

.matches-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 15px 0;
    -webkit-overflow-scrolling: touch;
}

.match-card {
    flex: 0 0 auto;
    min-width: 220px;
    max-width: 280px;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(0, 255, 65, 0.05));
    border: 2px solid #00aa33;
    border-radius: 0;
    padding: 12px;
    box-shadow:
        0 0 20px rgba(0, 255, 65, 0.2),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    transition: all 0.3s ease;
    font-family: "Orbitron", monospace;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 35px rgba(0, 255, 65, 0.4),
        inset 0 0 35px rgba(0, 255, 65, 0.2);
    border-color: #00ff41;
}

.match-card.live {
    border-color: #ff0040;
    box-shadow:
        0 0 25px rgba(255, 0, 64, 0.3),
        inset 0 0 25px rgba(255, 0, 64, 0.1);
    animation: neonPulse 1s infinite;
}

.team-name {
    font-weight: 700;
    font-size: 0.7em;
    color: #00ff41;
    text-shadow: 0 0 6px #00ff41;
}

.vs-score {
    font-weight: 700;
    font-size: 0.9em;
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff;
    text-align: center;
    min-width: 50px;
}

.match-status {
    font-size: 0.65em;
    color: #aaa;
    background: rgba(0, 255, 65, 0.1);
    padding: 4px 8px;
    border: 1px solid #00aa33;
    border-radius: 0;
    display: inline-block;
    font-family: "Orbitron", monospace;
    text-transform: uppercase;
    font-weight: 600;
}

.match-status.live {
    background: rgba(255, 0, 64, 0.2);
    color: #ff0040;
    border-color: #ff0040;
    text-shadow: 0 0 8px #ff0040;
    animation: retroBlink 1s infinite;
}

/* ============================================================================
   15. RESPONSIVE RETRO
============================================================================ */

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
        margin-top: 5px !important;
    }

    h1 {
        font-size: 1.2em;
        padding: 10px;
    }

    h2 {
        font-size: 1em;
    }

    th, td {
        padding: 8px 4px;
        font-size: 0.8em;
    }

    .styled-button {
        padding: 10px 15px;
        font-size: 8px;
    }

    .stock-image {
        width: 60px;
        height: 60px;
    }

    .logo-img {
        height: 24px;
    }

    .logo-text {
        font-size: 6px;
        padding: 2px 3px;
    }

    .match-card {
        min-width: 200px;
        padding: 10px;
    }

    .team-name {
        font-size: 0.6em;
    }

    .vs-score {
        font-size: 0.8em;
        min-width: 40px;
    }

    .match-status {
        font-size: 0.55em;
        padding: 3px 6px;
    }

    .market-item {
        font-size: 10px;
        padding: 6px 8px;
    }

    .sticky-header {
        padding: 6px 10px;
    }
}

/* ============================================================================
   16. ELEMENTOS ADICIONALES RETRO
============================================================================ */

/* Price ticker con tema retro */
.price-ticker-container {
    position: fixed;
    bottom: 60px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(0, 255, 65, 0.1));
    border-top: 2px solid #00ff41;
    height: 50px;
    overflow: hidden;
    z-index: 999;
    box-shadow: 0 -5px 20px rgba(0, 255, 65, 0.3);
    backdrop-filter: blur(10px);
}

/* Cookie notice retro */
.cookie-notice {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(0, 255, 65, 0.1)) !important;
    border: 2px solid #00ff41 !important;
    border-radius: 0 !important;
    color: #00ff41 !important;
    font-family: "Orbitron", monospace !important;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4) !important;
}

.cookie-notice button {
    background: rgba(0, 255, 65, 0.2) !important;
    color: #00ff41 !important;
    border: 2px solid #00ff41 !important;
    border-radius: 0 !important;
    font-family: "Press Start 2P", monospace !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3) !important;
}

.cookie-notice button:hover {
    background: rgba(0, 255, 65, 0.3) !important;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.5) !important;
}

/* Submit link retro */
.submit-stocks {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 255, 65, 0.1));
    color: #00ff41;
    border: 2px solid #00ff41;
    border-radius: 0;
    text-align: center;
    display: inline-block;
    line-height: 1;
    margin: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    transition: all 0.3s ease;
    font-family: "Press Start 2P", monospace;
    text-decoration: none;
    letter-spacing: 1px;
}

.submit-stocks:hover {
    background: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    transform: scale(1.05);
    color: #fff;
}

/* Spinner de carga retro */
.loading-spinner {
    border: 3px solid rgba(0, 255, 65, 0.1);
    border-top: 3px solid #00ff41;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efectos especiales adicionales */
.glow-effect {
    text-shadow: 0 0 5px currentColor;
}

.retro-border {
    border: 2px solid #00ff41;
}

.retro-background {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(0, 255, 65, 0.05));
}

/* ============================================================================
   17. ELEMENTOS ESPECÍFICOS ADICIONALES
============================================================================ */

/* News cards retro */
.news-card {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(0, 255, 65, 0.05)) !important;
    border: 2px solid #00aa33 !important;
    border-radius: 0 !important;
    box-shadow:
        0 0 25px rgba(0, 255, 65, 0.2),
        inset 0 0 25px rgba(0, 255, 65, 0.1) !important;
    color: #00ff41 !important;
}

.news-card:hover {
    border-color: #00ff41 !important;
    box-shadow:
        0 0 35px rgba(0, 255, 65, 0.4),
        inset 0 0 35px rgba(0, 255, 65, 0.2) !important;
}

.news-title a {
    color: #00ff41 !important;
    font-family: "Orbitron", monospace !important;
    font-weight: 700 !important;
}

/* Footer retro específico */
.start-trading-footer {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(0, 255, 65, 0.1)) !important;
    border-top: 2px solid #00ff41 !important;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3) !important;
}

.trading-text h2, .trading-text h3 {
    color: #00ff41 !important;
    font-family: "Press Start 2P", monospace !important;
    text-shadow: 0 0 15px #00ff41 !important;
}

.signup-btn, .login-btn {
    font-family: "Press Start 2P", monospace !important;
    text-transform: uppercase !important;
    border: 2px solid #00ff41 !important;
    border-radius: 0 !important;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3) !important;
    font-size: 10px !important;
}

.signup-btn {
    background: rgba(0, 255, 65, 0.2) !important;
    color: #00ff41 !important;
}

.login-btn {
    background: transparent !important;
    color: #00ff41 !important;
}

/* Price value boxes with square corners */
.price-value-box {
                min-width: 60px;
                width: auto;
                height: 30px;
                padding: 0 8px;
                border-radius: 0 !important;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 0.7em;
                font-weight: bold;
                color: black;
                background-color: #00ff41;
                margin: 2px;
                border: 1px solid #00ff41;
                font-family: "Press Start 2P", monospace;
                flex-shrink: 0;
                white-space: nowrap;
            }

.price-value-box.current-price {
                min-width: 50px;
                width: auto;
                padding: 0 10px;
                height: 32px;
                font-size: 0.6em;
                border-radius: 0 !important;
                box-shadow: 0 0 15px rgba(0, 255, 65, 0.8);
                border: 2px solid #00ff41;
                animation: glow 2s infinite alternate;
            }

/* Price coloring rules */
.price-value-box[data-price="low"] {
    background-color: #FF0000;  /* Red for < 4.99 */
    border-radius: 0 !important;
}

.price-value-box[data-price="medium"] {
    background-color: #39FF14;  /* Bright green for 5-9.99 */
    border-radius: 0 !important;
}

.price-value-box[data-price="high"] {
    background-color: #2196F3;  /* Blue for > 9.99 */
    border-radius: 0 !important;
}

.price-value-box.current-price[data-price="low"] {
    background-color: #FF0000;
    color: black;
    min-width: 48px;
    width: auto;
    height: 36px;
    margin-left: 5px;
    border-radius: 0 !important;
    box-shadow: 0 0 10px #FF0000, 0 0 20px #FF0000;
    animation: pulse 1.5s infinite;
}

.price-value-box.current-price[data-price="medium"] {
    background-color: #39FF14;
    color: black;
    min-width: 48px;
    width: auto;
    height: 36px;
    margin-left: 5px;
    border-radius: 0 !important;
    box-shadow: 0 0 10px #39FF14, 0 0 20px #39FF14;
    animation: pulse 1.5s infinite;
}

.price-value-box.current-price[data-price="high"] {
    background-color: #2196F3;
    color: black;
    min-width: 48px;
    width: auto;
    height: 36px;
    margin-left: 5px;
    border-radius: 0 !important;
    box-shadow: 0 0 10px #2196F3, 0 0 20px #2196F3;
    animation: pulse 1.5s infinite;
}