:root {
  --bg: #0d1117;
  --panel: #161b22;
  --text: #e6edf3;
  --muted: #9aa4b2;
  --accent: #4ade80;
  --danger: #f87171;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at top, #111827, var(--bg));
  color: var(--text);
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #2a3240;
  background: rgba(13, 17, 23, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.topnav nav {
  display: flex;
  gap: 1rem;
}

.topnav nav a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}

.topnav nav a.active {
  color: var(--accent);
}

.kofi-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  border: 1px solid rgba(79, 70, 229, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(34, 197, 94, 0.14));
  color: #dbeafe !important;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  animation: kofi-pulse-once 1.6s ease-out 1, kofi-breathe 11s ease-in-out infinite 2s;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.kofi-link::before {
  content: "☕";
  font-size: .85rem;
  opacity: .9;
}

.kofi-link::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.2) 50%, transparent 80%);
  transform: translateX(-130%);
  animation: kofi-shimmer 1.8s ease-out 1 .35s;
  pointer-events: none;
}

.kofi-link:hover,
.kofi-link:focus-visible {
  border-color: rgba(134, 239, 172, 0.85);
  box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.25), 0 6px 20px rgba(34, 197, 94, 0.12);
  transform: translateY(-1px);
}

@keyframes kofi-pulse-once {
  0% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(134, 239, 172, 0); }
  28% { transform: translateY(-1px) scale(1.03); box-shadow: 0 0 0 9px rgba(134, 239, 172, 0.2); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(134, 239, 172, 0); }
}

@keyframes kofi-breathe {
  0%, 82%, 100% {
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0);
  }
  88% {
    border-color: rgba(134, 239, 172, 0.85);
    box-shadow: 0 0 0 6px rgba(134, 239, 172, 0.16);
  }
}

@keyframes kofi-shimmer {
  0%, 100% { transform: translateX(-130%); }
  60% { transform: translateX(130%); }
}

.wrap {
  max-width: 760px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 { margin: 0 0 .75rem; }
.lede { color: var(--muted); margin-bottom: 1.25rem; }

.card {
  background: var(--panel);
  border: 1px solid #2a3240;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
}

label { display: block; margin-bottom: .85rem; font-weight: 600; }
input {
  margin-top: .35rem;
  width: 100%;
  padding: .7rem;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: var(--text);
}

button {
  width: 100%;
  padding: .8rem 1rem;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  background: var(--accent);
  color: #052e16;
  cursor: pointer;
}

.cta {
  display: inline-block;
  margin-top: .5rem;
  background: var(--accent);
  color: #052e16;
  text-decoration: none;
  font-weight: 700;
  padding: .7rem 1rem;
  border-radius: 10px;
}

.project-list {
  margin: .25rem 0 0;
  padding-left: 1.2rem;
}

.alert {
  border-radius: 10px;
  padding: .75rem .9rem;
  margin-bottom: .9rem;
}
.alert.error { background: #3b0a0a; border: 1px solid var(--danger); }
.alert.success { background: #052e16; border: 1px solid var(--accent); }

a { color: #93c5fd; word-break: break-all; }
.small { color: var(--muted); font-size: .9rem; }
