@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Noto+Serif:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --red: #c0392b;
  --red-dark: #7b241c;
  --red-light: #e74c3c;
  --cream: #fdf6f0;
  --white: #ffffff;
  --text: #1a0a0a;
  --text-muted: #6b3a3a;
  --border: #f0d5d5;
  --shadow: 0 4px 24px rgba(192,57,43,0.12);
  --shadow-lg: 0 12px 48px rgba(192,57,43,0.18);
  --radius: 16px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 16px;
  box-shadow: 0 2px 16px rgba(192,57,43,0.08);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  font-weight: 800; font-size: 15px; color: var(--red-dark);
  white-space: nowrap;
}

.nav-logo img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.nav-logo .logo-placeholder {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px; font-weight: 900; flex-shrink: 0;
}
.nav-logo span {
  font-size: 13px; line-height: 1.25; max-width: 160px;
  white-space: normal; word-break: break-word;
}

nav .spacer { flex: 1; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}

.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(192,57,43,0.08); color: var(--red);
}

.btn-donor-nav {
  background: var(--red); color: white !important;
  padding: 10px 20px !important; border-radius: 50px !important;
  font-weight: 700 !important; font-size: 13px !important;
  box-shadow: 0 4px 16px rgba(192,57,43,0.35);
  transition: transform .2s, box-shadow .2s !important;
}
.btn-donor-nav:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(192,57,43,0.45) !important;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; border: none; background: none;
}
.hamburger span { width: 24px; height: 2px; background: var(--red); border-radius: 2px; transition: .3s; }

/* MOBILE NAV */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: white; z-index: 999; padding: 24px;
  flex-direction: column; gap: 8px; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--text); font-weight: 600;
  padding: 14px 16px; border-radius: 12px; font-size: 16px;
  border-left: 3px solid transparent; transition: .2s;
}
.mobile-menu a:hover, .mobile-menu a.active {
  background: rgba(192,57,43,0.06); border-left-color: var(--red); color: var(--red);
}
.mobile-menu .btn-donor-mobile {
  background: var(--red); color: white; text-align: center;
  border-radius: 50px; margin-top: 8px; border-left: none;
}

/* PAGE WRAPPER */
.page-main { padding-top: var(--nav-h); min-height: 100vh; }

/* HERO */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #c0392b 0%, #8e1010 50%, #2c0a0a 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(255,100,80,0.15) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; padding: 80px 32px; max-width: 700px; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900;
  color: white; line-height: 1.1; margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.hero p {
  color: rgba(255,255,255,0.85); font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7; margin-bottom: 40px; max-width: 540px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: white; color: var(--red);
  padding: 16px 36px; border-radius: 50px;
  font-weight: 800; font-size: 15px; text-decoration: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: all .25s; display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.6); color: white;
  padding: 16px 36px; border-radius: 50px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: all .25s; display: inline-flex; align-items: center; gap: 8px;
  background: transparent; cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* SECTIONS */
