@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue:      rgba(10, 32, 234, 1);
  --blue-btn:  rgba(0, 3, 255, 0.91);
  --blue-dark: rgba(5, 18, 160, 1);
  --blue-glow: rgba(0, 3, 255, 0.35);
}

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background: url('https://storage.perfectcdn.com/6a8371/slkmbq3gxauswl51.jpg') center/cover no-repeat fixed;
  color: #fff;
}

.hidden { display: none !important; }

.refill-page { min-height: 100vh; display: flex; flex-direction: column; }

/* ===== HEADER ===== */
.refill-header {
  padding: 22px 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.refill-header .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== MAIN ===== */
.refill-main { flex: 1; display: flex; align-items: center; padding: 50px 20px; }
.refill-wrapper { max-width: 480px; margin: 0 auto; width: 100%; }

/* ===== CARD ===== */
.refill-box {
  background: rgba(4, 10, 80, 0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(100,130,255,0.2);
  border-radius: 24px;
  padding: 48px 40px 44px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
}

/* ===== ICON ===== */
.refill-icon {
  width: 68px; height: 68px;
  background: var(--blue-btn);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  font-size: 30px; color: #fff;
  box-shadow: 0 8px 28px var(--blue-glow);
}

/* ===== TITLES ===== */
.refill-title { font-size: 1.55rem; font-weight: 700; color: #fff; text-align: center; margin-bottom: 8px; line-height: 1.3; }
.refill-subtitle { font-size: .9rem; color: rgba(255,255,255,0.6); text-align: center; margin-bottom: 36px; }
.refill-subtitle strong { color: rgba(255,255,255,0.85); }

/* ===== INPUT ===== */
.input-group-refill { margin-bottom: 20px; }

.input-group-refill label {
  display: block;
  font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  letter-spacing: .05em; text-transform: uppercase;
}

.input-wrapper-refill { position: relative; }

.input-wrapper-refill .input-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: rgba(96,170,255,0.8); font-size: .95rem; pointer-events: none;
}

.input-wrapper-refill input {
  width: 100%;
  padding: 16px 18px 16px 48px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  font-size: 1.05rem; font-family: 'Poppins', sans-serif;
  color: #fff; outline: none;
  transition: all .25s;
  letter-spacing: .04em;
}

.input-wrapper-refill input:focus {
  border-color: var(--blue-btn);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 4px var(--blue-glow);
}

.input-wrapper-refill input::placeholder { color: rgba(255,255,255,0.28); font-size: .9rem; }

/* ===== BUTTON ===== */
.btn-refill {
  width: 100%; padding: 16px;
  background: var(--blue-btn);
  border: none; border-radius: 14px;
  font-size: .95rem; font-weight: 700; font-family: 'Poppins', sans-serif;
  color: #fff; cursor: pointer;
  transition: all .25s;
  letter-spacing: .04em;
  box-shadow: 0 6px 24px var(--blue-glow);
  margin-top: 6px;
}
.btn-refill:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 10px 32px var(--blue-glow); }
.btn-refill:active:not(:disabled) { transform: translateY(0); }
.btn-refill:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ===== MESSAGES ===== */
.success-message, .error-message { margin-top: 28px; animation: slideUp .35s ease; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 1.4rem;
}
.success-icon { background: #0fba7d; color: #fff; }
.error-icon   { background: #f64c50; color: #fff; }

.message-title { font-size: 1.15rem; font-weight: 700; text-align: center; margin-bottom: 8px; color: #fff; }
.message-text  { font-size: .85rem; color: rgba(255,255,255,0.6); text-align: center; margin-bottom: 22px; }

/* ===== PROFILE CARD ===== */
.profile-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 24px 20px; margin-bottom: 16px;
}
.profile-header { text-align: center; margin-bottom: 14px; }

.profile-img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--blue-btn); object-fit: cover; }

.profile-fallback {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid var(--blue-btn); background: var(--blue-btn);
  display: none; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem; font-weight: 700; margin: 0 auto;
}

.profile-name     { font-size: 1rem; font-weight: 700; text-align: center; margin-bottom: 4px; color: #fff; }
.profile-username { font-size: .82rem; color: rgba(255,255,255,0.5); text-align: center; margin-bottom: 18px; }

.profile-stats { display: flex; justify-content: space-around; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.stat-item     { text-align: center; }
.stat-number   { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.stat-number.highlight { color: #60aaff; }
.stat-label    { font-size: .7rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: .04em; }

/* ===== REFILL INFO ===== */
.refill-info {
  background: rgba(0,3,255,0.15);
  border: 1px solid rgba(0,3,255,0.35);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 14px;
}
.refill-amount { display: flex; align-items: center; gap: 14px; }
.refill-amount i { font-size: 1.5rem; color: #60aaff; }
.refill-amount > div { display: flex; flex-direction: column; }
.refill-label { font-size: .72rem; color: rgba(255,255,255,0.5); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .04em; }
.refill-value { font-size: 1.1rem; font-weight: 700; color: #fff; }

.info-footer { text-align: center; font-size: .78rem; color: rgba(255,255,255,0.45); margin: 0; }

/* ===== FOOTER ===== */
.refill-footer {
  padding: 24px 0;
  background: rgba(0,0,0,0.25); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.refill-footer .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.refill-footer p { text-align: center; font-size: .78rem; color: rgba(255,255,255,0.4); margin: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
  .refill-box { padding: 36px 22px 32px; border-radius: 20px; }
  .refill-title { font-size: 1.3rem; }
  .refill-main { padding: 28px 12px; }
}
