:root {
  --bg: #1b0b2e;
  --bg2: #2a1046;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #fbefff;
  --muted: #c9b3dc;
  --pink: #ff4fa3;
  --orange: #ffa24c;
  --yellow: #ffd66b;
  --cyan: #3fe0e8;
  --grad: linear-gradient(90deg, #ff4fa3, #ff7a6b 50%, #ffb347);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Poppins, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg) linear-gradient(180deg, var(--bg) 0%, var(--bg) 900px, var(--bg2) 70%, #3b1240 100%);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
h1, h2 { font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: 0.5px; line-height: 1.05; }
h2 { font-size: clamp(28px, 6vw, 40px); margin: 0 0 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
a { color: var(--yellow); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,11,46,0) 30%, rgba(27,11,46,.75) 70%, var(--bg) 100%); }
.hero-content { position: relative; width: 100%; max-width: 900px; margin: 0 auto; padding: 0 16px 48px; text-align: center; }
.logo { position: absolute; top: 20px; left: 20px; width: clamp(110px, 14vw, 190px); filter: drop-shadow(0 6px 20px rgba(0,0,0,.5)); z-index: 1; }
.kicker { margin: 8px 0 0; text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 600; color: var(--yellow); }
h1 { font-size: clamp(44px, 11vw, 92px); margin: 4px 0 6px; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); }
.lead { font-size: clamp(18px, 4.5vw, 24px); margin: 0 0 18px; font-weight: 600; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.chip { background: rgba(0,0,0,.45); border: 1px solid var(--line); backdrop-filter: blur(6px); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.chip-hot { background: rgba(255, 79, 163, .35); }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font: 800 18px Poppins, sans-serif; color: #2a0a2a;
  background: var(--grad); border-radius: 14px; padding: 14px 26px;
  box-shadow: 0 8px 24px rgba(255, 79, 163, .35); transition: transform .12s;
}
.btn:active { transform: scale(.97); }
.btn-big { font-size: 20px; padding: 16px 34px; }

/* layout */
main { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; margin: 22px 0; }
section { scroll-margin-top: 16px; }

/* progress */
.progress-card { margin-top: -10px; position: relative; backdrop-filter: blur(8px); }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.big-num { font-family: Anton, sans-serif; font-size: 40px; color: var(--yellow); }
.bar { height: 22px; background: rgba(0,0,0,.4); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar-fill { height: 100%; min-width: 4px; background: var(--grad); border-radius: 999px; box-shadow: 0 0 18px rgba(255,122,107,.7); transition: width 1s; }
.progress-card p { margin: 12px 0 0; }
.mission { text-align: center; font-family: Anton, sans-serif; font-size: 34px; color: var(--yellow); text-shadow: 0 0 20px rgba(255,214,107,.6); }
.mission small { display: block; font: 400 14px Poppins, sans-serif; color: var(--muted); text-shadow: none; }

/* story */
.story { margin: 34px 0; }
.story p { font-size: 17px; }
blockquote {
  margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--pink);
  background: rgba(255, 79, 163, .1); border-radius: 0 12px 12px 0;
  font-family: Anton, sans-serif; font-size: 28px; letter-spacing: .5px;
}

/* form */
.pledge-form { display: grid; gap: 14px; margin-top: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label .muted { font-weight: 400; }
input, textarea {
  width: 100%; font: 16px Poppins, sans-serif; color: var(--text);
  background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
input:focus, textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
textarea { resize: vertical; }
.amount-wrap { display: flex; align-items: center; gap: 8px; }
.amount-wrap span { font-size: 22px; font-weight: 800; color: var(--yellow); }
.amount-wrap input { font-size: 22px; font-weight: 800; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick button {
  font: 800 17px Poppins, sans-serif; color: var(--text); cursor: pointer;
  background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; line-height: 1.2;
}
.quick button small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.quick button.on { border-color: var(--pink); background: rgba(255, 79, 163, .18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pledge-form .btn { justify-self: stretch; }

/* table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }
.amount { font-weight: 800; color: var(--yellow); }
.name { font-weight: 600; overflow-wrap: anywhere; }
.date { font-size: 12px; color: var(--muted); font-weight: 400; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; background: var(--grad); color: #2a0a2a; border-radius: 999px; padding: 2px 8px; margin-left: 4px; white-space: nowrap; }
.stars { color: var(--yellow); white-space: nowrap; letter-spacing: 1px; }
.stars .off { color: rgba(255,255,255,.15); }
.msg { color: var(--muted); font-style: italic; overflow-wrap: anywhere; }

/* gallery */
.gallery-section { margin: 40px 0; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; text-align: left; }
figure { margin: 0; }
.shot { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #000; }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.shot:hover img { transform: scale(1.04); }
figcaption { font-size: 14px; color: var(--muted); padding: 6px 2px 0; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; color: var(--text); }
.lightbox::backdrop { background: rgba(10, 2, 20, .9); }
.lightbox img { display: block; max-width: 96vw; max-height: 82vh; border-radius: 12px; }
.lightbox .lb-cap { text-align: center; margin: 10px 0 0; }
.lightbox .close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; cursor: pointer; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 600; font-size: 16px; }
details p { margin: 8px 0 0; color: var(--muted); }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 40px; }
footer p { margin: 4px 0; }

/* toast */
.toast {
  position: fixed; z-index: 10; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(92vw, 520px); padding: 14px 18px; border-radius: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: drop .4s ease-out; transition: opacity .5s;
}
.toast-ok { background: var(--grad); color: #2a0a2a; }
.toast-error { background: #4a1030; border: 1px solid var(--pink); color: var(--text); }
.toast.hide { opacity: 0; pointer-events: none; }
@keyframes drop { from { transform: translate(-50%, -30px); opacity: 0; } }

/* admin */
.admin main { padding-top: 24px; }
.admin .row-actions form { margin: 0; }
.danger { font: 600 13px Poppins, sans-serif; color: #fff; background: #b0244f; border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.login { max-width: 360px; margin: 18vh auto 0; display: grid; gap: 12px; }
.err { color: var(--pink); margin: 0; }

@media (max-width: 600px) {
  .hero { min-height: 88vh; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .story p { font-size: 16px; }
  blockquote { font-size: 23px; }
  thead { display: none; }
  tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 0; }
  tbody tr:last-child { border-bottom: 0; }
  tbody td { border: 0; padding: 2px 0; }
  td.name { grid-row: span 2; }
  td.stars { grid-column: 2; text-align: right; font-size: 13px; align-self: end; }
  td.msg { grid-column: 1 / -1; }
  td.msg:empty { display: none; }
  .big-num { font-size: 34px; }
}
