* {
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: radial-gradient(circle at top left, #fefefe, #f3f3f8, #fefefe);
}

.card, .price-box, footer {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
}

/* HERO BANNER */
.hero-banner {
  display: flex;
  justify-content: center;
  margin: 20px 0 40px;
}

.hero-banner .container {
  width: 100%;
  max-width: 1100px; /* Giới hạn chiều rộng hiển thị */
  padding: 0 16px;
}

.banner-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.banner-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Responsive nhỏ */
@media (max-width: 768px) {
  .banner-img {
    border-radius: 12px;
  }
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* HEADER */
.header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 16px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  animation: glowSpin 6s linear infinite;
  filter: drop-shadow(0 0 4px rgba(247, 168, 15, 0.5));
}

/* MAIN */
.main {
  padding: 40px 0;
}

/* PACKAGES */
.packages h2,
.custom h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.package-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.package-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.package-card:hover::before {
  opacity: 1;
}

.package-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.coin-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  animation: spin 5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.package-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.package-card p {
  color: #555;
  margin-bottom: 12px;
}

.package-card button {
  background: linear-gradient(90deg, #ff0050, #00f2ea);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.package-card button:hover {
  opacity: 0.85;
}

/* CUSTOM */
.custom {
  margin-top: 40px;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.custom-box input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.custom-box button {
  background: linear-gradient(90deg, #ff0050, #00f2ea);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.custom-box button:hover {
  opacity: 0.85;
}

.custom-result {
  margin-top: 12px;
  font-weight: 600;
  color: #007aff;
}

/* FOOTER */
.footer {
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
  padding: 32px 0 20px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 20px;
}

.footer-section {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-content p {
  margin: 6px 0;
  color: #444;
  line-height: 1.5;
}

.footer-content a {
  color: #007aff;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.highlight {
  color: #ff0050; /* đỏ TikTok */
  font-weight: 700;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 12px;
  font-size: 0.9rem;
  color: #777;
}

/* AVATAR (tròn) */
.avatar-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
}

.avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #ff0050;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.avatar-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 0, 80, 0.25);
}

/* QR (vuông) */
.qr-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
}

.qr-square {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  border: 2px solid #ff0050;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qr-square:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 0, 80, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    align-items: center;
  }
}

.bank-account {
  color: #d63384; /* Màu nổi bật nhẹ (hồng tím kiểu TikTok) */
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.bank-account:hover {
  color: #ff0050; /* Hover đậm hơn tí */
}

/* Popup thông báo copy */
.copy-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.copy-toast.show {
  opacity: 1;
}

/* ===== 📱 Responsive layout cho gói coin ===== */
@media (max-width: 768px) {
  .package-list {
    grid-template-columns: repeat(2, 1fr); /* 2 ô mỗi hàng */
    gap: 12px;
    padding: 8px;
  }

  .package-card {
    padding: 16px 8px;
    border-radius: 14px;
  }

  .package-card h3 {
    font-size: 14px;
    margin: 8px 0 4px;
  }

  .package-card p {
    font-size: 13px;
  }

  .package-card svg {
    width: 32px;
    height: 32px;
  }
}

/* Màn rất nhỏ (<400px): thu hẹp thêm chút */
@media (max-width: 420px) {
  .package-list {
    gap: 10px;
  }

  .package-card {
    padding: 12px 6px;
  }

  .package-card h3 {
    font-size: 13px;
  }

  .package-card p {
    font-size: 12px;
  }
}