/* Wenslijst — palette geleend van de hoofdsite */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #06060c;
  --bg2:      #0d0d18;
  --bg3:      #12121f;
  --border:   rgba(255,255,255,.08);
  --accent:   #00e5a0;
  --accent2:  #0ea5e9;
  --accent3:  #8b5cf6;
  --text:     #e8e8f0;
  --muted:    #8b8b9c;
  --card:     rgba(255,255,255,.03);
  --card-hov: rgba(255,255,255,.055);
  --danger:   #ef4444;
  --inter:    'Inter', system-ui, sans-serif;
  --mono:     'JetBrains Mono', ui-monospace, monospace;
  --r:        12px;
  --r-lg:     20px;
  --tr:       .4s cubic-bezier(.16,1,.3,1);
}

[data-theme="light"] {
  --bg:       #f5f5f8;
  --bg2:      #ebebf2;
  --bg3:      #dfdfe8;
  --border:   rgba(0,0,0,.10);
  --text:     #0f0f1a;
  --muted:    #5d5d70;
  --card:     rgba(0,0,0,.025);
  --card-hov: rgba(0,0,0,.05);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--inter);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Nav */
#navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  transition: color var(--tr);
}
.brand:hover { color: var(--text); }
.brand-back { font-size: 16px; color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12px;
  transition: var(--tr);
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-opt { color: var(--muted); transition: color .2s; line-height: 1; }
.lang-opt.active { color: var(--accent); }
.lang-sep { color: var(--border); line-height: 1; }
.theme-toggle {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  transition: var(--tr);
}
.theme-toggle:hover { background: var(--card-hov); color: var(--text); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Hero */
#hero {
  position: relative;
  padding: 96px 24px 64px;
  overflow: hidden;
}
.hero-noise {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,229,160,.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(14,165,233,.07), transparent 50%);
  pointer-events: none;
}
.hero-gradient {
  position: absolute;
  top: -40%; left: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(139,92,246,.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  background: var(--card);
  margin-bottom: 24px;
}
.tag-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .95;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 40px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 32px;
}
.stat {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
}
.stat-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.02em;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 6px;
}

/* How it works */
.how {
  padding: 64px 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.how-inner { max-width: 1180px; margin: 0 auto; }
.how-title {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 24px;
}
.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.how-steps li {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .14em;
}
.how-steps h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 10px 0 8px;
}
.how-steps p {
  color: var(--muted);
  font-size: 14px;
}

.security-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.security-note svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 1px;
}
.how .security-note { margin-top: 20px; }
.modal-security { margin: 18px 0 4px; }

/* Items */
.items-section { padding: 64px 24px 32px; }
.items-inner { max-width: 1180px; margin: 0 auto; }
.items-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.items-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.filter {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.filter-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--mono);
  transition: var(--tr);
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active {
  background: var(--accent);
  color: #06060c;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
  transition: var(--tr);
}
.item-card:hover {
  background: var(--card-hov);
  border-color: rgba(0,229,160,.3);
  transform: translateY(-2px);
}
.item-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}
.item-image.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.item-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.item-category {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.item-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.item-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  flex: 1;
}
.progress {
  height: 6px;
  background: var(--bg3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
  transition: width .8s var(--tr);
}
.progress-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.progress-row strong { color: var(--text); font-weight: 600; }
.item-actions {
  display: flex;
  gap: 8px;
}
.btn {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--inter);
  transition: var(--tr);
}
.btn:hover { background: var(--card-hov); border-color: rgba(255,255,255,.18); }
.btn-primary {
  background: var(--accent);
  color: #06060c;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn-primary[disabled] {
  background: var(--bg3);
  color: var(--muted);
  border-color: var(--border);
  cursor: not-allowed;
  filter: none;
}

.badge {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,.4);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.badge.funded   { background: var(--accent2); color: #06060c; }
.badge.completed{ background: var(--accent3); color: #fff; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
}
.empty-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.empty-sub { color: var(--muted); font-size: 14px; }

/* Footer */
.feed {
  padding: 56px 24px 8px;
}
.feed-inner { max-width: 1180px; margin: 0 auto; }
.feed-title {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 18px;
}
.feed-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}
.feed-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
}
.feed-amount {
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.feed-for {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

footer {
  padding: 64px 24px 48px;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  background: var(--bg2);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.footer-inner a { color: var(--accent); }
.footer-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  animation: slideUp .3s var(--tr);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  border-radius: 8px;
  transition: var(--tr);
}
.modal-close:hover { background: var(--card-hov); color: var(--text); }

.modal h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.modal-category {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
}
.modal-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.amount-group { margin-bottom: 18px; }
.label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 8px;
}
.amount-presets {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.amount-preset {
  flex: 1;
  min-width: 60px;
  padding: 10px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--mono);
  transition: var(--tr);
}
.amount-preset:hover { background: var(--card-hov); border-color: rgba(0,229,160,.3); }
.amount-preset.active {
  background: var(--accent);
  color: #06060c;
  border-color: var(--accent);
  font-weight: 600;
}
.amount-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.amount-input-wrap::before {
  content: "€";
  position: absolute;
  left: 14px;
  color: var(--muted);
  font-family: var(--mono);
}
input[type="number"],
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px 12px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--inter);
  transition: var(--tr);
}
input[type="text"], input[type="email"], textarea {
  padding-left: 14px;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 70px; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  transition: var(--tr);
}
.checkbox-row:hover { background: var(--card-hov); }
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}
.checkbox-row .cb-text { font-size: 14px; }
.checkbox-row .cb-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.email-field { margin-top: 10px; }
.email-field[hidden] { display: none; }

.modal-actions { margin-top: 24px; }
.modal-actions .btn-primary { width: 100%; padding: 14px; font-size: 15px; }
.modal-hint {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  font-family: var(--mono);
}
.modal-warning {
  padding: 12px 14px;
  border: 1px solid rgba(239,68,68,.3);
  background: rgba(239,68,68,.06);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 20px;
}
.modal-warning strong { color: var(--danger); }

.rewards-list {
  margin-bottom: 18px;
}

/* Mobile */
@media (max-width: 720px) {
  #hero { padding: 56px 20px 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
  .feed-list { grid-template-columns: 1fr; }
  .items-head { flex-direction: column; align-items: flex-start; }
  .filter { width: 100%; overflow-x: auto; }
  .modal-card { padding: 24px 20px; }
}
