/* estilos personalizados de nuevo design */
body {
    background-color: #e3e7f7 !important;
}

.chat-card-AI {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  z-index: 0;
  background-color: transparent;
  overflow-x: hidden;
}

#background-decor {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  aspect-ratio: 430 / 932;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
  display: block;
}
#background-decor svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Estilos para cards de Deals */
.deal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0px 1.25px 0px #ffffff0a, 0px 6px 7px -4px #0b0c1e33, 0px 0px 0px 1px #0b0c1e1a;
  min-height: 252px;
  max-width: 390px;
}
.deal-wrapper {
  width: 100%;
  max-width: 430px;
  position: relative; 
  z-index: 1; 
  padding: .3rem; 
  background-color: transparent;
  padding-bottom: 3rem;
}
.deal-card-header {
  display: flex;
  height: 161px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  align-self: stretch;
  width: 100%;
  background-color: #ffffff;
  border-radius: 10px;
}
.deal-card-header .image {
  position: relative;
  width: 151px;
  height: auto;
  object-fit: cover;
}
.deal-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  position: absolute;
  top: 14px;
  left: 269px;
  background-color: #1ce3e6;
  border-radius: 8px;
}
.deal-pill-text {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0;
  line-height: normal;
}
.deal-card-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}
.deal-frame-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  position: relative;
  flex: 1;
  flex-grow: 1;
}
.deal-frame-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 0 0 auto;
}
.deal-frame-text .title {
  position: relative;
  align-self: stretch;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 500;
  color: #1c1f26;
  font-size: 14px;
  letter-spacing: 0;
  line-height: normal;
}
.deal-frame-price .price{
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #1c1f26;
  font-size: 20px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}
.deal-frame-price .oldprice {
  position: relative;
  width: fit-content;
  font-family: "Inter", Helvetica;
  font-weight: 500;
  color: #6b768c;
  font-size: 16px;
  letter-spacing: 0;
  line-height: normal;
  text-decoration: line-through;
  white-space: nowrap;
}
.deal-empresa {
  display: inline-flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  flex: 0 0 auto;
}
.deal-empresa .name {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
}
.deal-empresa .name .name-w-avatar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 0 0 auto;
}
.ranking {
  align-items: center;
  gap: 7px;
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
}
.name-w-avatar .avatar {
  position: relative;
  width: 16px;
  height: 16px;
}
.name-w-avatar .name-text {
  position: relative;
  width: fit-content;
  margin-top: -0.5px;
  font-family: "Inter", Helvetica;
  font-weight: 500;
  color: #495264;
  font-size: 12px;
  letter-spacing: 0;
  line-height: normal;
}
.ranking .star {
  position: relative;
  width: 12.29px;
  height: 11.74px;
}
.ranking .details {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 500;
  color: transparent;
  font-size: 12px;
  letter-spacing: 0;
  line-height: normal;
}
.ranking .text-star {
  color: #3af1f4;
}
.ranking .text-count {
  color: #495264;
}

/* Texto de busqueda y chat */
.ai-chat-input {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  height: 90px;
  max-width: 392px;
  display: flex;
  align-items: flex-end;
  gap: 10px/* 8px */;
  padding: 16px 8px 8px 20px/* 12px 16px */;
  border-radius: 18px/* 16px */;
  /* background: linear-gradient(228deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)); */
  border: 1px solid #ffffff80;
  /* backdrop-filter: blur(22.5px) brightness(100%);
  -webkit-backdrop-filter: blur(22.5px) brightness(100%);
  box-shadow: inset 0 1.25px 0 #ffffff0a, 0 23px 32px -19px #67a1ef33, 0 2px 1px #1051a708; */
  box-shadow: inset 0px 1.25px 0px #ffffff0a, 0px 23px 32px -19px #09132033, 0px 0px 0px 1px #0913210f;
	backdrop-filter: blur(22.5px) brightness(100%);
	-webkit-backdrop-filter: blur(22.5px) brightness(100%);
	background: linear-gradient(228deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
  transition: bottom 0.45s ease;
  z-index: 10;
}

.ai-chat-textarea {
  flex: 1;
  resize: none;
  background: transparent;
  box-shadow: none !important;
  border: none;
  color: #1c1f26;
  align-self: stretch;
  font-family: var(--inter-medium-sm-font-family);
  font-weight: var(--inter-medium-sm-font-weight);
  font-size: var(--inter-medium-sm-font-size);
  letter-spacing: var(--inter-medium-sm-letter-spacing);
  line-height: var(--inter-medium-sm-line-height);
  font-style: var(--inter-medium-sm-font-style);
  outline: none;
  height: 70px;
  overflow-y: hidden;
}

.ai-chat-actions {
  display: flex;
  gap: 8px;
}

.ai-chat-button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #5273e7 0%, #1738a9 100%);
  box-shadow: 0 0 0 1px #132d86;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ai-chat-button.mic {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.ai-chat-button.quicksearch {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.ai-chat-button.aideals {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.ai-chat-button i {
  color: #958f8f;
}

.chat-agent i {
  color: black !important;
}

/* Componentes del chat */
/* .chat-my-text {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 392px;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: inset 0px 1.25px 0px #ffffff0a;
  backdrop-filter: blur(22.5px) brightness(100%);
  -webkit-backdrop-filter: blur(22.5px) brightness(100%);
  background: linear-gradient(186deg, rgba(145, 161, 255, 0.07) 0%, rgba(198, 208, 235, 0) 100%);
}

.chat-my-text::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 16px;
  background: linear-gradient(171deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
}

.chat-my-text .p {
  position: relative;
  align-self: stretch;
  font-family: var(--inter-medium-xs-font-family);
  font-weight: var(--inter-medium-xs-font-weight);
  color: #ffffff;
  font-size: var(--inter-medium-xs-font-size);
  letter-spacing: var(--inter-medium-xs-letter-spacing);
  line-height: var(--inter-medium-xs-line-height);
  font-style: var(--inter-medium-xs-font-style);
}

.chat-response-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pantera-icon-sm {
  width: 14.2px;
  height: 14px;
  background-size: 100% 100%;
}

.p-response {
  width: 400px;
  max-width: calc(100vw - 100px);
  margin-top: -1px;
  font-family: var(--inter-medium-xs-font-family);
  font-weight: var(--inter-medium-xs-font-weight);
  color: #ffffff;
  font-size: var(--inter-medium-xs-font-size);
  letter-spacing: var(--inter-medium-xs-letter-spacing);
  line-height: var(--inter-medium-xs-line-height);
  font-style: var(--inter-medium-xs-font-style);
} */

/* ==== ESTILOS MEJORADOS PARA BURBUJAS DE CHAT ==== */

/* Mensaje del usuario - Fondo blanco sólido, texto negro */
.chat-my-text {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 392px;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  /* Fondo blanco sólido para máximo contraste */
  background: #ffffff;
  /* Sombra sutil para dar profundidad */
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1), 
              0px 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* Eliminamos el pseudo-elemento before que creaba el borde gradiente */
