/******************************************************/
/***  ANULAR PADDING CUANDO ABRE MODAL (BOOTSTRAP)  ***/
/******************************************************/

body.modal-open {
  padding-right: 0 !important;
}

/***************************************************/
/************  CALCULADORA DE POSICION  ************/
/***************************************************/
.switch-container {
  display: flex;
  gap: 10px;
  align-items: center;
}
.profit-positive {
  color: #28a745;
}
.profit-negative {
  color: #dc3545;
}
.risk-inputs {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
}
.modal-content {
  border-radius: 15px;
}
.compact-input {
  padding: 8px 12px;
  font-size: 0.9rem;
}

#calculator-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(30, 34, 53, 0.85); /* Color de fondo oscuro y semitransparente */
  backdrop-filter: blur(4px); /* Efecto de desenfoque */
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
}

.upgrade-message-content {
  text-align: center;
  color: white;
}

.modal-header .btn-close {
  position: relative;
  z-index: 1000; /* Un valor MÁS ALTO que el de la capa de bloqueo */
}

/* Ocultar las flechas en los input number para 
navegadores basados en WebKit (Chrome, Safari, Edge) */
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/***************************************************/
/************   PADDING PARA TABLAS   **************/
/***************************************************/
.table-small-padding > :not(caption) > * > * {
  padding: 0.2rem 1rem;
}

.bg-halt {
  background-color: var(--bs-table-hover-bg) !important;
}

/* Anular las propiedades de .layout-navbar-fixed .layout-page:before */
.popup-active .layout-navbar-fixed .layout-page::before {
  backdrop-filter: none !important;
  background: none !important;
}

/* Selected row highlight for Statistics table */
#statsTable tbody tr.is-selected,
#statsTable tbody tr.is-selected > td {
  background-color: #282c40 !important;
}
#statsTable tbody tr.is-selected {
  cursor: default;
}

/* Round the TV chart container in statistics, ensure clipping */
#statsTVCard .card-body,
#tvChartContainerStats {
  border-radius: .5rem;
}

/* Anular el padding-top de .layout-page dentro de .layout-wrapper */
.popup-active .layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 0 !important;
}

/***************************************************/
/************   DISPLAY NEWS SCANNER  **************/
/***************************************************/

/* news-display.css */
.news-marquee {
  background: #f8f9fa00;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.news-container {
  display: inline-flex;
  animation: marquee 350s linear infinite; /* Aumenta la duración para reducir la velocidad */
  /* Elimina padding-right: 100%; */
}

.news-marquee:hover .news-container {
  animation-play-state: paused; /* Pausa la animación al hacer hover */
}

.news-item {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  padding: 0.3rem 0.6rem; /* Padding vertical reducido */
  background: #ffffff0a;
  border-radius: 15px; /* Radio de borde ajustado */
  box-shadow: none;
  transition: transform 0.3s ease;
  font-size: 0.7rem; /* Tamaño de fuente general reducido */
}

.news-ticker {
  background: #007bff;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  margin-right: 1rem;
  font-size: 0.9em;
}

.news-time {
  color: #6c757d;
  margin-right: 1rem;
  font-size: 0.9em;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-container {
    animation: none;
    overflow-x: auto;
  }
}
.news-marquee:hover .news-container {
  animation-play-state: paused; /* Pausa la animación al hacer hover */
}

/***************************************************/
/***************    GRADIENT ANIMATION   ****************/
/***************************************************/

