* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.45), transparent 36%),
    linear-gradient(135deg, #020617 0%, #061735 45%, #0b3b8f 100%);
  color: #ffffff;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow-x: hidden;
}

.premium-wrapper {
  width: 100%;
  max-width: 460px;
  position: relative;
  text-align: center;
}

.premium-card {
  position: relative;
  padding: 18px 18px 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 31px;
  background: linear-gradient(135deg, #38bdf8, #2563eb, #0f172a);
  opacity: 0.85;
}

.image-frame {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: #020617;
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.28);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.title {
  margin: 22px 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}

.subtitle {
  margin: 0 auto 22px;
  max-width: 350px;
  font-size: 14px;
  line-height: 1.7;
  color: #bfdbfe;
}

.btn-daftar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 16px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 55%, #1d4ed8 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow:
    0 16px 35px rgba(37, 99, 235, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: 0.25s ease;
}

.btn-daftar:hover {
  transform: translateY(-2px);
}

.btn-daftar:active {
  transform: translateY(1px);
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 12px;
  color: #dbeafe;
}

.trust-row span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.28);
}

/* POPUP ATAS TENGAH */
.withdraw-popup {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%) translateY(-140%);
  width: 340px;
  min-height: 72px;
  z-index: 9999;
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(3, 7, 18, 0.96), rgba(12, 28, 65, 0.96));
  border: 1px solid rgba(59, 130, 246, 0.45);
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 35px rgba(37, 99, 235, 0.25);
}

.withdraw-popup::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #60a5fa, #2563eb, #38bdf8);
  background-size: 300% 100%;
  animation: borderMove 3s linear infinite;
}

.withdraw-popup.show {
  animation: popupTopShow 4.5s ease-in-out forwards;
}

.withdraw-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
  flex-shrink: 0;
}

.withdraw-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  text-align: left;
}

.withdraw-text b {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.withdraw-text small {
  color: #cbd5e1;
  font-size: 12px;
}

.withdraw-text span {
  color: #7dd3fc;
  font-size: 15px;
  font-weight: 800;
}

@keyframes popupTopShow {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-140%);
  }

  12% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  78% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-140%);
  }
}

@keyframes borderMove {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .premium-card {
    padding: 14px 14px 20px;
    border-radius: 24px;
  }

  .premium-card::before {
    border-radius: 25px;
  }

  .image-frame {
    border-radius: 20px;
  }

  .title {
    font-size: 21px;
  }

  .subtitle {
    font-size: 13px;
  }

  .btn-daftar {
    min-height: 52px;
    font-size: 16px;
  }

  .withdraw-popup {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 66px;
    border-radius: 18px;
    padding: 12px 14px;
    gap: 12px;
  }

  .withdraw-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .withdraw-text b {
    font-size: 13px;
  }

  .withdraw-text small {
    font-size: 11px;
  }

  .withdraw-text span {
    font-size: 14px;
  }
}