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

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface2: #1c1c27;
  --border: #ffffff0f;
  --accent: #7c6aff;
  --accent2: #ff6a9b;
  --accent3: #6affcd;
  --text: #f0f0ff;
  --text2: #8888aa;
  --radius: 16px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #0a0a0fcc;
  backdrop-filter: blur(20px);
  z-index: 100;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 12px; align-items: center; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5d4dcc);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px #7c6aff44; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--text); }

.btn-ghost { background: transparent; color: var(--text2); padding: 11px 16px; }
.btn-ghost:hover { color: var(--text); }

.btn-full { width: 100%; justify-content: center; }

.btn-lg { padding: 15px 32px; font-size: 17px; border-radius: 12px; }

/* HERO */
.hero {
  text-align: center;
  padding: 100px 20px 80px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent3);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 19px;
  color: var(--text2);
  max-width: 500px;
  margin: 0 auto 40px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* HOW IT WORKS */
.section { padding: 80px 20px; max-width: 900px; margin: 0 auto; }

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text2);
  margin-bottom: 52px;
  font-size: 17px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text2); font-size: 14px; line-height: 1.5; }

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: #ffffff22; }

.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { color: var(--text2); font-size: 14px; line-height: 1.5; }

/* FORM */
.form-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.form-container {
  flex: 1;
  max-width: 560px;
  margin: 40px auto;
  padding: 0 20px 60px;
  width: 100%;
}

.form-title { font-size: 30px; font-weight: 700; margin-bottom: 6px; }
.form-sub { color: var(--text2); margin-bottom: 36px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 16px;
}

.form-section-label {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.label-optional {
  font-size: 12px;
  color: var(--text2);
  font-weight: 400;
  margin-left: 6px;
}

input, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text2); opacity: 0.6; }
textarea { resize: vertical; min-height: 80px; }

.input-group { position: relative; }
.input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text2);
  font-size: 15px;
  pointer-events: none;
}
.input-group input { padding-left: 32px; }

.username-status {
  font-size: 13px;
  margin-top: 6px;
  height: 18px;
}
.username-status.available { color: var(--accent3); }
.username-status.taken { color: var(--accent2); }

.hint { font-size: 13px; color: var(--text2); margin-top: 6px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ALERT */
.alert {
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-error { background: #ff3b6615; border: 1px solid #ff3b6640; color: #ff7a9a; }
.alert-success { background: #6affcd15; border: 1px solid #6affcd40; color: #6affcd; }
.alert-warning { background: #ffb86615; border: 1px solid #ffb86640; color: #ffb866; }

/* SUCCESS BOX */
.success-box {
  background: var(--surface);
  border: 1px solid #6affcd33;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}
.success-box .icon { font-size: 52px; margin-bottom: 16px; }
.success-box h2 { font-size: 26px; margin-bottom: 8px; }
.success-box p { color: var(--text2); margin-bottom: 24px; }

.key-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  word-break: break-all;
  text-align: left;
  margin: 16px 0;
  color: var(--accent3);
  letter-spacing: 0.04em;
}

/* USER PAGE */
.user-page { max-width: 680px; margin: 0 auto; padding: 40px 20px 80px; }

.profile-header {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 24px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.profile-name { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.profile-username { color: var(--text2); font-size: 15px; margin-bottom: 14px; }
.profile-bio { color: var(--text2); font-size: 15px; max-width: 380px; margin: 0 auto; }

/* GOAL */
.goal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.goal-label { font-size: 14px; color: var(--text2); margin-bottom: 12px; }
.goal-bar-track {
  background: var(--bg);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}
.goal-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  transition: width 1s ease;
}
.goal-pct { font-size: 13px; color: var(--text2); margin-top: 8px; }

/* CURRENCIES */
.currency-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.currency-tab {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.currency-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.wallet-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  display: none;
}
.wallet-box.active { display: block; }

.wallet-label { font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.wallet-address {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  word-break: break-all;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.copy-btn {
  background: var(--surface2);
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text2);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.copy-btn:hover { color: var(--text); background: var(--border); }
.copy-btn.copied { color: var(--accent3); }

/* DONATE FORM */
.donate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.donate-card h3 { font-size: 17px; margin-bottom: 6px; }
.donate-card .sub { color: var(--text2); font-size: 14px; margin-bottom: 20px; }

/* WALL */
.wall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.wall-title { font-size: 20px; font-weight: 700; }
.wall-count {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--text2);
}

.wall-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: var(--text2);
}

.donation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.donor-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}

.donor-info { flex: 1; min-width: 0; }
.donor-name { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.donor-message { color: var(--text2); font-size: 14px; line-height: 1.4; }
.donor-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }

.donor-amount {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 13px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: var(--accent3);
}

.donor-time { font-size: 12px; color: var(--text2); }

/* NOTIFICATION */
.notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  z-index: 999;
  animation: notifIn 0.3s ease;
}
@keyframes notifIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  text-align: center;
  color: var(--text2);
  font-size: 14px;
}

footer a { color: var(--text2); }
footer a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 640px) {
  nav { padding: 16px 20px; }
  .nav-links .btn-ghost { display: none; }
  .form-card { padding: 24px 20px; }
  .row-2 { grid-template-columns: 1fr; }
  .hero { padding: 60px 20px 60px; }
}
