:root {
  --bg: #f7efe4;
  --bg-strong: #fff7ed;
  --surface: rgba(255, 250, 243, 0.88);
  --surface-2: #fff4e7;
  --primary: #0b6b57;
  --primary-2: #0f7d66;
  --accent: #f59d3d;
  --accent-2: #f7b35d;
  --danger: #e65d5d;
  --success: #2c9b69;
  --warning: #d18b1f;
  --text: #17322d;
  --muted: #5d6f69;
  --line: rgba(11, 107, 87, 0.14);
  --shadow: 0 20px 50px rgba(13, 56, 43, 0.10);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1200px;
  --container-app: 1520px;
  --bottom-nav: 82px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 157, 61, 0.13), transparent 30%),
    radial-gradient(circle at 100% 20%, rgba(11, 107, 87, 0.15), transparent 35%),
    linear-gradient(180deg, #f6efe4 0%, #fbf7f0 100%);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  padding: 0.9rem 1rem;
  border-radius: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(11, 107, 87, 0.45);
  box-shadow: 0 0 0 4px rgba(11, 107, 87, 0.08);
}

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

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.page {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.hero-shell {
  padding: 1.2rem 0 2rem;
}

.hero-topbar,
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 12px 22px rgba(11, 107, 87, 0.2);
}

.brand-badge-logo {
  overflow: hidden;
  background: rgba(255,255,255,0.94);
  padding: 0.18rem;
}

.brand-badge-hero {
  width: clamp(96px, 14vw, 128px) !important;
  height: clamp(96px, 14vw, 128px) !important;
  padding: 0.45rem !important;
  border-radius: 28px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 34px rgba(11, 107, 87, 0.14);
}

.brand-logo-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-full {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}

.topbar-actions,
.inline-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn,
.chip,
.nav-pill {
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn {
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
}

.btn:hover,
.chip:hover,
.nav-pill:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ffb85e);
  color: white;
  box-shadow: 0 14px 24px rgba(245, 157, 61, 0.28);
}

