:root {
  --ink: #123d72;
  --muted: #60758b;
  --green: #176fd1;
  --green-dark: #14539b;
  --lime: #a9e91b;
  --cyan: #20ade2;
  --cream: #f3f8fc;
  --white: #ffffff;
  --line: #d8e5ef;
  --danger: #9f2f2f;
  --shadow: 0 24px 70px rgba(20, 83, 155, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(169, 233, 27, .2), transparent 30rem),
    radial-gradient(circle at 90% 90%, rgba(32, 173, 226, .14), transparent 32rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
  font-size: 1.2rem;
}

.brand-logo {
  display: block;
  width: min(390px, 48vw);
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

.admin-link, .text-button {
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 114px);
  padding: 48px 0 90px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(169, 233, 27, .35);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 22px 0 18px;
  font-size: clamp(2.5rem, 5.5vw, 5.15rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.lead {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  letter-spacing: -.035em;
}

.hint { margin: 0 0 26px; color: var(--muted); line-height: 1.5; }

label {
  display: block;
  margin-bottom: 9px;
  font-size: .88rem;
  font-weight: 800;
}

input[type="text"], input[type="password"], textarea {
  width: 100%;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: white;
  transition: border .2s, box-shadow .2s;
}

input[type="text"], input[type="password"] { height: 56px; }

textarea {
  min-height: 132px;
  padding-top: 15px;
  resize: vertical;
  line-height: 1.5;
}

.message-field { margin-bottom: 22px; }
.field-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(23,111,209,.1);
}

.primary {
  width: 100%;
  min-height: 56px;
  margin-top: 14px;
  padding: 13px 20px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--green);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23,111,209,.22);
  transition: transform .2s, background .2s;
}

.primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.primary:disabled { opacity: .6; cursor: wait; transform: none; }

.result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 18px;
  background: #edf7fd;
  border: 1px solid #c8e4f4;
}

.result.not-found { color: var(--danger); background: #fff3f0; border-color: #f0d0ca; }
.result h3 { margin: 0 0 8px; font-size: 1.2rem; }
.result p { margin: 0; line-height: 1.55; }

.amount {
  margin: 15px 0 16px;
  padding: 16px 0;
  border-top: 1px solid #c7deed;
  border-bottom: 1px solid #c7deed;
}

.amount span { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; }
.amount strong { display: block; margin-top: 3px; font-size: 1.9rem; letter-spacing: -.04em; }

.whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.hidden { display: none !important; }

.admin-main { padding: 40px 0 90px; }
.admin-heading { margin-bottom: 32px; }
.admin-heading h1 { margin: 0 0 10px; font-size: clamp(2.2rem, 5vw, 4rem); }
.admin-heading p { margin: 0; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: .78fr 1.3fr; gap: 24px; }
.stack { display: grid; gap: 16px; }
.login-card { max-width: 480px; margin: 6vh auto; }
.field + .field { margin-top: 17px; }

.stat {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.stat span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.stat strong { display: block; margin-top: 4px; font-size: 1.8rem; }

.dropzone {
  display: grid;
  min-height: 210px;
  padding: 26px;
  place-items: center;
  text-align: center;
  border: 2px dashed #b7c9c1;
  border-radius: 20px;
  background: #fbfcfa;
  cursor: pointer;
  transition: border .2s, background .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--green); background: #f1f9f4; }
.dropzone input { display: none; }
.dropzone strong { display: block; margin-bottom: 7px; font-size: 1.08rem; }
.dropzone span { color: var(--muted); font-size: .9rem; }
.file-name { margin: 14px 0 0; color: var(--green-dark); font-weight: 700; }
.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #6a5720;
  background: #fff9df;
  font-size: .88rem;
  line-height: 1.5;
}
.status { margin-top: 14px; font-weight: 700; line-height: 1.5; }
.status.error { color: var(--danger); }

@media (max-width: 800px) {
  .hero, .admin-grid { grid-template-columns: 1fr; }
  .hero { gap: 36px; padding-top: 22px; }
  .hero-copy { text-align: center; }
  .eyebrow { margin: 0 auto; }
  .lead { margin: 0 auto; }
  .admin-link { font-size: .88rem; }
}

@media (max-width: 480px) {
  .shell { width: min(100% - 22px, 1120px); }
  .topbar { padding: 18px 0; }
  .brand-logo { width: min(250px, 60vw); height: 58px; }
  .card { border-radius: 22px; }
  h1 { font-size: 2.7rem; }
}