.chat-my-text::before {
  display: none;
}

/* Texto del mensaje del usuario - Negro para contraste con fondo blanco */
.chat-my-text .p {
  position: relative;
  align-self: stretch;
  font-family: var(--inter-medium-xs-font-family);
  font-weight: var(--inter-medium-xs-font-weight);
  color: #1c1f26; /* Texto negro/gris oscuro */
  font-size: var(--inter-medium-xs-font-size);
  letter-spacing: var(--inter-medium-xs-letter-spacing);
  line-height: var(--inter-medium-xs-line-height);
  font-style: var(--inter-medium-xs-font-style);
}

/* Mensaje de la IA - Fondo azul oscuro, texto blanco */
.chat-response-text {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 16px;
  /* Fondo azul oscuro sólido que combina con el diseño */
  background: linear-gradient(135deg, #1738a9 0%, #2d4bc7 100%);
  /* Sombra para dar profundidad */
  box-shadow: 0px 4px 12px rgba(23, 56, 169, 0.25), 
              0px 1px 3px rgba(23, 56, 169, 0.15);
  max-width: 360px;
  width: fit-content;
}

/* Icono de Pantera - Asegurar que sea visible */
.pantera-icon-sm {
  width: 14.2px;
  height: 14px;
  background-size: 100% 100%;
  flex-shrink: 0; /* Evitar que se reduzca */
  margin-top: 2px; /* Pequeño ajuste de alineación */
}

/* Texto de respuesta de la IA - Blanco para contraste con fondo azul */
.p-response {
  width: auto;
  max-width: calc(100vw - 120px);
  margin-top: 0;
  font-family: var(--inter-medium-xs-font-family);
  font-weight: var(--inter-medium-xs-font-weight);
  color: #ffffff; /* Texto blanco */
  font-size: var(--inter-medium-xs-font-size);
  letter-spacing: var(--inter-medium-xs-letter-spacing);
  line-height: var(--inter-medium-xs-line-height);
  font-style: var(--inter-medium-xs-font-style);
}

.p-response ul {
  margin-left: 10px; 
  margin-top: 4px;
  margin-bottom: 4px;
  list-style-type: disc;
}

.p-response ol {
  margin-left: 10px; 
  margin-top: 4px;
  margin-bottom: 4px;
  list-style-type: decimal;
}

.p-response li {
  margin-bottom: 6px; 
}

/* Enlaces inline en respuestas del agente - Estilo minimalista */
.p-response a {
    color: #aeaec6;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.p-response a:hover {
    color: #fff;
    border-bottom-color: #4f46e5;
    border-bottom-width: 2px;
    padding-bottom: 0;
}

/* Ícono sutil de enlace externo */
.p-response a::after {
    content: '↗';
    font-size: 0.75em;
    margin-left: 2px;
    opacity: 0.5;
    vertical-align: super;
}

/* ===== ESTILOS PARA TABLAS EN RESPUESTAS DEL AGENTE ===== */

/* Contenedor de tabla con scroll */
.p-response table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 12px 0 !important;
    font-size: 12px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: block !important;
    max-width: 100% !important;
}

/* Encabezados de tabla */
.p-response table thead {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
}

.p-response table tbody {
    display: block !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    width: 100% !important;
}

.p-response table tr {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    background: transparent !important;
    border: none !important;
}

.p-response table th {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: white !important;
    padding: 6px 8px !important;
    text-align: left !important;
    font-weight: 400 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    border: none !important;
}

.p-response table td {
    padding: 10px 8px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: transparent !important;
    color: #1c1f26 !important;
    font-size: 10px !important;
}

.p-response table tr:last-child td {
    border-bottom: none !important;
}

.p-response table tr:hover td {
    background-color: rgba(99, 102, 241, 0.05) !important;
}

/* Enlaces en tablas - estilo inline minimalista */
.p-response table a {
    color: #4f46e5 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(79, 70, 229, 0.3) !important;
    transition: all 0.2s ease !important;
    padding-bottom: 1px !important;
    display: inline !important;
    background: none !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    font-size: inherit !important;
    box-shadow: none !important;
}

.p-response table a:hover {
    color: #4338ca !important;
    border-bottom-color: #4338ca !important;
    border-bottom-width: 2px !important;
    padding-bottom: 0 !important;
    transform: none !important;
    background: none !important;
}

.p-response table a::after {
    content: ' ↗' !important;
    font-size: 0.75em !important;
    opacity: 0.6 !important;
}

/* Centrar columnas específicas */
.p-response table th:nth-child(2),
.p-response table th:nth-child(3),
.p-response table th:nth-child(4),
.p-response table td:nth-child(2),
.p-response table td:nth-child(3),
.p-response table td:nth-child(4) {
    text-align: center !important;
}

/* Responsive para móviles */
@media (max-width: 430px) {
    .p-response table {
        font-size: 10px !important;
    }
    
    .p-response table th,
    .p-response table td {
        padding: 6px 4px !important;
    }
    
    .p-response table th {
        font-size: 9px !important;
    }
    
    .p-response table td {
        font-size: 10px !important;
    }
    
    .p-response table td:first-child {
        font-size: 9px !important;
    }
}

/* ===== AJUSTES PARA BOOTSTRAP GRID EN TABLAS ===== */

/* Eliminar padding extra del row dentro de td */
.p-response table td .row {
    margin: 0 !important;
}

/* Columnas flexibles */
.p-response table td .col-12,
.p-response table td .col {
    padding-left: 4px !important;
    padding-right: 4px !important;
}

/* Nombre del producto - col-12 */
.p-response table td .col-12 {
    margin-bottom: 6px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.p-response table td .col-12 strong {
    color: #1c1f26 !important;
    font-weight: 600 !important;
}

/* Detalles flexibles - col */
.p-response table td .col {
    font-size: 11px !important;
    text-align: center !important;
}

/* Responsive: en pantallas muy pequeñas, stack vertical */
@media (max-width: 360px) {
    .p-response table td .col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: left !important;
        margin-bottom: 4px !important;
    }
}

/* Mensaje de "pensando" - Estilo especial */
.thinking-message {
  background: linear-gradient(135deg, #495264 0%, #68778f 100%);
  color: #ffffff;
  font-style: italic;
  opacity: 0.9;
}

/* Chat bubble genérica - Aplicar el mismo estilo para consistencia */
.chat-bubble {
  max-width: 255px;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px; /* Aumentado para consistencia */
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: #ffffff; /* Fondo blanco sólido */
  border-radius: 16px;
  overflow: hidden;
  /* Sombra mejorada */
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1), 
              0px 1px 3px rgba(0, 0, 0, 0.08);
}

.bubble-text {
  position: relative;
  align-self: stretch;
  font-family: var(--inter-medium-xs-font-family);
  font-weight: 400;
  color: #1c1f26; /* Texto oscuro */
  font-size: var(--inter-medium-xs-font-size);
  letter-spacing: var(--inter-medium-xs-letter-spacing);
  line-height: var(--inter-medium-xs-line-height);
  font-style: var(--inter-medium-xs-font-style);
}