.section { padding: 80px 24px; }
.section-title {
  text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; color: var(--red-dark); margin-bottom: 12px;
}
.section-sub {
  text-align: center; color: var(--text-muted); font-size: 1.05rem;
  margin-bottom: 56px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.divider {
  width: 60px; height: 4px; background: var(--red);
  border-radius: 2px; margin: 16px auto 48px;
}

/* STATS */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.stat-card {
  background: white; border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform .25s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card .num {
  font-size: 2.4rem; font-weight: 900; color: var(--red); line-height: 1;
}
.stat-card .lbl { color: var(--text-muted); font-size: .9rem; margin-top: 8px; font-weight: 600; }

/* CARDS */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; max-width: 1100px; margin: 0 auto;
}
.card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img {
  height: 200px; background: linear-gradient(135deg, #c0392b, #8e1010);
  display: flex; align-items: center; justify-content: center; color: white;
  font-size: 3rem; position: relative; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; top: 16px; right: 16px;
  background: white; color: var(--red);
  padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 700;
}
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.card-body .meta { color: var(--red); font-size: .85rem; font-weight: 600; margin-bottom: 12px; }
.card-body p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* PERSON CARDS */
.person-card {
  background: white; border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform .25s;
}
.person-card:hover { transform: translateY(-4px); }
.person-avatar {
  width: 110px; height: 110px; border-radius: 16px;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 2rem; font-weight: 800; overflow: hidden;
}
.person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.person-card .role { color: var(--red); font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.person-card p { color: var(--text-muted); font-size: .85rem; line-height: 1.5; }
.person-card.leader {
  border: 2px solid var(--red); background: linear-gradient(180deg, #fff8f8, white);
}
.person-card.leader .person-avatar { width: 110px; height: 110px; font-size: 2.5rem; }

/* REGION CARDS */
.region-card {
  background: white; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform .25s;
}
.region-card:hover { transform: translateY(-3px); }
.region-card h3 { font-size: 1rem; font-weight: 700; color: var(--red-dark); margin-bottom: 16px; }
.region-info { display: flex; flex-direction: column; gap: 10px; }
.region-row { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: var(--text-muted); }
.region-row span:first-child { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.region-row a { color: var(--red); text-decoration: none; font-weight: 600; }

/* GALLERY */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; max-width: 1100px; margin: 0 auto;
}
.gallery-item {
  aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #c0392b22, #c0392b44);
  cursor: pointer; transition: transform .25s;
  display: flex; align-items: center; justify-content: center;
  color: var(--red-light); font-size: 2rem;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* FOOTER */
footer {
  background: #1a0a0a; color: rgba(255,255,255,0.7);
  padding: 56px 24px 24px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px; max-width: 1100px; margin: 0 auto 40px;
}
.footer-col h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: .05em; }
.footer-col a, .footer-col p {
  display: block; text-decoration: none; color: rgba(255,255,255,0.6);
  font-size: 13px; line-height: 1.5; margin-bottom: 8px; transition: color .2s;
}
.footer-col a:hover { color: var(--red-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  text-align: center; font-size: 12px; color: rgba(255,255,255,0.3);
  max-width: 1100px; margin: 0 auto;
}

/* CONTACT FORM */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 18px; border-radius: 12px;
  border: 1.5px solid var(--border); background: white;
  font-family: inherit; font-size: 14px; color: var(--text);
  transition: border-color .2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--red);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%; padding: 16px; background: var(--red); color: white;
  border: none; border-radius: 50px; font-family: inherit;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all .25s; box-shadow: 0 6px 24px rgba(192,57,43,0.35);
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-2px); }

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, #c0392b, #7b241c);
  padding: 80px 24px 60px; text-align: center; color: white;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; opacity: .85; max-width: 500px; margin: 0 auto; }

/* DONOR PAGE */
.donor-process {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; max-width: 1000px; margin: 0 auto 56px;
}
.process-step {
  text-align: center; padding: 32px 20px; background: white;
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border); position: relative;
}
.step-num {
  width: 48px; height: 48px; background: var(--red); color: white;
  border-radius: 50%; font-weight: 900; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.process-step h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* TOAST */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: #1a0a0a; color: white; padding: 16px 24px;
  border-radius: 12px; font-size: 14px; font-weight: 600;
  border-left: 4px solid var(--red); box-shadow: var(--shadow-lg);
  transform: translateY(80px); opacity: 0;
  transition: all .3s; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 56px 16px; }
  .hero-content { padding: 60px 20px; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; justify-content: center; }
}

/* LANGUAGE SWITCHER */
.lang-switcher {
  display: flex; gap: 4px; align-items: center;
}
.lang-btn {
  background: none; border: 1.5px solid var(--border);
  border-radius: 6px; padding: 5px 10px; font-size: 11px;
  font-weight: 700; cursor: pointer; color: var(--text-muted);
  font-family: inherit; transition: all .2s; letter-spacing: .03em;
}
.lang-btn:hover { border-color: var(--red); color: var(--red); }
.lang-btn.active { background: var(--red); color: white; border-color: var(--red); }

.mobile-lang-row {
  display: flex; gap: 8px; padding: 16px 0; margin-top: 8px;
  border-top: 1px solid var(--border);
}
.mobile-lang-row .lang-btn { flex: 1; padding: 10px; font-size: 13px; }

/* CHAT WIDGET */
.chat-widget {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
}
.chat-toggle {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: none; cursor: pointer; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform .25s, box-shadow .25s;
  animation: pulse-chat 2.5s infinite;
}
.chat-toggle:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.55); }
@keyframes pulse-chat {
  0%,100%{ box-shadow: 0 6px 24px rgba(37,211,102,.45); }
  50%{ box-shadow: 0 6px 32px rgba(37,211,102,.7); }
}

.chat-popup {
  position: absolute; bottom: 70px; right: 0;
  background: white; border-radius: 20px; padding: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18); width: 220px;
  transform: scale(0.8) translateY(10px); transform-origin: bottom right;
  opacity: 0; pointer-events: none;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.chat-popup.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.chat-popup-title { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }

