/* ============================================================
   Davaoci.rs — Glavni CSS
   Dizajn: minimalistički, human, institucionalan
   Paleta: bela + tamno crvena (#8B0000)
   Fontovi: DM Sans + DM Serif Display
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red-900:  #7B0000;
  --red-800:  #8B0000;
  --red-700:  #9E0000;
  --red-100:  #FFF0F0;
  --red-50:   #FFF7F7;

  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;

  --green-600: #16A34A;
  --blue-600:  #2563EB;
  --orange-500:#F97316;
  --yellow-500:#EAB308;

  --font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.1),  0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12), 0 4px 6px rgba(0,0,0,.07);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 200ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red-800); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ── Utilities ────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.text-sm    { font-size: .875rem; }
.text-xs    { font-size: .75rem; }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-center { text-align: center; }
.text-red-800 { color: var(--red-800); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: .9rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--transition); white-space: nowrap; line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--red-800); outline-offset: 2px; }

.btn-primary   { background: var(--red-800); color: #fff; }
.btn-primary:hover  { background: var(--red-900); text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139,0,0,.3); }

.btn-secondary { background: transparent; color: var(--red-800); border: 2px solid var(--red-800); }
.btn-secondary:hover { background: var(--red-50); text-decoration: none; }

.btn-ghost { background: transparent; color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-ghost:hover { background: var(--gray-50); text-decoration: none; }

.btn-danger  { background: #DC2626; color: #fff; }
.btn-success { background: var(--green-600); color: #fff; }

.btn-lg  { padding: 14px 28px; font-size: 1rem; }
.btn-sm  { padding: 7px 14px; font-size: .82rem; }
.btn-xs  { padding: 4px 10px; font-size: .78rem; }
.btn-block { width: 100%; }

/* ── Navigation ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-container {
  display: flex; align-items: center; gap: 32px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px;
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.2rem; font-weight: 700; color: var(--gray-900);
  text-decoration: none; flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo-icon { width: 28px; height: 28px; }
.nav-logo-text { letter-spacing: -.02em; }

.nav-links {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}

.nav-link {
  padding: 6px 12px; border-radius: var(--radius-sm);
  color: var(--gray-700); font-size: .9rem; font-weight: 500;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--gray-900); background: var(--gray-100); text-decoration: none; }
.nav-link-appeal { color: var(--red-800); }
.nav-link-appeal:hover { background: var(--red-50); }

.nav-btn {
  background: var(--red-800); color: #fff;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600;
  transition: all var(--transition);
}
.nav-btn:hover { background: var(--red-900); text-decoration: none; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-900); border-radius: 2px; transition: all var(--transition); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #fff 60%, var(--red-50) 100%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-blob {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,0,0,.06) 0%, transparent 70%);
}
.hero-blob-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-blob-2 { width: 400px; height: 400px; bottom: -150px; left: -100px; }

.hero-content { max-width: 680px; position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-100); color: var(--red-800);
  padding: 6px 14px; border-radius: 100px;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-800);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.hero-title em { color: var(--red-800); font-style: normal; }

.hero-subtitle {
  font-size: 1.1rem; color: var(--gray-500);
  line-height: 1.7; max-width: 540px; margin-bottom: 36px;
}

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

.hero-stats {
  display: flex; gap: 0; margin-top: 64px;
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff; box-shadow: var(--shadow-sm);
}

.stat-card {
  flex: 1; padding: 24px; text-align: center;
  border-right: 1px solid var(--gray-200);
}
.stat-card:last-child { border-right: none; }
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: var(--red-800); font-family: var(--font-serif); }
.stat-label  { display: block; font-size: .82rem; color: var(--gray-500); margin-top: 4px; }

/* ── Sections ─────────────────────────────────────────────── */
.blood-groups-section,
.latest-appeals-section,
.how-it-works,
.cta-section { padding: 80px 0; }

.blood-groups-section { background: var(--gray-50); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px; color: var(--gray-900);
}
.section-subtitle { color: var(--gray-500); margin-bottom: 40px; font-size: 1.05rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-footer { text-align: center; margin-top: 40px; }

.blood-groups-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}

.blood-group-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--gray-200); background: #fff;
  transition: all var(--transition); text-decoration: none;
}
.blood-group-card:hover { border-color: var(--red-800); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.blood-group-card.has-appeals { border-color: rgba(139,0,0,.25); }
.blood-group-name { font-size: 1.8rem; font-weight: 700; color: var(--red-800); font-family: var(--font-serif); }
.blood-group-count { font-size: .78rem; color: var(--gray-500); margin-top: 4px; }

/* ── Appeal cards ─────────────────────────────────────────── */
.appeals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.appeal-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); position: relative;
}
.appeal-card:hover { border-color: rgba(139,0,0,.3); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.appeal-card--urgent { border-color: rgba(139,0,0,.5); }

.appeal-urgent-badge {
  background: var(--red-800); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  padding: 4px 12px;
}

.appeal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 0;
}

