:root {
  --bg: #fff7ea;
  --ink: #2f2031;
  --muted: #775d72;
  --primary: #ff8d4a;
  --primary-dark: #d95f26;
  --gold: #ffd36b;
  --blue: #5ac8fa;
  --card: rgba(255, 255, 255, 0.76);
  --line: rgba(99, 65, 96, 0.14);
  --shadow: 0 24px 80px rgba(95, 52, 89, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,247,234,.66) 0%, rgba(255,247,234,.82) 58%, rgba(243,226,255,.9) 100%),
    url('../img/1e83d557-cd00-4432-9433-a153760224e9.png') center top / cover no-repeat fixed;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
main { overflow: hidden; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 60px rgba(65, 36, 71, 0.12);
  backdrop-filter: blur(18px);
  transition: transform .25s ease, background .25s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.92); }
.brand-link { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: 158px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: #4f354f;
  padding: 10px 14px;
  border-radius: 999px;
}
.site-nav a:hover { background: rgba(255, 141, 74, 0.13); color: var(--primary-dark); }
.nav-toggle { display: none; border: 0; background: var(--primary); color: #fff; border-radius: 999px; padding: 10px 13px; font-weight: 900; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 40px;
  padding: 130px max(24px, calc((100vw - 1120px) / 2)) 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,247,234,.78) 0%, rgba(255,247,234,.36) 45%, rgba(255,255,255,.04) 100%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(255,247,234,0), rgba(255,247,234,.42));
  z-index: -1;
}
.hero-logo { width: min(420px, 90vw); margin-bottom: 18px; filter: drop-shadow(0 16px 26px rgba(78, 38, 75, .18)); }
.eyebrow { margin: 0 0 10px; color: var(--primary-dark); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 7vw, 88px); line-height: .94; max-width: 760px; margin-bottom: 20px; }
h2 { font-size: clamp(32px, 4vw, 58px); line-height: 1; margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 10px; }
.hero-copy { max-width: 720px; font-size: 19px; line-height: 1.75; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 14px 32px rgba(217, 95, 38, .26); }
.btn-secondary { background: #fff; color: var(--primary-dark); border-color: rgba(217, 95, 38, .2); }
.btn-ghost { background: rgba(255, 255, 255, .35); color: var(--ink); border-color: var(--line); }
.btn:disabled, .btn.is-disabled { opacity: .56; pointer-events: none; }
.hero-panel {
  align-self: end;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 24px;
  backdrop-filter: blur(18px);
}
.status-dot { width: 14px; height: 14px; display: inline-block; border-radius: 50%; background: #c74d4d; box-shadow: 0 0 0 8px rgba(199,77,77,.12); margin-right: 8px; }
.status-dot.is-online { background: #2ac56b; box-shadow: 0 0 0 8px rgba(42,197,107,.14); }
.hero-panel strong { display: inline-block; font-size: 30px; }
.hero-panel small { display: block; color: var(--muted); margin-top: 10px; }

.status-strip, .content-section, .download-section, .community-section, .auth-shell, .legal-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 14px;
  transform: translateY(-34px);
  margin-bottom: -34px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,247,234,.28));
  box-shadow: 0 26px 80px rgba(48, 67, 86, .16);
  backdrop-filter: blur(18px);
}
.status-strip article, .feature-grid article, .class-card, .download-card, .auth-form, .legal-shell, .empty-state {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.status-strip article { padding: 22px; background: rgba(255,255,255,.66); box-shadow: none; }
.status-strip span, .download-meta dt { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.status-strip strong { display: block; margin-top: 8px; font-size: 22px; }
.content-section { padding: 80px 0; }
.status-strip + .content-section { padding-top: 46px; }
.section-heading { max-width: 760px; margin-bottom: 32px; }
.section-heading p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-grid article { padding: 24px; }
.feature-grid span { color: var(--primary); font-weight: 1000; font-size: 13px; }
.feature-grid p, .class-card p { color: var(--muted); line-height: 1.6; }
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.class-card { overflow: hidden; min-height: 430px; display: flex; flex-direction: column; justify-content: flex-end; }
.class-card img { width: 100%; height: 310px; object-fit: contain; object-position: center bottom; padding: 20px 20px 0; }
.class-card div { padding: 0 22px 24px; }
.empty-state { padding: 34px; color: var(--muted); font-weight: 800; text-align: center; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-grid article { padding: 24px; border-radius: 24px; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.download-section, .community-section, .auth-shell { padding: 80px 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 28px; align-items: center; }
.download-section { border-top: 1px solid var(--line); }
.download-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; }
.download-meta div { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.54); }
.download-meta dd { margin: 8px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.download-card { padding: 26px; display: grid; gap: 12px; }
.community-section { padding-bottom: 110px; }

.flash { position: fixed; z-index: 40; top: 90px; left: 50%; transform: translateX(-50%); width: min(680px, calc(100% - 32px)); padding: 14px 18px; border-radius: 18px; font-weight: 800; box-shadow: var(--shadow); background: #fff; }
.flash-success { border: 1px solid rgba(42,197,107,.35); color: #146b39; }
.flash-error { border: 1px solid rgba(199,77,77,.35); color: #8f2f2f; }
.auth-shell { min-height: 78vh; padding-top: 140px; }
.auth-copy p, .legal-shell p, .auth-copy li { color: var(--muted); line-height: 1.75; }
.secure-list { padding-left: 18px; }
.auth-form { padding: 26px; display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 8px; font-weight: 900; }
.auth-form input, .auth-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  background: rgba(255,255,255,.88);
  color: var(--ink);
}
.auth-form small, .standalone-error, .form-error { color: #a92d2d; font-weight: 800; }
.form-error { padding: 12px 14px; border-radius: 14px; background: rgba(199,77,77,.1); }
.form-success { padding: 12px 14px; border-radius: 14px; color: #22623c; background: rgba(65, 178, 111, .12); font-weight: 800; }
.check-line { grid-template-columns: auto 1fr; align-items: start; font-weight: 700; }
.check-line input { width: auto; margin-top: 5px; }
.form-note { color: var(--muted); font-size: 14px; line-height: 1.6; }
.wide-form { grid-template-columns: 1fr; }
.legal-shell { margin-top: 130px; margin-bottom: 80px; padding: 34px; }
.legal-shell h2 { font-size: 25px; margin-top: 28px; }
.legal-updated { font-weight: 900; color: var(--primary-dark); }
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.74);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.footer-links a { font-weight: 900; text-decoration: none; color: var(--primary-dark); }

.section-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.section-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .site-header { border-radius: 24px; align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px; border-radius: 22px; background: rgba(255,255,255,.96); border: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .hero, .download-section, .community-section, .auth-shell { grid-template-columns: 1fr; }
  .hero-panel { align-self: auto; }
  .status-strip, .feature-grid, .class-grid, .news-grid, .download-meta { grid-template-columns: 1fr; }
  .class-card { min-height: auto; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .section-reveal { opacity: 1; transform: none; }
}

.donate-hero, .donate-grid, .transfer-card {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.donate-hero {
  padding: 140px 0 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 28px;
  align-items: center;
}
.donate-hero p { color: var(--muted); line-height: 1.75; }
.donate-rate { font-weight: 900; color: var(--primary-dark) !important; }
.bank-card, .package-card, .transfer-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.bank-card { padding: 24px; display: grid; gap: 8px; }
.bank-card span, .package-card small, .transfer-grid span, .donation-status { color: var(--muted); font-weight: 800; font-size: 13px; text-transform: uppercase; }
.bank-card strong { font-size: 24px; margin-bottom: 10px; }
.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 24px;
  padding: 30px 0 70px;
}
.package-list { display: grid; gap: 14px; align-content: start; }
.section-heading.compact { margin-bottom: 10px; }
.package-card { padding: 20px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.package-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.package-card strong { white-space: nowrap; color: var(--primary-dark); }
.auth-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  background: rgba(255,255,255,.88);
  color: var(--ink);
}
.transfer-card { padding: 28px; margin-bottom: 80px; }
.donation-expiry { margin: -4px 0 22px; color: var(--primary-dark); font-weight: 800; line-height: 1.6; }
.donation-expiry strong { display: inline-block; min-width: 54px; padding: 2px 10px; border-radius: 999px; background: var(--primary-dark); color: #fff; text-align: center; }
.transfer-card.is-expired { border-color: rgba(199,77,77,.42); }
.transfer-card.is-expired .donation-expiry { margin-bottom: 0; padding: 14px 16px; border: 1px solid rgba(199,77,77,.16); border-radius: 18px; background: rgba(199,77,77,.08); color: #8a3143; }
.transfer-card.is-paid { border-color: rgba(42,197,107,.55); }
.qr-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.qr-box { background: #fff; border-radius: 22px; padding: 16px; border: 1px solid var(--line); }
.qr-box img { width: 100%; height: auto; }
.transfer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.transfer-grid div { background: rgba(255,255,255,.58); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.transfer-grid .wide { grid-column: 1 / -1; }
.transfer-grid strong { display: block; margin-top: 6px; overflow-wrap: anywhere; }

@media (max-width: 920px) {
  .donate-hero, .donate-grid, .qr-layout { grid-template-columns: 1fr; }
  .transfer-grid { grid-template-columns: 1fr; }
  .package-card { align-items: flex-start; flex-direction: column; }
}

.admin-panels { display: grid; gap: 24px; }
.admin-table {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.request-list { display: grid; gap: 12px; }
.request-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.58);
  border-radius: 18px;
  padding: 14px;
}
.request-item span { display: block; color: var(--muted); overflow-wrap: anywhere; }
.request-item form { margin: 0; }

@media (max-width: 920px) {
  .request-item { grid-template-columns: 1fr; }
}