.chat-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; text-decoration: none;
  font-size: 13px; font-weight: 600; margin-bottom: 8px;
  transition: transform .2s;
}
.chat-option:last-child { margin-bottom: 0; }
.chat-option:hover { transform: translateX(3px); }
.chat-option.wa { background: #e8faf0; color: #128C7E; }
.chat-option.tg { background: #e8f4fd; color: #0088cc; }
.chat-option span:first-child { font-size: 1.3rem; }

@media(max-width:768px){
  .lang-switcher { display: none; }
  .chat-widget { bottom: 20px; right: 16px; }
}

/* ===== TOP SOCIAL BAR ===== */
.top-social-bar {
  background: #1a0a0a; color: rgba(255,255,255,.7);
  font-size: 12px; font-weight: 600;
  height: var(--topbar-h);
}
.top-social-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.top-social-links { display: flex; gap: 10px; align-items: center; }

/* NAV update for new structure */
:root { --nav-h: 72px; --topbar-h: 34px; }
.page-main { padding-top: calc(var(--nav-h) + var(--topbar-h)); }

/* Top social bar is PART of the fixed header - nav must be below it */
.top-social-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
}
nav {
  top: var(--topbar-h) !important;
}
.mobile-menu {
  top: calc(var(--nav-h) + var(--topbar-h)) !important;
}

.nav-right-group { display: flex; align-items: center; gap: 12px; }

.btn-donor-nav-btn {
  background: var(--red); color: white;
  padding: 10px 20px; border-radius: 50px;
  font-weight: 800; font-size: 13px;
  border: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 16px rgba(192,57,43,.35);
  transition: all .2s; display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.btn-donor-nav-btn:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ===== SOCIAL ICONS ===== */
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  color: rgba(255,255,255,.6); transition: all .2s; text-decoration: none;
}
.social-icon:hover { color: white; background: rgba(255,255,255,.1); }
.social-icon svg { width: 16px; height: 16px; }

.top-social-links .social-icon { width: 28px; height: 28px; color: rgba(255,255,255,.5); }
.top-social-links .social-icon:hover { color: white; }

.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social .social-icon { background: rgba(255,255,255,.07); }
.footer-social .social-icon:hover { background: var(--red); color: white; }

.footer-bottom-social { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.footer-bottom-social .social-icon { background: rgba(255,255,255,.07); }

.mobile-social { display: flex; gap: 12px; padding: 16px 0 0; }
.mobile-social .social-icon { background: rgba(192,57,43,.1); color: var(--red); }
.mobile-social .social-icon:hover { background: var(--red); color: white; }

/* ===== DONOR MODAL ===== */
.donor-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(10,0,0,.65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.donor-modal-overlay.open { opacity: 1; pointer-events: all; }

.donor-modal {
  background: white; border-radius: 24px; padding: 40px;
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: 0 32px 80px rgba(0,0,0,.4);
  transform: scale(0.92) translateY(20px);
  transition: transform .35s cubic-bezier(.34,1.4,.64,1);
}
.donor-modal-overlay.open .donor-modal { transform: scale(1) translateY(0); }

.donor-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(192,57,43,.08); border: none; border-radius: 50%;
  width: 36px; height: 36px; font-size: 16px; cursor: pointer;
  color: var(--red); font-weight: 700; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.donor-modal-close:hover { background: rgba(192,57,43,.18); }

.donor-modal-header { text-align: center; margin-bottom: 28px; }
.donor-modal-icon {
  width: 72px; height: 72px; background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  border-radius: 50%; font-size: 2rem; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(192,57,43,.35);
}
.donor-modal-header h2 { font-size: 1.4rem; font-weight: 900; color: var(--red-dark); margin-bottom: 6px; }
.donor-modal-header p { color: var(--text-muted); font-size: .875rem; }

.dform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dform-group { margin-bottom: 16px; }
.dform-group label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.dform-group input, .dform-group select, .dform-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--cream);
  font-family: inherit; font-size: 14px; color: var(--text);
  outline: none; transition: border-color .2s;
}
.dform-group input:focus, .dform-group select:focus, .dform-group textarea:focus {
  border-color: var(--red); background: white;
}
.dform-group textarea { resize: none; }

.bolge-info {
  margin-top: 8px; display: flex; align-items: center; gap: 8px;
  background: #fff0f0; border-radius: 10px; padding: 10px 14px;
  font-size: 13px; color: var(--text-muted); border: 1px solid var(--border);
}
.bolge-info a { color: var(--red); font-weight: 700; text-decoration: none; }

.dform-submit {
  width: 100%; padding: 16px; background: var(--red); color: white;
  border: none; border-radius: 50px; font-family: inherit;
  font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 24px rgba(192,57,43,.4); transition: all .25s;
  margin-top: 4px; letter-spacing: .02em;
}
.dform-submit:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(192,57,43,.5); }

.dform-note { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 12px; }

/* Pulsing donor button on hero */
.btn-donor-pulse {
  animation: donor-pulse 2.5s ease-in-out infinite;
}
@keyframes donor-pulse {
  0%,100%{ box-shadow: 0 8px 32px rgba(255,255,255,.2); }
  50%{ box-shadow: 0 8px 48px rgba(255,255,255,.45), 0 0 0 8px rgba(255,255,255,.08); }
}

