/* main.css — restored FundVerse red-black theme with centered spinner */

/* reset-ish */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }

/* page */
body {
  background: #0d0d0d;
  color: #fff;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  padding-bottom: 40px;
}

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #0d0d0d;
  z-index: 9999;
}

.spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.08);
  border-top-color: #ff1e1e;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#loading-text {
  color: #ff7a7a;
  margin-top: 18px;
  font-size: 1.05rem;
  max-width: 84%;
  line-height: 1.5;
  text-align: center;
  word-break: break-word;
}

/* Hide main initially */
.hidden { display: none; }

/* --- Header --- */
header {
  padding: 22px 8px 6px;
  text-align: center;
}

/* Main Title */
header .glow {
  color: #ff1e1e;
  text-shadow: 0 0 10px #ff1e1e, 0 0 20px #ff1e1e, 0 0 30px #ff1e1e;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Subtitle */
header .subtitle {
  color: #ff4d4d;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* Tagline */
header .tagline {
  color: #cfcfcf;
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 14px;
}

/* --- Progress --- */
.progress-bar-container {
  width: 90%;
  max-width: 640px;
  height: 14px;
  margin: 8px auto 6px;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
}
#progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg,#ff0000,#ff6b6b);
  transition: width 0.5s ease;
}
#raised-amount { color: #ff4a4a; font-weight: 600; margin-bottom: 18px; }

/* --- Form container --- */
.donation-section {
  background: #0f0f0f;
  width: 94%;
  max-width: 460px;
  margin: 12px auto;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(255,30,30,0.06);
}

/* inputs */
input, select, button {
  width: 92%;
  max-width: 420px;
  margin: 8px auto;
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
}
input, select { background: #1d1d1d; color: #fff; }
input::placeholder { color: #8b8b8b; }

/* Contribute button */
button {
  background: #ff1e1e;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
}
button:hover { background: #ff3b3b; }

/* upi display (collapse when hidden) */
#upi-display.hidden { display: none; }
#upi-display { margin-top: 12px; text-align: center; }
#upi-text { display: inline-block; font-weight: 700; color: #1e90ff; cursor: pointer; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,0.35); }
#upi-qr { margin-top: 10px; display: block; margin-left: auto; margin-right: auto; }

/* contact */
.contact-section { margin-top: 18px; padding: 12px; border-top: 1px solid rgba(255,30,30,0.06); }
.email-label { font-weight: 700; color: #fff; margin-right: 6px; }
.email-link { color: #3b82f6; text-decoration: none; }
.email-link:hover { text-decoration: underline; }

/* footer */
footer { margin-top: 18px; color: #cfcfcf; font-size: 0.9rem; padding: 12px; }

/* responsive tweaks */
@media (max-width:480px) {
  .glow { font-size: 1.6rem; }
  #loading-text { font-size: 1rem; }
  .donation-section { padding: 14px; }
}