.gradientTextRed {
  /* Gradiente correctamente escrito */
  background: linear-gradient(90deg, #fb7c00, #e73b50, #9e009b);

  /* Hace que el fondo se “recorte” al texto */
  -webkit-background-clip: text;
  background-clip: text; /* estándar */

  /* Vuelve el texto transparente para que se vea el gradiente */
  -webkit-text-fill-color: transparent; /* Safari/WebKit */
  color: transparent; /* resto */
}
.promoTickerHighlight {
  position: relative;
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background-size: 220% 100%;
  animation: promoTickerShimmer 4s ease-in-out infinite, promoTickerGlow 2.5s ease-in-out infinite;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-origin: 50% 50%;
}
.promoTickerHighlight::after {
  content: '';
  position: absolute;
  inset: -6px -12px;
  border-radius: 999px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(231, 59, 80, 0.18), rgba(40, 42, 63, 0));
  opacity: 0.65;
  filter: blur(8px);
  z-index: -1;
  animation: promoTickerHalo 3.5s ease-in-out infinite;
  transition: opacity 0.4s ease;
}
@keyframes promoTickerShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes promoTickerGlow {
  0%,
  100% {
    text-shadow: 0 0 14px rgba(231, 59, 80, 0.3), 0 0 6px rgba(251, 124, 0, 0.4);
  }
  50% {
    text-shadow: 0 0 22px rgba(231, 59, 80, 0.5), 0 0 10px rgba(158, 0, 155, 0.3);
  }
}
@keyframes promoTickerHalo {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}
.promoTickerHighlight.is-changing {
  opacity: 0;
  transform: scale(0.9);
}
.promoTickerHighlight.is-changing::after {
  opacity: 0.35;
}
.gradientTextBlue {
  /* Gradiente en tonos azul-morado */
  background: linear-gradient(90deg, #00c6ff, #0072ff, #8e2de2, #4a00e0);

  /* Recorta el fondo al texto */
  -webkit-background-clip: text;
  background-clip: text; /* estándar */

  /* Texto transparente para mostrar el gradiente */
  -webkit-text-fill-color: transparent; /* Safari/WebKit */
  color: transparent; /* resto */
}

.gradient-animation {
  background: radial-gradient(100% 100% at var(--g3-3-x-position) var(--g3-3-y-position), #262a3d80 -80%, transparent),
    radial-gradient(100% 100% at var(--g3-1-x-position) var(--g3-1-y-position), #7267f080 -71%, transparent),
    radial-gradient(100% 100% at var(--g3-2-x-position) var(--g3-2-y-position), #554bc480 -52%, transparent), #262a3d80; /* color base con 50 % de opacidad */
  animation: g-3 6s ease-in infinite;
}
@property --g3-1-x-position {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 16.09375%;
}
@property --g3-1-y-position {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 33.12500000000001%;
}
@property --g3-2-x-position {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 48.55468750000001%;
}
@property --g3-2-y-position {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 9.648437500000002%;
}
@property --g3-3-x-position {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 78.6328125%;
}
@property --g3-3-y-position {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 79.8046875%;
}
:root {
  --g3-1-x-position: 16.09375%;
  --g3-1-y-position: 33.12500000000001%;
  --g3-2-x-position: 48.55468750000001%;
  --g3-2-y-position: 9.648437500000002%;
  --g3-3-x-position: 78.6328125%;
  --g3-3-y-position: 79.8046875%;
}
@keyframes g-3 {
  50% {
    --g3-1-x-position: 42.69531250000001%;
    --g3-1-y-position: 91.5625%;
    --g3-2-x-position: 91.7578125%;
    --g3-2-y-position: 33.046875%;
    --g3-3-x-position: 5.742187500000001%;
    --g3-3-y-position: 5.546875000000001%;
  }
}

.gradient-fluid {
  background: radial-gradient(100% 100% at var(--fx1-x) var(--fx1-y), #141622bb -80%, transparent),
    radial-gradient(100% 100% at var(--fx2-x) var(--fx2-y), #3433666b -60%, transparent),
    radial-gradient(100% 100% at var(--fx3-x) var(--fx3-y), #262a3d9d -40%, transparent), #1f1f2a; /* fondo base oscuro */
  animation: gradientFlow 12s ease-in-out infinite;
  background-blend-mode: screen;
}

@property --fx1-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 20%;
}
@property --fx1-y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 30%;
}
@property --fx2-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 60%;
}
@property --fx2-y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 20%;
}
@property --fx3-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 80%;
}
@property --fx3-y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 70%;
}

:root {
  --fx1-x: 20%;
  --fx1-y: 30%;
  --fx2-x: 60%;
  --fx2-y: 20%;
  --fx3-x: 80%;
  --fx3-y: 70%;
}

@keyframes gradientFlow {
  25% {
    --fx1-x: 35%;
    --fx1-y: 80%;
    --fx2-x: 70%;
    --fx2-y: 50%;
    --fx3-x: 10%;
    --fx3-y: 10%;
  }
  50% {
    --fx1-x: 60%;
    --fx1-y: 60%;
    --fx2-x: 30%;
    --fx2-y: 90%;
    --fx3-x: 40%;
    --fx3-y: 20%;
  }
  75% {
    --fx1-x: 25%;
    --fx1-y: 15%;
    --fx2-x: 80%;
    --fx2-y: 30%;
    --fx3-x: 60%;
    --fx3-y: 90%;
  }
}

/***************************************************/
/***************     TITULO CARD    ****************/
/***************************************************/

/* custom.css */
.bg-success-gradient {
  background: linear-gradient(to bottom, #28c76f -200%, rgba(40, 191, 108, 0) 100%) !important;
  /* Solo para pruebas, quitar después */
  min-height: 10px;
}
/* custom.css */
.bg-danger-gradient {
  background: linear-gradient(to bottom, #ff4c51 -200%, rgba(191, 40, 40, 0) 100%) !important;
  /* Solo para pruebas, quitar después */
  min-height: 10px;
}
/* custom.css */
.bg-primary-gradient {
  background: linear-gradient(to bottom, #7267f0 -200%, rgba(191, 40, 40, 0) 100%) !important;
  /* Solo para pruebas, quitar después */
  min-height: 10px;
}
.bg-warning-gradient {
  background: linear-gradient(to bottom, #e39042 -200%, rgba(40, 191, 108, 0) 100%) !important;
  /* Solo para pruebas, quitar después */
  min-height: 10px;
}
.bg-info-gradient {
  background: linear-gradient(to bottom, #00b9d1 -200%, rgba(40, 191, 108, 0) 100%) !important;
  /* Solo para pruebas, quitar después */
  min-height: 10px;
}
/***************************************************/
/******************     SCROLL    ******************/
/***************************************************/

.volume-high {
  background-color: rgba(76, 175, 80, 0.1);
} /* Verde claro */
.volume-medium {
  background-color: rgba(255, 235, 59, 0.1);
} /* Amarillo claro */
.volume-low {
  background-color: rgba(244, 67, 54, 0.1);
} /* Rojo claro */

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.blink {
  animation: blink 0.8s ease-in-out 2;
  background-color: rgba(255, 235, 59, 0.1);
}

/* Animación para cambios de posición */
@keyframes position-change {
  0% {
    transform: translateY(10px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-10px);
    opacity: 0.8;
  }
}

.position-change {
  animation: position-change 1s ease-in-out;
  background: rgba(255, 193, 7, 0.1) !important;
}

.position-change.highlight-up {
  border-left: 3px solid #28a745;
}

.position-change.highlight-down {
  border-left: 3px solid #dc3545;
}

/* Colores y animaciones */
.text-success-bold {
  color: #28a745;
  font-weight: 700;
}
.text-success {
  color: #6cda82;
}
.text-success-light {
  color: #a5d6a7;
}
.text-danger-bold {
  color: #dc3545;
  font-weight: 700;
}
.text-danger {
  color: #ff6666;
}
.text-warning {
  color: #ffc107;
}

.trend-icon {
  font-size: 0.9em;
  margin-right: 5px;
}

.hod-badge {
  background: #e63946;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75em;
  margin-left: 5px;
  vertical-align: middle;
}

@keyframes highlight {
  0% {
    background: rgba(255, 235, 59, 0.3);
  }
  100% {
    background: transparent;
  }
}

.highlight-row {
  animation: highlight 1.5s ease-out;
}

.highlight-up .trend-icon {
  color: #28a745;
}
.highlight-down .trend-icon {
  color: #dc3545;
}

.custom-scrollbar {
  --sb-track-color: rgba(0, 0, 0, 0);
  --sb-thumb-color: rgba(255, 255, 255, 0.281) !important;
  --sb-size: 5px;

  overflow-y: auto;
  overflow-x: hidden;
}

/* Estilo para navegadores basados en WebKit (Chrome, Safari) */
.custom-scrollbar::-webkit-scrollbar {
  width: var(--sb-size);
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 5px;
}

/* Estilo para Firefox */
@supports not selector(::-webkit-scrollbar) {
  .custom-scrollbar {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}

html {
  --sb-track-color: rgba(0, 0, 0, 0);
  --sb-thumb-color: rgba(255, 255, 255, 0.281) !important;
  --sb-size: 8px;

  overflow-y: auto;
  overflow-x: hidden;
}

/* Estilo para navegadores basados en WebKit (Chrome, Safari) */
html::-webkit-scrollbar {
  width: var(--sb-size);
}

html::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 5px;
}

html::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 5px;
}

/***************************************************/
/****************** OTROS ESTILOS ******************/
/***************************************************/

/********* ESTILOS PARA TABLAS DE FILINGS **********/

/* — BASE — */
.sec-filings-table {
  width: 100%;
  table-layout: auto; /* ← deja que el navegador calcule */
  border-collapse: collapse; /* (opcional) */
}
.sec-filings-table th,
.sec-filings-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* col 1  ⭐ */
.sec-filings-table td:nth-child(1),
.sec-filings-table th:nth-child(1) {
  width: 15px;
  min-width: 15px;
  max-width: 15px;
  text-align: center;
}

/* col 2  Tipo de filing */
.sec-filings-table td:nth-child(2),
.sec-filings-table th:nth-child(2) {
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}

/* col 3  Descripción */
.sec-filings-table td:nth-child(3),
.sec-filings-table th:nth-child(3) {
  width: auto; /* absorbe todo lo sobrante */
  max-width: 0; /* ellipsis incluso cuando se encoja */
  padding-left: 10px;
  padding-right: 10px;
}

/* col 4  Fecha */
.sec-filings-table td:nth-child(4),
.sec-filings-table th:nth-child(4) {
  width: 130px; /* 2025-05-18 cabe justo; subí de 25 px a 55 px */
  min-width: 130px;
  max-width: 130px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}

/****** MODAL SIGNUP TERMINOS Y CONDIUCIONES *******/

/* styles.css */
#policyTermsContent {
  font-family: 'Helvetica', sans-serif;
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.6;
  padding: 1rem;
}

/* Estilos específicos para el modal de SEC Filing */
.sec-filing-modal-dialog {
  height: 80vh; /* Altura del 90% de la pantalla */
  margin: auto; /* Centrar horizontalmente */
}

.sec-filing-modal-dialog .modal-content {
  height: 100%;
}

.sec-filing-modal-dialog .modal-body {
  height: calc(100% - 56px); /* Restar la altura del header (56px es la altura aproximada del header) */
  padding: 0;
}

@media (min-width: 992px) {
  /* Escritorio */
  .sec-filing-modal-dialog {
    max-width: 50%; /* Ancho del 50% */
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* Tablet */
  .sec-filing-modal-dialog {
    max-width: 75%; /* Ancho del 75% */
  }
}

@media (max-width: 767.98px) {
  /* Móvil */
  .sec-filing-modal-dialog {
    max-width: 90%; /* Ancho del 90% */
  }
}

/* Clase para los resultados resaltados */
.highlight {
  background-color: yellow;
}

/* Clase para el resultado actual */
.highlight-active {
  background-color: orange;
}

.skeleton-line {
  position: relative;
  overflow: hidden;
  background-color: #e0e0e0;
  height: 16px;
  border-radius: 8px;
  margin-top: 8px;
}

.skeleton-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  animation: shimmer 1s infinite;
}

@keyframes shimmer {
  0% {
    left: -150px;
  }
  100% {
    left: 100%;
  }
}

.loading-text {
  font-size: 24px; /* Ajusta el tamaño de fuente según necesites */
  font-weight: bold;
  color: transparent; /* Hacemos el texto transparente */
  background: linear-gradient(90deg, #a1a1a1 0%, #ffffff 50%, #a7a7a7 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text; /* Para compatibilidad con navegadores WebKit */
  animation: loading 4s infinite linear;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ---------- RESALTADO DE ESTRELLA AI ----------- */

.animated-star {
  color: #ffd700; /* Color dorado inicial */
  animation: shine 2s infinite ease-in-out;
}

@keyframes shine {
  0%,
  100% {
    color: #ffd700;
    text-shadow:
      0 0 5px #ffae00,
      0 0 10px #ffae00,
      0 0 15px #ffae00,
      0 0 20px #ffae00;
  }
  50% {
    color: #ffff00;
    text-shadow:
      0 0 5px #ffff00,
      0 0 10px #ffff00,
      0 0 15px #ffff00,
      0 0 20px #ffff00;
  }
}

/* ---------- TITULO DASHBOARD ----------- */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.animated-gradient-text {
  text-align: center;
  font-size: 2.5rem;
  background: linear-gradient(90deg, #8e2de2, #4a00e0, #c471ed, #f64f59, #8e2de2);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-animation 5s ease-in-out infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ---------- SHADOW NAVBAR ----------- */

.nav-animated-background {
  position: relative;
  background: transparent;
  border-radius: 20px; /* Ajusta el radio según tus necesidades */
  /* Asegura que los elementos internos no se desborden */
}

.nav-animated-background::after {
  content: '';
  position: absolute;
  top: -1px; /* Ajusta para el grosor del borde */
  left: -1px;
  right: -1px;
  bottom: -1px;
  background-image: conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545);
  filter: blur(1px); /* Ajusta el nivel de desenfoque para el glow */
  opacity: 0.7; /* Ajusta la opacidad del glow */
  border-radius: inherit;
  animation: spin 4s linear infinite;
  z-index: -2; /* Coloca el borde animado detrás */
}

.nav-animated-background::before {
  content: '';
  position: absolute;
  top: 0px; /* Debe coincidir con el valor de desplazamiento de ::after */
  left: 0px;
  right: 0px;
  bottom: 0px;
  background: #2f3349 !important; /* Color de fondo del nav */
  border-radius: calc(10px - 3px); /* Resta el grosor del borde del radio original */
  z-index: -1; /* Coloca el fondo delante del borde animado */
}

@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

/* -------- ESTILOS TABLA SCANNER Y MOMENTUM --------- */
#tickersTable th,
#tickersTable td,
#tickersTableLosers th,
#tickersTableLosers td,
#momentumTable th,
#momentumTable td,
#haltsTable th,
#haltsTable td {
  padding: 0.5rem; /* Ajusta el relleno */
  line-height: 1; /* Ajusta la altura de la línea */
}

/* No wrap en columna Ticker y evitar saltos de línea */
#tickersTable td:first-child,
#tickersTableLosers td:first-child {
  white-space: nowrap;
}

#tickersTable td:first-child .d-flex,
#tickersTableLosers td:first-child .d-flex {
  flex-wrap: nowrap;
}

/* Asegurar que símbolo + badges se mantengan en una sola línea */
.ticker-label {
  white-space: nowrap;
}

/* Estilos para el efecto animado en filas nuevas */
.new-ticker-row {
  background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro inicial */
  animation: fadeOutSmooth 10s ease-out forwards;
}

/* Animación para un desvanecimiento gradual a lo largo de 5 segundos */
@keyframes fadeOutSmooth {
  0% {
    background-color: rgba(0, 0, 0, 0.5);
  }
  20% {
    background-color: rgba(0, 0, 0, 0.4);
  }
  50% {
    background-color: rgba(0, 0, 0, 0.25);
  }
  80% {
    background-color: rgba(0, 0, 0, 0.1);
  }
  100% {
    background-color: rgba(0, 0, 0, 0); /* Completamente transparente */
  }
}

/* -------- BOTÓN EMERGENTE OPTIONS --------- */
#floatingButtonOptions {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  width: 65px;
  height: 65px;
  font-size: 4rem;
  transition: transform 0.3s ease;
}

#floatingButtonOptions:hover {
  transform: scale(1.1);
}

/* -------- MENÚ FLOTANTE DE BOTONES -------- */
.floating-menu {
  position: fixed;
  bottom: 125px;
  right: 45px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.floating-menu.d-none {
  display: none;
}

.floating-menu button {
  width: auto;
  height: 45px;
  font-size: 1rem;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  background-color: #007bff;
  color: #fff;
  border-radius: 25px;
  border: none;
}

.floating-menu button:hover {
  transform: scale(1.1) !important;
}

.floating-menu button .icon {
  font-size: 1.5rem;
  margin-right: 10px;
}

/* -------- Etiquetas del Menú Flotante -------- */
.floating-menu-label {
  color: #fff; /* Color del texto */
  font-size: 1rem; /* Tamaño de la fuente */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Sombra para mejor legibilidad */
  margin-right: 10px; /* Espacio entre la etiqueta y el botón */
}

/* -------- Animación para las Etiquetas del Menú Flotante -------- */
.floating-menu.show .floating-menu-item .floating-menu-label {
  animation: bounceInUp 0.5s forwards;
}

/* Animación de rebote */
@keyframes bounceInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
  }
}

.floating-menu.show button {
  animation: bounceInUp 0.5s forwards;
}

/* Overlay oscuro */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #171925;
  opacity: 0.8;
  z-index: 9997;
  display: none;
}

