/* ===================== */
/* RESETEO BÁSICO        */
/* ===================== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ===================== */
/* BARRA DE CALIFICACIONES*/
/* ===================== */
#ratingBar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  font-family: sans-serif;
  text-align: center;
  z-index: 9999;
  width: 65px;
}

.vertical-stars {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.vertical-stars span {
  font-size: 22px;
  color: gray;
  transition: color 0.2s;
}

.vertical-stars span.active {
  color: gold;
}

.vertical-stars span.hover {
  color: orange;
}

#ratingInfo {
  margin-top: 10px;
  font-size: 8px;
  color: #fff;
  text-align: center;
  background: rgba(255,255,255,0.05);
  padding: 5px 4px;
  border-radius: 8px;
  line-height: 1.2;
  max-width: 100%;
  word-wrap: break-word;
}

#voteCount {
  display: block;
  font-weight: 600;
  font-size: 12.5px;
  color: #ffc107;
}

/* Responsive */
@media (max-width: 600px) {
  #ratingBar {
    width: 55px;
    padding: 8px;
  }

  #ratingInfo {
    font-size: 11px;
    padding: 5px 3px;
  }

  #voteCount {
    font-size: 11.5px;
  }

  .vertical-stars span {
    font-size: 20px;
  }
}




/* ===================== */
/* ESTILOS GENERALES     */
/* ===================== */
body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 70px;
}

/* Logo principal */
.vaultsync-logo {
  font-size: 3.5rem;
  font-weight: 700;
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc;
  margin-bottom: 1rem;
}

/* Contenedor principal */
#container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: 15px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Contenedores de QR y Dashboard */
#qrContainer, #dashboard {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}
#qrCode {
    width: 200px !important;  /* Puedes probar 250px o más si deseas */
    height: 200px !important;
    margin: 15px auto;
    display: block;
  }

/* ===================== */
/* FORMULARIOS Y BOTONES */
/* ===================== */
textarea {
  width: 100%;
  min-height: 150px;
  padding: 15px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  resize: vertical;
  background: #111;
  color: #00ffcc;
  box-shadow: inset 0 0 10px rgba(0,255,204,0.2);
}

button {
  background: linear-gradient(135deg, #00ffc8, #0077ff);
  border: none;
  color: black;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  font-family: 'Orbitron', sans-serif;
}

button:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* Input para archivos */
#fileInput {
  color: #00ffcc;
  background: none;
  border: 1px dashed #00ffcc;
  padding: 10px;
  border-radius: 10px;
  width: 100%;
}

#timerContainer {
  display: flex;
  align-items: center;
  justify-content: space-between; /* o center / start según el estilo deseado */
  gap: 10px;
  margin-bottom: 10px;
}

#countdown {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

#extendBtn {
  background-color: #00ffcc;
  border: none;
  padding: 6px 12px;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  color: #000;
  transition: background 0.3s;
}

#extendBtn:hover {
  background-color: #00e6b8;
}


/* ===================== */
/* TABLAS DE ARCHIVOS    */
/* ===================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

table th, table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

table th {
  background-color: rgba(255,255,255,0.1);
}

table tr:hover {
  background-color: rgba(255,255,255,0.1);
}

table img {
  max-height: 50px;
  border-radius: 6px;
}

/* ===================== */
/* HEADER DE WALLET      */
/* ===================== */
#walletContainer {
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 1920px;
  height: 70px;
  z-index: 1;
  justify-content: flex-end;
}

#connectWalletBtn {
  background: linear-gradient(135deg, #00ffcc, #0077ff);
  padding: 8px 16px;
  font-size: 15px;
  border-radius: 12px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Orbitron', sans-serif;
}

#tokenBalance {
  font-size: 15px;
  font-weight: bold;
  color: #00ffcc;
}

