/* ===== Base Styles ===== */
* {
  box-sizing: border-box;
}

body {
  padding: 0;
  font-family: "Satoshi", sans-serif;
  background-image: url("./ffecbc44-f5be-4684-ab95-4f3c88538ecd.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
}

/* Gradient overlay for contrast */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(53, 25, 64, 0.186),
    rgba(0, 0, 0, 0.8)
  );
  z-index: 0;
}

header,
main {
  position: relative;
  z-index: 2;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  backdrop-filter: blur(12px);
}

header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

/* ===== Buttons ===== */
.buttons {
  display: flex;
  gap: 12px;
}

.button2 {
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #7539a7, #13130f);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(57, 167, 142, 0.4);
}

.button2:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(214, 196, 31, 0.6);
}

/* ===== Main Card ===== */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1rem;
  max-width: 650px;
  margin: 0 auto;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
}

.top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.734);
}

.top-section h3 {
  color: #f8f7f4;
  font-weight: 700;
  animation: pulse 2s infinite alternate;
}

.top-section img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  animation: rotateLogo 6s linear infinite;
}

/* ===== Info Grid ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-box {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.info-box:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
}

.info-box h4 {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 0.3rem;
}

.info-box h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

/* ===== Buttons (Action) ===== */
.btn {
  background: linear-gradient(135deg, #a467d6, #13130f9f);
  border: none;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  color: white;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(214, 196, 31, 0.5);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.balance {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1rem;
}

/* ===== Animations ===== */
@keyframes pulse {
  from {
    text-shadow: 0 0 8px #d6c41f;
  }

  to {
    text-shadow: 0 0 20px #39a78e;
  }
}

@keyframes rotateLogo {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .card {
    width: 90%;
    padding: 1.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  header img {
    width: 70px;
  }

  .button2 {
    width: 100%;
  }

  .card {
    width: 90%;
  }
}

/* ===== Toast Notification ===== */
#toast {
  visibility: hidden;
  min-width: 250px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  font-size: 15px;
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 3s;
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}