/* ==== MEJORAS RESPONSIVAS ==== */

/* En pantallas pequeñas, ajustar el ancho máximo */
@media (max-width: 430px) {
  .chat-my-text {
    max-width: calc(100vw - 60px);
  }
  
  .chat-response-text {
    max-width: calc(100vw - 60px);
  }
  
  .p-response {
    max-width: calc(100vw - 100px);
  }
}

/* ==== ANIMACIONES SUAVES ==== */

/* Animación de aparición para mensajes nuevos */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-my-text,
.chat-response-text {
  animation: fadeInUp 0.3s ease-out;
}

/* ==== ESTADOS ESPECIALES ==== */

/* Mensaje de error */
.chat-response-text.error {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  box-shadow: 0px 4px 12px rgba(220, 53, 69, 0.25), 
              0px 1px 3px rgba(220, 53, 69, 0.15);
}

/* Mensaje de éxito */
.chat-response-text.success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0px 4px 12px rgba(40, 167, 69, 0.25), 
              0px 1px 3px rgba(40, 167, 69, 0.15);
}

/* ==== ACCESIBILIDAD ==== */

/* Asegurar contraste adecuado en modo de alto contraste */
@media (prefers-contrast: high) {
  .chat-my-text {
    background: #ffffff;
    border: 2px solid #000000;
  }
  
  .chat-my-text .p {
    color: #000000;
  }
  
  .chat-response-text {
    background: #000080;
    border: 2px solid #ffffff;
  }
  
  .p-response {
    color: #ffffff;
  }
}

/* Card de feed en chat */
.chat-feed-card {
  display: flex;
  flex-direction: column;
  width: 253px;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0px 1.25px 0px #ffffff0a, 0px 6px 7px -4px #0b0c1e33, 0px 0px 0px 1px #0b0c1e1a;
}

.product-top {
  display: flex;
  height: 161px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  align-self: stretch;
  width: 100%;
  background-color: #ffffff;
  border-radius: 10px;
}

.product-image {
  position: relative;
  width: 151px;
  height: auto;
  object-fit: cover;
}

.discount-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  position: absolute;
  top: 9px;
  left: 156px;
  background-color: #1ce3e6;
  border-radius: 8px;
}

.product-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 0px 0px 12px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.product-title {
  position: relative;
  align-self: stretch;
  margin-top: -1px;
  font-family: var(--inter-medium-sm-font-family);
  font-weight: var(--inter-medium-sm-font-weight);
  color: #1c1f26;
  font-size: var(--inter-medium-sm-font-size);
  letter-spacing: var(--inter-medium-sm-letter-spacing);
  line-height: var(--inter-medium-sm-line-height);
  font-style: var(--inter-medium-sm-font-style);
}

.text-frame {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 0 0 auto;
}

.product-price {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: var(--inter-semi-bold-xl-font-family);
  font-weight: var(--inter-semi-bold-xl-font-weight);
  color: #1c1f26;
  font-size: var(--inter-semi-bold-xl-font-size);
  letter-spacing: var(--inter-semi-bold-xl-letter-spacing);
  line-height: var(--inter-semi-bold-xl-line-height);
  white-space: nowrap;
  font-style: var(--inter-semi-bold-xl-font-style);
}

.product-oldprice {
  position: relative;
  width: fit-content;
  font-family: var(--inter-medium-base-font-family);
  font-weight: var(--inter-medium-base-font-weight);
  color: #6b768c;
  font-size: var(--inter-medium-base-font-size);
  letter-spacing: var(--inter-medium-base-letter-spacing);
  line-height: var(--inter-medium-base-line-height);
  white-space: nowrap;
  font-style: var(--inter-medium-base-font-style);
}

.product-vendor {
  display: inline-flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  flex: 0 0 auto;
}

.product-vendor-details {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
}

.avatar-sm {
  position: relative;
  width: 16px;
  height: 16px;
}

.vendor-name {
  position: relative;
  width: fit-content;
  margin-top: -0.5px;
  font-family: "Inter", Helvetica;
  font-weight: 500;
  color: #6b768c;
  font-size: 12px;
  letter-spacing: 0;
  line-height: normal;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.img-action {
  position: relative;
  width: 18px;
  height: 18px;
}
.icon-ellipsis {
  position: absolute;
  width: 12px;
  height: 3px;
  top: 7px;
  left: 3px;
}

/* Estilos de tarjeta bancaria digital */
.bank-card {
  display: flex;
  flex-direction: column;
  width: 382px;
  height: 214px;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  position: relative;
  margin-bottom: -1px;
  margin-left: -1px;
  border-radius: 21px;
  overflow: hidden;
  border: none;
  box-shadow: inset 0px 1.25px 0px #ffffff0a, 0px 24px 32px -19px #133e7957;
  backdrop-filter: blur(22.5px) brightness(100%);
  -webkit-backdrop-filter: blur(22.5px) brightness(100%);
  background: linear-gradient(248deg, rgba(188, 238, 255, 0.16) 0%, rgba(198, 208, 235, 0) 100%);
}

.bank-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 21px;
  background: linear-gradient(312deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
}

.bank-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  flex: 1;
  align-self: stretch;
  width: 100%;
  flex-grow: 1;
}

.bank-card-title {
  display: flex;
  width: 156px;
  align-items: center;
  gap: 8px;
}

.logo-md {
  width: 21.83px;
  height: 21.53px;
}

.bank-card-name {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "SF Pro-Medium", Helvetica;
  font-weight: 500;
  color: #e1e5ec;
  font-size: 24px;
  letter-spacing: -0.24px;
  line-height: 24px;
  white-space: nowrap;
}

.header-chip {
  position: relative;
  width: 41px;
  height: 40px;
}

.chip-wrapper {
  position: relative;
  width: 43px;
  height: 42px;
  top: -1px;
  left: -1px;
  border-radius: 5px;
  border: none;
  background: #e1e5ec;
}