/* ===================== */
/* BARRA DE PLANES       */
/* ===================== */
#plansBar {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Tarjetas de plan */
.plan-card {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  width: 240px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(0,255,204,0.1);
  border: 1px solid rgba(0,255,204,0.2);
  backdrop-filter: blur(8px);
  position: relative;
}

.plan-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #00ffc8;
  text-align: center;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.plan-card ul li {
  margin: 4px 0;
  padding-left: 12px;
  position: relative;
}

.plan-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #00ffcc;
  font-size: 12px;
}

.plan-card button {
  background: linear-gradient(135deg, #00ffc8, #0077ff);
  color: #000;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  border: none;
  transition: 0.3s ease;
}

.plan-card button:hover {
  transform: scale(1.03);
  filter: brightness(1.2);
}

.plan-card button:disabled {
  background: #444;
  color: #aaa;
  cursor: not-allowed;
}

.locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
}

/* ===================== */
/* TOOLTIP               */
/* ===================== */
.tooltip {
  position: relative;
  cursor: pointer;
  border-bottom: 1px dotted #999;
}

.tooltip:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 125%;
  left: 0;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 999;
  opacity: 0.95;
}

/* Triángulo */
.tooltip .tooltiptext::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext,
.tooltip:focus-within .tooltiptext,
.tooltip:active .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ===================== */
/* BOTÓN COMPRAR ATH     */
/* ===================== */
#buyAthBtn {
  position: fixed;
  top: 15px;
  left: 20px;
  background: linear-gradient(135deg, #00ffc3, #0078ff);
  color: #111;
  padding: 8px 16px;
  font-size: 15px;
  
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 255, 200, 0.5);
  text-decoration: none;
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  font-family: 'Orbitron', sans-serif;
}

#buyAthBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.9);
}

/* ===================== */
/* BARRA INFERIOR        */
/* ===================== */
#footerBar {
  width: 100%;
  padding: 8px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

#footerBar button {
  background: transparent;
  border: none;
  color: #00ffc8;
  font-size: 14px;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

#footerBar button:hover {
  background: rgba(0, 255, 200, 0.1);
}

/* ===================== */
/* MODAL DE TÉRMINOS     */
/* ===================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #121212;
  color: #00ffc8;
  margin: 10% auto;
  padding: 30px;
  border: 2px solid #00ffc8;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.3);
  font-size: 15px;
  line-height: 1.6;
  font-family: 'Orbitron', sans-serif;
}

.modal-content h2 {
  margin-top: 0;
  color: #00ffcc;
  text-align: center;
}

.modal-content a {
  color: #00aaff;
  text-decoration: underline;
}

.close {
  color: #00ffc8;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* ===================== */
/* ANIMACIONES           */
/* ===================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes zoomOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.8); opacity: 0; }
}

/* ===================== */
/* BOTÓN DE AYUDA        */
/* ===================== */
.help-btn {
  position: fixed;
  bottom: 20px;
  right: 10px;
  z-index: 1000;
  background: linear-gradient(135deg, #00ffc3, #0078ff);
  color: #111;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  box-shadow: 0 0 12px rgba(0, 255, 200, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  font-family: 'Orbitron', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}

.help-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.9);
}

.help-text {
  display: inline;
}

/* ===================== */
/* VERSIÓN MÓVIL         */
/* ===================== */
@media (max-width: 768px) {
  #container {
    padding: 20px;
  }

  .vaultsync-logo {
    font-size: 2.5rem;
  }

  button {
    width: 100%;
  }

  #buyAthBtn {
    padding: 6px 12px;
    font-size: 12px;
    top: 10px;
    left: 10px;
    border-radius: 8px;
  }

  #connectWalletBtn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
  }

  #walletContainer {
    height: auto;
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  #tokenBalance {
    font-size: 13px;
  }

  .help-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    font-size: 20px;
  }

  .help-text {
    display: none;
  }
}


/*SPINER*/

.spinner {
  border: 3px solid rgba(0, 255, 204, 0.2);
  border-top: 3px solid #00ffc8;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

