/* Global */
* { box-sizing: border-box; margin:0; padding:0; font-family: 'Poppins', sans-serif; }
body {
  height: 100vh;
  overflow: hidden;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Stars animation */
.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('https://ineqe.com/wp-content/uploads/2022/02/locket_app_icon-1024x1024.png') repeat;
  background-size: 40px 40px;
  animation: moveStars 200s linear infinite;
  z-index: 0;
}
@keyframes moveStars { 
  from {background-position:0 0;} 
  to {background-position:-10000px 5000px;} 
}

/* Fade animation */
.fade-in { animation: fadeIn 0.7s ease forwards; }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

/* Containers */
.container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  z-index: 10;
}

/* Card (glass + glow) */
.card {
  background: rgba(20,20,40,0.6);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 0 35px rgba(255,255,255,0.4); }

/* Titles */
h2 { color: #0ff; text-shadow: 0 0 10px #0ff; margin-bottom: 5px; }
.sub-title { color: #8ef; margin-bottom: 20px; }

/* Inputs */
.input-group { margin-bottom: 15px; }
input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.3s;
}
input::placeholder { color: #bbb; }
input:focus { background: rgba(255,255,255,0.2); box-shadow: 0 0 10px #0ff; }

/* Buttons */
button, a.btn-primary {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg,#ff9800,#ffc107);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 15px rgba(255, 200, 0, 0.5);
}
button:hover:not(:disabled), a.btn-primary:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 0 25px rgba(255,200,0,0.8); 
}
button:disabled { background: #555; cursor: not-allowed; }

/* Hiệu ứng pulse cho nút nâng cấp */
.pulse {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 15px rgba(255,200,0,0.5); }
  50% { box-shadow: 0 0 35px rgba(255,200,0,1); }
  100% { box-shadow: 0 0 15px rgba(255,200,0,0.5); }
}

/* Error message */
.error { margin-top: 10px; color: #ff4d4f; font-weight: 500; }

/* Profile */
.profile {
  text-align: center;
  margin-bottom: 15px;
}
.profile img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 2px solid #0ff;
  box-shadow: 0 0 15px rgba(0,255,255,0.5);
}
.profile h3 { margin-bottom: 20px; font-size: 22px; font-weight: 600; color: #0ff; }

/* QR */
#qr-container {
  display: none; /* ẩn mặc định */
  margin-top: 20px;
  padding: 15px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 0 10px rgba(0,255,255,0.2);
  text-align: center;
}
#qr-container img {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,255,255,0.5);
  margin-top: 10px;
  animation: zoomIn 0.5s ease;
}
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media(max-width:480px){
  .card { padding: 20px; }
  #qr-container img { width: 150px; height: 150px; }
}
