
:root {
  color: #ffffff;
  background-color: #0b0e14 !important;
  --glass-bg: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent: #a855f7;
  --card-purple: linear-gradient(135deg, #10113a 0%, #a855f7 100%);
  --card-blue: linear-gradient(135deg, #0f1929 0%, #2dd4bf 100%);
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  background-color: #000000 !important;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  user-select: none;
}

/* Remove webkit scrollbar */
::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Remove scrollbar from all elements */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  letter-spacing: -0.01em;
  color: white;
  overflow: hidden;
  position: relative;
}

/* Esferas de fondo */
.bg-shape {
  position: absolute;
  filter: blur(60px);
  z-index: 0;
  border-radius: 50%;
  opacity: 0.4;
  animation: move 2s infinite alternate;
}

.no-aero .bg-shape {
  animation: none !important;
  opacity: 0.15;
  filter: none !important;
}

.circle-1 {
  width: 300px;
  height: 300px;
  background: #a855f7;
  top: -50px;
  left: -50px;
}

.circle-2 {
  width: 250px;
  height: 250px;
  background: #6366f1;
  bottom: 100px;
  right: -50px;
}

.circle-3 {
  width: 200px;
  height: 200px;
  background: #f43f5e;
  top: 40%;
  left: 30%;
}
/* 
.circle-4 {
  width: 200px;
  height: 200px;
  background: #23311a;
  top: 50%;
  left: -10%;
}

.circle-5 {
  width: 200px;
  height: 200px;
  background: #f43f5e;
  top: 80%;
  left: 30%;
}
/*abajo
.circle-6 {
  width: 200px;
  height: 200px;
  background: #0048ff4a;
  top: 80%;
  left: -10%;
} */

@keyframes move {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 100px) scale(1.1);
  }
}

/* Barra Superior */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px 15px;
  z-index: 10;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.welcome-text {
  display: flex;
  flex-direction: column;
}

.welcome-text span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.welcome-text strong {
  font-size: 0.95rem;
}

.header-icons .icon {
  font-size: 1.3rem;
  margin-left: 15px;
}

/* Contenido Scrollable */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 120px;
  z-index: 5;
  position: relative;
}

/* Tarjeta de Balance */
.balance-card {
  width: 70%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.551);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 25px;
  margin-bottom: 25px;
}

.balance-card .label {
  font-size: 0.85rem;
  color: #000000;
  margin: 0 0 8px;
}

.balance-card .amount {
  font-size: 2rem;
  margin: 0 0 20px;
  font-weight: 700;
  color: #000000;
}

.balance-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-action {
  flex: 1 1 calc(33.333% - 12px);
  min-width: 110px;
  background: rgb(5, 30, 70);
  border: none;
  color: rgb(255, 255, 255);
  padding: 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}
.add{
  background-color: #450909;
  color: white;
  
}
/* Carrusel de Tarjetas */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 0 15px;
}

.section-header h3 {
  font-size: 1rem;
  margin: 0;
}

.view-all {
  font-size: 0.8rem;
  color: var(--accent);
  margin-right: 15px;
}

.cards-carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.cards-carousel::-webkit-scrollbar {
  display: none;
}

.bank-card {
  min-width: 280px;
  height: 170px;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0);
}




.card-chip {
  width: 40px;
  height: 30px;
  background: rgba(255, 255, 255, 0);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-number {
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin: 20px 0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  
  opacity: 0.8;
}



/* Lista de Transacciones */
.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 3px 15px 0 15px;
  background: rgb(18, 24, 30);
  padding: 12px;
  border-radius: 18px;
}
.Payment-title{
  margin-left: 20px;
}
.tx-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.tx-info {
  flex: 1;
}

.tx-name {
  margin: 0 0 2px;
  font-size: 0.9rem;
  font-weight: 500;
}

.tx-date {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.tx-amount {
  font-weight: 600;
  font-size: 0.95rem;
}

.positive {
  color: #10b981;
}

.negative {
  color: #f43f5e;
}

/* Barra de Navegación Inferior (Mantenemos tu estilo favorito) */
.bottom-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  height: 50px;
  padding: 0 25px;
  width: auto;
  min-width: 80px;
  background: rgba(18, 18, 18, 0.618);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  z-index: 100;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}
