:root {
  --red: #e50914;
  --gold: #f8b21a;
  --ink: #25313d;
  --muted: #637083;
  --line: #e7dfd4;
  --paper: #ffffff;
  --white: #ffffff;
  --green: #247a48;
  --shadow: 0 20px 50px rgba(37, 49, 61, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  min-height: calc(100vh - 150px);
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 52px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  border-radius: 6px;
  height: 44px;
  max-width: 100%;
  object-fit: contain;
  width: 178px;
}

.menu-toggle {
  display: none;
}

.topnav {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 3px;
  justify-content: flex-end;
}

.topnav a {
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: var(--white);
  border-color: var(--line);
  color: var(--red);
  outline: 0;
}

.topnav .login-link {
  background: var(--red);
  color: var(--white);
  margin-left: 6px;
  padding-left: 18px;
  padding-right: 18px;
}

.topnav .login-link:hover,
.topnav .login-link:focus-visible {
  background: #bd0710;
  border-color: #bd0710;
  color: var(--white);
}

.admin-nav .nav-context {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-right: 4px;
  text-transform: uppercase;
}

.admin-nav .admin-nav-link.is-active {
  background: #fff3f3;
  border-color: #ffd1d4;
  color: var(--red);
}

.admin-nav .nav-divider {
  background: var(--line);
  height: 24px;
  margin: 0 7px;
  width: 1px;
}

.admin-nav .site-link,
.admin-nav .logout-link {
  color: var(--ink);
}

.admin-nav .logout-link {
  color: var(--red);
}

.section-note {
  color: var(--muted);
  margin: -8px 0 20px;
}

.private-link-url {
  color: var(--red);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.status-active {
  background: #e8f7ee;
  color: #175c34;
}

.status-inactive {
  background: #f2f3f5;
  color: #59636e;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
}

.private-help-page {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(240px, 0.78fr) minmax(320px, 1fr);
  max-width: 960px;
}

.private-help-intro {
  padding-top: 28px;
}

.private-help-intro h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 18px;
}

.private-link-label {
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-weight: 800;
  margin-top: 28px;
  padding: 10px 14px;
}

.private-help-success {
  align-items: center;
  display: flex;
  gap: 22px;
}

.private-help-success h2 {
  color: #182437;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 8px;
}

.private-help-success h2 span {
  color: #1caa4d;
}

.private-help-success p {
  color: var(--muted);
  margin: 0 0 18px;
}

.hero {
  display: grid;
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 72px) 38px;
}

.hero-banner {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-banner img {
  display: block;
  height: auto;
  max-height: min(42vw, 430px);
  object-fit: cover;
  width: 100%;
}

.support-modules {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
  padding: 12px 18px 10px;
}

.support-card {
  align-items: center;
  background: var(--white);
  border: 1px solid #eee9e3;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(37, 49, 61, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 14px 16px 16px;
  position: relative;
  text-align: center;
}

.module-number {
  align-items: center;
  align-self: flex-start;
  background: var(--red);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  height: 27px;
  justify-content: center;
  line-height: 1;
  width: 27px;
}

.support-card-orange .module-number,
.support-card-orange .module-action {
  background: #ff7600;
}

.support-card-gold .module-number,
.support-card-gold .module-action {
  background: #ffb511;
}

.support-card-yellow .module-number,
.support-card-yellow .module-action {
  background: #ffc21a;
}

.module-icon {
  align-items: center;
  background: #ffebed;
  border-radius: 50%;
  color: var(--red);
  display: inline-flex;
  height: 80px;
  justify-content: center;
  margin: -14px 0 8px;
  width: 80px;
}

.support-card-orange .module-icon {
  background: #fff0e3;
  color: #ff7600;
}

.support-card-gold .module-icon {
  background: #fff5dc;
  color: #f0a900;
}

.support-card-yellow .module-icon {
  background: #fff7df;
  color: #e9a900;
}

.module-icon svg {
  fill: none;
  height: 49px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 49px;
}

.support-card h2 {
  color: #252c38;
  font-size: 20px;
  min-height: 44px;
}

.module-rule {
  background: var(--red);
  border-radius: 2px;
  display: block;
  height: 3px;
  margin: 8px 0 10px;
  width: 34px;
}

.support-card-orange .module-rule {
  background: #ff7600;
}

.support-card-gold .module-rule {
  background: #f0a900;
}

.support-card-yellow .module-rule {
  background: #e9a900;
}

.support-card h3 {
  color: #252c38;
  font-size: 14px;
  line-height: 1.2;
  min-height: 17px;
}

.support-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 7px 0 12px;
  max-width: 220px;
}