#overlay.show {
  display: block;
}

/* -------- LOADER CHAT MESSAGE ANIMATION --------- */
.loader {
  color: white;
  width: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    19px 0 0 7px,
    38px 0 0 3px,
    57px 0 0 0;
  transform: translateX(-38px);
  animation: l21 0.5s infinite alternate linear;
}

@keyframes l21 {
  50% {
    box-shadow:
      19px 0 0 3px,
      38px 0 0 7px,
      57px 0 0 3px;
  }
  100% {
    box-shadow:
      19px 0 0 0,
      38px 0 0 3px,
      57px 0 0 7px;
  }
}

/* -------- CENTRAR MENSAJE DE CHAT VACIO --------- */
.chat-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-message-text {
  max-width: 75%; /* límite de ancho */
  width: auto;
}

/* Alinea cada bubble según el lado */
.chat-message-right .chat-message-text {
  align-self: flex-end;
}
.chat-message:not(.chat-message-right) .chat-message-text {
  align-self: flex-start;
}

/* -------- PROGRESS STATUS (texto con shimmer) -------- */

/* -------- PROGRESS STATUS (texto con shimmer, sin líneas) -------- */

.tg-progress {
  padding-top: 0.8rem;
}

.tg-status {
  line-height: 1.2;
  display: inline-block;
  position: relative;
  color: rgba(255, 255, 255, 0.9); /* fallback si no hay clip */
}