.chip-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 5px;
  background: linear-gradient(354deg, rgba(52, 52, 52, 0.5) 0%, rgba(55, 55, 55, 0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
}

.img-chip {
  position: absolute;
  width: 41px;
  height: 39px;
  top: 0;
  left: 0;
  padding-left: 2px;
}

.card-balance {
  position: relative;
  width: 340px;
  font-family: var(--inter-medium-3xl-font-family);
  font-weight: var(--inter-medium-3xl-font-weight);
  color: #ffffff;
  font-size: var(--inter-medium-3xl-font-size);
  letter-spacing: var(--inter-medium-3xl-letter-spacing);
  line-height: var(--inter-medium-3xl-line-height);
  font-style: var(--inter-medium-3xl-font-style);
}

.bank-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.bank-card-details {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  flex: 0 0 auto;
}

.bank-card-text {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: var(--inter-regular-2xs-font-family);
  font-weight: var(--inter-regular-2xs-font-weight);
  color: #ffffff62;
  font-size: var(--inter-regular-2xs-font-size);
  letter-spacing: var(--inter-regular-2xs-letter-spacing);
  line-height: var(--inter-regular-2xs-line-height);
  white-space: nowrap;
  font-style: var(--inter-regular-2xs-font-style);
}

.bank-card-saved {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  position: relative;
  flex: 0 0 auto;
}

.element-saved {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: var(--inter-medium-sm-font-family);
  font-weight: var(--inter-medium-sm-font-weight);
  color: transparent;
  font-size: var(--inter-medium-sm-font-size);
  letter-spacing: var(--inter-medium-sm-letter-spacing);
  line-height: var(--inter-medium-sm-line-height);
  white-space: nowrap;
  font-style: var(--inter-medium-sm-font-style);
}

.saved-amount {
  color: #1de3e7;
  font-family: var(--inter-medium-sm-font-family);
  font-style: var(--inter-medium-sm-font-style);
  font-weight: var(--inter-medium-sm-font-weight);
  letter-spacing: var(--inter-medium-sm-letter-spacing);
  line-height: var(--inter-medium-sm-line-height);
  font-size: var(--inter-medium-sm-font-size);
}

.saved-text {
  color: #ffffff4c;
  font-family: var(--inter-medium-sm-font-family);
  font-style: var(--inter-medium-sm-font-style);
  font-weight: var(--inter-medium-sm-font-weight);
  letter-spacing: var(--inter-medium-sm-letter-spacing);
  line-height: var(--inter-medium-sm-line-height);
  font-size: var(--inter-medium-sm-font-size);
}

.saved-bar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  position: relative;
  flex: 0 0 auto;
}

.bank-card-logo {
  position: absolute;
  width: 170px;
  height: 169px;
  top: -160px;
  left: 190px;
}

.chat-bubble {
  max-width: 255px;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0px 1.25px 0px #ffffff0a, 0px 6px 7px -4px #0b0c1e33, 0px 0px 0px 1px #0b0c1e1a;
}

.bubble-text {
  position: relative;
  align-self: stretch;
  font-family: var(--inter-medium-xs-font-family);
  font-weight: 400/* var(--inter-medium-xs-font-weight) */;
  color: #1c1f26;
  font-size: var(--inter-medium-xs-font-size);
  letter-spacing: var(--inter-medium-xs-letter-spacing);
  line-height: var(--inter-medium-xs-line-height);
  font-style: var(--inter-medium-xs-font-style);
}

/* Header */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  z-index: 50;

  padding-top: 2.5rem;
  padding-right: 1rem;
  padding-bottom: 0.75rem;
  padding-left: 1rem;

  display: flex;
  align-items: center/* flex-start */;
  justify-content: space-between;

  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.2);
}

.header-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  object-fit: cover;
  font-size: 32px;
  color: #fff;
}

.header-dollar {
	position: relative;
	width: 32px;
	height: 32px;
	font-size: 20px;
	color: #000;
	background-color: white;
	border-radius: 50%;
	padding-left: 10px;
	padding-top: 6px;
}

.header-actions {
  display: flex;
  /* width: 210px; */
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  position: relative;
}

/* .img-action {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  background-color: #494e8c0a;
  border-radius: 50px;
  overflow: hidden;
}

.icon-action {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: -1px;
  margin-bottom: -1px;
  margin-left: -4px;
  margin-right: -4px;
  color: #fff;
  font-size: 18px;
} */
.swipe-wrapper {
  gap: 10px;
  z-index: 51;
}

.swipe-tab {
  position: relative;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 4px;
}

.swipe-tab-disabled {
  opacity: 0.2;
}

/* Nuevo estilos de categorias */
.option-selected-wrapper {
    display: inline-flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 8px 18px;
    position: relative;
    flex: 0 0 auto;
    background-color: #68778f33;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid;
}

.option-selected-text {
    position: relative;
    width: fit-content;
    font-family: var(--inter-medium-base-font-family);
    font-weight: var(--inter-medium-base-font-weight);
    color: #ffffff;
    font-size: var(--inter-medium-base-font-size);
    letter-spacing: var(--inter-medium-base-letter-spacing);
    line-height: var(--inter-medium-base-line-height);
    white-space: nowrap;
    font-style: var(--inter-medium-base-font-style);
}

.option-wrapper {
    display: inline-flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 8px 18px;
    position: relative;
    flex: 0 0 auto;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid;
    border-color: #68778f33;
}

.option-text {
    position: relative;
    width: fit-content;
    font-family: var(--inter-regular-base-font-family);
    font-weight: var(--inter-regular-base-font-weight);
    color: #68778f;
    font-size: var(--inter-regular-base-font-size);
    letter-spacing: var(--inter-regular-base-letter-spacing);
    line-height: var(--inter-regular-base-line-height);
    white-space: nowrap;
    font-style: var(--inter-regular-base-font-style);
}
.me-9px {
    margin-right: 9px !important;
    margin-inline-end: 9px !important;
}
.mt-6 {
    margin-top: 4.5rem !important;
}
.opacity-20 {
    opacity: 0.2 !important;
}