.module-action {
  align-items: center;
  background: var(--red);
  border-radius: 999px;
  color: var(--white);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  margin-top: auto;
  min-height: 34px;
  padding: 7px 18px;
  transition: filter 160ms ease, transform 160ms ease;
  width: 100%;
}

.module-action span {
  font-size: 24px;
  font-weight: 400;
  line-height: 12px;
  margin-left: 8px;
}

.module-action:hover,
.module-action:focus-visible {
  color: var(--white);
  filter: brightness(0.94);
  outline: 0;
  transform: translateY(-1px);
}

.network-values {
  align-items: center;
  background: var(--white);
  border: 1px solid #eee9e3;
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(37, 49, 61, 0.06);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto 18px;
  max-width: 1128px;
  padding: 11px 22px;
}

.value-item {
  align-items: center;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.value-icon {
  color: var(--red);
  flex: 0 0 30px;
  font-size: 31px;
  line-height: 1;
  text-align: center;
}

.value-item:nth-child(2) .value-icon { color: #ff7600; }
.value-item:nth-child(3) .value-icon { color: #f0a900; }

.value-item strong,
.value-item small {
  display: block;
}

.value-item strong {
  color: #252c38;
  font-size: 12px;
}

.value-item small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.public-catalog {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: clamp(34px, 5vw, 54px) clamp(18px, 4vw, 52px);
}

.catalog-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto 24px;
  max-width: 1128px;
}

.catalog-head h2 {
  color: #121a2a;
  font-size: clamp(30px, 3.2vw, 40px);
  letter-spacing: 0;
}

.catalog-head .kicker::after {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  color: var(--white);
  content: "✓";
  display: inline-flex;
  font-size: 9px;
  height: 13px;
  justify-content: center;
  margin-left: 5px;
  width: 13px;
}

.catalog-head p:not(.kicker) {
  color: var(--muted);
  margin: 8px 0 0;
}

.catalog-controls {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

.catalog-control-group {
  align-items: center;
  display: flex;
  gap: 10px;
}

.control-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.view-switch {
  align-items: center;
  display: flex;
  gap: 2px;
}

.view-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #566274;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  min-height: 36px;
  padding: 8px;
  width: 36px;
}

.view-button:hover,
.view-button:focus-visible,
.view-button.is-active {
  background: #fff0f1;
  color: var(--red);
  outline: 0;
}

.grid-view-icon {
  background: linear-gradient(currentColor 0 0) 0 0 / 6px 6px, linear-gradient(currentColor 0 0) 100% 0 / 6px 6px, linear-gradient(currentColor 0 0) 0 100% / 6px 6px, linear-gradient(currentColor 0 0) 100% 100% / 6px 6px;
  background-repeat: no-repeat;
  display: block;
  height: 16px;
  width: 16px;
}

.list-view-icon {
  background: linear-gradient(currentColor 0 0) 0 1px / 4px 3px, linear-gradient(currentColor 0 0) 0 7px / 4px 3px, linear-gradient(currentColor 0 0) 0 13px / 4px 3px, linear-gradient(currentColor 0 0) 8px 1px / 8px 2px, linear-gradient(currentColor 0 0) 8px 7px / 8px 2px, linear-gradient(currentColor 0 0) 8px 13px / 8px 2px;
  background-repeat: no-repeat;
  display: block;
  height: 16px;
  width: 16px;
}

.control-divider {
  background: var(--line);
  height: 38px;
  width: 1px;
}

.sort-control {
  align-items: center;
  display: flex;
  gap: 7px;
}

.clock-icon {
  color: #121a2a;
  font-size: 25px;
  line-height: 1;
}

.sort-control select {
  appearance: none;
  background: transparent;
  border: 0;
  color: #121a2a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  min-width: 116px;
  padding: 8px 18px 8px 0;
}

.request-catalog {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1128px;
}

#catalog-results {
  transition: opacity 160ms ease;
}

#catalog-results.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

.request-catalog.is-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.request-catalog.is-list {
  grid-template-columns: 1fr;
}

.request-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 7px 20px rgba(37, 49, 61, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 176px;
  padding: 14px 17px 12px;
}

.request-card:nth-child(3n + 2) {
  border-left-color: var(--gold);
}

.request-card:nth-child(3n + 3) {
  border-left-color: #ff7600;
}

.request-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.request-card time {
  color: var(--muted);
  font-size: 11px;
}

.calendar-icon {
  color: var(--red);
  font-size: 14px;
  margin-right: 5px;
}

.request-card h3 {
  color: #252c38;
  font-size: 19px;
  margin-top: 12px;
}

.request-need {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0;
}

.request-location {
  color: #455260;
  font-size: 12px;
  margin: 0 0 16px;
}

.request-location span {
  color: var(--red);
  font-size: 16px;
  margin-right: 5px;
}

.request-help {
  background: var(--white);
  border: 1px solid var(--red);
  border-radius: 6px;
  color: var(--red);
  font-size: 13px;
  margin-top: auto;
  min-height: 38px;
  padding: 8px 14px;
  width: 100%;
}

@media (min-width: 761px) {
  .request-help {
    opacity: 0;
    transform: translateY(4px);
  }

  .request-card:hover .request-help,
  .request-card:focus-within .request-help {
    opacity: 1;
    transform: translateY(0);
  }
}

.request-card:not(:nth-child(3n + 1)) .request-help {
  background: var(--white);
  border: 1px solid var(--red);
  color: var(--red);
}

.request-help span {
  font-size: 21px;
  font-weight: 400;
  line-height: 12px;
  margin-left: 7px;
}

.request-help:hover,
.request-help:focus-visible {
  background: var(--red);
  color: var(--white);
  outline: 0;
}

.request-catalog.is-list .request-card {
  align-items: center;
  column-gap: 18px;
  display: grid;
  grid-template-columns: 170px minmax(150px, 0.65fr) minmax(240px, 1.4fr) 150px 180px;
  min-height: 0;
  padding: 11px 16px;
}

.request-catalog.is-list .request-card-top {
  grid-column: 1;
  grid-row: 1;
}

.request-catalog.is-list .request-card h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.request-catalog.is-list .request-need {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
}

.request-catalog.is-list .request-location {
  grid-column: 4;
  grid-row: 1;
  margin: 0;
}

.request-catalog.is-list .request-card .request-help {
  align-self: flex-end;
  grid-column: 5;
  grid-row: 1;
  max-width: 190px;
  margin: 0;
}

.catalog-empty {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 8px;
  margin: 0 auto;
  max-width: 1128px;
  padding: 30px;
  text-align: center;
}

.catalog-empty h3 {
  color: #252c38;
  font-size: 18px;
}

.catalog-empty p {
  color: var(--muted);
  margin-bottom: 0;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  align-items: center;
  background: rgba(37, 49, 61, 0.58);
  border: 0;
  display: none;
  inset: 0;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  position: fixed;
  z-index: 40;
}

.modal.is-open {
  display: flex;
}

.modal-dialog {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(37, 49, 61, 0.28);
  max-height: calc(100vh - 48px);
  max-width: 1040px;
  overflow-y: auto;
  position: relative;
  width: 100%;
}

.modal .section-inner {
  gap: clamp(28px, 5vw, 68px);
  max-width: none;
  padding: clamp(42px, 5vw, 64px) clamp(24px, 5vw, 58px) clamp(30px, 4vw, 48px);
}

.modal .section-copy {
  align-self: start;
  padding-top: 18px;
}

.modal .kicker {
  align-items: center;
  border: 1px solid var(--red);
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  margin-bottom: 18px;
  padding: 7px 13px;
}

.modal .kicker::before {
  content: "♡";
  font-size: 16px;
  font-weight: 400;
  line-height: 12px;
  margin-right: 7px;
}

.modal .section-copy h2 {
  color: #182437;
  font-size: clamp(32px, 4vw, 44px);
  max-width: 350px;
}

.modal .section-copy > p:not(.kicker) {
  color: #4e5c6c;
  font-size: 15px;
  line-height: 1.55;
  margin-top: 18px;
  max-width: 350px;
}

.help-success-panel {
  align-items: center;
  display: flex;
  gap: 28px;
  min-height: 180px;
  padding: 34px 58px;
}

.help-success-icon {
  align-items: center;
  background: #edf8ef;
  border-radius: 50%;
  color: #1caa4d;
  display: flex;
  flex: 0 0 94px;
  font-size: 68px;
  height: 94px;
  justify-content: center;
  line-height: 1;
}

.help-success-copy {
  min-width: 0;
}

.help-success-copy h2 {
  color: #182437;
  font-size: clamp(25px, 3vw, 34px);
  margin-bottom: 7px;
}

.help-success-copy h2 span {
  color: #1caa4d;
}

.help-success-copy p {
  color: #4e5c6c;
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 14px;
  max-width: 430px;
}

.whatsapp-button {
  align-items: center;
  background: #20aa4f;
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  background: #168a3d;
  outline: 3px solid #ccefd6;
  outline-offset: 2px;
}

.sponsor-requests-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.sponsor-requests-layout .section-copy {
  margin-bottom: 28px;
  padding-top: 0;
}

.sponsor-requests-layout .section-copy h2 {
  max-width: 520px;
}

.sponsor-requests-layout .section-copy > p:not(.kicker) {
  max-width: 600px;
}

.sponsor-requests-list .request-catalog {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}

.sponsor-requests-list .request-card {
  min-height: 164px;
}

.request-summary {
  background: #fff7e3;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  margin-top: 28px;
  max-width: 360px;
  padding: 16px 18px;
}

.summary-label {
  color: #9a6a00;
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.request-summary strong {
  color: #182437;
  display: block;
  font-size: 17px;
}

.request-summary p {
  color: #4e5c6c;
  font-size: 13px;
  line-height: 1.4;
  margin: 7px 0;
}

.request-summary small {
  color: #667384;
  font-size: 12px;
}

.request-summary .request-summary-whatsapp {
  color: #218c48;
  font-weight: 800;
  margin-top: 8px;
}

.modal .form-panel {
  border: 0;
  box-shadow: none;
  padding: 12px 0 0 56px;
  position: relative;
}

.modal .form-panel::before {
  background: linear-gradient(var(--red), var(--gold));
  border-radius: 2px;
  bottom: 0;
  content: "";
  left: 20px;
  position: absolute;
  top: 12px;
  width: 2px;
}

.modal .form-panel > .field {
  position: relative;
}

.modal .form-panel > .field::before {
  align-items: center;
  background: #fff0f1;
  border-radius: 50%;
  color: var(--red);
  content: "";
  display: flex;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  left: -56px;
  position: absolute;
  top: 22px;
  width: 38px;
}

.modal .form-panel > .field:nth-of-type(1)::before { content: "♙"; }
.modal .form-panel > .field:nth-of-type(2)::before { content: "▣"; color: #ff7600; background: #fff2e8; }
.modal .form-panel > .field:nth-of-type(3)::before { content: "◉"; color: #218c48; background: #edf8ef; }
.modal .form-panel > .field:nth-of-type(4)::before { content: "♡"; }
.modal .form-panel > .field:nth-of-type(5)::before { content: "⌖"; color: #e9a900; background: #fff7df; }

.modal .form-panel button[type="submit"] {
  min-height: 44px;
  width: 200px;
}

.modal-close {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  display: inline-flex;
  font-size: 26px;
  font-weight: 400;
  height: 38px;
  justify-content: center;
  line-height: 1;
  min-height: 38px;
  padding: 0 0 3px;
  position: absolute;
  right: 18px;
  top: 16px;
  width: 38px;
  z-index: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: #ffe7e8;
  border-color: var(--red);
  color: var(--red);
  outline: 0;
}

@media (max-width: 760px) {
  .modal {
    align-items: flex-start;
    padding: 12px;
  }

  .modal-dialog {
    max-height: calc(100vh - 24px);
  }

  .modal .section-inner {
    gap: 12px;
    padding: 52px 20px 26px;
  }

  .modal .section-copy {
    padding: 0 0 4px;
  }

  .modal .section-copy h2 {
    font-size: 32px;
  }

  .modal .section-copy > p:not(.kicker) {
    margin-top: 12px;
  }

  .request-summary {
    margin-top: 18px;
  }

  .modal .form-panel {
    padding-left: 52px;
  }

  .modal .form-panel button[type="submit"] {
    width: 100%;
  }
}

.hero-intro {
  margin: 0 auto;
  max-width: 1120px;
  padding-bottom: clamp(36px, 5vw, 58px);
  padding-top: clamp(34px, 5vw, 58px);
}

.hero-copy {
  align-self: center;
}

.kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
}

.install-title {
  font-size: clamp(30px, 4vw, 46px);
}

.auth-panel h1,
.admin-page h1 {
  font-size: clamp(30px, 4vw, 46px);
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  font-size: 21px;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  max-width: 740px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  border-top: 1px solid var(--line);
  padding: clamp(42px, 7vw, 76px) clamp(18px, 5vw, 72px);
}

.section-inner {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(240px, 0.78fr) minmax(320px, 1fr);
  margin: 0 auto;
  max-width: 1120px;
}

.section-copy p {
  color: var(--muted);
  font-size: 18px;
}

.form-panel,
.auth-panel,
.admin-card,
.table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(37, 49, 61, 0.08);
}

.form-panel,
.auth-panel {
  padding: clamp(20px, 4vw, 32px);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label,
.field-title {
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  background: #ffffff;
  border: 1px solid #d8cec0;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  width: 100%;
}

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

.options {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.option {
  align-items: center;
  display: flex;
  gap: 10px;
}

.option input {
  width: auto;
}

.button,
button {
  align-items: center;
  background: var(--red);
  border: 0;
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
}

.button.secondary {
  background: var(--gold);
  color: #2d2411;
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.fine-print {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  padding: 24px;
  text-align: center;
}

.footer p {
  margin: 4px 0;
}

.developer-credit {
  font-size: 13px;
  font-weight: 400;
}

.developer-credit a {
  color: var(--red);
  font-weight: 800;
}

.developer-credit a:hover,
.developer-credit a:focus-visible {
  text-decoration: underline;
}

.compremos-local-credit {
  border-top: 1px solid var(--line);
  margin: 18px auto 0;
  max-width: 280px;
  padding-top: 16px;
}

.compremos-local-credit img {
  display: block;
  height: auto;
  margin: 0 auto 8px;
  max-height: 54px;
  max-width: 190px;
  object-fit: contain;
}

.compremos-local-credit p {
  font-size: 13px;
  font-weight: 400;
}

.compremos-local-credit a {
  color: var(--red);
  font-weight: 800;
}

.compremos-local-credit a:hover,
.compremos-local-credit a:focus-visible {
  text-decoration: underline;
}

.auth-page,
.admin-page {
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 36px);
}

.auth-panel {
  margin: 30px auto;
  max-width: 440px;
}

.admin-head {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-card {
  padding: 22px;
}

.admin-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-top: 8px;
}

.notice {
  border-radius: 6px;
  font-weight: 700;
  margin: 0 0 18px;
  padding: 12px 14px;
}

.notice.success {
  background: #e8f7ee;
  color: #175c34;
}

.notice.error {
  background: #ffe8e7;
  color: #9a1912;
}

.toast {
  align-items: flex-start;
  animation: toast-in 180ms ease-out;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(37, 49, 61, 0.2);
  color: #25313d;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 16px;
  justify-content: space-between;
  line-height: 1.4;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 14px 14px 16px;
  position: fixed;
  right: 18px;
  top: 88px;
  width: max-content;
  z-index: 100;
}

.toast.error {
  border-left-color: var(--red);
}

.toast-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  min-height: 24px;
  padding: 0;
  width: 24px;
}

.toast-close:hover,
.toast-close:focus-visible {
  background: transparent;
  color: var(--red);
  outline: 0;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .toast {
    left: 18px;
    right: 18px;
    top: 74px;
    width: auto;
  }
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 780px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #ffffff;
  font-size: 13px;
  text-transform: uppercase;
}

.status {
  background: #ffffff;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

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

.actions .button,
.actions button {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 10px;
}

.two-col {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 860px) {
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section-inner,
  .admin-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 30px;
  }
}

@media (max-width: 980px) {
  .support-modules,
  .request-catalog.is-cards,
  .network-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network-values {
    margin-left: 18px;
    margin-right: 18px;
  }

  .request-catalog.is-list .request-card {
    grid-template-columns: 150px minmax(140px, 1fr) 170px;
  }

  .request-catalog.is-list .request-need {
    grid-column: 2;
    grid-row: 2;
  }

  .request-catalog.is-list .request-help {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .brand img {
    height: 40px;
    width: 158px;
  }

  .menu-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 42px;
    justify-content: center;
    margin-left: auto;
    min-height: 42px;
    padding: 8px;
    width: 42px;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    background: var(--white);
    border-color: var(--red);
    outline: 0;
  }

  .menu-toggle span {
    background: currentColor;
    display: block;
    height: 2px;
    width: 20px;
  }

  .topnav {
    align-items: stretch;
    border-top: 1px solid var(--line);
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    width: 100%;
  }

  .topnav.is-open {
    display: flex;
  }

  .topnav a {
    padding: 11px 12px;
    width: 100%;
  }

  .admin-nav .nav-context {
    padding: 0 12px 4px;
  }

  .admin-nav .nav-divider {
    height: 1px;
    margin: 4px 0;
    width: 100%;
  }

  .topnav .login-link {
    margin-left: 0;
    margin-top: 4px;
    text-align: center;
  }

  .view-control-group,
  .catalog-controls .control-divider {
    display: none;
  }

  .private-help-page {
    grid-template-columns: 1fr;
  }

  .sponsor-requests-layout {
    grid-template-columns: 1fr;
  }

  .private-help-intro {
    padding-top: 0;
  }

  .help-success-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 36px 24px 32px;
  }

  .help-success-icon {
    flex-basis: 72px;
    font-size: 52px;
    height: 72px;
    width: 72px;
  }

  .private-help-success {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .support-modules,
  .request-catalog.is-cards,
  .network-values {
    grid-template-columns: 1fr;
  }

  .catalog-head {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .catalog-controls {
    justify-content: flex-start;
  }

  .catalog-controls label {
    margin-left: 0;
  }

  .catalog-controls select {
    flex: 1 1 130px;
  }

  .support-modules {
    padding-left: 18px;
    padding-right: 18px;
  }

  .network-values {
    padding: 14px 18px;
  }

  .request-catalog.is-list .request-card {
    column-gap: 10px;
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }

  .request-catalog.is-list .request-card-top,
  .request-catalog.is-list .request-card h3 {
    grid-row: 1;
  }

  .request-catalog.is-list .request-card-top {
    grid-column: 1;
  }

  .request-catalog.is-list .request-card h3 {
    grid-column: 2;
    text-align: right;
  }

  .request-catalog.is-list .request-need,
  .request-catalog.is-list .request-location {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .request-catalog.is-list .request-location {
    grid-row: 3;
  }

  .request-catalog.is-list .request-card .request-help {
    grid-column: 1 / -1;
    grid-row: 4;
    max-width: none;
  }
}