.blood-badge {
  display: inline-block; font-weight: 700; font-size: 1.15rem;
  color: var(--red-800); background: var(--red-100);
  padding: 4px 12px; border-radius: var(--radius-sm);
  font-family: var(--font-serif);
}

.appeal-type {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; padding: 3px 8px; border-radius: 100px;
}
.type-blood      { background: #FEE2E2; color: #991B1B; }
.type-platelets  { background: #EDE9FE; color: #5B21B6; }

.appeal-body { padding: 12px 16px; }
.appeal-patient, .appeal-location, .appeal-institution {
  display: flex; align-items: center; gap: 6px;
  font-size: .875rem; color: var(--gray-700); margin-bottom: 6px;
}
.appeal-patient svg, .appeal-location svg, .appeal-institution svg { color: var(--gray-400); flex-shrink: 0; }

.appeal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--gray-100);
}
.appeal-time { font-size: .78rem; color: var(--gray-400); }
.appeal-link {
  display: flex; align-items: center; gap: 4px;
  font-size: .82rem; font-weight: 600; color: var(--red-800);
  transition: gap var(--transition);
}
.appeal-link:hover { gap: 8px; text-decoration: none; }

/* ── How it works ─────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }

.step-card {
  padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.step-number {
  font-size: 3rem; font-weight: 700; color: var(--red-100);
  font-family: var(--font-serif); line-height: 1; margin-bottom: 16px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p  { color: var(--gray-500); font-size: .9rem; line-height: 1.6; }

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section { background: var(--gray-50); }
.cta-card {
  background: var(--red-800); color: #fff;
  border-radius: var(--radius-xl); padding: 64px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-heart { font-size: 4rem; margin-bottom: 16px; opacity: .2; }
.cta-card h2 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 12px; }
.cta-card p  { opacity: .85; margin-bottom: 32px; font-size: 1.05rem; }
.cta-card .btn-primary { background: #fff; color: var(--red-800); }
.cta-card .btn-primary:hover { background: var(--red-50); box-shadow: none; }

/* ── Auth pages ───────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: var(--gray-50);
}
.auth-container { width: 100%; max-width: 440px; }
.auth-card {
  background: #fff; border-radius: var(--radius-xl);
  padding: 40px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-icon { display: flex; justify-content: center; margin-bottom: 16px; }
.auth-title { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 8px; }
.auth-subtitle { color: var(--gray-500); font-size: .9rem; }
.auth-switch { text-align: center; font-size: .875rem; color: var(--gray-500); margin-top: 24px; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .875rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-700);
}
.form-label-link { font-weight: 400; color: var(--gray-500); font-size: .82rem; }
.form-label-link:hover { color: var(--red-800); }
.form-label-hint { font-size: .75rem; color: var(--gray-400); font-weight: 400; }

.required { color: var(--red-800); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: .9rem; color: var(--gray-900);
  background: #fff;
  transition: all var(--transition);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--red-800);
  box-shadow: 0 0 0 3px rgba(139,0,0,.1);
}
.form-input.is-invalid { border-color: #DC2626; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }

.input-group { position: relative; }
.input-group .form-input { padding-right: 48px; }
.input-toggle-pass {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--gray-400);
  padding: 4px;
}
.input-toggle-pass:hover { color: var(--gray-700); }

.form-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-size: .875rem; color: var(--gray-700); line-height: 1.5;
}
.form-checkbox input[type=checkbox] {
  width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--red-800);
}

.form-hint { font-size: .75rem; color: var(--gray-400); margin-top: 4px; display: block; }

.form-info {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-50); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .82rem; color: var(--gray-500);
  margin-bottom: 18px;
}

.form-container { max-width: 680px; margin: 0 auto; }
.form-divider { position: relative; text-align: center; margin: 24px 0; }
.form-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--gray-200); }
.form-divider span { position: relative; background: #fff; padding: 0 12px; font-size: .82rem; color: var(--gray-500); }

.form-footer-info {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--gray-400); margin-bottom: 16px;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: .875rem; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-error  { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-success{ background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert-info   { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-warning{ background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

.error-list { list-style: disc; padding-left: 16px; }
.error-list li + li { margin-top: 4px; }

/* ── Flash ────────────────────────────────────────────────── */
.flash-container { position: fixed; top: 76px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.flash {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: .875rem; font-weight: 500; min-width: 280px; max-width: 400px;
  box-shadow: var(--shadow-md); animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.flash-success { background: #F0FDF4; color: #166534; border: 1px solid #86EFAC; }
.flash-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; }
.flash-close   { margin-left: auto; background: none; border: none; cursor: pointer; opacity: .6; font-size: 12px; }

/* ── Type selector (appeal form) ──────────────────────────── */
.type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-option {
  position: relative; cursor: pointer;
  border: 2px solid var(--gray-200); border-radius: var(--radius-md);
  transition: all var(--transition);
}
.type-option input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.type-option.is-selected { border-color: var(--red-800); background: var(--red-50); }
.type-option-content {
  display: flex; flex-direction: column; padding: 16px;
  gap: 4px;
}
.type-option-icon { font-size: 1.5rem; }
.type-option-content strong { font-size: .95rem; }
.type-option-content span  { font-size: .8rem; color: var(--gray-500); }

/* ── Appeal single page ──────────────────────────────────── */
.appeal-single-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.appeal-single-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
  overflow: hidden; position: relative;
}
.appeal-single-card.is-urgent { border-color: var(--red-800); }
.urgent-ribbon {
  background: var(--red-800); color: #fff;
  padding: 8px 24px; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
}

.appeal-single-header { padding: 32px; border-bottom: 1px solid var(--gray-100); }
.appeal-single-blood  { display: flex; align-items: center; gap: 20px; }
.blood-badge-xl {
  font-size: 2.8rem; font-weight: 700; color: var(--red-800);
  font-family: var(--font-serif);
  background: var(--red-100); padding: 12px 24px; border-radius: var(--radius-md);
  min-width: 100px; text-align: center;
}

.appeal-single-type { font-size: .85rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.appeal-single-date { font-size: .9rem; color: var(--gray-700); }

.appeal-single-body { padding: 32px; }
.appeal-detail-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.appeal-detail-row:last-child { border-bottom: none; }
.appeal-detail-row svg { color: var(--red-800); margin-top: 2px; flex-shrink: 0; }
.detail-label { display: block; font-size: .75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.detail-value { font-size: 1rem; font-weight: 500; color: var(--gray-900); }

.appeal-description { margin-top: 24px; padding: 20px; background: var(--gray-50); border-radius: var(--radius-md); }
.appeal-description h3 { font-size: .85rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.appeal-description p  { color: var(--gray-700); line-height: 1.7; }

.appeal-platelets-contact {
  margin-top: 24px; padding: 20px;
  background: #EDE9FE; border-radius: var(--radius-md);
  border: 1px solid #C4B5FD;
}
.platelets-contact-header { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 10px; color: #5B21B6; }
.contact-phone { font-size: 1.2rem; font-weight: 700; color: #5B21B6; display: block; margin: 4px 0; }
.platelets-note { font-size: .82rem; color: #6D28D9; margin-top: 8px; }

.appeal-compatible { padding: 24px 32px; background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.appeal-compatible h3 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.compatible-subtitle { font-size: .82rem; color: var(--gray-500); margin-bottom: 14px; }
.compatible-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.compatible-badge {
  padding: 6px 14px; border-radius: 100px;
  font-size: .85rem; font-weight: 600;
}
.compatible-badge.compatible { background: #D1FAE5; color: #065F46; }
.compatible-badge.not-compatible { background: var(--gray-100); color: var(--gray-400); }

/* ── Share buttons ────────────────────────────────────────── */
.share-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
  padding: 24px; position: sticky; top: 84px;
}
.share-title { font-weight: 700; margin-bottom: 6px; }
.share-subtitle { font-size: .82rem; color: var(--gray-500); margin-bottom: 20px; }

.share-buttons { display: flex; flex-direction: column; gap: 10px; }
.share-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600; text-decoration: none;
  transition: all var(--transition); border: none; cursor: pointer; width: 100%;
}
.share-btn:hover { text-decoration: none; transform: translateX(3px); }
.share-facebook { background: #1877F2; color: #fff; }
.share-facebook:hover { background: #166FE5; }
.share-twitter  { background: #000; color: #fff; }
.share-twitter:hover { background: #111; }
.share-whatsapp { background: #25D366; color: #fff; }
.share-whatsapp:hover { background: #1EBE5D; }
.share-viber    { background: #7360F2; color: #fff; }
.share-viber:hover { background: #6350E3; }
.share-copy { background: var(--gray-100); color: var(--gray-700); }
.share-copy:hover { background: var(--gray-200); }

/* ── Sidebar components ───────────────────────────────────── */
.sidebar-notice {
  display: flex; gap: 10px;
  background: #FFFBEB; color: #92400E;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md); padding: 14px; font-size: .8rem; margin-top: 16px; line-height: 1.5;
}
.sidebar-cta {
  background: var(--red-50); border: 1px solid rgba(139,0,0,.15);
  border-radius: var(--radius-md); padding: 20px; margin-top: 16px;
}
.sidebar-cta h4 { font-weight: 700; margin-bottom: 6px; }
.sidebar-cta p  { font-size: .85rem; color: var(--gray-500); margin-bottom: 14px; }

/* ── Report section ───────────────────────────────────────── */
.report-section { margin-top: 16px; }
.btn-report { color: var(--gray-400) !important; font-size: .8rem; }
.btn-report:hover { color: var(--gray-600) !important; }
.report-form { margin-top: 12px; background: #FFF; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 16px; }
.report-form form { display: flex; flex-direction: column; gap: 10px; }
.form-select-sm, .form-textarea-sm { padding: 8px 12px; font-size: .85rem; }
.form-textarea-sm { min-height: 60px; }

/* ── Page headers ─────────────────────────────────────────── */
.page-container { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.page-header { margin-bottom: 40px; }
.page-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 8px; }
.page-subtitle { color: var(--gray-500); font-size: 1.05rem; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--gray-400); margin-bottom: 32px;
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--red-800); }

/* ── Success state ────────────────────────────────────────── */
.success-state {
  text-align: center; padding: 60px 32px;
  border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
  background: var(--gray-50);
}
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #D1FAE5; color: #065F46;
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-state h2 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 12px; }
.success-state p  { color: var(--gray-500); margin-bottom: 8px; }
.success-actions  { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ── Cookie banner ────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 600px; margin: 0 auto;
  background: var(--gray-900); color: #fff;
  border-radius: var(--radius-lg); padding: 20px 24px;
  box-shadow: var(--shadow-lg); z-index: 500;
}
.cookie-content { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie-content p { flex: 1; font-size: .875rem; line-height: 1.5; color: rgba(255,255,255,.85); }
.cookie-content a { color: #fff; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── PWA Install banner ───────────────────────────────────── */
.pwa-install-banner {
  position: fixed; bottom: 16px; right: 16px;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow-lg); z-index: 400; max-width: 340px;
}
.pwa-install-content { display: flex; align-items: center; gap: 12px; }
.pwa-install-icon img { border-radius: 12px; }
.pwa-install-text { flex: 1; }
.pwa-install-text strong { display: block; font-size: .9rem; }
.pwa-install-text span   { font-size: .78rem; color: var(--gray-500); }
.pwa-install-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,.7); padding: 64px 0 0; margin-top: 80px; }
.footer-container { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; max-width: 1200px; margin: 0 auto; padding: 0 24px 48px; }
.footer-brand { max-width: 280px; }
.footer-logo { font-family: var(--font-serif); font-size: 1.6rem; color: #fff; display: block; margin-bottom: 8px; }
.footer-logo span { color: var(--red-700); }
.footer-tagline { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 12px; }
.footer-desc { font-size: .875rem; line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: .875rem; margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-blood-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.bg-badge { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); padding: 4px 10px; border-radius: 100px; font-size: .78rem; font-weight: 600; transition: all var(--transition); }
.bg-badge:hover { background: var(--red-800); color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px; text-align: center; max-width: 1200px; margin: 0 auto; }
.footer-bottom p { font-size: .8rem; margin-bottom: 4px; }
.footer-disclaimer { color: rgba(255,255,255,.3); font-size: .75rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--gray-200); flex-direction: column; gap: 8px; z-index: 99; box-shadow: var(--shadow-md); }
  .nav-links.is-open { display: flex; }
  .nav-hamburger { display: flex; }

  .hero { padding: 48px 0 40px; }
  .hero-stats { flex-direction: column; }
  .stat-card { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stat-card:last-child { border-bottom: none; }

  .blood-groups-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .blood-group-name { font-size: 1.4rem; }

  .appeals-grid { grid-template-columns: 1fr; }
  .steps-grid   { grid-template-columns: 1fr; gap: 16px; }

  .appeal-single-layout { grid-template-columns: 1fr; }
  .share-card { position: static; }

  .form-row { grid-template-columns: 1fr; }
  .type-selector { grid-template-columns: 1fr; }

  .footer-container { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; }

  .cta-card { padding: 40px 24px; }

  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .pwa-install-banner { left: 16px; right: 16px; max-width: none; }
}

@media (max-width: 480px) {
  .blood-groups-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}