/* ===== SWITCH TOGGLE CHAT/FEED ===== */
/* Switch Container */
.tab-switch-container {
    position: relative;
    width: 120px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Slider Background */
.tab-switch-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 52px;
    height: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Slider en posición feed */
.tab-switch-container.feed .tab-switch-slider {
    transform: translateX(60px);
    background: linear-gradient(135deg, #1738a9 0%, #2d4bc7 100%);
}

/* Icons Container */
.tab-switch-icons {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 2;
}

/* Individual Icons */
.tab-switch-icon {
/*     width: 20px;
    height: 20px; */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

/* Chat Icon Styles */
.tab-switch-icon.chat i {
    font-size: 16px;
    color: #1738a9;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-switch-container.chat .tab-switch-icon.chat i {
    color: #1738a9;
    transform: scale(1.1);
}

.tab-switch-container.feed .tab-switch-icon.chat i {
    color: rgba(255, 255, 255, 0.6);
    transform: scale(0.9);
}

/* Feed Icon Styles */
.tab-switch-icon.feed i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-switch-container.feed .tab-switch-icon.feed i {
    color: #ffffff;
    transform: scale(1.1);
}

.tab-switch-container.chat .tab-switch-icon.feed i {
    color: rgba(255, 255, 255, 0.6);
    transform: scale(0.9);
}

/* Active State Glow */
.tab-switch-container.chat {
    box-shadow: 0 8px 32px rgba(23, 56, 169, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-switch-container.feed {
    box-shadow: 0 8px 32px rgba(45, 75, 199, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 480px) {
    .tab-switch-container {
        width: 100px;
        height: 40px;
    }
    
    .tab-switch-slider {
        width: 44px;
        height: 32px;
    }
    
    .tab-switch-container.feed .tab-switch-slider {
        transform: translateX(48px);
    }
    
    .tab-switch-icons {
        padding: 0 12px;
    }
    
    .tab-switch-icon.chat i,
    .tab-switch-icon.feed i {
        font-size: 14px;
    }
}

/* ===== ESTILOS WEBDEALS PARA OFFCANVAS - TEMA CLARO ===== */

    /* Offcanvas principal - Fondo blanco */
    .offcanvas.pantera-bg-dark {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
        color: #1c1f26 !important;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1),
                    0 -4px 16px rgba(0, 0, 0, 0.05);
    }

    /* Header del offcanvas */
    .offcanvas-header {
        background: transparent;
        border-bottom: none;
        padding: 1.5rem 1.25rem 1rem 1.25rem;
    }

    /* Título del offcanvas */
    .offcanvas-header .titulo-medium-lg,
    .offcanvas-header h5 {
        color: #1c1f26 !important;
        font-weight: 600;
        font-size: 1.25rem;
        margin: 0;
    }

    /* Botón de cerrar */
    .offcanvas-header button[data-bs-dismiss="offcanvas"] {
        /* background: rgba(28, 31, 38, 0.05); */
        border: none;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .offcanvas-header button[data-bs-dismiss="offcanvas"]:hover {
        /* background: rgba(28, 31, 38, 0.1); */
        transform: scale(1.05);
    }

    .offcanvas-header button[data-bs-dismiss="offcanvas"] img {
        filter: invert(0.2);
        opacity: 0.8;
    }

    /* Body del offcanvas */
    .offcanvas-body {
        padding: 0.5rem 1.25rem 1.5rem 1.25rem;
        background: transparent;
    }

    /* Líneas separadoras - Tema claro */
    .offcanvas-body > div[style*="background-color"] {
        background-color: rgba(28, 31, 38, 0.08) !important;
        height: 1px;
        margin: 0.75rem 0;
        opacity: 1;
    }

    /* Botones del offcanvas */
    .list-group-item.list-group-item-action.transaccion-item {
        background: transparent !important;
        border: none;
        border-radius: 12px;
        padding: 1rem 0.75rem;
        margin: 0.25rem 0;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        color: #1c1f26;
        text-decoration: none;
    }

    .list-group-item.list-group-item-action.transaccion-item:hover {
        background: rgba(23, 56, 169, 0.05) !important;
        transform: translateX(4px);
        box-shadow: 0 2px 8px rgba(23, 56, 169, 0.1);
    }

    /* Textos de los botones */
    .label-general-2 {
        color: #1c1f26 !important;
        font-weight: 500;
        font-size: 0.95rem;
    }

    /* Texto de eliminar cuenta en rojo */
    .label-general-2.label-general-danger {
        color: #dc3545 !important;
    }

    /* Iconos FontAwesome en botones */
    .list-group-item .fas {
        color: #1738a9 !important;
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    /* Iconos específicos con colores personalizados */
    .list-group-item .fa-user-slash {
        color: #dc3545 !important;
    }

    .list-group-item .fa-bell {
        color: #28a745 !important;
    }

    .list-group-item .fa-history {
        color: #6c757d !important;
    }

    /* Imágenes SVG en botones */
    .list-group-item img.logo-opcion,
    .list-group-item img {
        filter: brightness(0.3);
        opacity: 0.8;
        transition: all 0.2s ease;
    }

    .list-group-item:hover img.logo-opcion,
    .list-group-item:hover img {
        filter: brightness(0.2);
        opacity: 1;
    }

    /* Iconos de flecha en botones */
    .list-group-item img[alt*="arrow"], 
    .list-group-item img[src*="arrow"] {
        filter: brightness(0.4);
        opacity: 0.6;
    }

    .list-group-item:hover img[alt*="arrow"], 
    .list-group-item:hover img[src*="arrow"] {
        filter: brightness(0.2);
        opacity: 1;
        transform: translateX(2px);
    }

    /* Efecto de enfoque para accesibilidad */
    .list-group-item:focus {
        outline: 2px solid #1738a9;
        outline-offset: 2px;
    }

    /* Estados activos */
    .list-group-item:active {
        transform: translateX(2px) scale(0.98);
        background: rgba(23, 56, 169, 0.1) !important;
    }

    /* Animación de entrada para el offcanvas */
    @keyframes webdealsSlideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .offcanvas.pantera-bg-dark.show {
        animation: webdealsSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Ajustes para texto de resumen si existe */
    .timeline-date {
        color: rgba(28, 31, 38, 0.6) !important;
        font-size: 0.85rem;
    }

    /* Separadores específicos con variables CSS sobrescritas */
    div[style*="var(--bleached-silk300)"] {
        background-color: rgba(28, 31, 38, 0.08) !important;
    }

    /* Mejoras responsive */
    @media (max-width: 576px) {
        .offcanvas-header {
            padding: 1.25rem 1rem 0.75rem 1rem;
        }
        
        .offcanvas-body {
            padding: 0.5rem 1rem 1.25rem 1rem;
        }
        
        .list-group-item.transaccion-item {
            padding: 0.875rem 0.5rem;
        }
    }

    /* Dark mode override para mantener compatibilidad */
    @media (prefers-color-scheme: dark) {
        /* Solo aplicar si el usuario no tiene preferencia específica */
        .offcanvas.pantera-bg-dark {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
        }
    }

    /* Backdrop del offcanvas */
    .offcanvas-backdrop {
        background-color: rgba(28, 31, 38, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    @media (max-width: 480px) {
      .offcanvas.offcanvas-bottom {
          right: 0 !important;
      }
    }

    /* si es mayor a 480px entonces calc(50% - 215px); */
    @media (min-width: 481px) {
        .offcanvas.offcanvas-bottom {
            right: calc(50% - 215px) !important;
        }
    }

.transactions-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0px 1.25px 0px #ffffff0a, 0px 6px 7px -4px #0b0c1e33, 0px 0px 0px 1px #0b0c1e1a;
  padding: 24px;
}

/* Progress bar */
.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.progress-step {
  flex: 1;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: rgb(52, 64, 166);
}

.progress-step.completed {
  background: rgb(72, 187, 120);
}

/* Botones de navegación */
.wizard-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.wizard-btn {
  flex: 1;
  background: #f0f1f3;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  color: #1c2026;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-btn:hover {
  background: #e8e9eb;
  transform: translateY(-2px);
}

.wizard-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.wizard-btn-primary {
  background: rgb(52, 64, 166);
  color: white;
  border-color: rgb(52, 64, 166);
}

.wizard-btn-primary:hover {
  background: rgba(52, 64, 166, 0.9);
}
/* Estilos del formulario de preferencias */
.preferences-title {
  color: #1c2026;
  font-size: 18px;
  margin-bottom: 16px;
  text-align: center;
  font-weight: 600;
}

.preferences-step-info {
  text-align: center;
  color: #1c2026;
  font-size: 12px;
  margin-bottom: 20px;
  font-weight: 500;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  color: #1c2026;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
  font-weight: 500;
}

.form-label-optional {
  color: #6b768c;
  font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px !important;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #f8f8f9;
  color: #1c2026;
  font-size: 14px;
}

.form-textarea {
  resize: vertical;
}

.form-helper-text {
  color: #6b768c;
  font-size: 12px;
  margin-top: 4px;
}

.form-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}
/* Sobrescribir estilos de Choices.js */
.choices {
  margin-bottom: 0;
}

.choices.is-focused {
  z-index: 10;
}

.choices__inner {
  background-color: #f8f8f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 44px;
  font-size: 14px;
}

.choices__list--single {
  padding: 0;
}

.choices__item {
  color: #1c2026;
  font-size: 14px;
}

.choices__item--selectable {
  color: #1c2026;
}

.choices__list--dropdown {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-top: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.choices__list--dropdown .choices__item {
  color: #1c2026;
  padding: 10px 12px;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: rgb(52, 64, 166);
  color: #1c147b;
}

.choices__list--dropdown .choices__item--selectable.is-selected {
  background-color: #f0f1f3;
  color: #1c2026;
}

.choices__list--multiple .choices__item {
  background-color: rgb(52, 64, 166);
  border: 1px solid rgb(52, 64, 166);
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
  margin: 2px;
  font-size: 13px;
}

.choices__button {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  background-image: none;
  padding: 0 8px;
  opacity: 1;
}

.choices__button::before {
  content: "×";
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.choices[data-type*=select-one]::after {
  border-color: #1c2026 transparent transparent transparent;
  margin-top: -2px;
}

[type="text"], 
input:where(:not([type])), [type="email"], [type="url"], [type="password"], [type="number"], [type="date"], [type="datetime-local"], 
[type="month"], [type="search"], [type="tel"], [type="time"], [type="week"], 
[multiple], 
textarea, select {
  background-color: transparent !important;
}

/* Overlay principal */
.pm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Backdrop con blur */
.pm-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Container del modal */
.pm-modal-container {
    position: relative;
    z-index: 10000;
    width: 100%;
    max-width: 400px;
}

/* Modal glassmorphism */
.pm-modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* Icono */
.pm-icon {
    width: 64px;
    height: 64px;
    background: rgb(6, 13, 43);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.pm-icon i {
    font-size: 28px;
    color: white;
    z-index: 1;
}

/* Efecto shimmer opcional */
.pm-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: pm-shimmer 3s infinite;
}

@keyframes pm-shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Título */
.pm-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(6, 13, 43);
    margin: 0 0 12px 0;
}

/* Descripción */
.pm-description {
    font-size: 0.95rem;
    color: rgba(6, 13, 43, 0.8);
    line-height: 1.5;
    margin: 0 0 24px 0;
}

/* Container de botones */
.pm-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Estilos base de botones */
.pm-btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: block;
    width: 100%;
}

/* Botón primario */
.pm-btn-primary {
    background: rgb(52, 64, 166);
    color: white;
}

.pm-btn-primary:hover {
    background: rgb(42, 54, 146);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(52, 64, 166, 0.3);
}

.pm-btn-primary:active {
    transform: translateY(0);
}

/* Botón secundario */
.pm-btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: rgb(6, 13, 43);
}

.pm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.pm-btn-secondary:active {
    transform: translateY(0);
}

/* Transiciones Alpine.js */
.pm-transition-enter {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pm-transition-enter-start {
    opacity: 0;
}

.pm-transition-enter-end {
    opacity: 1;
}

.pm-modal-enter-start {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
}

.pm-modal-enter-end {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
    .pm-modal {
        padding: 28px 20px;
    }

    .pm-title {
        font-size: 1.25rem;
    }

    .pm-description {
        font-size: 0.9rem;
    }

    .pm-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
/* ===== CREDIT MANAGER MODAL - GLASS EFFECT ===== */

.cm-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cm-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cm-modal-close i {
    color: white;
}

.cm-modal-content {
    width: 100%;
    text-align: left;
    margin-top: 24px;
}

.cm-info-card {
    background: rgba(11, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cm-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.cm-value-primary {
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.cm-value-secondary {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.cm-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.cm-grid-item {
    min-width: 0;
}

.cm-value-amount {
    font-weight: 600;
    color: #1ACE21;
}

.cm-text-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.cm-table-container {
    max-height: 200px;
    overflow-y: auto;
}

.cm-table {
    width: 100%;
    color: white;
    font-size: 14px;
}

.cm-table thead {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cm-table th {
    padding: 8px;
    text-align: left;
    font-weight: 500;
}

.cm-table td {
    padding: 8px;
}

.cm-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cm-status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
}

.cm-status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.cm-status-paid {
	background: rgba(76, 175, 80, 0.3);
	color: #08EE11;
}

.cm-status-failed {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.cm-status-overdue {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.cm-btn-reject {
    background: rgba(244, 67, 54, 0.2) !important;
    border-color: rgba(244, 67, 54, 0.3) !important;
}

.cm-btn-reject:hover {
    background: rgba(244, 67, 54, 0.3) !important;
}

.cm-modal-scroll {
    max-width: 600px;
    overflow-y: auto;
    max-height: 90vh;
}

/* ===== CREDIT MANAGER CARDS ===== */

.cm-search-container {
    padding-top: 12px;
    margin-bottom: 16px;
}

.cm-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.cm-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid rgba(249, 245, 245, 0.25);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
}

.cm-search-input:focus {
    outline: none;
    border-color: #1738a9;
    box-shadow: 0 0 0 3px rgba(23, 56, 169, 0.1);
}

.cm-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b768c;
    pointer-events: none;
}

.cm-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cm-credit-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.cm-credit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(23, 56, 169, 0.2);
}

.cm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.cm-card-user {
    flex: 1;
    min-width: 0;
}

.cm-card-user-name {
    font-weight: 600;
    color: #1c2026;
    font-size: 16px;
    margin-bottom: 2px;
}

.cm-card-user-email {
    font-size: 13px;
    color: #6b768c;
}

.cm-card-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1738a9;
    white-space: nowrap;
    margin-left: 12px;
}

.cm-card-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.cm-card-info-item {
    display: flex;
    flex-direction: column;
}

.cm-card-info-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b768c;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cm-card-info-value {
    font-size: 14px;
    color: #1c2026;
    font-weight: 500;
}

.cm-card-purpose {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.cm-card-purpose-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b768c;
    font-weight: 500;
    margin-bottom: 4px;
}

.cm-card-purpose-text {
    font-size: 13px;
    color: #1c2026;
    line-height: 1.4;
}

.cm-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cm-card-date {
    font-size: 12px;
    color: #6b768c;
}

.cm-card-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.cm-status-badge-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #F57C00;
}

.cm-status-badge-approved {
    background: rgba(33, 150, 243, 0.15);
    color: #1976D2;
}

.cm-status-badge-active {
    background: rgba(76, 175, 80, 0.15);
    color: #388E3C;
}

.cm-status-badge-completed {
    background: rgba(158, 158, 158, 0.15);
    color: #616161;
}

.cm-status-badge-rejected {
    background: rgba(244, 67, 54, 0.15);
    color: #D32F2F;
}

.cm-empty-state {
    text-align: center;
    padding: 48px 16px;
    color: #6b768c;
}

.cm-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cm-pagination {
    display: flex;
    justify-content: center;
    padding: 16px;
}

@media (max-width: 576px) {
    .cm-card-body {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cm-card-amount {
        font-size: 18px;
    }
}

/* ===== MY CREDIT STATUS - USER PANEL ===== */

.mcs-credit-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mcs-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f1f3;
}

.mcs-title {
    font-size: 20px;
    font-weight: 700;
    color: #1c2026;
    margin-bottom: 4px;
}

.mcs-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.mcs-status-active {
    background: rgba(76, 175, 80, 0.15);
    color: #388E3C;
}

.mcs-status-approved {
    background: rgba(33, 150, 243, 0.15);
    color: #1976D2;
}

.mcs-amount-section {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #1738a9 0%, #2563eb 100%);
    border-radius: 12px;
}

.mcs-amount-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.mcs-amount-value {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.mcs-total-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.mcs-progress-section {
    margin-bottom: 20px;
}

.mcs-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mcs-progress-label {
    font-size: 13px;
    font-weight: 600;
    color: #1c2026;
}

.mcs-progress-count {
    font-size: 12px;
    color: #6b768c;
}

.mcs-progress-bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.mcs-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.mcs-next-payment {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.mcs-next-payment-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: #856404;
    margin-bottom: 4px;
}

.mcs-next-payment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mcs-next-payment-date {
    font-size: 14px;
    font-weight: 600;
    color: #1c2026;
}

.mcs-next-payment-amount {
    font-size: 18px;
    font-weight: 700;
    color: #1738a9;
}

.mcs-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.mcs-detail-item {
    text-align: center;
}

.mcs-detail-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b768c;
    font-weight: 500;
    margin-bottom: 4px;
}

.mcs-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #1c2026;
}

.mcs-installments-section {
    margin-top: 20px;
}

.mcs-installments-title {
    font-size: 14px;
    font-weight: 600;
    color: #1c2026;
    margin-bottom: 12px;
    padding-left: 4px;
}

.mcs-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.mcs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.mcs-table thead {
    background: #f8f9fa;
}

.mcs-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b768c;
    text-transform: uppercase;
    border-bottom: 2px solid #e0e0e0;
}

.mcs-table td {
    padding: 12px;
    font-size: 14px;
    color: #1c2026;
    border-bottom: 1px solid #f0f1f3;
}

.mcs-table tbody tr:last-child td {
    border-bottom: none;
}

.mcs-table tbody tr:hover {
    background: #f8f9fa;
}

.mcs-installment-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.mcs-badge-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #F57C00;
}

.mcs-badge-paid {
    background: rgba(76, 175, 80, 0.15);
    color: #388E3C;
}

.mcs-badge-failed {
    background: rgba(244, 67, 54, 0.15);
    color: #D32F2F;
}

.mcs-badge-overdue {
    background: rgba(255, 87, 34, 0.15);
    color: #E64A19;
}

.mcs-empty-state {
    text-align: center;
    padding: 64px 16px;
}

.mcs-empty-icon {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 16px;
}

.mcs-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #90a7ca;
    margin-bottom: 8px;
}

.mcs-empty-text {
    font-size: 14px;
    color: #c4c9d2;
    margin-bottom: 24px;
}

.mcs-empty-button {
    display: inline-block;
    padding: 12px 24px;
    background: #1738a9;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.mcs-empty-button:hover {
    background: #0f2d8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 56, 169, 0.3);
}

@media (max-width: 576px) {
    .mcs-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mcs-table th,
    .mcs-table td {
        padding: 8px;
        font-size: 12px;
    }
}

/* ============================================================================
   FINANCIAL BANKING STYLES
   ============================================================================ */

/* Success box - cuenta conectada */
.fb-success-box {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
}

.fb-success-box i {
    color: #4caf50;
    font-size: 48px;
    display: block;
}

/* Info box - información obligatoria */
.fb-info-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
}

.fb-info-box i {
    color: #856404;
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.fb-info-box p {
    color: #856404;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Optional box - recomendado pero no obligatorio */
.fb-optional-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
}

.fb-optional-box i {
    color: #1976d2;
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.fb-optional-box p {
    color: #1565c0;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================================================
   CREDIT MANAGER - FINANCIAL ANALYSIS
   ============================================================================ */

/* Financial Analysis Card */
.cm-financial-analysis {
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    border-left: 4px solid #007bff;
}

/* Score Circle */
.cm-score-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cm-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.cm-score-success { background: linear-gradient(135deg, #28a745, #20c997); }
.cm-score-warning { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.cm-score-danger { background: linear-gradient(135deg, #dc3545, #821a24); }

.cm-score-text {
    font-size: 18px;
    color: white;
    font-weight: 500;
}

/* Risk Badge */
.cm-risk-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.cm-risk-low {
    background: #d4edda;
    color: #155724;
}

.cm-risk-medium {
    background: #fff3cd;
    color: #856404;
}

.cm-risk-high {
    background: #f8d7da;
    color: #721c24;
}

.cm-risk-critical {
    background: #dc3545;
    color: white;
}

/* Indicators Grid */
.cm-indicators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.cm-indicator-item {
    background: #b7bcbf;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cm-indicator-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

.cm-indicator-value {
    font-size: 20px;
    font-weight: bold;
    color: #212529;
    margin-bottom: 4px;
}

.cm-indicator-interpretation {
    font-size: 11px;
    color: #393c3f;
    font-style: italic;
}

.cm-text-success { color: #28a745 !important; }
.cm-text-danger { color: #dc3545 !important; }

/* Risk Factors */
.cm-risk-factors {
    background: #b7bcbf;
    padding: 12px;
    border-radius: 8px;
}

.cm-risk-factor-item {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.cm-risk-factor-item:last-child {
    margin-bottom: 0;
}

.cm-risk-factor-low {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 3px solid #17a2b8;
}

.cm-risk-factor-medium {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.cm-risk-factor-high {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.cm-risk-factor-critical {
    background: #dc3545;
    color: white;
    border-left: 3px solid #a71d2a;
}

/* Recommendations */
.cm-recommendations {
    background: #b7bcbf;
    padding: 12px;
    border-radius: 8px;
}

.cm-recommendation-item {
    padding: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cm-recommendation-item:last-child {
    margin-bottom: 0;
}

.cm-recommendation-priority {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.cm-priority-high {
    background: #dc3545;
    color: white;
}

.cm-priority-medium {
    background: #ffc107;
    color: #212529;
}

.cm-priority-low {
    background: #28a745;
    color: white;
}

.cm-recommendation-text {
    font-size: 13px;
    color: #212529;
    line-height: 1.4;
}

/* No Analysis State */
.cm-no-analysis {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    text-align: center;
    padding: 24px;
}

.cm-no-analysis-icon {
    font-size: 48px;
    color: #856404;
    margin-bottom: 12px;
}

.cm-no-analysis-text {
    color: #856404;
    font-size: 14px;
}

.cm-analysis-meta {
    padding-top: 12px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

/* Recommendation Card */
.cm-recommendation-card {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cm-recommendation-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 16px;
}

.cm-recommendation-icon {
    font-size: 24px;
}

.cm-recommendation-body {
    padding: 16px 20px;
    background: white;
}

.cm-recommendation-details {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.cm-recommendation-amounts {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.cm-amount-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.cm-amount-item:last-of-type {
    border-bottom: none;
}

.cm-amount-label {
    font-size: 13px;
    color: #6c757d;
}

.cm-amount-value {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.cm-amount-recommended {
    color: #28a745;
}

.cm-amount-warning {
    margin-top: 12px;
    padding: 10px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    font-size: 13px;
    color: #856404;
}

/* Recommendation Color Variants */
.cm-recommendation-success .cm-recommendation-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.cm-recommendation-warning .cm-recommendation-header {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
}

.cm-recommendation-danger .cm-recommendation-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.cm-recommendation-info .cm-recommendation-header {
    background: linear-gradient(135deg, #17a2b8, #007bff);
    color: white;
}

.cm-recommendation-secondary .cm-recommendation-header {
    background: #6c757d;
    color: white;
}

.wallet-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
  width: 100%;
  position: relative;
  border-radius: 16px;
  border: 1px solid #2F315A;
  background: linear-gradient(180deg, rgba(15, 21, 41, 0.60) 11.88%, rgba(15, 21, 41, 0.60) 129.21%);
  box-shadow: 0 1.25px 0 0 rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  backdrop-filter: blur(22.5px);
}
.card-item {
  display: flex;
  padding: 8px 16px 8px 12px;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5.5px);
}
.wallet-avatar-wrapper {
  display: flex;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  aspect-ratio: 1/1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
}
.wallet-details {
  display: flex;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  flex: 1 0 0;
}
.wallet-title {
  color: #FFF;
  font-family: var(--inter-medium-base-font-family);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%; 
}
.wallet-due-date {
  color: #6B768C;
  /* Inter Medium/xs */
  font-family: var(--inter-medium-xs-font-family);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%; /* 15.6px */
}
.wallet-amount-wrapper {
  display: flex;
  padding: 5px 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 1 0 0;
}
.wallet-amount-text {
  color: #FFF;
  /* Inter Semi Bold/base */
  font-family: var(--inter-semi-bold-base-font-family);
  font-size: var(--inter-semi-bold-base-font-size);
  font-style: normal;
  font-weight: 600;
  line-height: 120%; /* 19.2px */
  letter-spacing: -0.16px;
}
.wallet-upcoming {
  color: #F4573A;
  font-family: var(--inter-regular-2xs-font-family);
  font-size: var(--inter-regular-2xs-font-size);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}
.wallet-paid {
  color: #12C9CC;
  font-family: var(--inter-regular-2xs-font-family);
  font-size: var(--inter-regular-2xs-font-size);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.wallet-user-points-wrapper {
  display: flex;
  padding-top: 32px;
  align-items: center;
  gap: 14px;
  align-self: stretch;
}
.wallet-user-points-number {
  color: var(--gray-alpha1400, #FFF);
  font-family: var(--inter-medium-5xl-font-family);
  font-style: var(--inter-medium-5xl-font-style);
  font-weight: var(--inter-medium-5xl-font-weight);
  line-height: var(--inter-medium-5xl-line-height);
  font-size: var(--inter-medium-5xl-font-size); 
}
.wallet-user-points-diff {
  color: #1DE3E7;
  font-family: var(--inter-medium-lg-font-family);
  font-size: var(--inter-medium-lg-font-size);
  font-style: var(--inter-medium-lg-font-style);
  font-weight: var(--inter-medium-lg-font-weight);
  line-height: var(--inter-medium-lg-line-height);
}
.wallet-user-points-diff-down {
  color: #EF4444;
  font-family: var(--inter-medium-lg-font-family);
  font-size: var(--inter-medium-lg-font-size);
  font-style: var(--inter-medium-lg-font-style);
  font-weight: var(--inter-medium-lg-font-weight);
  line-height: var(--inter-medium-lg-line-height);
}

.wallet-user-points-diff-neutral {
  color: #68778F;
  font-family: var(--inter-medium-lg-font-family);
  font-size: var(--inter-medium-lg-font-size);
  font-style: var(--inter-medium-lg-font-style);
  font-weight: var(--inter-medium-lg-font-weight);
  line-height: var(--inter-medium-lg-line-height);
}
.wallet-user-points-details {
  color: #68778F;
  font-family: var(--inter-medium-2xs-font-family);
  font-size: var(--inter-medium-2xs-font-size);
  font-style: var(--inter-medium-2xs-font-style);
  font-weight: var(--inter-medium-2xs-font-weight);
  line-height: var(--inter-medium-2xs-line-height);
}
.wallet-user-points-box {
  display: flex;
  padding-bottom: 4px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.wallet-user-health-wrapper {
  display: flex;
  max-width: 430px;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 2.1rem !important;
}
/* Barra de salud financiera */
.health-bar-container {
  display: flex;
  width: 100%;
  max-width: 390px;
  height: 25px;
  padding: 8px;
  justify-content: space-between;
  align-items: center;
  border-radius: 70px;
  background: linear-gradient(90deg, #EF4444 0%, #F97316 25%, #F59E0B 50%, #10B981 75%, #11CBD0 100%);
  position: relative;
}

.health-bar-label {
  font-family: var(--inter-medium-2xs-font-family);
  font-size: var(--inter-medium-2xs-font-size);
  font-weight: var(--inter-medium-2xs-font-weight);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.health-indicator {
  display: flex;
  width: 91px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  transition: left 0.5s ease;
}

.health-indicator-label {
  font-family: var(--inter-medium-2xs-font-family);
  font-size: var(--inter-medium-2xs-font-size);
  font-weight: var(--inter-medium-2xs-font-weight);
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.health-line {
  width: 2.5px;
  height: 29px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.health-text {
  color: #FFF;
  font-family: var(--inter-medium-xs-font-family);
  font-size: var(--inter-medium-xs-font-size);
  font-style: var(--inter-medium-xs-font-style);
  font-weight: var(--inter-medium-xs-font-weight);
  line-height: var(--inter-medium-xs-line-height);
}
.health-amount {
  color: #FFF;
  font-family: var(--inter-semi-bold-xs-font-family);
  font-size: var(--inter-semi-bold-xs-font-size);
  font-style: var(--inter-semi-bold-xs-font-style);
  font-weight: var(--inter-semi-bold-xs-font-weight);
  line-height: var(--inter-semi-bold-xs-line-height);
}