/* Shimmer aplicado SOLO a glifos del texto */
.tg-status.tg-shimmer {
  --shimmer-size: 1200px; /* período del patrón, ajústalo si ves 2 bandas */

  /* UNA banda gris ancha y difuminada sobre base blanca */
  background-image: repeating-linear-gradient(
    90deg,
    #ffffff 0,
    #c5c5c5 calc(var(--shimmer-size) * 0.38),
    #acacac calc(var(--shimmer-size) * 0.44),
    #727272 calc(var(--shimmer-size) * 0.5),
    #acacac calc(var(--shimmer-size) * 0.56),
    #c5c5c5 calc(var(--shimmer-size) * 0.62),
    #ffffff var(--shimmer-size)
  );

  background-size: var(--shimmer-size) 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: tg-shine 1.8s linear infinite;
}

@keyframes tg-shine {
  from {
    background-position: 0 0;
  }
  to {
    background-position: var(--shimmer-size) 0;
  }
}

.tg-stream-msg {
  margin-top: 0.25rem;
}

/* Evita saltos si metes listas dentro del bubble */
.chat-message-text .list-unstyled {
  margin-bottom: 0;
}

/* -------- BURBUJA CHAT REDONDEADA --------- */
.rounded-bubble {
  border-radius: 1.5rem !important; /* o el valor que quieras */
}