a{
  color: white;
  text-decoration: none;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #94a3b8;
  transition: 0.3s;
  cursor: pointer;
  min-width: 50px;
}

.nav-item.active {
  color: white;
  transform: scale(1.1);
}

.nav-icon {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.nav-text {
  font-size: 0.6rem;
  font-weight: 500;
}

.content-area::-webkit-scrollbar {
  width: 0px;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.275);
  width: 100px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
  box-shadow:0 0 100px rgba(255, 255, 255, 0.568);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: width 0.7s cubic-bezier(0.34, 1.6, 0.64, 1),
    height 0.7s cubic-bezier(0.34, 1.6, 0.64, 1),
    border-radius 0.7s cubic-bezier(0.34, 1.6, 0.64, 1),
    background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.6, 0.64, 1),
    opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  overflow: hidden;
}

.dynamic-island.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  width: 190px;
  height: 40px;
  border-radius: 28px;
}

.dynamic-island.show.expanded {
  width: 340px;
  height: 280px;
  border-radius: 24px;
  background:linear-gradient(rgba(0, 0, 0, 0.537),rgba(0, 0, 0, 0.592),rgba(116, 65, 118, 0.526));
  box-shadow: inset 0 0 100px rgb(0, 0, 0);
}

.dynamic-island.success {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.855), rgba(2, 105, 64, 0.432));

  border: 1px solid #10b98166;
  box-shadow:0 0 100px rgba(0, 255, 179, 0.586);
}
.dynamic-island.maintenance{
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.855), rgb(118, 3, 3));

  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow:0 0 100px rgba(255, 0, 0, 0.873);
}

.dynamic-island.success .di-icon {
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.dynamic-island.error {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.725), rgba(255, 0, 0, 0.418));
  box-shadow:0 0 100px rgba(255, 0, 0, 0.585);
}

.dynamic-island.error .di-icon {
  color: #f43f5e;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.8);
}

.dynamic-island.maintenance .di-icon {
  color: #f43f5e;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.8);
}

.terms-link {
  color: #00b7ff;
  background-color: transparent;
  border: none;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}

.di-content {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8) translateY(10px);
  width: 100%;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.25);
  pointer-events: none;
}

.di-content.active-content {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1) translateY(0);
  pointer-events: auto;
  transition-delay: 0.15s;
}

#addTargetDynamicIsland.active-content {
  flex-direction: column;
  gap: 10px;
  width: 85%;
}

#addTargetDynamicIsland .di-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(7, 11, 16, 0.663);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  border-bottom: none;
  padding: 10px 14px;
  color: white;
  transition: border 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#addTargetDynamicIsland .di-input:focus {
  border: 1px solid rgba(16, 185, 129, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
  outline: none;
}

#addTargetDynamicIsland .di-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
  font-size: 0.78rem;
}

.card-form-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.card-form-actions .di-cancel-btn,
.card-form-actions .di-submit-btn {
  flex: 1;
  border-radius: 12px;
  height: 36px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.6, 0.64, 1), box-shadow 0.3s ease;
}