.btn-secondary {
  background: rgba(255,255,255,0.8);
  color: var(--primary);
  border: 1px solid rgba(11, 107, 87, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-danger {
  background: rgba(230, 93, 93, 0.12);
  color: #b24444;
}

.btn-success {
  background: rgba(44, 155, 105, 0.12);
  color: #1e7a50;
}

.btn-sm {
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.card,
.glass-panel,
.kpi-card,
.auth-card,
.content-card,
.map-card,
.feed-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.card,
.auth-card,
.content-card,
.map-card,
.feed-card {
  border-radius: var(--radius);
}

.hero-copy {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}

.hero-copy strong {
  color: var(--primary);
}

.hero-badges {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.chip {
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  background: rgba(11, 107, 87, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.hero-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.3rem;
}

.kpi-card {
  padding: 1rem;
  border-radius: 20px;
}

.kpi-card small,
.muted {
  color: var(--muted);
}

.kpi-value {
  font-weight: 800;
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 157, 61, 0.28), transparent 65%);
}

.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-overlay {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 247, 231, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 20px 28px rgba(13, 56, 43, 0.12);
}

.hero-visual-overlay h3 {
  margin: 0 0 0.35rem;
}

.hero-visual-overlay p {
  margin: 0;
  color: var(--muted);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feed-card {
  padding: 1.2rem;
}

.feed-card h3,
.content-card h3,
.content-card h2,
.auth-card h2 {
  margin-top: 0;
  letter-spacing: -0.03em;
}

.feed-card p,
.section-text {
  color: var(--muted);
  line-height: 1.55;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  margin-top: 1.4rem;
}


.auth-entry-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 1.4rem;
  align-items: stretch;
}

.auth-login-main {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
}

.compact-badges {
  margin: 1rem 0 1.35rem;
}

.login-panel {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(11, 107, 87, 0.1);
}

.auth-cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.auth-cta-row .btn {
  flex: 1;
}

.auth-helper-text {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary);
  font-weight: 800;
}

.auth-layout-register {
  align-items: stretch;
}

.auth-support-card {
  justify-content: center;
}

.support-list {
  display: grid;
  gap: 0.9rem;
}

.support-item {
  display: grid;
  gap: 0.28rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(11, 107, 87, 0.08);
}

.support-item span {
  color: var(--muted);
  line-height: 1.5;
}

.public-benefits {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.public-benefit {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.68);
}


.page-public-final {
  padding-top: 1.1rem;
  padding-bottom: 2rem;
}

.auth-entry-shell-final {
  padding-top: 0;
}

.landing-shell-refined {
  display: grid;
  gap: 1.5rem;
  padding-top: 0.8rem;
  padding-bottom: 2rem;
}

.auth-entry-grid-final {
  align-items: center;
}

.auth-login-main-final {
  min-height: 0;
  padding: 2.2rem;
}

.auth-login-centered {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 2rem 2rem 1.8rem;
  display: grid;
  gap: 0.9rem;
}

.brand-hero-centered {
  justify-content: center;
  text-align: center;
}

.auth-login-main-final h1 {
  margin: 0.45rem 0 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.auth-login-main-final p {
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.auth-login-centered h1,
.auth-login-centered p,
.auth-login-centered .chip {
  text-align: center;
  justify-self: center;
}

.auth-login-centered p {
  max-width: 40ch;
}

.brand-hero {
  margin-bottom: 0.35rem;
}

.landing-info-stack {
  display: grid;
  gap: 1rem;
  margin-top: 0.25rem;
}

.section-title-inline {
  align-items: center;
}

.brand-hero .brand-badge {
  width: clamp(96px, 14vw, 128px);
  height: clamp(96px, 14vw, 128px);
}

.hero-visual-final {
  overflow: hidden;
}

.hero-visual-clean {
  min-height: 0;
  padding: 2rem;
  background:
    radial-gradient(circle at top right, rgba(245, 157, 61, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(11,107,87,0.06), rgba(255,255,255,0.4));
}

.hero-showcase {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-showcase-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(11, 107, 87, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.hero-showcase h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-showcase > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 52ch;
}

.hero-stat-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stat-grid-refined {
  margin-top: 0;
}

.hero-stat-card,
.hero-step {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(11, 107, 87, 0.08);
}

.hero-stat-card span,
.hero-step span {
  color: var(--muted);
  line-height: 1.5;
}

.hero-steps {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-visual-overlay-final {
  gap: 1rem;
}

.hero-visual-overlay-final h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-visual-overlay-final p {
  max-width: 46ch;
}

.auth-helper-text-final {
  margin-top: 1.1rem;
}

.login-panel-refined {
  width: 100%;
  margin-top: 0;
}

.auth-cta-row-stacked .btn {
  width: 100%;
}

.auth-helper-text-centered {
  text-align: center;
}

.support-list-refined {
  grid-template-columns: 1fr;
}

.public-benefit span {
  color: var(--muted);
}

.role-choices-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-card {
  padding: 1.6rem;
}

.auth-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.field-note {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 500;
}

.role-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.role-choice {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.95rem;
  background: rgba(255,255,255,0.7);
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.role-choice input {
  width: auto;
}

.role-title {
  font-weight: 800;
}

.page-app {
  width: min(calc(100% - 2rem), var(--container-app));
}

.app-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: calc(var(--bottom-nav) + 1.5rem);
}

.sidebar {
  position: sticky;
  top: 1rem;
  min-height: calc(100vh - 7rem);
  align-self: start;
  padding: 1rem;
  border-radius: 26px;
  background: rgba(255, 250, 243, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.7);
}

.app-layout main {
  min-width: 0;
}

.user-box {
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(11, 107, 87, 0.92), #0e7a65);
  color: white;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(255,255,255,0.18);
  color: white;
}

.avatar-logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  padding: 0.28rem;
}

.avatar-logo .brand-logo-icon {
  filter: none;
}

.user-box h3 {
  margin: 0.8rem 0 0.2rem;
}

.side-nav {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  background: transparent;
}

.nav-pill.active {
  background: rgba(11, 107, 87, 0.1);
  color: var(--primary);
}

.nav-pill svg {
  flex: 0 0 auto;
}

.mobile-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.9rem;
  width: min(calc(100% - 1rem), 760px);
  display: none;
  gap: 0.4rem;
  padding: 0.65rem;
  background: rgba(255, 250, 243, 0.9);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: 0 16px 35px rgba(13, 56, 43, 0.16);
  border: 1px solid rgba(255,255,255,0.7);
  z-index: 10;
}

.mobile-nav .nav-pill {
  flex: 1;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.7rem;
  font-size: 0.75rem;
}

.dashboard-grid,
.list-grid,
.analytics-grid,
.profile-grid,
.admin-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.profile-stack {
  display: grid;
  gap: 1rem;
}

.admin-grid {
  grid-template-columns: 1fr 1fr;
}

.content-card {
  padding: 1.3rem;
}

.section-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title p,
.subtle {
  color: var(--muted);
  margin: 0.35rem 0 0;
}


.section-title-compact {
  margin-bottom: 0;
}

.donations-layout {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.filters-panel,
.filters-stack,
.metrics-stack,
.results-panel,
.donation-results-grid,
.donation-meta-grid {
  display: grid;
  gap: 1rem;
}

.filters-card {
  border: 1px solid rgba(11, 107, 87, 0.1);
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  padding: 1rem;
}

.compact-row > * {
  min-width: 0;
}

.metric-soft {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(11, 107, 87, 0.05);
  border: 1px solid rgba(11, 107, 87, 0.08);
}

.metric-soft strong {
  display: block;
  font-size: 1.35rem;
  color: var(--primary);
}

.metric-soft span,
.metric-soft small {
  display: block;
}

.metric-soft small {
  color: var(--muted);
  margin-top: 0.15rem;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.donation-results-grid {
  grid-template-columns: 1fr;
}

.donation-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-block {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(11, 107, 87, 0.08);
}

.meta-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.meta-block strong,
.meta-block small {
  display: block;
}

.meta-block small {
  margin-top: 0.18rem;
  color: var(--muted);
}

.donation-actions-row {
  align-items: center;
}

.donation-card,
.notification-card,
.request-card,
.history-card,
.admin-row,
.metric-row {
  border: 1px solid rgba(11, 107, 87, 0.1);
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  padding: 1rem;
}

.donation-card {
  display: grid;
  gap: 1rem;
}

.donation-card-header,
.notification-head,
.history-head,
.metric-row,
.admin-row,
.request-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.donation-meta,
.tag-row,
.badge-row,
.request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag,
.status-badge,
.inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag {
  background: rgba(11, 107, 87, 0.08);
  color: var(--primary);
}

.inline-badge {
  background: rgba(245, 157, 61, 0.14);
  color: #ad6508;
}

.status-disponivel,
.status-pendente {
  background: rgba(245, 157, 61, 0.15);
  color: #a06309;
}

.status-reservada,
.status-aceita {
  background: rgba(11, 107, 87, 0.14);
  color: var(--primary);
}

.status-concluida {
  background: rgba(44, 155, 105, 0.14);
  color: #18714a;
}

.status-cancelada,
.status-recusada,
.status-bloqueado {
  background: rgba(230, 93, 93, 0.14);
  color: #b64747;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(11, 107, 87, 0.08);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.map-card {
  padding: 1rem;
  overflow: hidden;
}

.map-stage {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)),
    linear-gradient(90deg, rgba(11, 107, 87, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(11, 107, 87, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 25% 30%, rgba(11, 107, 87, 0.12), transparent 18%),
    radial-gradient(circle at 70% 60%, rgba(245, 157, 61, 0.14), transparent 20%),
    #f7f0e3;
  background-size: auto, 48px 48px, 48px 48px, auto, auto, auto;
}

.map-stage::before,
.map-stage::after {
  content: "";
  position: absolute;
  background: rgba(11, 107, 87, 0.18);
  border-radius: 999px;
}

.map-stage::before {
  inset: 22% auto auto 8%;
  width: 84%;
  height: 8px;
  transform: rotate(-10deg);
}

.map-stage::after {
  inset: 62% auto auto 10%;
  width: 76%;
  height: 10px;
  transform: rotate(8deg);
}

.map-legend {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.legend-dot,
.map-marker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.94);
  border-radius: 16px;
  padding: 0.55rem 0.7rem;
  box-shadow: 0 14px 24px rgba(13, 56, 43, 0.14);
  border: 1px solid rgba(255,255,255,0.74);
  min-width: 120px;
}

.map-marker strong {
  display: block;
  font-size: 0.88rem;
}

.marker-urgente .map-marker-dot,
.legend-urgente {
  background: #f36b6b;
}

.marker-media .map-marker-dot,
.legend-media {
  background: #f5a544;
}

.marker-baixa .map-marker-dot,
.legend-baixa {
  background: #48a87d;
}

.filter-bar,
.segmented {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-bar > * {
  flex: 1 1 180px;
}

.segmented button {
  padding: 0.7rem 1rem;
  background: rgba(11, 107, 87, 0.08);
  color: var(--primary);
  font-weight: 700;
  border-radius: 999px;
}

.segmented button.active {
  background: var(--primary);
  color: white;
}

.empty-state {
  padding: 1.2rem;
  border: 2px dashed rgba(11, 107, 87, 0.12);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.85rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid rgba(11, 107, 87, 0.08);
}

.table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toast-region {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: grid;
  gap: 0.7rem;
  z-index: 30;
}

.toast {
  min-width: 280px;
  max-width: 360px;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(24, 50, 45, 0.94);
  color: white;
  box-shadow: 0 18px 28px rgba(13, 56, 43, 0.2);
}

.toast strong {
  display: block;
  margin-bottom: 0.25rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 28, 24, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 20;
}

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

.modal {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 1.3rem;
  border-radius: 26px;
  background: rgba(255, 251, 244, 0.98);
  box-shadow: 0 28px 50px rgba(7, 28, 24, 0.24);
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1rem 0 2rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .auth-entry-grid,
  .auth-layout,
  .analytics-grid,
  .profile-grid,
  .app-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .page-app {
    width: min(calc(100% - 1rem), var(--container-app));
  }

  .sidebar {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .section-grid,
  .dashboard-grid,
  .list-grid,
  .form-row,
  .role-choices,
  .role-choices-two,
  .hero-highlight,
  .hero-stat-grid,
  .hero-steps {
    grid-template-columns: 1fr;
  }

  .auth-login-centered {
    padding: 1.4rem;
  }

  .hero-visual {
    min-height: 480px;
  }
}

@media (max-width: 580px) {
  .page {
    width: min(calc(100% - 1rem), var(--container));
  }

  .hero-copy,
  .auth-card,
  .content-card,
  .feed-card,
  .map-card,
  .modal,
  .hero-visual-clean {
    padding: 1rem;
  }

  .auth-login-centered {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .btn {
    flex: 1;
  }

  .hero-topbar,
  .app-topbar,
  .section-title,
  .donation-card-header,
  .notification-head,
  .request-card-head,
  .history-head,
  .metric-row,
  .admin-row,
  .auth-header {
    flex-direction: column;
    align-items: stretch;
  }
}


.map-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 1rem;
}

.map-side-column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.map-control-card,
.map-results-card,
.map-main-card {
  padding: 1rem;
}

.map-search-form {
  display: grid;
  gap: 0.85rem;
}

.map-location-status {
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(11, 107, 87, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.filter-bar-map {
  margin-top: 0.9rem;
}

.leaflet-host {
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(11, 107, 87, 0.08);
  background: #dbe8de;
}

.leaflet-container {
  font: inherit;
}

.map-results-list {
  display: grid;
  gap: 0.85rem;
}

.map-result-item {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(11, 107, 87, 0.08);
}

.map-result-item h3 {
  margin: 0.45rem 0 0.25rem;
  font-size: 1rem;
}

.map-result-item p,
.map-popup p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.map-popup strong {
  display: block;
  margin-top: 0.5rem;
}

.leaflet-popup-content-wrapper {
  border-radius: 18px;
}

.leaflet-popup-content {
  margin: 0.9rem 1rem;
  min-width: 220px;
}

@media (max-width: 1024px) {
  .map-layout {
    grid-template-columns: 1fr;
  }

  .leaflet-host {
    min-height: 460px;
  }
}


@media (max-width: 1080px) {
  .donations-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .donation-meta-grid {
    grid-template-columns: 1fr;
  }
}


.logo-contained img, .logo-contained .brand-logo-icon, .logo-contained .brand-logo-full {
  max-width: 100%;
  max-height: 100%;
}
