/* রক্তদানে আটপাড়া - mobile-first layer on top of site.css */
:root { --red: #d92332; --red-dark: #b3151f; --green-bright: #39b54a; }
body { font-size: 1.02rem; -webkit-tap-highlight-color: transparent; }
.btn { min-height: 48px; }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--ink); line-height: 1.2; }
.footer-logo { width: 72px; height: auto; border-radius: 50%; filter: none; }
.footer-logo.logo-invert { filter: brightness(0) invert(1); }
.nav-cta { background: var(--red); border-color: var(--red); }
.nav-cta:hover { background: var(--red-dark); border-color: var(--red-dark); }

.hero-actions .btn-primary { background: var(--red); border-color: var(--red); }

/* Quick actions card */
.quick { position: relative; z-index: 6; }
.quick-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 14px; display: grid; gap: 16px; }
.btn-emergency { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; box-shadow: 0 10px 22px rgba(217, 35, 50, .32); transition: transform .2s var(--ease), box-shadow .2s; }
.btn-emergency:active { transform: scale(.98); }
.be-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .18); font-size: 1.15rem; }
.be-text { display: grid; line-height: 1.35; flex: 1; }
.be-text strong { font-size: 1.12rem; }
.be-text small { opacity: .9; font-size: .84rem; }
.be-arrow { opacity: .85; }
.quick-title { font-size: 1.15rem; margin: 0 0 8px; }
.group-chips { border: 0; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gc-label { margin: 0 0 8px; color: var(--text); font-size: .92rem; }
.bg-chip { position: relative; display: block; }
.bg-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.bg-chip span { display: grid; place-items: center; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 1rem; color: var(--red); transition: .18s var(--ease); }
.bg-chip input:checked + span { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 16px rgba(217, 35, 50, .28); }
.bg-chip input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.btn-block { width: 100%; justify-content: center; }
.quick-join { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--soft); color: var(--primary); text-align: center; font-size: .95rem; }
.quick-join strong { text-decoration: underline; }
@media (min-width: 768px) {
  .quick-card { grid-template-columns: 1fr 1.3fr; align-items: start; padding: 22px; gap: 22px; }
  .quick-join { grid-column: 1 / -1; }
  .group-chips { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn-emergency { animation: sosPulse 2.8s ease-in-out infinite; }
  @keyframes sosPulse { 0%, 100% { box-shadow: 0 10px 22px rgba(217, 35, 50, .32); } 50% { box-shadow: 0 10px 30px rgba(217, 35, 50, .55); } }
}

/* Stats follow the quick card now, so no overlap */
.quick + .stats-strip { margin-top: 18px; }

/* Bottom navigation (phones) */
.bottom-nav { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 42, 26, .08); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav a, .bottom-nav button { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .72rem; line-height: 1.2; min-height: 48px; }
  .bottom-nav i { font-size: 1.15rem; }
  .bottom-nav .is-active { color: var(--primary); font-weight: 600; }
  .bottom-nav .bn-sos { color: #fff; }
  .bottom-nav .bn-sos i { width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center; border-radius: 50%; background: var(--red); border: 4px solid #fff; box-shadow: 0 8px 18px rgba(217, 35, 50, .4); }
  .bottom-nav .bn-sos span { color: var(--red); font-weight: 600; }
  .back-to-top { display: none !important; } /* up-arrow is for desktop only */
  .nav-cta { display: none; }
}

/* Coming-soon placeholder pages */
.soon { text-align: center; max-width: 560px; margin: 0 auto; }
.soon .service-icon { margin: 0 auto 16px; }

/* Developer credit (footer bottom) */
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dev-credit { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .75); font-size: .85rem; transition: transform .2s var(--ease), opacity .2s; }
.dev-credit img { height: 34px; width: auto; background: #fff; border-radius: 10px; padding: 4px 10px; display: block; }
.dev-credit:hover, .dev-credit:focus-visible { transform: translateY(-2px); color: #fff; }
.dev-credit:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 10px; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ===================== v2: mobile fixes ===================== */
/* 1. No sideways scroll / blank strip on the right */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
@media (max-width: 991px) {
  .js .reveal[data-anim="left"]:not(.visible), .js .reveal[data-anim="right"]:not(.visible) { transform: translateY(28px); }
}

/* 2. Hero: YouTube-sized (16:9) on phones, small text at the top-left, no dots/arrows */
.hero + .quick { margin-top: -48px; }
@media (max-width: 768px) {
  .hero { min-height: 0; height: max(56.25vw, 208px); }
  .hero-slide { align-items: flex-start; }
  .hero-inner { padding-top: 14px; padding-bottom: 12px; }
  .hero-content { max-width: 78%; }
  .hero-chip { font-size: .6rem; padding: 2px 9px; margin-bottom: 6px; gap: 6px; }
  .hero-chip::before { width: 7px; height: 7px; }
  .hero-title { font-size: clamp(1.02rem, 5vw, 1.35rem); line-height: 1.3; margin-bottom: 5px; }
  .hero-intro { font-size: .72rem; line-height: 1.5; margin-bottom: 9px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-actions { flex-wrap: nowrap; gap: 6px; }
  .hero-actions .btn { flex: 0 1 auto; min-width: 0; min-height: 32px; padding: .3em .85em; font-size: .7rem; line-height: 1.2; justify-content: center; text-align: center; }
  .hero-actions .btn i { display: none; }
  .hero-ctrl { display: none; }
  .hero + .quick { margin-top: 14px; }
}
@media (max-width: 360px) { .hero-content { max-width: 88%; } .hero-actions .btn { padding: .3em .6em; font-size: .66rem; } }

/* 3. Bottom navigation can never be wider than the screen */
@media (max-width: 768px) {
  .bottom-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bottom-nav a, .bottom-nav button { min-width: 0; white-space: nowrap; font-size: .68rem; }
  .bottom-nav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}

/* 4. Two-column cards on phones (like the NovaSoft site) */
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .steps, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid-2 > :last-child:nth-child(odd), .grid-3 > :last-child:nth-child(odd), .steps > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .card-body { padding: 14px 14px 16px; }
  .card-title { font-size: .98rem; line-height: 1.4; margin-bottom: 6px; }
  .card-text { font-size: .84rem; line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card-link { font-size: .84rem; }
  .card-meta { font-size: .76rem; gap: 4px 10px; margin-bottom: 8px; }
  .service-card { padding: 16px 14px; }
  .service-icon { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 10px; }
  .step { padding: 16px 12px; }
  .step h3, .step .step-title { font-size: .98rem; }
  .team-card .card-body { padding: 12px 10px 16px; }
  .card:hover, .js .card.reveal.visible:hover { transform: none; }
}

/* 5. Counter cards: about 30% slimmer, smaller content */
.stat { padding: 11px 20px; gap: 12px; }
.stat-icon { width: 42px; height: 42px; font-size: 1.05rem; border-radius: 13px; }
.stat-num { font-size: 1.45rem; }
.stat-label { font-size: .8rem; }
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; }
  .stat { padding: 9px 10px; gap: 9px; border-top: 0 !important; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line) !important; }
  .stat + .stat::before { display: block; top: 22%; bottom: 22%; }
  .stat:nth-child(3)::before { display: none; }
  .stat-icon { width: 34px; height: 34px; font-size: .9rem; border-radius: 10px; }
  .stat-num { font-size: 1.12rem; }
  .stat-label { font-size: .72rem; line-height: 1.3; }
}

/* 6. Footer: brand on top, links in two columns */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; padding-bottom: 34px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-title { font-size: 1rem; margin-bottom: 14px; }
  .footer-links { gap: 9px; font-size: .92rem; }
}

