html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

:root {
  --bg-dark: #05030b;
  --bg-mid: #12061f;
  --card-border: rgba(255, 120, 230, 0.16);
  --text: #f7f2ff;
  --muted: rgba(247, 242, 255, 0.72);
  --muted-soft: rgba(247, 242, 255, 0.5);
  --pink: #f05ad6;
  --purple: #8b5cf6;
  --field: rgba(255, 255, 255, 0.06);
  --field-border: rgba(255, 255, 255, 0.08);
  --field-focus: rgba(255, 103, 212, 0.42);
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 90, 214, 0.16), transparent 22%),
    radial-gradient(circle at 15% 25%, rgba(139, 92, 246, 0.18), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(240, 90, 214, 0.14), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(80, 40, 160, 0.14), transparent 28%),
    linear-gradient(180deg, #090512 0%, #05030b 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 4rem;
}

.deposit-panel {
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.back-link:hover {
  color: var(--text);
  transform: translateX(-2px);
}

.deposit-intro {
  text-align: center;
  margin-bottom: 2.25rem;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--muted-soft);
}

.deposit-intro h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow:
    0 0 18px rgba(255, 103, 212, 0.18),
    0 0 38px rgba(139, 92, 246, 0.14);
}

.intro-text {
  margin: 0 auto;
  max-width: 640px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.deposit-form {
  width: 100%;
  padding: 2rem;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(20, 14, 32, 0.92), rgba(12, 8, 22, 0.94));
  border: 1px solid var(--card-border);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 0 40px rgba(139, 92, 246, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.form-group {
  margin-bottom: 1.35rem;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

input[type="text"],
textarea,
input[type="file"] {
  width: 100%;
  border: 1px solid var(--field-border);
  background: var(--field);
  color: var(--text);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: rgba(247, 242, 255, 0.35);
}

input[type="text"]:focus,
textarea:focus,
input[type="file"]:focus {
  border-color: var(--field-focus);
  box-shadow: 0 0 0 4px rgba(255, 103, 212, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

textarea {
  resize: vertical;
  min-height: 170px;
}

.upload-box {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 1.2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}

.upload-box p {
  margin: 0.7rem 0 0.25rem;
  color: var(--muted);
}

.upload-box small {
  color: var(--muted-soft);
}

.form-note {
  margin: 1.6rem 0 1.25rem;
  text-align: center;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.6;
}

.submit-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.25rem;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #9b5cff 0%, #ff5ecf 100%);
  box-shadow:
    0 14px 34px rgba(255, 94, 207, 0.24),
    0 0 24px rgba(155, 92, 255, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 40px rgba(255, 94, 207, 0.28),
    0 0 28px rgba(155, 92, 255, 0.24);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: #ff8de1;
}

.form-status.is-error {
  color: #ff7b92;
}

.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 4, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.success-card {
  width: min(100%, 520px);
  padding: 2rem;
  border-radius: 28px;
  text-align: center;
  color: #f7f2ff;
  background:
    linear-gradient(180deg, rgba(22, 14, 36, 0.96), rgba(10, 7, 20, 0.96));
  border: 1px solid rgba(255, 120, 230, 0.16);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.42),
    0 0 40px rgba(240, 90, 214, 0.16);
  animation: overlayFadeUp 0.35s ease;
}

.success-icon {
  font-size: 2.6rem;
  margin-bottom: 0.8rem;
}

.success-card h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.success-card p {
  margin: 0;
  color: rgba(247, 242, 255, 0.78);
  line-height: 1.65;
}

.success-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.button-solid,
.button-ghost {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.button-solid {
  color: #fff;
  background: linear-gradient(135deg, #9b5cff 0%, #ff5ecf 100%);
  box-shadow:
    0 14px 34px rgba(255, 94, 207, 0.24),
    0 0 24px rgba(155, 92, 255, 0.22);
}

.button-ghost {
  color: #f7f2ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hidden {
  display: none !important;
}

@keyframes overlayFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 2.75rem 0;
  }

  .deposit-form {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .deposit-intro h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .intro-text {
    font-size: 1rem;
  }

  .success-card {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .success-actions {
    flex-direction: column;
  }

  .button-solid,
  .button-ghost {
    width: 100%;
  }
}

/* =========================
   FOOTER
========================= */

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
  font-size: 1.4rem;
  color: #ff89db;
  margin-bottom: 0.5rem;
}

/* =========================
   NAV
========================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 4, 10, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav .container {
  width: min(1100px, calc(100% - 2rem));
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.5rem;
}

.site-brand {
  color: #ff9be8;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  text-shadow:
    0 0 12px rgba(255, 120, 220, 0.35),
    0 0 28px rgba(123, 97, 255, 0.2);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-nav-links a:hover {
  color: #ff9be8;
}

@media (max-width: 820px) {
  .site-nav-inner {
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0;
  }

  .site-nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1.2rem;
  }

  .site-nav-links a {
    font-size: 0.82rem;
  }
}