:root {
  --bg: #FF85BB;
  --fg: #021A54;
  --fg-soft: #021A5422;
  --fg-soft-2: #021A5455;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg); }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.logo {
  display: block;
  margin: 0 auto 24px;
  width: min(360px, 70vw);
  height: auto;
}

h1, h2, h3 {
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}

h1 { font-size: 2rem; font-weight: 900; text-transform: uppercase; }
h2 { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; }

.card {
  background: var(--white);
  border: 3px solid var(--fg);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 8px 8px 0 var(--fg);
}

.event-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.event-meta div {
  background: var(--bg);
  border: 2px solid var(--fg);
  border-radius: 10px;
  padding: 10px 12px;
}

.event-meta .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  display: block;
  margin-bottom: 4px;
}

.event-meta .value {
  font-weight: 800;
  font-size: 1.05rem;
}

.description {
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Progress bar */
.progress {
  margin: 20px 0 8px;
}

.progress-track {
  position: relative;
  height: 38px;
  border: 3px solid var(--fg);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--fg);
  border-radius: 999px 0 0 999px;
  transition: width 1.4s cubic-bezier(.22,.9,.3,1);
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,0.18) 25%, transparent 25%,
    transparent 50%, rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.18) 75%, transparent 75%, transparent
  );
  background-size: 28px 28px;
  animation: stripes 1.2s linear infinite;
}

.progress-fill.full {
  background-color: #b00020;
}

@keyframes stripes {
  from { background-position: 0 0; }
  to   { background-position: 28px 0; }
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  font-weight: 700;
}

.progress-label .pct {
  font-size: 1.1rem;
}

/* Form */
form .row {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

input[type=text], input[type=email], input[type=date],
input[type=datetime-local], input[type=number], textarea, select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 2px solid var(--fg);
  border-radius: 10px;
  background: var(--white);
  color: var(--fg);
  font-family: inherit;
}

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

button, .btn {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  border: 3px solid var(--fg);
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 22px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .1s ease;
}

button:hover, .btn:hover { transform: translateY(-1px); }

.btn-secondary {
  background: var(--white);
  color: var(--fg);
}

.flash {
  border: 2px solid var(--fg);
  background: var(--white);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-weight: 600;
}
.flash.error { background: #ffd5d5; }
.flash.ok    { background: #d6ffd9; }

.full-msg {
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 12px;
}

/* Admin */
.admin-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--fg);
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--fg-soft);
  font-size: 0.95rem;
}
th {
  background: var(--bg);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.badge.paid    { background: #d6ffd9; border: 1px solid #1a7a2a; color: #0e4517; }
.badge.unpaid  { background: #ffd5d5; border: 1px solid #b00020; color: #5a000e; }
.badge.active  { background: var(--fg); color: var(--bg); }
.badge.inactive{ background: #ddd; color: #444; }

.inline-form { display: inline; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.muted { opacity: 0.7; font-size: 0.85rem; }

.center { text-align: center; }

footer {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 30px;
}