/* 7. Partner logos: one coloured row between two lines */
.logo-strip { --logo-gap: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.logo-viewport { overflow: hidden; }
.logo-viewport.is-scroll { overflow-x: auto; scrollbar-width: none; }
.logo-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; width: max-content; min-width: 100%; }
.logo-item { flex: none; height: 48px; padding: 0 calc(var(--logo-gap) / 2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.logo-item img { height: 100%; width: auto; max-width: 150px; object-fit: contain; filter: none; opacity: 1; }
.logo-item i { color: var(--primary); font-size: 1.4rem; }
.logo-strip.is-marquee .logo-viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.logo-strip.is-marquee .logo-track { justify-content: flex-start; min-width: 0; animation: logoScroll var(--marquee-dur, 24s) linear infinite; }
.logo-strip.is-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes logoScroll { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .logo-strip { --logo-gap: 22px; padding: 14px 0; } .logo-item { height: 38px; } .logo-item img { max-width: 110px; } .logo-item i { font-size: 1.15rem; } .logo-item span { font-size: .85rem; } }
@media (prefers-reduced-motion: reduce) { .logo-strip.is-marquee .logo-track { animation: none; } }

/* 8. Back-to-top: drops in from above, flies up like a rocket and vanishes */
.back-to-top { transition: background .25s; opacity: 0; visibility: hidden; transform: translateY(-110vh); }
.back-to-top.show { visibility: visible; opacity: 1; transform: none; animation: bttDrop .7s cubic-bezier(.22, 1.15, .36, 1) both; }
.back-to-top.leave { visibility: visible; animation: bttFly .75s cubic-bezier(.5, 0, .85, .35) forwards; }
@keyframes bttDrop { from { transform: translateY(-110vh); opacity: 0; } 15% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes bttFly { from { transform: none; opacity: 1; } 80% { opacity: 1; } to { transform: translateY(-110vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .back-to-top, .back-to-top.show { animation: none; transform: none; } .back-to-top:not(.show) { opacity: 0; visibility: hidden; } }

/* Client logos on inner pages: coloured and equal height too */
.client img { filter: none; opacity: 1; height: 52px; max-height: none; width: auto; max-width: 150px; }
@media (max-width: 640px) {
  .step-icon { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 10px; }
  .step p { font-size: .82rem; line-height: 1.55; }
  .step-no { font-size: 1.5rem; }
}

/* Footer credit: keep the label light (".footer-bottom a" would turn it red) */
.footer-bottom .dev-credit { color: rgba(255, 255, 255, .78); }
.footer-bottom .dev-credit:hover, .footer-bottom .dev-credit:focus-visible { color: #fff; }

/* ===== v3 ===== */
/* Footer bottom: copyright on the left, developer credit on the right, always one line */
.footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 16px 0; }
.footer-bottom .fb-copy { min-width: 0; font-size: .72rem; line-height: 1.45; }
.footer-bottom .dev-credit { flex: none; gap: 6px; font-size: .68rem; }
.footer-bottom .dev-credit img { height: 26px; padding: 3px 8px; border-radius: 8px; }
@media (min-width: 768px) {
  .footer-bottom { padding: 22px 0; }
  .footer-bottom .fb-copy { font-size: .88rem; }
  .footer-bottom .dev-credit { gap: 10px; font-size: .85rem; }
  .footer-bottom .dev-credit img { height: 34px; padding: 4px 10px; border-radius: 10px; }
}

/* Quick card (desktop): left column filled with reassurance points */
.quick-left { display: grid; gap: 14px; align-content: start; }
.quick-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.quick-trust li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.quick-trust i { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--primary); color: #fff; font-size: .95rem; }
.quick-trust strong { display: block; color: var(--ink); font-size: .98rem; line-height: 1.35; }
.quick-trust span { display: block; color: var(--text); font-size: .85rem; line-height: 1.5; }
.quick-call { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--red); color: var(--red); font-weight: 600; }
@media (max-width: 767px) { .quick-trust { display: none; } .quick-left { gap: 10px; } }
@media (min-width: 768px) { .quick-card { align-items: stretch; } }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.g-item { margin: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.g-item[hidden] { display: none; }
.g-link { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.g-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover .g-link img { transform: scale(1.06); }
.g-zoom { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(15, 42, 26, .7); color: #fff; font-size: .8rem; opacity: 0; transform: scale(.8); transition: .25s var(--ease); }
.g-item:hover .g-zoom, .g-link:focus-visible .g-zoom { opacity: 1; transform: none; }
.g-link:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.g-item figcaption { display: grid; gap: 2px; padding: 10px 12px 12px; }
.g-item figcaption strong { color: var(--ink); font-size: .95rem; line-height: 1.4; }
.g-item figcaption span { color: var(--muted); font-size: .78rem; }
.g-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.g-filter { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; transition: .2s; }
.g-filter.active, .g-filter:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (max-width: 991px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .g-item figcaption { padding: 8px 9px 10px; }
  .g-item figcaption strong { font-size: .8rem; }
  .g-item figcaption span { font-size: .68rem; }
  .g-zoom { display: none; }
  .g-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -4px; padding: 0 4px 6px; scrollbar-width: none; }
  .g-filter { flex: none; }
}
/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 20, 12, .95); }
.lb.open { display: flex; }
.lb-fig { margin: 0; max-width: min(1100px, 100%); display: grid; gap: 10px; justify-items: center; }
.lb-fig img { max-width: 100%; max-height: 72vh; object-fit: contain; border-radius: 12px; background: #000; }
.lb-fig figcaption { display: grid; gap: 3px; max-width: 640px; text-align: center; color: #fff; font-size: .88rem; line-height: 1.5; }
.lb-fig figcaption strong { font-size: 1rem; }
.lb-fig figcaption span { color: rgba(255, 255, 255, .72); font-size: .82rem; }
.lb-close, .lb-nav { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1rem; }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.lb-nav { top: 50%; margin-top: -22px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-count { position: absolute; top: calc(22px + env(safe-area-inset-top, 0px)); left: 16px; color: rgba(255, 255, 255, .75); font-size: .85rem; }
body.lb-lock { overflow: hidden; }
@media (max-width: 640px) {
  .lb-nav { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); margin: 0; }
  .lb-prev { left: calc(50% - 58px); } .lb-next { right: calc(50% - 58px); }
  .lb-fig img { max-height: 66vh; }
}

/* ===== DONOR SYSTEM (step 2) — functional base; final mobile polish comes in the CSS pass ===== */
.dn-wrap { max-width: 760px; margin: 0 auto; }
.dn-narrow { max-width: 440px; }
.dn-lead { color: var(--muted, #5b6770); margin: 0 0 18px; font-size: .95rem; }
.dn-form .dn-group { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 14px 4px; margin: 0 0 16px; min-width: 0; }
.dn-group legend { font-weight: 700; padding: 0 8px; font-size: .95rem; }
.dn-form select.form-input { appearance: auto; }
.dn-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.dn-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.dn-check em { color: #6b7780; font-style: normal; font-size: .85rem; }
.dn-hint { display: block; color: #6b7780; font-size: .82rem; margin: 4px 0 10px; }
.dn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dn-switch { text-align: center; margin: 14px 0 0; font-size: .92rem; }
.dn-alert { padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; font-size: .92rem; font-weight: 500; }
.dn-alert-ok { background: #e8f9f0; color: #0a7a4b; }
.dn-alert-error { background: #fdecec; color: #b3262d; }
.dn-alert-info { background: #eaf2ff; color: #1d4fa3; }
.dn-alert-warn { background: #fff6e0; color: #8a5a00; }
.dn-card { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; margin: 0 0 16px; }
.dn-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.dn-status { display: flex; gap: 14px; align-items: center; }
.dn-status h2 { margin: 0 0 6px; font-size: 1.15rem; }
.dn-line { margin: 4px 0; font-size: .9rem; }
.dn-inline { margin-top: 10px; }
.dn-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--soft); font-size: .8rem; font-weight: 600; margin-right: 6px; }
.dn-badge-blood { background: #d9222f; color: #fff; }
.dn-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; color: #9aa5ad; font-size: 1.6rem; }
.dn-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dn-avatar-lg { width: 76px; height: 76px; }
.dn-photo-row { display: flex; gap: 14px; align-items: flex-start; }
.dn-photo-row .form-group { flex: 1; min-width: 0; }
.dn-logout { text-align: center; margin: 8px 0 24px; }
[hidden] { display: none !important; }

/* ===== DONOR SYSTEM (step 3): search, requests ===== */
.dn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dn-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .85rem; color: #d9222f; background: #fff; }
.dn-chip b { color: var(--ink); font-weight: 600; }
.dn-chip.is-on { background: #d9222f; color: #fff; border-color: #d9222f; }
.dn-chip.is-on b { color: #fff; }
.dn-list { display: grid; gap: 12px; }
.dn-donor { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.dn-donor h3 { margin: 0 0 4px; font-size: 1rem; }
.dn-donor-main { min-width: 0; flex: 1; }
.dn-state { display: inline-block; font-size: .85rem; margin-right: 8px; }
.dn-state-ok { color: #0a7a4b; font-weight: 600; }
.dn-state-warn { color: #8a5a00; font-weight: 600; }
.dn-soc a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--soft); margin-right: 6px; color: var(--ink); }
.dn-call { margin-top: 6px; padding: 8px 14px; font-size: .9rem; }
.dn-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 18px 0; }
.dn-empty { text-align: center; }
.dn-code { font-size: 1.5rem; font-weight: 700; letter-spacing: .12em; margin: 4px 0 10px; }
.dn-track-row { display: flex; gap: 10px; }
.dn-track-row .form-input { flex: 1; min-width: 0; }
.dn-req { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.dn-req:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }

/* ===== STEP 5: ready counter + members row (final mobile polish comes in the CSS pass) ===== */
.ready-line { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .9rem; color: #0a7a4b; }
.ready-dot { width: 10px; height: 10px; border-radius: 50%; background: #12a05c; box-shadow: 0 0 0 4px rgba(18, 160, 92, .18); flex: none; }

/* ===== Header: login / register pill (desktop) ===== */
.nav-auth { display: inline-flex; align-items: center; border: 1.5px solid var(--primary); border-radius: 999px; background: #fff; overflow: hidden; }
.nav-auth a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; font-size: .9rem; font-weight: 600; color: var(--primary); white-space: nowrap; transition: background .2s, color .2s; }
.nav-auth a:hover, .nav-auth a.is-active { background: var(--primary); color: #fff; }
.nav-auth-sep { width: 1.5px; align-self: stretch; background: var(--primary); opacity: .35; }
.mobile-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 991px) { .nav-auth, .nav-user { display: none; } }

/* ===== Compact donor forms (registration + profile): small cards, tight spacing, 2 columns ===== */
.dn-form .dn-group { padding: 10px 12px 4px; margin: 0 0 12px; border-radius: 12px; background: #fff; }
.dn-form .dn-group legend { font-size: .88rem; padding: 0 6px; }
.dn-form .form-row { grid-template-columns: 1fr 1fr; gap: 0 10px; } /* always 2 columns, phone too */
.dn-form .form-group { margin-bottom: 8px; min-width: 0; }
.dn-form .form-label { font-size: .78rem; margin-bottom: 3px; }
.dn-form .form-input, .dn-form select.form-input { padding: 7px 10px; min-height: 38px; font-size: .9rem; border-radius: 10px; }
.dn-form .form-error { min-height: 0; margin-top: 2px; font-size: .74rem; }
.dn-form .form-error:empty { display: none; }
.dn-form .dn-hint { font-size: .72rem; margin: 2px 0 6px; }
.dn-form .dn-check { font-size: .82rem; margin: 0 0 8px; gap: 8px; line-height: 1.45; }
.dn-form .dn-check input { width: 16px; height: 16px; margin-top: 3px; }
.dn-form .dn-photo-row { gap: 10px; align-items: center; }
.dn-form .dn-avatar { width: 46px; height: 46px; font-size: 1.1rem; }
.dn-form input[type="file"] { font-size: .8rem; max-width: 100%; }
.dn-form .btn-block { min-height: 42px; }
.dn-lead { font-size: .85rem; margin-bottom: 12px; }

/* Registration page: tighter page rhythm, wide 2-column card grid on desktop */
.page-join .section { padding: 20px 0 30px; }
.page-join .page-banner { padding: 18px 0 16px; }
.dn-wrap-reg { max-width: 940px; }
@media (min-width: 769px) {
  .dn-reg { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: start; }
  .dn-reg .dn-group { margin-bottom: 14px; }
  .dn-reg > .dn-hp { grid-column: 1 / -1; }
  .dn-reg .dn-submit { grid-column: 1 / -1; max-width: 420px; justify-self: center; width: 100%; }
}
@media (max-width: 400px) {
  .dn-form .form-row { gap: 0 8px; }
  .dn-form .form-input, .dn-form select.form-input { padding: 7px 8px; font-size: 16px; }
}

/* ===== Members (home + /members): square "box" photos, grid ===== */
.mem-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.mem-card { display: grid; align-content: start; justify-items: center; gap: 3px; text-align: center; padding: 10px 8px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; transition: transform .2s, box-shadow .2s; }
.mem-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(15, 42, 26, .10); }
.mem-av { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; color: #9aa5ad; font-size: 2rem; margin-bottom: 6px; }
.mem-av img { width: 100%; height: 100%; object-fit: cover; }
.mem-name { font-size: .88rem; line-height: 1.3; word-break: break-word; }
.mem-pos { font-size: .72rem; color: var(--primary); font-weight: 600; }
.mem-meta { font-size: .76rem; color: var(--muted); }
.mem-meta b { color: #d9222f; }
.mem-card.is-anon { background: var(--soft); }
.mem-card.is-anon .mem-name { color: var(--muted); font-weight: 500; }
.section-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mem-total { text-align: center; margin: 0 0 12px; color: var(--muted); }
.mem-filter { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.mem-filter a { min-width: 46px; text-align: center; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: .85rem; color: #d9222f; }
.mem-filter a.on { background: #d9222f; border-color: #d9222f; color: #fff; }
@media (max-width: 1100px) { .mem-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .mem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .mem-card { padding: 6px 5px 8px; border-radius: 12px; } .mem-av { border-radius: 9px; font-size: 1.5rem; margin-bottom: 4px; } .mem-name { font-size: .74rem; } .mem-pos, .mem-meta { font-size: .66rem; } }

/* Committee members (registered members holding a position) */
.team-card-member .team-photo { aspect-ratio: 1 / 1; overflow: hidden; }
.team-card-member .team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-meta { margin: 4px 0 0; font-size: .82rem; color: var(--muted); }
.team-meta b { color: #d9222f; }
@media (max-width: 640px) { .team-meta { font-size: .68rem; } }

.nav-auth-one { padding: 9px 18px; gap: 7px; }
.lang-ico { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--primary); color: var(--primary); font-size: .78rem; font-weight: 700; background: #fff; }
.lang-ico:hover { background: var(--primary); color: #fff; }
.lang-ico i { font-size: 1rem; }
@media (max-width: 991px) { .nav-auth-one { display: none; } .lang-ico { height: 34px; } }
.nav-auth.nav-auth-one { color: var(--primary); font-size: .9rem; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.nav-auth.nav-auth-one:hover { background: var(--primary); color: #fff; }

/* ---- desktop navbar: keep everything on one line, compact ---- */
.navbar-inner { gap: 14px; }
.brand, .navbar-actions, .nav-cta, .nav-auth-one, .lang-ico { flex: none; }
.main-nav { min-width: 0; }
.nav-list { flex-wrap: nowrap; }
.nav-link { white-space: nowrap; padding: 8px 11px; font-size: .92rem; }
.nav-link::after { left: 11px; right: 11px; }
.navbar-actions { gap: 8px; }
.nav-cta.btn { padding: 8px 18px; min-height: 0; font-size: .9rem; line-height: 1.3; white-space: nowrap; box-shadow: 0 4px 12px rgba(220, 38, 38, .22); }
.nav-cta.btn:hover { transform: none; box-shadow: 0 6px 14px rgba(220, 38, 38, .28); }
.nav-auth.nav-auth-one { padding: 7px 14px; font-size: .88rem; }
.brand-name, .brand-text { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1279px) {
  .nav-link { padding: 8px 7px; font-size: .86rem; }
  .nav-link::after { left: 7px; right: 7px; }
  .nav-cta.btn { padding: 7px 13px; font-size: .84rem; }
  .nav-auth.nav-auth-one { padding: 6px 11px; font-size: .84rem; }
  .nav-auth-one i { display: none; }
  .lang-ico span { display: none; }
  .lang-ico { padding: 0 9px; }
  .navbar-inner { gap: 10px; }
}