/* -------- GIRAR ICONO --------- */
.rotate-icon {
  display: inline-block;
  animation: spin2 2s linear infinite;
}

@keyframes spin2 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* -------- OCULTAR LISTA DE EMOJIS POR DEFAULT --------- */

.emoji-picker-hidden {
  display: none !important;
}

/* ------ Eliminar box-shadow de inputs inválidos ----- */
.form-control.is-invalid {
  box-shadow: none;
}

/* ------------ SKELETON LOAD ---------------- */

/* Estilo base para el skeleton loader */
.skeleton {
  background-color: #2f334a;
  background-image: linear-gradient(90deg, #2f334a 25%, #3a3f60 50%, #2f334a 75%);
  background-size: 200% 100%;
  animation: shimmerSK 1.5s infinite linear;
  border-radius: 4px; /* Bordes redondeados */
}

/* Keyframes para el efecto shimmer (degradado en movimiento) */
@keyframes shimmerSK {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Estilo específico para "text skeletons" */
.skeleton-text {
  height: 1em; /* Altura del esqueleto (ajusta según necesidad) */
  margin-bottom: 0.5em; /* Separación entre líneas */
}

.themed-color-bg-primary {
  background-color: #2f334a !important;
}

/* ===============================================================
   Clase personalizada para el efecto hover en listas
   =============================================================== */

.list-item-hover {
  /* Estas propiedades hacen que el efecto se vea suave y profesional */
  border-radius: 0.375rem; /* Esquinas redondeadas para que coincida con el estilo de las tarjetas */
  transition: background-color 0.2s ease-in-out; /* Animación suave para el cambio de color */
  cursor: pointer; /* Cambia el cursor a una 'manito' para indicar que es clicable */
}

.list-item-hover:hover {
  /* Fondo negro con 5% de opacidad (95% de transparencia) como pediste */
  background-color: rgba(0, 0, 0, 0.07);
}

/* ================================================== */
/* ========= CSS para la Barra de Progreso ========== */
/* ================================================== */

/* Contenedor principal que controla todo */
.market-progress-container {
  position: relative;
  width: 250px; /* Ancho total de la barra, puedes ajustarlo */
  height: 40px; /* Altura para dar espacio al texto */
  margin: 0 1rem; /* Margen para separarlo del badge */
}

/* La línea gris de fondo (la pista completa) */
.progress-track {
  position: absolute;
  top: 10px; /* Centrado vertical */
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #44475b;
  border-radius: 2px;
}

/* El relleno verde que indica el progreso actual */
.progress-fill {
  width: var(--progress-width, 0%); /* Controlado por JS */
  height: 100%;
  background-color: #28c76f;
  border-radius: 2px;
  transition: width 0.5s ease-out;
}

/* Contenedor invisible para las bolitas y las etiquetas */
.progress-dots,
.progress-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Estilo base para cada bolita */
.dot {
  position: absolute;
  top: 6px; /* Alinear con el centro de la barra de 4px de alto */
  width: 12px;
  height: 12px;
  background-color: #44475b;
  border: 2px solid #6c757d;
  border-radius: 50%;
  transform: translateX(-50%); /* Centra la bolita sobre su 'left' % */
  transition:
    background-color 0.3s,
    border-color 0.3s;
  z-index: 2; /* Por encima de la barra de relleno */
}

/* Estilo base para cada etiqueta de texto */
.label {
  position: absolute;
  top: 22px; /* Debajo de la barra */
  font-size: 0.75rem;
  color: #6c757d;
  transform: translateX(-50%); /* Centra el texto */
  white-space: nowrap; /* Evita que el texto se rompa */
}

/* --- Posiciones Proporcionales --- */
/* (Duración: Premarket 34.4%, Market 40.6%, Afterhours 25%) */

#dot-premarket,
#label-premarket {
  left: 0%;
}
#dot-market,
#label-market {
  left: 34.4%;
}
#dot-afterhours,
#label-afterhours {
  left: 75%;
} /* 34.4 + 40.6 */
#dot-closed,
#label-closed {
  left: 100%;
}

