:root {
  --theme-color: #b35cff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(179, 92, 255, 0.35), transparent 42%),
    linear-gradient(135deg, #090914, #171124 60%, #090914);
  color: white;
  display: flex;
  justify-content: center;
  padding: 28px 16px;
}

.page {
  width: min(680px, 100%);
}

.card {
  overflow: hidden;
  background: rgba(18, 18, 32, 0.94);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 55px rgba(0,0,0,0.45);
}

.banner {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.profile {
  position: relative;
  z-index: 2;
  padding: 0 32px 24px;
  margin-top: -56px;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  border: 5px solid rgba(18,18,32,1);
  object-fit: cover;
  background: #222;
}

h1 {
  margin: 18px 0 10px;
  font-size: 36px;
}

.subtitle {
  color: #cfc7dd;
  line-height: 1.5;
}

.goal-box {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}

.goal-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.goal-bar {
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.goal-progress {
  height: 100%;
  width: 0%;
  background: var(--theme-color);
  transition: width 0.4s ease;
}

form {
  padding: 0 32px 32px;
}

label {
  display: block;
  margin-top: 18px;
  margin-bottom: 8px;
  font-weight: bold;
  color: #f0dcff;
}

input,
textarea,
button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 16px;
}

input,
textarea {
  background: rgba(255,255,255,0.96);
  color: #111;
}

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

textarea:focus,
input:focus {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-color) 45%, transparent);
}

.quick-amounts {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.quick-amounts button {
  margin: 0;
  padding: 12px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.toggle-row input {
  width: auto;
}

button {
  margin-top: 22px;
  background: var(--theme-color);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.08);
}

.preview-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  display: none;
}

.preview-name {
  font-weight: bold;
  margin-bottom: 8px;
}

.preview-amount {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.char-counter {
  margin-top: 8px;
  text-align: right;
  font-size: 13px;
  color: #bfb8ce;
}

.recent-box {
  margin-top: 24px;
}

.recent-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer {
  margin-top: 18px;
  text-align: center;
  color: #b8b0c8;
  font-size: 14px;
}

.footer a {
  color: white;
}

@media (max-width: 600px) {
  .profile,
  form {
    padding-left: 22px;
    padding-right: 22px;
  }

  .quick-amounts {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 28px;
  }
}
