:root {
  --primary: #e50914;
  --primary-dark: #c9040d;
  --primary-soft: #fff1f2;
  --dark: #111827;
  --text: #4b5563;
  --muted: #6b7280;
  --line: #edf0f4;
  --card-shadow: 0 18px 45px rgba(17, 24, 39, 0.07);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn {
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
}
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  box-shadow: 0 12px 22px rgba(229, 9, 20, .18);
}
.btn-outline-primary {
  --bs-btn-color: var(--dark);
  --bs-btn-border-color: rgba(229, 9, 20, .45);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-hover-color: #fff;
}
.navbar { backdrop-filter: blur(14px); }
.nav-link { color: var(--dark); font-weight: 600; font-size: 15px; }
.nav-link:hover { color: var(--primary); }
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% 50% 50% 8px;
  background: var(--primary);
  transform: rotate(-45deg);
  color: #fff;
  margin-right: 10px;
}
.brand-mark i { transform: rotate(45deg); font-size: 16px; }
.brand-mark-sm { width: 28px; height: 28px; }
.navbar-brand { font-size: 28px; letter-spacing: -1px; }
.hero { padding: 70px 0 45px; }
.hero h1 {
  font-size: clamp(48px, 7vw, 86px);
  line-height: .95;
  letter-spacing: -4px;
  font-weight: 800;
}
.hero p { color: var(--text); font-size: 18px; line-height: 1.65; max-width: 560px; }
.hero-visual {
  min-height: 420px;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 55% 35%, #fff1f2 0 35%, transparent 36%), #fff;
}
.donor-illustration { max-width: 95%; filter: drop-shadow(0 16px 30px rgba(17,24,39,.08)); }
.icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex: 0 0 auto;
}
.soft-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}
.stats-card { padding: 26px; }
.section-pad { padding: 70px 0; }
.section-title { font-weight: 800; letter-spacing: -1px; }
.title-underline {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
  margin: 12px auto 0;
}
.feature-card, .step-card {
  padding: 32px;
  min-height: 150px;
}
.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-control, .form-select {
  border-radius: 12px;
  border-color: #dfe4ec;
  padding: 13px 14px;
  font-size: 14px;
}
.form-control:focus, .form-select:focus {
  border-color: rgba(229,9,20,.45);
  box-shadow: 0 0 0 .25rem rgba(229,9,20,.08);
}
.request-card { padding: 34px; }
.help-card {
  background: linear-gradient(135deg, #fff7f7, #fff);
  border: 1px solid rgba(229,9,20,.16);
  border-radius: var(--radius-lg);
  padding: 40px;
  height: 100%;
}
.table-card { padding: 22px; }
.table>:not(caption)>*>* { padding: 15px 14px; vertical-align: middle; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: #f3f4f6;
  color: var(--dark);
  margin-right: 12px;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.blood-pill {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 7px 13px;
  display: inline-flex;
  font-weight: 800;
  font-size: 13px;
}
.status-pill {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}
.cta-section {
  background: linear-gradient(135deg, var(--primary), #ff3140);
  color: #fff;
  border-radius: 34px;
  padding: 58px;
  overflow: hidden;
  position: relative;
}
.cta-section::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  right: -80px;
  top: -100px;
}
.cta-trust-card {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px;
  padding: 18px;
}
.footer-brand { color: var(--dark); font-size: 24px; }
.footer-link { color: var(--text); margin: 0 14px; font-weight: 600; }
.footer-link:hover { color: var(--primary); }
.admin-sidebar {
  min-height: 100vh;
  background: var(--dark);
  color: #fff;
}
.admin-sidebar a {
  color: rgba(255,255,255,.78);
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 6px;
  font-weight: 600;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-content { background: #f8fafc; min-height: 100vh; }
.admin-card { border: 1px solid #e9edf5; border-radius: 18px; box-shadow: 0 12px 30px rgba(17,24,39,.05); }
@media (max-width: 991px) {
  .hero { padding-top: 40px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-visual { min-height: 320px; }
  .cta-section { padding: 34px; border-radius: 24px; }
}
.donor-contact-btn {
    min-width: 150px;
    border-radius: 14px;
    font-weight: 700;
    padding: 10px 18px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.donor-contact-btn small {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    color: #dc3545;
}
.invalid-feedback {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  color: var(--primary);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid,
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(229, 9, 20, .08);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid,
.form-control.is-valid,
.form-select.is-valid {
  border-color: #198754;
}

.form-control.is-invalid,
.form-select.is-invalid {
  background-image: none;
}

.blood-requests-card .table td,
.blood-requests-card .table th {
  vertical-align: middle;
}

.request-phone-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.request-phone-link:hover {
  color: #b8000a;
  text-decoration: underline;
}