/* --- Estilos para estados ACTIVO y COMPLETADO --- */
/* --- Estilos para estados ACTIVO y COMPLETADO --- */

/* Las bolitas de pasos ya completados se quedan en verde */
.dot.completed {
  background-color: #28c76f; /* --bs-success */
  border-color: #28c76f;
}
/* El color de la bolita ACTIVA depende de la sesión */
#dot-premarket.active {
  background-color: #00cfe8; /* --bs-info */
  border-color: #00cfe8;
  box-shadow: 0 0 10px rgba(0, 207, 232, 0.7);
}
#dot-market.active {
  background-color: #28c76f; /* --bs-success */
  border-color: #28c76f;
  box-shadow: 0 0 10px rgba(40, 199, 111, 0.7);
}
#dot-afterhours.active {
  background-color: #ff9f43; /* --bs-warning */
  border-color: #ff9f43;
  box-shadow: 0 0 10px rgba(255, 159, 67, 0.7);
}
#dot-closed.active {
  background-color: #82868b; /* --bs-secondary */
  border-color: #82868b;
  box-shadow: none; /* Sin sombra para el estado cerrado */
}

.label.completed,
.label.active {
  color: #a0a2b6;
}

.dot.active {
  box-shadow: 0 0 10px rgba(40, 199, 111, 0.7);
}

.label.active {
  color: #fff;
  font-weight: bold;
}

.switch-valign-fix {
  margin-top: 8px; /* Puedes ajustar este valor (p. ej. 3px) si es necesario */
}

/* Estilo para el mensaje de mercado cerrado en Scanner */

#market-closed-message .card-body h2 {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

#market-closed-message .card-body p {
  font-size: 1.1rem;
  color: #a0a2b6;
}

/* ===============================================================
   Clase personalizada para el efecto de carga de tres puntos
   =============================================================== */

/* From Uiverse.io by dovatgabriel */
.three-body {
  --uib-size: 35px;
  --uib-speed: 0.8s;
  --uib-color: #5d3fd3;
  position: relative;
  display: inline-block;
  height: var(--uib-size);
  width: var(--uib-size);
  animation: spin78236 calc(var(--uib-speed) * 2.5) infinite linear;
}

.three-body__dot {
  position: absolute;
  height: 100%;
  width: 30%;
}

.three-body__dot:after {
  content: '';
  position: absolute;
  height: 0%;
  width: 100%;
  padding-bottom: 100%;
  background-color: var(--uib-color);
  border-radius: 50%;
}

.three-body__dot:nth-child(1) {
  bottom: 5%;
  left: 0;
  transform: rotate(60deg);
  transform-origin: 50% 85%;
}

.three-body__dot:nth-child(1)::after {
  bottom: 0;
  left: 0;
  animation: wobble1 var(--uib-speed) infinite ease-in-out;
  animation-delay: calc(var(--uib-speed) * -0.3);
}

.three-body__dot:nth-child(2) {
  bottom: 5%;
  right: 0;
  transform: rotate(-60deg);
  transform-origin: 50% 85%;
}

.three-body__dot:nth-child(2)::after {
  bottom: 0;
  left: 0;
  animation: wobble1 var(--uib-speed) infinite calc(var(--uib-speed) * -0.15) ease-in-out;
}

.three-body__dot:nth-child(3) {
  bottom: -5%;
  left: 0;
  transform: translateX(116.666%);
}

.three-body__dot:nth-child(3)::after {
  top: 0;
  left: 0;
  animation: wobble2 var(--uib-speed) infinite ease-in-out;
}