.card-form-actions .di-cancel-btn {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.card-form-actions .di-submit-btn {
  background: rgba(16, 185, 129, 0.25);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}

.card-form-actions .di-cancel-btn:active,
.card-form-actions .di-submit-btn:active {
  transform: scale(0.92);
}

.di-icon {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.di-message {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Di Input styles */
.di-input {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  outline: none;
  width: 110px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding: 5px 0;
  text-align: center;
  transition: border-bottom 0.3s;
}

.di-input:focus {
  border-bottom: 2px solid #10b981;
}

.di-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: normal;
}

.di-submit-btn {
  background: #02ffab00;
  color: white;
  border: none;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  width: 32px;
  height: 32px;
  font-weight: bold;
  cursor: pointer;

  transition: transform 0.2s cubic-bezier(0.34, 1.6, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.di-submit-btn:active {
  transform: scale(0.8);
}

/* Modo de Batería Baja: colores sólidos, sin blur y sin animaciones pesadas */
body.low-battery .bg-shape {
  display: none !important;
}

body.low-battery .balance-card {
  background: rgb(255, 255, 255) !important;
  backdrop-filter: none !important;
  border-color: rgba(255, 255, 255, 0.637) !important;
}

body.low-battery .full-screen-overlay {
  background: rgb(0, 0, 0) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.low-battery .bottom-nav {
  background: rgb(20, 20, 20) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5) !important;
}

body.low-battery .dynamic-island {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgb(0, 0, 0) !important;
}

body.low-battery .di-submit-btn {
  background: rgb(40, 40, 40) !important;
  backdrop-filter: none !important;
}

body.low-battery {
  background-color: #000000 !important;
}

/* Suscripciones Personalizadas */
.card-netflix {
  background: linear-gradient(rgb(0, 0, 0), rgba(229, 9, 20, 0.35) 100%);
  border-color: rgba(229, 9, 20, 0.5) !important;
}
.card-xbox {
  background: linear-gradient(rgb(0, 0, 0), rgb(32, 56, 60) 100%);
  border-color: rgba(16, 124, 16, 0.5) !important;
}
.card-spotify {
  background: linear-gradient(rgb(0, 0, 0), rgba(0, 117, 41, 0.3) 100%);
  border-color: rgba(30, 215, 96, 0.5) !important;
}
.card-hbo {
  background: linear-gradient(rgba(15, 15, 15, 0.8), rgba(118, 36, 178, 0.4) 100%);
  border-color: rgba(118, 36, 178, 0.5) !important;
}
.card-disney {
  background: linear-gradient(rgba(15, 15, 15, 0.8), rgba(17, 60, 207, 0.5) 100%);
  border-color: rgba(17, 60, 207, 0.5) !important;
}
.card-max {
  background: linear-gradient(rgba(15, 15, 15, 0.8), rgba(118, 36, 178, 0.4) 100%);
  border-color: rgba(118, 36, 178, 0.5) !important;
}
.card-apple {
  background: linear-gradient(rgba(15, 15, 15, 0.8), rgba(250, 36, 60, 0.4) 100%);
  border-color: rgba(250, 36, 60, 0.5) !important;
}
.card-amazon {
  background: linear-gradient(rgba(15, 15, 15, 0.8), rgba(0, 168, 225, 0.4) 100%);
  border-color: rgba(0, 168, 225, 0.5) !important;
}
.card-nu {
  background: linear-gradient(rgb(0, 0, 0), rgb(217, 0, 255) 100%);
  border-color: rgba(17, 60, 207, 0.5) !important;
}
.card-black {
  background: linear-gradient(120deg, rgb(0, 0, 0), rgb(30, 30, 30), rgb(14, 14, 14) 100%);
  border-color: rgba(17, 60, 207, 0.5) !important;
}

/* Overlays Deslizantes */
.full-screen-overlay {
  position: absolute;
  top: 100%; /* Empieza fuera de la pantalla abajo */
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.433);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  z-index: 2000;
  transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
}

.full-screen-overlay.active {
  transform: translateY(-100%);
}

.overlay-header {
  padding: 60px 25px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-header h3 {
  flex: 1;
  font-size: 1.2rem;
  margin: 0;
}

.back-btn {
  background: rgba(0, 0, 0, 0);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 2.2rem;
  cursor: pointer;
}

.clear-btn {
  background: none;
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #f43f5e;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
}

.overlay-content {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
}

/* Botón de borrar en lista */
.btn-delete {
  background: rgba(244, 63, 94, 0.15);
  border: none;
  color: #f43f5e;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8rem;
}

/* Estilos para las tarjetas dentro del panel Ver Todas */
.full-screen-overlay {
  overflow-x: hidden !important;
}

#all-subs-list {
  padding: 20px 0 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrado perfecto lateral */
}

#all-subs-list .bank-card {
  min-width: 310px; /* Tamaño fijo de tarjeta premium */
  width: 310px;
  height: 175px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transform: scale(0.95); /* Un toque sutil de profundidad */
}

#all-subs-list .btn-delete {
  transition: all 0.2s;
  cursor: pointer;
  z-index: 100;
}

/* SPA View System */
.view-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 100px; /* Espacio para la nav inferior */
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#all-subs-list .btn-delete:active {
  transform: scale(0.8);
}