@media(max-width: 768px) {
  .page-main { padding-top: var(--nav-h); }
  .dform-row { grid-template-columns: 1fr; }
  .donor-modal { padding: 28px 20px; }
  .nav-right-group { display: none; }
}

/* ===== FIXED FLOATING DONOR BUTTON ===== */
.floating-donor-btn {
  position: fixed; left: 50%; bottom: 0;
  transform: translateX(-50%);
  z-index: 800;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  color: white; border: none; cursor: pointer; font-family: inherit;
  font-weight: 800; font-size: 14px; letter-spacing: .03em;
  padding: 0 36px; height: 52px; border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(192,57,43,.4);
  display: flex; align-items: center; gap: 10px;
  transition: all .25s; white-space: nowrap;
}
.floating-donor-btn:hover {
  padding-bottom: 8px; height: 60px;
  box-shadow: 0 -6px 32px rgba(192,57,43,.55);
}
.floating-donor-btn .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: white; animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

@media(max-width:768px){
  .floating-donor-btn { font-size: 13px; padding: 0 24px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity:0; transform:translateX(-30px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes fadeInRight {
  from { opacity:0; transform:translateX(30px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes scaleIn {
  from { opacity:0; transform:scale(.85); }
  to   { opacity:1; transform:scale(1); }
}

.anim-fade-up   { opacity:0; animation: fadeInUp   .6s ease forwards; }
.anim-fade-left { opacity:0; animation: fadeInLeft  .6s ease forwards; }
.anim-scale-in  { opacity:0; animation: scaleIn     .5s ease forwards; }

/* Stagger delays */
.anim-d1 { animation-delay:.1s; }
.anim-d2 { animation-delay:.2s; }
.anim-d3 { animation-delay:.3s; }
.anim-d4 { animation-delay:.4s; }
.anim-d5 { animation-delay:.5s; }

/* Scroll-triggered animation */
.reveal { opacity:0; transform:translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* Page enter animation */
.page-main { animation: fadeInUp .5s ease both; }

/* Card hover lift already exists, add subtle scale */
.card { transition: transform .3s cubic-bezier(.34,1.2,.64,1), box-shadow .3s ease !important; }
.card:hover { transform: translateY(-8px) scale(1.01) !important; }

/* ===== FIXED DONOR BUTTON - BOTTOM CENTER ===== */
.floating-donor-btn {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
  border-radius: 16px 16px 0 0 !important;
  padding: 0 40px !important;
  height: 54px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  box-shadow: 0 -4px 28px rgba(192,57,43,.45) !important;
  transition: height .2s, box-shadow .2s !important;
  z-index: 900 !important;
  white-space: nowrap !important;
}
.floating-donor-btn:hover {
  height: 62px !important;
  box-shadow: 0 -6px 36px rgba(192,57,43,.6) !important;
  padding-bottom: 0 !important;
}
@media(max-width:768px){
  .floating-donor-btn {
    font-size: 14px !important;
    padding: 0 28px !important;
    height: 50px !important;
  }
}

/* ===== NAV & LAYOUT (FINAL) ===== */
:root {
  --nav-h: 90px;
  --topbar-h: 36px;
}

/* QARA LENT - yuxarı bar */
.top-social-bar {
  display: flex !important;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100% !important;
  z-index: 1001;
  height: var(--topbar-h);
  background: #1a0a0a !important;
  color: rgba(255,255,255,.8) !important;
  font-size: 12px; font-weight: 600;
  align-items: center;
}

nav {
  height: auto !important;
  min-height: var(--nav-h);
  padding: 8px 24px !important;
  position: fixed !important;
  top: var(--topbar-h) !important;
  left: 0; right: 0;
  z-index: 1000;
}

.nav-logo { flex-shrink: 0; padding: 4px 0; }
.nav-logo img { display: block !important; width: 52px !important; height: 52px !important; object-fit: contain !important; }
.nav-logo .logo-placeholder { width: 52px !important; height: 52px !important; font-size: 20px !important; border-radius: 50% !important; }

.page-main {
  padding-top: calc(var(--nav-h) + var(--topbar-h)) !important;
}

@media(max-width: 768px) {
  :root { --nav-h: 70px; --topbar-h: 0px; }
  .top-social-bar { display: none !important; }
  .page-main { padding-top: var(--nav-h) !important; }
  nav { top: 0 !important; }
}

/* Blood cell canvas bg for staff modal */
.staff-modal-top { overflow: hidden; position: relative; }
.blood-canvas { position:absolute; inset:0; width:100%; height:100%; opacity:.15; pointer-events:none; }

/* ===== SƏHİFƏ KEÇİD ANİMASİYASI ===== */
html { scroll-behavior: smooth; }

/* page transition - opacity only, no transform (transform breaks fixed positioning) */
body {
  animation: pageIn 0.15s ease-out both;
}
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