@keyframes spin78236 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes wobble1 {
  0%,
  100% {
    transform: translateY(0%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateY(-66%) scale(0.65);
    opacity: 0.8;
  }
}

@keyframes wobble2 {
  0%,
  100% {
    transform: translateY(0%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateY(66%) scale(0.65);
    opacity: 0.8;
  }
}

#dotLoader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background-color: rgba(30, 32, 48, 0.85); /* Fondo oscuro */
  z-index: 10;
}

/* ------------------------------------- */
/* Estilo base para los botones sociales */
/* ------------------------------------- */
.btn-social {
  display: flex !important;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem; /* Espacio entre el icono y el texto */
}

/* Colores específicos para los iconos de las marcas */
.btn-social .fa-google {
  color: #db4437;
}

.btn-social .fa-discord {
  color: #5865f2;
}

/* --- statistics‑fix.css ------------------------------- */
/* Mantén cada tab‑pane en el flujo — Apex leerá su ancho,
   pero seguirá “invisible” porque su altura es 0          */
.tab-content .tab-pane {
  display: block !important; /* anula el display:none   */
  height: 0; /* no ocupa alto visible   */
  overflow: hidden;
  visibility: hidden; /* no interfiere con focus */
}

.tab-content .tab-pane.active {
  height: auto; /* se vuelve visible       */
  visibility: visible;
}
/* ------------------------------------------------------ */

/* --- scanner tabs override -------------------------------------------- */
/* Para evitar que el pane inactivo desplace al activo en el Scanner,
   mantenemos el pane oculto fuera del flujo (absolute) pero visible
   para cálculo de ancho por ApexCharts. 100% reversible. */
.scanner-content .tab-content {
  position: relative;
}
.scanner-content .tab-content #paneGainers:not(.active),
.scanner-content .tab-content #paneLosers:not(.active) {
  position: absolute;
  inset: 0;           /* ocupa el mismo rectángulo que el contenedor */
  visibility: hidden; /* no interferir con eventos/foco */
  overflow: hidden;   /* no pintar contenido fuera */
  height: auto;       /* evita efectos colaterales del height:0 global */
  pointer-events: none;
}
/* ---------------------------------------------------------------------- */

/* --- Ocultar los recuadros al rededor del login y signup ----- */
.authentication-inner::before,
.authentication-inner::after {
  display: none !important;
  content: none !important;
}
/* ------------------------------------------------------ */

/* ---------------------------------------------------------*/
/* ------------- ESTILOS PARA LA BARRA DE IMPACTO ------------- */
/* ---------------------------------------------------------*/

/* --- Estilos para la Barra de Impacto --- */
.impact-meter {
  margin-top: 0.5rem; /* Pequeño espacio arriba */
  margin-bottom: 1rem; /* Espacio debajo de la barra */
}

.impact-bar {
  display: flex;
  gap: 4px; /* Espacio entre segmentos */
  height: 5px; /* Altura de la barra */
}

.impact-bar-segment {
  flex: 1;
  background-color: #262a3d; /* Color base para segmentos inactivos */
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* ---------------------------------------------------------*/
/* ------------- ESTILOS PARA SIDEBAR DE CHAT ------------- */
/* ---------------------------------------------------------*/

/* 1. Contenedor principal del sidebar */
.chat-sidebar {
  width: 65px; /* Ancho fijo para la vista de íconos */
  padding: 0.75rem; /* Aumentamos un poco el padding para que los botones respiren */
}

/* 2. Contenedor de la vista de íconos */
.sidebar-icon-view {
  display: flex; /* Lo convertimos en flex container */
  flex-direction: column; /* Para alinear los botones verticalmente */
  gap: 0.75rem; /* LA FORMA MODERNA DE SEPARAR ELEMENTOS. Crea un espacio uniforme entre los botones. */
}

/* 3. Estilos para los botones de íconos */
.sidebar-icon-view .btn {
  /* --- PARA HACERLOS CUADRADOS --- */
  width: 100%; /* Ocupa todo el ancho del contenedor */
  aspect-ratio: 1 / 1; /* ¡La magia! Mantiene la altura igual al ancho */
  border-radius: 0.5rem; /* Bordes ligeramente redondeados, ajusta a tu gusto (0 para esquinas rectas) */

  /* --- PARA CENTRAR EL ÍCONO --- */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Quitamos el padding por defecto del botón */

  /* --- ESTILOS VISUALES --- */
  background-color: rgba(255, 255, 255, 0.05); /* Un fondo muy sutil */
  color: #c7cdd4;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil */
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.sidebar-icon-view .btn:hover {
  background-color: rgba(90, 83, 224, 0.5); /* Un color de hover más notorio */
  color: #ffffff;
  border-color: #5a53e0;
}

/* 4. Estilos para la vista del formulario (sin cambios) */
.sidebar-form-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sidebar-form-view .form-content {
  flex-grow: 1;
  overflow-y: auto;
}

/* Contenedor común para las vistas de contenido */
.sidebar-form-view,
.sidebar-sparkle-view,
.sidebar-settings-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Estilos para los botones de elección de respuesta */
.response-options-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem;
}

/* ----------------- ESTILOS PARA MODAL DE FILTROS AVANZADOS ----------------- */

/* Left list keeps fixed height and scrolls */
.filters-left {
  height: calc(82vh - 210px);
}
@media (min-width: 768px) {
  .filters-left {
    height: calc(82vh - 170px);
  }
}
.filters-left .list-group-item .ti {
  opacity: 0.8;
}
.filters-left .list-group-item:hover .ti {
  opacity: 1;
}

/* Mobile: permitir scroll vertical y quitar alturas forzadas */
@media (max-width: 767.98px) {
  #filtersModal .offcanvas-body {
    overflow: auto !important;
  }
  #filtersModal .col-12.h-100 {
    height: auto !important;
  }
  #filtersModal .filters-left {
    max-height: none;
    overflow: visible;
  }
}

/* Desktop/tablet: mantener comportamiento actual */
@media (min-width: 768px) {
  #filtersModal .offcanvas-body {
    overflow: hidden;
  }
}

/* 👉 Override para que la columna izquierda tome TODO el ancho del offcanvas en ≥md cuando la derecha esté oculta */
@media (min-width: 768px) {
  #filtersModal .fill-md {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* Estilos específicos para bootstrap-select dentro del modal de filtros */
/* Limitan el ancho al contenedor */
#filtersModal .bootstrap-select,
#filtersModal .bootstrap-select > .dropdown-toggle {
  width: 100% !important;
}

/* El menú no crece más que el botón */
#filtersModal .bootstrap-select .dropdown-menu {
  min-width: 100%;
  max-width: 100%;
}

/* Texto del botón: cortar con “…” si es muy largo */
#filtersModal .bootstrap-select .filter-option,
#filtersModal .bootstrap-select .filter-option-inner,
#filtersModal .bootstrap-select .filter-option-inner-inner {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Items del menú: permitir varias líneas y cortar palabras largas */
#filtersModal .bootstrap-select .dropdown-menu li a span.text {
  white-space: normal;
  word-break: break-word;
}

/* (Opcional) Iconos/imagenes dentro de opciones */
#filtersModal .bootstrap-select .dropdown-menu li a img {
  max-width: 1.25rem;
  height: auto;
}
/* Live stream indicator for Stocks News Live */
.live-dot {
  --live-color-rgb: 220, 53, 69; /* default danger */
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgb(var(--live-color-rgb));
  box-shadow: 0 0 0 rgba(var(--live-color-rgb), 0.7);
  animation: tg-live-pulse 1.5s infinite;
}

.live-icon {
  --live-color-rgb: 220, 53, 69; /* default danger */
  animation: tg-live-blink 1.5s infinite;
  opacity: 0.9;
}

@keyframes tg-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--live-color-rgb), 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(var(--live-color-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--live-color-rgb), 0); }
}

@keyframes tg-live-blink {
  0%, 100% { opacity: 0.7; filter: drop-shadow(0 0 0 rgba(var(--live-color-rgb), 0)); }
  50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(var(--live-color-rgb), 0.4)); }
}

/* Always-on pulse for the activity icon in Recent News */
.news-activity-live {
  --live-color-rgb: 220, 53, 69; /* danger */
  color: #dc3545 !important;
  animation: tg-live-pulse 1.5s infinite;
  border-radius: 50%;
}

/* Datatables tweaks for compact news tables */
.news-table td, .news-table th { vertical-align: middle; }
.news-table td:nth-child(1) { font-weight: 600; }
.news-table td:nth-child(3) { white-space: nowrap; color: #aab0c0; }

/* Make DataTables pagination compact for news tables */
.dataTables_wrapper.news-dt .pagination .page-link {
  padding: 0.125rem 0.375rem; /* ~btn-xs */
  font-size: 0.75rem;
  line-height: 1.2;
}
.dataTables_wrapper.news-dt .pagination .page-item {
  margin: 0 2px;
}

/* Highlight styles for search results in news tables */
.news-row-highlight {
  background-color: rgba(255, 208, 80, 0.12) !important;
}
mark.news-hl {
  background-color: #ffea80;
  color: #111;
  padding: 0 2px;
  border-radius: 2px;
}

/* Search input with embedded icon (News page) */
.news-search-wrapper { position: relative; }
.news-search-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0b1;
  pointer-events: none;
}
.news-search-wrapper .news-search-input {
  padding-left: 2rem; /* space for icon */
}

/* News highlights carousel */
.news-highlight-swiper {
  position: relative;
  height: 100%;
}

.news-highlight-swiper .swiper-wrapper {
  height: 100%;
  align-items: stretch;
}

.news-highlight-swiper .swiper-slide {
  display: flex;
}

.news-highlight-swiper .swiper-button-next,
.news-highlight-swiper .swiper-button-prev {
  color: rgba(255, 255, 255, 0.7);
}

.news-highlight-swiper .swiper-button-next:hover,
.news-highlight-swiper .swiper-button-prev:hover {
  color: #ffffff;
}

.news-highlight-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.news-highlight-swiper .swiper-pagination-bullet-active {
  background: #ffffff;
}

.news-highlight-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(31, 33, 48, 0.95), rgba(31, 33, 48, 0.88));
  color: #f5f7ff;
  padding: 1.25rem 1.4rem;
  min-height: 220px;
  width: 100%;
  height: 240px;
  border-radius: inherit;
}

.news-highlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% -12%, rgba(89, 68, 227, 0.5), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.news-highlight-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em; /* preserves vertical rhythm even when truncated */
}

.news-highlight-footer {
  margin-top: auto;
  padding: 0.25rem 0 1.25rem;
}

.news-highlight-footer .btn {
  white-space: nowrap;
}



.news-highlight-card > * {
  position: relative;
  z-index: 1;
}

.news-highlight-meta {
  color: rgba(245, 247, 255, 0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.news-highlight-time {
  background: rgba(255, 115, 115, 0.18);
  color: #ffc1c1;
  letter-spacing: 0.08em;
}

.news-highlight-tags .badge {
  background-color: rgba(255, 255, 255, 0.12);
  color: #f3f5ff;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-highlight-impact-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5d5d, #ff7f5d);
}

.news-highlight-footer a:not(.btn) {
  color: #9db0ff;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-highlight-footer a:not(.btn):hover {
  color: #d0d8ff;
  transform: translateX(2px);
}

.news-highlight-bg {
  background: rgb(31, 33, 48, 0.3);
}

.news-highlight-bg:hover {
  cursor: pointer;
  background: rgb(31, 33, 48, 0.5);
}
