/* ==========================================================================
   GB Blood Collectors - Modern Light Theme Design System
   ========================================================================== */

:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-glow: rgba(16, 185, 129, 0.25);
  --secondary: #ecfdf5;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --glass-border: #e2e8f0;
  --glass-border-hover: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-glow: rgba(239, 68, 68, 0.25);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(239, 68, 68, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Glassmorphism Light Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 14px 28px -5px rgba(0, 0, 0, 0.09), 0 10px 12px -6px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Navigation Bar (Clean Light Header)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  flex-shrink: 0;
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  flex-shrink: 0;
}

.nav-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: #f1f5f9;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle-btn {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: var(--primary);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 19px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-toggle-btn:hover {
  background: #d1fae5;
}

/* Header Dropdown Submenus */
.nav-dropdown {
  position: relative;
}

.nav-dropdown>a {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
  background: #f1f5f9;
  color: var(--primary);
  padding-left: 24px;
}

/* Buttons */
.btn-nav-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-nav-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  color: white !important;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white !important;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--danger-glow);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.4);
  color: white !important;
}

.btn-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: #f1f5f9;
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  max-width: 1280px;
  margin: 48px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 19px;
  letter-spacing: -1px;
  color: #0f172a;
}

.hero-title span {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 19px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Hero Trust & Verified Donors Roster Card (Clean Unified Semitransparent)
   ========================================================================== */
.hero-trust-badge-card {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  max-width: 480px;
  width: 100%;
}

.hero-trust-badge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  border-color: #cbd5e1;
}

.hero-trust-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* Overlapping Circular Blood Group Badges (Unified Semitransparent Crimson) */
.hero-avatar-stack {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: rgba(225, 29, 72, 0.1) !important;
  color: #e11d48 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  margin-right: -8px;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.1);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: default;
}

.hero-avatar-circle:hover {
  transform: translateY(-3px) scale(1.12);
  background: rgba(225, 29, 72, 0.18) !important;
  z-index: 10 !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

.hero-avatar-circle i {
  font-size: 0.75rem;
  color: #e11d48 !important;
}

/* Trust Content & Metrics */
.hero-trust-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.hero-trust-title {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust-title i.verified-check {
  color: #059669;
  font-size: 0.95rem;
  filter: drop-shadow(0 1px 2px rgba(5, 150, 105, 0.25));
}

.hero-roster-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.pulse-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreenGlow 2s infinite;
}

@keyframes pulseGreenGlow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-trust-subtitle {
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 500;
}

@media (max-width: 640px) {
  .hero-trust-badge-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.9rem 1rem !important;
    gap: 0.6rem !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }
  .hero-avatar-circle {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.78rem !important;
    margin-right: -7px !important;
  }
  .hero-trust-title {
    font-size: 1.05rem !important;
  }
  .hero-trust-subtitle {
    font-size: 0.82rem !important;
  }
}

@media (max-width: 380px) {
  .hero-trust-badge-card {
    padding: 0.8rem 0.85rem !important;
  }
  .hero-avatar-circle {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.74rem !important;
    margin-right: -6px !important;
  }
  .hero-roster-status-pill {
    font-size: 0.7rem !important;
    padding: 2px 7px !important;
  }
  .hero-trust-title {
    font-size: 0.98rem !important;
  }
  .hero-trust-subtitle {
    font-size: 0.78rem !important;
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.form-control,
.form-select {
  width: 100%;
  padding: 14px 18px;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius-sm);
  color: #0f172a !important;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.form-control::placeholder {
  color: #94a3b8 !important;
}

.form-select option {
  background: #ffffff;
  color: #0f172a;
}

/* Search Widget */
.search-widget {
  padding: 35px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-card);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.widget-title {
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
}

/* Hero Search Widget Submit Button */
.hero-search-submit-btn {
  width: 100%;
  height: 50px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.28);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  margin-top: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.hero-search-submit-btn:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.38);
  color: #ffffff !important;
}

.hero-search-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.22);
}

.hero-search-submit-btn i {
  color: #ffffff !important;
  font-size: 0.88rem;
  transition: transform 0.2s ease;
}

.hero-search-submit-btn:hover i.fa-arrow-right {
  transform: translateX(3px);
}

/* Stats Container */
.stats-container {
  max-width: 1280px;
  width: 100%;
  margin: 40px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-sizing: border-box;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: var(--shadow-card);
}

.stat-number {
  font-size: 38px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
  white-space: nowrap;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Donor Cards Grid */
/* Donor Cards Grid & Responsive Container */
.donor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  margin-top: 28px;
  width: 100%;
  box-sizing: border-box;
}

.donor-card {
  background: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.donor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.09);
}

.donor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.donor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.donor-info {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.donor-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #0f172a;
  word-break: break-word;
  line-height: 1.35;
}

.donor-location {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-word;
  line-height: 1.35;
}

.bg-badge {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 15px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.bg-badge-lg {
  font-size: 18px;
  padding: 7px 16px;
  border-radius: 12px;
  flex-shrink: 0;
}

.bg-badge-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
}

.bg-badge-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25) !important;
}

.donor-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.donor-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.donor-detail-label {
  color: #64748b;
  font-size: 13px;
}

.donor-detail-val {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  word-break: break-word;
}

.donor-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 16px !important;
}

.donor-actions>a,
.donor-actions>button,
.donor-actions>form {
  width: 100% !important;
  flex: 1 1 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.donor-actions>form>button {
  width: 100% !important;
  box-sizing: border-box !important;
}

.btn-contact {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-call {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
}

.btn-call:hover {
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-whatsapp {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

.btn-whatsapp:hover {
  background: #059669;
  color: white;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.status-available {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.status-waiting {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12) !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   Redesigned Blood Group Compatibility Matrix Section
   ========================================================================== */
.matrix-container {
  padding: 40px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.matrix-tab-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 800;
  font-size: 16px;
  padding: 10px 21px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.matrix-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.15);
}

.matrix-tab-btn.active-tab {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transform: scale(1.05);
}

/* Matrix Result Pills */
.matrix-pill-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.badge-pill:hover {
  transform: translateY(-2px) scale(1.05);
}

.pill-green {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.15) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-weight: 800;
}

.pill-red {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.15) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-weight: 800;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-top: 8px;
  margin-bottom: 12px;
  color: #0f172a;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

/* Helpline Banner (Standard Centered Container Width) */
.helpline-banner {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-lg);
  max-width: 1280px;
  width: 100%;
  margin: 2.5rem auto;
  padding: 3rem 2rem;
  text-align: center;
  box-sizing: border-box;
}

.helpline-banner h3 {
  color: #0f172a;
}

.helpline-banner p {
  color: #475569;
}

/* Footer (Dark Slate Contrast Anchor) */
.footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 64px 32px 32px;
  color: #94a3b8;
}

.footer .brand-logo {
  color: #ffffff !important;
}

.footer h4 {
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.footer a,
.footer a:visited {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  transition: all 0.22s ease-in-out;
}

.footer a:hover {
  color: #34d399 !important;
  transform: translateX(4px);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 14px;
}

/* Card Systems & Media Components */
.blog-grid,
.event-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  width: 100%;
  box-sizing: border-box;
}

.blog-card,
.event-card,
.gallery-card,
.video-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover,
.event-card:hover,
.gallery-card:hover,
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.media-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover !important;
  object-position: center;
  display: block;
}

.video-responsive-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
}

.video-responsive-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Event Card Split Desktop Layout (Image Left, Details Right) */
.event-card-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.event-card-grid:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  border-color: var(--primary);
}

.event-card-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.event-card-grid:hover .event-card-media img {
  transform: scale(1.05);
}

.event-date-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.event-date-badge .day {
  font-size: 22px;
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
}

.event-date-badge .month {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  margin-top: 2px;
}

.event-card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Standalone Form Page Cards (Registration, Requisition, Search Widget) */
.form-container-card,
.register-card,
.request-card,
.search-widget {
  max-width: 900px;
  width: 100%;
  margin: 40px auto 64px;
  padding: 40px 32px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.form-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.form-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.form-grid-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.donation-type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}

/* Board Members Grid */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.board-card {
  text-align: center;
  padding: 32px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-card);
}

.board-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.board-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 19px;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

/* Blood Group Compatibility Matrix Grid */
.matrix-grid-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Advisor Feature Showcase */
.advisor-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  padding: 36px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Floating Controls Stack System (Bottom Right - Call & Back to Top)
   ========================================================================== */
.floating-controls-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.floating-emergency-wrapper {
  position: relative;
}

.back-to-top-btn {
  position: relative;
  bottom: auto;
  right: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.3);
}

.floating-controls-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.floating-controls-stack > * {
  pointer-events: auto;
}

.floating-emergency-wrapper {
  position: relative;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
  cursor: pointer;
  border: 2px solid white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
}

.floating-btn-call {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: pulse-danger-btn 2s infinite;
}

.floating-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.4);
}

@keyframes pulse-danger-btn {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.floating-tooltip {
  position: absolute;
  right: 64px;
  left: auto;
  background: #0f172a;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.floating-btn:hover .floating-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Floating Emergency Contacts Popup Modal */
.floating-emergency-modal {
  position: absolute;
  bottom: 64px;
  right: 0;
  left: auto;
  width: 320px;
  background: #ffffff;
  border: 1px solid #fca5a5;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(239, 68, 68, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.floating-emergency-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.emergency-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.emergency-modal-close {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.emergency-modal-close:hover {
  background: #ef4444;
  color: white;
}

.emergency-number-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.emergency-number-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.emergency-number-card:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.emergency-number-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
}

.emergency-number-val {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.btn-emergency-call {
  background: #ef4444;
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s ease;
}

.btn-emergency-call:hover {
  background: #dc2626;
  color: white;
}

.emergency-whatsapp-card {
  background: #f0fdf4 !important;
  border-color: #a7f3d0 !important;
}

.emergency-whatsapp-card:hover {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
}

.btn-emergency-whatsapp {
  background: #25d366;
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s ease;
}

.btn-emergency-whatsapp:hover {
  background: #128c7e;
  color: white;
}

/* Admin Panel Tab Navigation System */
.admin-tab-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  -webkit-overflow-scrolling: touch;
}

.admin-tab-btn {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.admin-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-color: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.admin-tab-btn .tab-badge {
  background: #f59e0b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
}

.admin-dashboard-container {
  max-width: 1280px;
  width: 100%;
  margin: 32px auto 64px;
  padding: 0 24px;
  box-sizing: border-box;
}

.admin-dashboard-container .glass-panel,
.admin-tab-pane .glass-panel {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.admin-tab-pane {
  display: none;
  width: 100%;
  max-width: 100%;
  animation: fadeInPane 0.3s ease;
}

.admin-tab-pane.active {
  display: block;
}

/* ==========================================================================
   Donor Control Dashboard System & Responsiveness
   ========================================================================== */
.dashboard-container {
  max-width: 1280px;
  width: 100%;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.profile-header-card {
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  border-color: rgba(16, 185, 129, 0.4);
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.profile-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-header-user {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.profile-header-title {
  font-size: 2rem;
  margin-bottom: 4px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 800;
  line-height: 1.25;
}

.profile-header-location {
  color: #64748b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
}

.profile-header-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Quick Stats 6-Card Grid System */
.quick-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 16px !important;
  margin-top: 1.5rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.quick-stat-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100% !important;
  box-sizing: border-box;
}

.quick-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.quick-stat-card .stat-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.quick-stat-card .stat-value {
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 800;
  white-space: nowrap;
}

.quick-stat-card.highlight {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.quick-stat-card.highlight .stat-value {
  color: #059669;
}

/* Profile Dashboard Multi-Column Grid */
.profile-dashboard-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr !important;
  gap: 2rem !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Responsive Media Queries for Dashboard */
@media (max-width: 1100px) {
  .quick-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }

  .profile-dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    padding: 0 0.85rem !important;
    margin: 1rem auto 2.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .profile-header-card {
    padding: 1.35rem 1rem !important;
    margin-bottom: 1.35rem !important;
    border-radius: 16px !important;
    width: 100% !important;
  }

  .profile-header-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    margin-bottom: 1.25rem !important;
  }

  .profile-header-user {
    gap: 0.85rem !important;
  }

  .profile-header-title {
    font-size: 1.45rem !important;
  }

  .quick-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 1.15rem !important;
    padding-top: 1.15rem !important;
  }

  .quick-stat-card {
    padding: 0.75rem 0.85rem !important;
    border-radius: 12px !important;
  }

  .quick-stat-card .stat-label {
    font-size: 0.72rem !important;
  }

  .quick-stat-card .stat-value {
    font-size: 0.95rem !important;
  }
}

@media (max-width: 480px) {
  .dashboard-container {
    padding: 0 0.5rem !important;
  }

  .quick-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .quick-stat-card {
    padding: 0.65rem 0.75rem !important;
  }

  .quick-stat-card .stat-label {
    font-size: 0.7rem !important;
  }

  .quick-stat-card .stat-value {
    font-size: 0.88rem !important;
  }
}

/* Requisition Action Buttons (Lite Semi-Transparent with Soft Glow) */
.btn-req-call,
.btn-call {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.18) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.22s ease !important;
  cursor: pointer !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
}

.btn-req-call:hover,
.btn-call:hover {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #b91c1c !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35) !important;
  transform: translateY(-2px) !important;
}

.btn-req-accept,
.btn-whatsapp {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.22s ease !important;
  cursor: pointer !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
}

.btn-req-accept:hover,
.btn-whatsapp:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.32) !important;
  transform: translateY(-2px) !important;
}

/* Admin Panel Grids & Content Layouts */
.admin-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.admin-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  width: 100%;
  box-sizing: border-box;
}

.table-responsive-wrapper {
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  margin-top: 16px;
}

.table-responsive-wrapper table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-responsive-wrapper th,
.table-responsive-wrapper td {
  padding: 14px 18px;
  vertical-align: middle;
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive Media Overrides (Mobile Header, Mobile Footer, Mobile Floating Stack)
   ========================================================================== */

/* Tablet & Mobile Navigation (< 992px) */
@media (max-width: 991px) {
  .nav-container {
    padding: 0 16px;
  }

  .nav-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }

  .brand-logo {
    gap: 10px;
    flex-shrink: 1;
    overflow: hidden;
  }

  .nav-toggle-btn {
    display: flex !important;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .nav-links li {
    width: 100%;
    text-align: left !important;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .nav-actions a,
  .nav-actions button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Mobile Dropdown Submenus Accordion */
  .nav-dropdown {
    width: 100%;
    text-align: left !important;
  }

  .nav-dropdown>a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    text-align: left !important;
  }

  .nav-dropdown .dropdown-menu {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    margin-top: 6px !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding: 8px 0 !important;
    text-align: left !important;
  }

  .dropdown-menu li {
    text-align: left !important;
    width: 100% !important;
  }

  .dropdown-menu li a {
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 10px 20px !important;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block !important;
  }

  .nav-dropdown.active>a .dropdown-arrow {
    transform: rotate(180deg);
  }
}

/* Mobile & Small Tablet Adjustments (< 850px) */
@media (max-width: 850px) {

  /* Mobile Single Column Inputs for Donor Registration and All Forms */
  .form-grid-2col,
  .form-grid-3col,
  .form-grid-4col,
  .form-grid-5col,
  .donation-type-grid,
  .admin-grid-2col,
  .admin-grid-3col,
  .admin-stats-grid,
  .matrix-grid-box,
  .register-card form>div[class*="form-grid"],
  .request-card form>div[class*="form-grid"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .quick-stats-grid,
  .stats-container {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, auto) !important;
    gap: 14px !important;
  }

  .stat-card {
    padding: 19px 12px !important;
  }

  .stat-number {
    font-size: 26px !important;
    margin-bottom: 3px !important;
  }

  .stat-label {
    font-size: 13px !important;
  }

  .form-container-card,
  .register-card,
  .request-card,
  .search-widget,
  .admin-tab-pane form,
  .glass-panel form {
    padding: 28px 20px !important;
  }

  .admin-header-card {
    padding: 24px 20px !important;
  }

  .event-card-grid {
    grid-template-columns: 1fr !important;
  }

  .event-card-media {
    height: 220px !important;
    min-height: 220px !important;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }

  .hero-section {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .hero-title {
    font-size: 38px !important;
  }
}

/* Small Smartphone Overrides (< 576px) */
@media (max-width: 576px) {
  .admin-tab-nav {
    gap: 6px;
    padding-bottom: 6px;
  }

  .admin-tab-btn {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 10px;
  }

  .table-responsive-wrapper th,
  .table-responsive-wrapper td {
    padding: 8px 10px;
    font-size: 13px;
  }

  .stat-number {
    font-size: 23px !important;
  }

  .stat-label {
    font-size: 12px !important;
  }

  .form-container-card,
  .register-card,
  .request-card,
  .search-widget,
  .admin-tab-pane form,
  .glass-panel form {
    padding: 24px 16px !important;
  }

  .footer {
    padding: 40px 20px 24px !important;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }

  .floating-controls-stack {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }

  .back-to-top-btn {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .floating-btn {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }

    .floating-emergency-modal {
    position: fixed !important;
    bottom: 80px !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    transform-origin: bottom right !important;
    z-index: 100000 !important;
  }
}

/* ==========================================================================
   Single Blog Article View System (Responsive Desktop & Mobile)
   ========================================================================== */
.single-blog-container {
  max-width: 1180px;
  margin: 32px auto 64px;
  padding: 0 24px;
  box-sizing: border-box;
}

.single-blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.single-blog-main {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.single-blog-breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.single-blog-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.single-blog-breadcrumb a:hover {
  text-decoration: underline;
}

.single-blog-title {
  font-size: 35px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 12px 0 20px;
}

.single-blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 16px;
}

.single-blog-meta-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.single-blog-cover-wrapper {
  width: 100%;
  max-height: 440px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid #e2e8f0;
}

.single-blog-cover-img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.blog-summary-callout {
  background: #f0fdf4;
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
  font-size: 17px;
  line-height: 1.7;
  color: #166534;
  font-weight: 500;
}

.single-blog-content {
  font-size: 17px;
  line-height: 1.85;
  color: #334155;
}

.single-blog-content p {
  margin-bottom: 24px;
}

.single-blog-content ul,
.single-blog-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.single-blog-content li {
  margin-bottom: 8px;
}

.single-blog-footer-actions {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Single Blog Sidebar */
.single-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.sidebar-widget-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-blog-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.sidebar-blog-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-blog-item:hover {
  transform: translateX(4px);
}

.sidebar-blog-thumb {
  width: 72px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.sidebar-blog-info {
  flex: 1;
}

.sidebar-blog-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
}

.sidebar-blog-meta {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 992px) {
  .single-blog-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 768px) {
  .single-blog-container {
    margin: 20px auto 48px !important;
    padding: 0 16px !important;
  }

  .single-blog-main {
    padding: 24px 20px !important;
  }

  .single-blog-title {
    font-size: 25px !important;
    line-height: 1.35 !important;
  }

  .single-blog-cover-wrapper {
    max-height: 250px !important;
  }

  .single-blog-cover-img {
    max-height: 250px !important;
  }

  .single-blog-footer-actions {
    flex-direction: column !important;
  }

  .single-blog-footer-actions a {
    width: 100% !important;
    justify-content: center !important;
  }

  .matrix-container {
    padding: 20px !important;
  }

  .section-title {
    font-size: 26px !important;
  }
}

/* ==========================================================================
   Blood Banks & Hospitals Directory System (3-Column Desktop & Tablet Grid)
   ========================================================================== */
.bank-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  width: 100% !important;
  margin-bottom: 32px !important;
}

.bank-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  margin-bottom: 0 !important;
}

.bank-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1) !important;
  border-color: #cbd5e1 !important;
}

.bank-card-header {
  position: relative !important;
  height: 170px !important;
  min-height: 170px !important;
  width: 100% !important;
  overflow: hidden !important;
}

.bank-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.bank-card-badge {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  color: #ffffff !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  z-index: 2 !important;
}

.bank-card-verified {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  z-index: 2 !important;
}

.bank-card-body {
  padding: 20px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.bank-card-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 6px !important;
  line-height: 1.35 !important;
}

.bank-card-location {
  font-size: 13px !important;
  color: #64748b !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 6px !important;
  line-height: 1.4 !important;
}

.bank-service-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-bottom: 14px !important;
}

.bank-service-tag {
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}

.bank-card-footer {
  padding-top: 14px !important;
  border-top: 1px solid #f1f5f9 !important;
  display: flex !important;
  gap: 8px !important;
}

/* Tablet & Mobile Media Queries */
@media (max-width: 1024px) {
  .bank-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

@media (max-width: 768px) {
  .bank-card-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .bank-card-footer {
    flex-direction: column !important;
  }

  .bank-card-footer a {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   Card Action Buttons Responsive Layout System (Mobile Vertical Stack)
   ========================================================================== */
.card-actions-wrapper {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  width: 100% !important;
}

.card-actions-wrapper a,
.card-actions-wrapper button,
.card-actions-wrapper .btn-event-interest,
.card-actions-wrapper .btn-nav-primary,
.card-actions-wrapper .btn-outline {
  white-space: nowrap !important;
}

@media (max-width: 640px) {
  .card-actions-wrapper {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .card-actions-wrapper a,
  .card-actions-wrapper button,
  .card-actions-wrapper .btn-event-interest,
  .card-actions-wrapper .btn-nav-primary,
  .card-actions-wrapper .btn-outline {
    width: 100% !important;
    flex: 1 1 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   Mobile Responsiveness & Clean Layout for Donor & Requisition Cards
   ========================================================================== */
@media (max-width: 992px) {
  .donor-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  .donor-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 !important;
  }

  .donor-card {
    padding: 20px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 640px) {
  .donor-card {
    padding: 18px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .donor-actions,
  .donor-actions-locked {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .donor-actions>a,
  .donor-actions>form,
  .donor-actions-locked a,
  .btn-call,
  .btn-whatsapp,
  .btn-req-call,
  .btn-req-accept,
  .btn-privacy-call {
    width: 100% !important;
    flex: 1 1 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 11px 10px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  .donor-header {
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }

  .donor-info {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .donor-info h4 {
    font-size: 17px !important;
    word-break: break-word !important;
  }

  .donor-location {
    font-size: 13px !important;
    word-break: break-word !important;
  }

  .bg-badge-lg {
    font-size: 16px !important;
    padding: 6px 12px !important;
  }

  .donor-details {
    padding: 12px 14px !important;
    font-size: 13px !important;
    gap: 6px !important;
  }
}

@media (max-width: 480px) {
  .donor-card {
    padding: 16px !important;
  }

  .donor-detail-item {
    font-size: 13px !important;
    gap: 4px !important;
  }

  .donor-detail-val {
    font-size: 13px !important;
  }

  .bg-badge-lg {
    font-size: 17px !important;
    padding: 6px 14px !important;
  }

  .bg-badge {
    font-size: 13px !important;
    padding: 5px 10px !important;
  }

  .badge-pill,
  .pill-green,
  .pill-red,
  .status-waiting {
    font-size: 12px !important;
    padding: 3px 8px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}

/* ==========================================================================
   Global Lightbox Image Viewer System
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.active,
.lightbox-modal[aria-hidden="false"] {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.lightbox-modal[aria-hidden="true"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: zoom-out;
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 86vw;
  max-height: 76vh;
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.18);
  object-fit: contain;
  display: block;
  user-select: none;
}

.lightbox-img[src=""],
.lightbox-img:not([src]) {
  display: none !important;
}

.lightbox-caption {
  margin-top: 14px;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  max-width: 800px;
  background: rgba(15, 23, 42, 0.8);
  padding: 8px 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.lightbox-close-btn {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000002;
}

.lightbox-close-btn:hover {
  background: #dc2626;
  transform: scale(1.12) rotate(90deg);
}

.lightbox-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  z-index: 1000001;
}

.lightbox-nav-btn:hover {
  background: #059669;
  border-color: #10b981;
  transform: translateY(-50%) scale(1.12);
}

.lightbox-prev-btn {
  left: 22px;
}

.lightbox-next-btn {
  right: 22px;
}

/* Clickable image zoom-in cursor indicator */
.media-card-img,
.bank-card-img,
.single-blog-cover-img,
.event-card-media img,
.org-card img,
img[data-lightbox="true"],
.gallery-card-img {
  cursor: zoom-in !important;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.media-card-img:hover,
.bank-card-img:hover,
.single-blog-cover-img:hover,
.event-card-media img:hover,
.org-card img:hover,
.gallery-card-img:hover {
  filter: brightness(1.05);
}

/* ==========================================================================
   Flatpickr Custom Calendar Theme & Super-High Z-Index
   ========================================================================== */
.flatpickr-calendar {
  z-index: 20000000 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  width: 328px !important;
  max-width: 96vw !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
  border: none !important;
  background: #ffffff !important;
  padding: 12px 10px 14px 10px !important;
  overflow: visible !important;
}

.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after {
  border-bottom-color: #ffffff !important;
}

.flatpickr-calendar.arrowBottom:before, .flatpickr-calendar.arrowBottom:after {
  border-top-color: #ffffff !important;
}

.flatpickr-months {
  background: transparent !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 4px 6px 10px 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.flatpickr-months .flatpickr-month {
  color: #0f172a !important;
  font-weight: 700 !important;
  fill: #0f172a !important;
  height: 36px !important;
  line-height: 36px !important;
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.flatpickr-current-month {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  position: static !important;
  width: auto !important;
  max-width: 230px !important;
  height: 36px !important;
  padding: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: normal !important;
  transform: none !important;
  left: auto !important;
  right: auto !important;
  margin: 0 auto !important;
}

.flatpickr-current-month span.cur-month {
  font-weight: 700 !important;
  color: #0f172a !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  flex: 0 1 120px !important;
  width: auto !important;
  max-width: 130px !important;
  min-width: 105px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  font-size: 0.95rem !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 3px 6px !important;
  margin: 0 !important;
  cursor: pointer !important;
  appearance: menulist !important;
  -webkit-appearance: menulist !important;
  height: 32px !important;
  line-height: 32px !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background: #f1f5f9 !important;
}

.flatpickr-current-month .numInputWrapper {
  flex: 0 0 68px !important;
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  display: inline-flex !important;
  align-items: center !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  height: 32px !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.flatpickr-current-month .numInputWrapper input.cur-year {
  font-weight: 700 !important;
  color: #0f172a !important;
  font-size: 0.95rem !important;
  padding: 0 14px 0 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  height: 30px !important;
  line-height: 30px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
  border-bottom-color: #0f172a !important;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
  border-top-color: #0f172a !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  position: absolute !important;
  top: 4px !important;
  height: 32px !important;
  width: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 8px !important;
  color: #475569 !important;
  fill: #475569 !important;
  transition: all 0.15s ease !important;
  z-index: 10 !important;
}

.flatpickr-months .flatpickr-prev-month {
  left: 4px !important;
}

.flatpickr-months .flatpickr-next-month {
  right: 4px !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  fill: #0f172a !important;
}

.flatpickr-weekdays {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  height: 30px !important;
  margin-bottom: 4px !important;
}

.flatpickr-weekdaycontainer {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

span.flatpickr-weekday {
  flex: 1 0 14.2857% !important;
  max-width: 14.2857% !important;
  width: 14.2857% !important;
  text-align: center !important;
  color: #64748b !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  line-height: 28px !important;
}

.flatpickr-days {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.dayContainer {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  transform: none !important;
}

.flatpickr-day {
  flex: 0 0 14.2857% !important;
  max-width: 14.2857% !important;
  width: 14.2857% !important;
  height: 36px !important;
  line-height: 36px !important;
  border-radius: 8px !important;
  margin: 2px 0 !important;
  box-sizing: border-box !important;
  text-align: center !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.flatpickr-day:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: transparent !important;
}

.flatpickr-day.today {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: #eff6ff !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35) !important;
}

.flatpickr-day.selected:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

/* ==========================================================================
   Universal Date Picker Field & Calendar Dropdown Engine
   ========================================================================== */
.date-picker-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.date-picker-wrapper input.form-control,
.date-picker-wrapper input[type="date"],
.date-picker-wrapper input[type="datetime-local"],
.date-picker-wrapper input.flatpickr-custom-input {
  width: 100% !important;
  padding-right: 44px !important;
  cursor: pointer !important;
  background-color: #ffffff !important;
  font-family: inherit;
  border-radius: 8px;
  position: relative;
  box-sizing: border-box;
}

/* Chrome/Edge/WebKit native calendar indicator overlay trick */
.date-picker-wrapper input[type="date"]::-webkit-calendar-picker-indicator,
.date-picker-wrapper input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  opacity: 0 !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  width: 44px !important;
  height: 100% !important;
  cursor: pointer !important;
  z-index: 5 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.date-picker-wrapper .calendar-icon-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #ef4444;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 4;
  background: none;
  border: none;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
  pointer-events: auto;
}

.date-picker-wrapper .calendar-icon-btn:hover {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
  transform: translateY(-50%) scale(1.15);
}

/* Custom Interactive Universal Calendar Popup (Fallback & Rich Theme) */
#appCustomCalendarPopup {
  position: fixed;
  z-index: 20000000 !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  width: 310px;
  max-width: 95vw;
  padding: 1rem;
  font-family: inherit;
  color: #0f172a;
  user-select: none;
  animation: appCalFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes appCalFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#appCustomCalendarPopup .cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

#appCustomCalendarPopup .cal-nav-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

#appCustomCalendarPopup .cal-nav-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

#appCustomCalendarPopup .cal-selectors {
  display: flex;
  gap: 6px;
  align-items: center;
}

#appCustomCalendarPopup .cal-select {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 6px;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

#appCustomCalendarPopup .cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}

#appCustomCalendarPopup .cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

#appCustomCalendarPopup .cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  color: #1e293b;
  transition: all 0.12s ease;
}

#appCustomCalendarPopup .cal-day-cell:hover:not(.empty):not(.disabled) {
  background: #fee2e2;
  color: #dc2626;
  font-weight: 700;
}

#appCustomCalendarPopup .cal-day-cell.today {
  border: 1.5px solid #ef4444;
  color: #ef4444;
  font-weight: 700;
}

#appCustomCalendarPopup .cal-day-cell.selected {
  background: #ef4444 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

#appCustomCalendarPopup .cal-day-cell.empty {
  cursor: default;
  background: transparent;
}

#appCustomCalendarPopup .cal-footer {
  margin-top: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#appCustomCalendarPopup .cal-btn-action {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s ease;
}

#appCustomCalendarPopup .cal-btn-action:hover {
  background: #f1f5f9;
  color: #0f172a;
}

#appCustomCalendarPopup .cal-btn-today {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

#appCustomCalendarPopup .cal-btn-today:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ==========================================================================
   Universal Time Picker Field & Interactive Selection System
   ========================================================================== */
.time-picker-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.time-picker-wrapper input.form-control,
.time-picker-wrapper input.time-picker-input {
  width: 100% !important;
  padding-right: 44px !important;
  cursor: pointer !important;
  background-color: #ffffff !important;
  font-family: inherit;
  border-radius: 8px;
  position: relative;
  box-sizing: border-box;
}

.time-picker-wrapper .time-icon-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #2563eb;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 4;
  background: none;
  border: none;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
  pointer-events: auto;
}

.time-picker-wrapper .time-icon-btn:hover {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-50%) scale(1.15);
}

/* Custom Interactive Universal Time Picker Popup */
#appCustomTimePickerPopup {
  position: fixed;
  z-index: 20000000 !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.28), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  width: 340px;
  max-width: 95vw;
  padding: 1.15rem;
  font-family: inherit;
  color: #0f172a;
  user-select: none;
  animation: appCalFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.time-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}

.time-popup-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 7px;
}

.time-popup-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #64748b;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.15s;
}

.time-popup-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.time-mode-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 0.85rem;
  background: #f8fafc;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.time-mode-tab {
  flex: 1;
  padding: 5px 8px;
  border-radius: 7px;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.time-mode-tab.active {
  background: #ffffff;
  color: #2563eb;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.time-presets-wrap {
  margin-bottom: 0.85rem;
}

.time-presets-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  display: block;
}

.time-presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.time-preset-pill {
  padding: 4px 9px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.time-preset-pill:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

.time-select-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 0.85rem;
}

.time-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.time-select-row:last-child {
  margin-bottom: 0;
}

.time-select-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  min-width: 55px;
}

.time-inputs-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.time-dropdown {
  padding: 4px 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

.time-ampm-btn {
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.time-ampm-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

.time-preview-bar {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 0.85rem;
}

.time-popup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.time-btn-clear {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
}

.time-btn-apply {
  flex: 1;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.time-btn-apply:hover {
  background: #1d4ed8;
}

/* ==========================================================================
   Admin Edit Modal Overlay System
   ========================================================================== */
.admin-edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 999950;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-edit-modal.active,
.admin-edit-modal[style*="display: flex"] {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.admin-edit-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto !important;
  cursor: pointer;
}

.admin-edit-dialog {
  position: relative;
  z-index: 2;
  margin: auto !important;
  width: 92%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  padding: 28px;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto !important;
  box-sizing: border-box;
}

.admin-edit-modal.active .admin-edit-dialog,
.admin-edit-modal[style*="display: flex"] .admin-edit-dialog {
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.admin-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-edit-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.admin-edit-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* ==========================================================================
   Admin Panel Mobile Responsiveness & Touch Optimization System
   ========================================================================== */
@media (max-width: 850px) {
  .admin-dashboard-container {
    padding: 0 16px !important;
    margin: 20px auto 48px !important;
  }

  .admin-tab-nav {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 10px !important;
    margin-bottom: 24px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
  }

  .admin-tab-btn {
    padding: 10px 16px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  .admin-tab-pane .glass-panel {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }

  .admin-grid-2col,
  .admin-grid-3col {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 640px) {
  .admin-dashboard-container {
    padding: 0 12px !important;
  }

  .admin-tab-btn {
    padding: 9px 14px !important;
    font-size: 13px !important;
  }

  .admin-edit-dialog {
    width: 95% !important;
    padding: 20px 16px !important;
    max-height: 92vh !important;
    border-radius: 14px !important;
  }

  .admin-edit-dialog .form-grid-2col,
  .admin-edit-dialog .form-grid-3col {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .stat-cards-grid,
  .quick-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .stat-card {
    padding: 16px 12px !important;
  }

  .stat-card .stat-number {
    font-size: 24px !important;
  }

  /* Force table horizontal scroll on mobile */
  .table-responsive-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    display: block !important;
  }

  .table-responsive-wrapper table {
    min-width: 600px !important;
  }
}

/* ==========================================================================
   Posts & Gallery Studio Mobile Responsiveness System
   ========================================================================== */
.studio-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.studio-section-header {
  font-size: 19px;
  color: #0f172a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.studio-form-card,
.studio-list-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: 14px;
  box-sizing: border-box;
}

.studio-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 14px;
  border-radius: 12px;
  box-sizing: border-box;
}

.studio-item-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.studio-item-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
  .admin-dashboard-container {
    padding: 0 8px !important;
    margin: 12px auto 32px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .admin-tab-pane .glass-panel,
  .admin-dashboard-container .glass-panel,
  .studio-section-card {
    padding: 14px 10px !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .studio-section-header {
    font-size: 17px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .studio-form-card,
  .studio-list-card {
    padding: 14px 10px !important;
    border-radius: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .studio-item-card {
    padding: 12px 10px !important;
    border-radius: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .studio-item-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .studio-item-header img {
    width: 56px !important;
    height: 46px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .studio-item-header h5 {
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.35 !important;
    font-size: 14px !important;
  }

  .studio-item-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 8px !important;
  }

  .studio-item-actions form,
  .studio-item-actions button,
  .studio-item-actions a {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Comprehensive Mobile Responsive Event Loop Cards & Modals
   ========================================================================== */
.event-card-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.event-card-grid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
}

.event-card-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 230px;
  width: 100%;
  cursor: pointer;
  background: #0f172a;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.event-card-grid:hover .event-card-media img {
  transform: scale(1.04);
}

.event-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
}

.event-card-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.event-attendees-pill {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.event-card-title {
  font-size: 22px;
  color: #0f172a;
  margin-bottom: 10px;
  cursor: pointer;
  line-height: 1.35;
  word-break: break-word;
}

.event-card-excerpt {
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.event-compact-guests-bar {
  margin-bottom: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border-left: 3px solid #2563eb;
  border-radius: 8px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.2s ease;
}

.event-compact-guests-bar:hover {
  background: #e0e7ff;
}

.guest-avatar-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.guest-avatar-stacked {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.guest-bar-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
}

.guest-bar-label {
  font-weight: 700;
  color: #2563eb;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.guest-bar-names {
  color: #0f172a;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-modal-guests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.event-modal-guest-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.event-modal-guest-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2563eb;
  flex-shrink: 0;
}

.guest-role-tag {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.guest-modal-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1px;
}

.guest-modal-desig {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.event-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 18px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  width: 100%;
  box-sizing: border-box;
}

.event-meta-grid-item {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-meta-organizer {
  grid-column: 1 / -1;
  color: #059669;
  font-weight: 600;
}

.event-card-actions {
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.btn-event-details {
  flex: 1;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  background: #ffffff;
  white-space: nowrap;
}

.event-card-subactions {
  display: flex;
  gap: 8px;
  flex: 1.2;
}

.btn-event-interest {
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #3b82f6;
  color: #2563eb;
  background: #eff6ff;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-event-register {
  flex: 1;
  justify-content: center;
  padding: 11px 16px;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.event-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.event-date-badge .day {
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.event-date-badge .month {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #38bdf8;
}

.event-details-dialog {
  max-width: 760px !important;
  width: 94% !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 20px !important;
}

.event-details-banner {
  position: relative;
  height: 260px;
  width: 100%;
  background: #0f172a;
}

.event-details-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-details-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: none;
  font-size: 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.event-details-close-btn:hover {
  background: rgba(220, 38, 38, 0.9);
  transform: scale(1.05);
}

.event-details-body {
  padding: 28px;
  max-height: calc(85vh - 220px);
  overflow-y: auto;
}

.event-details-agenda {
  white-space: pre-line;
  line-height: 1.75;
  color: #334155;
  font-size: 15px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

/* ==========================================================================
   Mobile Responsive Media Queries for Event Cards (Screens <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .event-card-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
  }

  .event-card-media {
    height: 145px !important;
    width: 100% !important;
    border-radius: 10px !important;
  }

  .event-card-title {
    font-size: 18px !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
  }

  .event-card-excerpt {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
    display: -webkit-box !important;
    line-clamp: 2 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .event-compact-guests-bar {
    padding: 6px 10px !important;
    margin-bottom: 10px !important;
    font-size: 12px !important;
  }

  .guest-avatar-stacked {
    width: 26px !important;
    height: 26px !important;
  }

  .event-meta-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    margin-bottom: 12px !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1px solid #f1f5f9 !important;
    text-align: left !important;
  }

  .event-meta-grid-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .event-meta-grid-item i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
  }

  .event-meta-grid-item span {
    display: inline-block !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: break-word !important;
    flex: 1 1 auto !important;
  }

  .event-card-actions {
    padding-top: 12px !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .btn-event-details {
    width: 100% !important;
    min-height: 44px !important;
    flex: none !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
  }

  .event-card-subactions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .btn-event-interest,
  .btn-event-register {
    width: 100% !important;
    min-height: 44px !important;
    flex: none !important;
    justify-content: center !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .event-details-banner {
    height: 165px !important;
  }

  .event-details-body {
    padding: 16px !important;
    max-height: calc(88vh - 165px) !important;
  }

  .event-modal-guests-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Registered Donors by Blood Group Mobile Responsiveness */
  .bg-counter-section {
    padding: 0 16px !important;
    margin: 32px auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .bg-counter-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 20px auto 0 !important;
  }

  .bg-counter-card {
    padding: 16px 12px !important;
  }

  .bg-counter-num {
    font-size: 26px !important;
  }

  .bg-counter-badge {
    width: 40px !important;
    height: 40px !important;
    font-size: 17px !important;
    margin-bottom: 8px !important;
  }
}

/* Registered Donors by Blood Group Counter Section */
.bg-counter-section {
  max-width: 1280px;
  width: 100%;
  margin: 56px auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.bg-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 100%;
  margin: 32px auto 0;
  width: 100%;
  box-sizing: border-box;
}

.bg-counter-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--glass-border, #e2e8f0);
  border-radius: var(--radius-md, 16px);
  padding: 22px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.bg-counter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.3);
}

.bg-counter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #f43f5e);
  border-radius: 16px 16px 0 0;
}

.bg-counter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
  margin-bottom: 10px;
}

.bg-counter-badge.rare-group {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #f87171;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
}

.bg-counter-num {
  font-size: 34px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 3px;
}

.bg-counter-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 12px;
}

.bg-counter-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.bg-counter-tag.tag-universal-donor {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.bg-counter-tag.tag-universal-recip {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

/* ==========================================================================
   Public Emergency Blood Requests - Redesigned Search / Filter Bar
   ========================================================================== */
.emergency-filter-card {
  background: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-top: 4px solid #ef4444;
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 40px;
  box-shadow: 0 14px 35px -10px rgba(239, 68, 68, 0.08), 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  position: relative;
}

.emergency-filter-card:hover {
  box-shadow: 0 18px 40px -10px rgba(239, 68, 68, 0.12), 0 6px 24px rgba(0, 0, 0, 0.04);
  border-color: rgba(239, 68, 68, 0.35);
}

.emergency-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  align-items: flex-end;
}

@media (min-width: 1024px) {
  .emergency-filter-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  }
}

.emergency-filter-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.emergency-filter-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.emergency-filter-label i {
  color: #ef4444;
  font-size: 14px;
}

.emergency-filter-input,
.emergency-filter-select {
  width: 100%;
  padding: 13px 18px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.emergency-filter-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.emergency-filter-input:hover,
.emergency-filter-select:hover {
  border-color: #fca5a5;
  background: #ffffff;
}

.emergency-filter-input:focus,
.emergency-filter-select:focus {
  border-color: #ef4444;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.emergency-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.emergency-filter-btn {
  flex: 1;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  height: 46px;
  white-space: nowrap;
}

.emergency-filter-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.emergency-filter-btn:active {
  transform: translateY(0);
}

.emergency-filter-reset {
  background: #f1f5f9;
  color: #64748b;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  height: 46px;
  text-decoration: none;
}

.emergency-filter-reset:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

/* ==========================================================================
   Fraud Awareness & Patient Safety Section System
   ========================================================================== */
.fraud-awareness-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
  border: 1px solid #fecaca;
  border-left: 5px solid #ef4444;
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px -5px rgba(239, 68, 68, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  position: relative;
}

.fraud-awareness-card:hover {
  box-shadow: 0 14px 36px -5px rgba(239, 68, 68, 0.12), 0 6px 16px rgba(0, 0, 0, 0.04);
}

.fraud-main-alert {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 12px;
  padding: 16px 20px;
  color: #991b1b;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}

.fraud-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.fraud-rule-item {
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.fraud-rule-item:hover {
  border-color: #fca5a5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.07);
}

.fraud-rule-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 12px;
  border: 1px solid #fecaca;
  flex-shrink: 0;
}

.fraud-rule-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.fraud-rule-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
}

/* Reporting & Complaints System Styles */
.status-pending {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fca5a5 !important;
}

.status-investigating {
  background: #fffbeb !important;
  color: #d97706 !important;
  border: 1px solid #fde68a !important;
}

.status-resolved {
  background: #f0fdf4 !important;
  color: #16a34a !important;
  border: 1px solid #86efac !important;
}

.status-dismissed {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
}

.report-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .report-action-bar {
    flex-direction: column;
    align-items: stretch !important;
  }
}

/* Emergency Notice Banner & Ticker Styles */
.emergency-broadcast-banner {
  width: 100%;
  padding: 10px 20px;
  color: #ffffff;
  position: relative;
  z-index: 10000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
}

.emergency-broadcast-banner.urgency-critical {
  background: linear-gradient(135deg, #450a0a 0%, #991b1b 40%, #b91c1c 75%, #7f1d1d 100%);
}

.emergency-broadcast-banner.urgency-urgent {
  background: linear-gradient(135deg, #431407 0%, #ea580c 40%, #f97316 75%, #9a3412 100%);
}

.emergency-broadcast-banner.urgency-info {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #2563eb 75%, #1d4ed8 100%);
}

/* Visible Toggle Switch for Admin Broadcast Studio */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
  border: 2px solid #94a3b8;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input:checked+.slider {
  background-color: #10b981;
  border-color: #059669;
}

input:checked+.slider:before {
  transform: translateX(28px);
}

.emergency-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.emergency-badge-pulse {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.emergency-ticker-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
}

.emergency-ticker-text strong {
  font-weight: 800;
  color: #ffffff;
}

.blood-target-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  margin-left: 8px;
  white-space: nowrap;
}

.emergency-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-emergency-action {
  background: #ffffff;
  color: #dc2626;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.urgency-urgent .btn-emergency-action {
  color: #ea580c;
}

.urgency-info .btn-emergency-action {
  color: #2563eb;
}

.btn-emergency-action:hover {
  background: #f8fafc;
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-emergency-dismiss {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.btn-emergency-dismiss:hover {
  background: rgba(255, 255, 255, 0.38);
}

/* Visitor Toast Announcement Widget (Bottom Left) */
.visitor-toast-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid #fca5a5;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.18);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: slideUpToast 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpToast {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Notification Bell & Drawer Styles */
.nav-bell-btn {
  position: relative;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-bell-btn:hover {
  background: #f1f5f9;
  color: #ef4444;
}

.bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  border: 2px solid #ffffff;
}

.notification-drawer-modal {
  position: fixed;
  top: 70px;
  right: 24px;
  z-index: 1050;
  width: 380px;
  max-width: calc(100% - 32px);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.notification-drawer-modal.active {
  display: flex;
  animation: fadeInDownNotif 0.25s ease-out;
}

@keyframes fadeInDownNotif {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 640px) {
  .emergency-marquee-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }

  .visitor-toast-widget {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .notification-drawer-modal {
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
  }
}

/* Emergency Notice Banner (#FFF5F5 Soft Light Rose Panel Theme matching Super Admin Control Panel) */
.emergency-broadcast-banner {
  background: #fff5f5 !important;
  color: #991b1b !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  border-bottom: 1px solid #fca5a5 !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08) !important;
}

/* Emergency & Announcement Broadcast Banner Themes */
.emergency-broadcast-banner {
  padding: 10px 20px;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.emergency-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.emergency-badge-pulse {
  flex-shrink: 0;
  cursor: pointer;
}

.emergency-ticker-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
}

.emergency-banner-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Banner Type Layout Variations */
.emergency-broadcast-banner.banner-type-top_ticker {
  padding: 8px 18px;
  overflow: hidden;
}

.emergency-broadcast-banner.banner-type-header_bar {
  padding: 12px 20px;
}

.emergency-ticker-text.is-marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
}

.emergency-ticker-text.is-marquee .ticker-stream-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeStream 22s linear infinite;
  will-change: transform;
}

.emergency-ticker-text.is-marquee:hover .ticker-stream-track {
  animation-play-state: paused;
}

@keyframes marqueeStream {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Critical (Red Emergency Alert) */
.emergency-broadcast-banner.urgency-critical {
  background: #fff5f5 !important;
  border-bottom: 1px solid #fca5a5 !important;
  color: #991b1b !important;
}

.emergency-broadcast-banner.urgency-critical .emergency-ticker-text,
.emergency-broadcast-banner.urgency-critical .emergency-ticker-text span {
  color: #991b1b !important;
}

.emergency-broadcast-banner.urgency-critical .emergency-badge-pulse {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border: 1px solid #fca5a5 !important;
}

.emergency-broadcast-banner.urgency-critical .blood-target-chip {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fca5a5 !important;
}

.emergency-broadcast-banner.urgency-critical .btn-emergency-action {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.emergency-broadcast-banner.urgency-critical .btn-emergency-action:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4) !important;
}

.emergency-broadcast-banner.urgency-critical .btn-emergency-dismiss {
  color: #991b1b !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

/* Urgent (Orange High Alert) */
.emergency-broadcast-banner.urgency-urgent {
  background: #fff7ed !important;
  border-bottom: 1px solid #fed7aa !important;
  color: #9a3412 !important;
}

.emergency-broadcast-banner.urgency-urgent .emergency-ticker-text,
.emergency-broadcast-banner.urgency-urgent .emergency-ticker-text span {
  color: #9a3412 !important;
}

.emergency-broadcast-banner.urgency-urgent .emergency-badge-pulse {
  background: #ffedd5 !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
}

.emergency-broadcast-banner.urgency-urgent .blood-target-chip {
  background: #ffedd5 !important;
  color: #9a3412 !important;
  border: 1px solid #fed7aa !important;
}

.emergency-broadcast-banner.urgency-urgent .btn-emergency-action {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
}

.emergency-broadcast-banner.urgency-urgent .btn-emergency-action:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4) !important;
}

.emergency-broadcast-banner.urgency-urgent .btn-emergency-dismiss {
  color: #9a3412 !important;
  background: rgba(249, 115, 22, 0.1) !important;
  border: 1px solid rgba(249, 115, 22, 0.2) !important;
}

/* Info (General Announcement / Blue Theme) */
.emergency-broadcast-banner.urgency-info {
  background: #f0f9ff !important;
  border-bottom: 1px solid #bae6fd !important;
  color: #075985 !important;
}

.emergency-broadcast-banner.urgency-info .emergency-ticker-text,
.emergency-broadcast-banner.urgency-info .emergency-ticker-text span {
  color: #075985 !important;
}

.emergency-broadcast-banner.urgency-info .emergency-badge-pulse {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

.emergency-broadcast-banner.urgency-info .blood-target-chip {
  background: #e0f2fe !important;
  color: #075985 !important;
  border: 1px solid #bae6fd !important;
}

.emergency-broadcast-banner.urgency-info .btn-emergency-action {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.emergency-broadcast-banner.urgency-info .btn-emergency-action:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4) !important;
}

.emergency-broadcast-banner.urgency-info .btn-emergency-dismiss {
  color: #075985 !important;
  background: rgba(37, 99, 235, 0.1) !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

/* Shared Badges & Action Buttons */
.emergency-badge-pulse {
  border-radius: 20px !important;
  padding: 4px 12px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.blood-target-chip {
  border-radius: 12px !important;
  padding: 2px 10px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  margin-left: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap;
}

.btn-emergency-action {
  color: #ffffff !important;
  border: none !important;
  padding: 7px 18px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-emergency-action i,
.btn-emergency-action span {
  color: #ffffff !important;
}

.btn-emergency-dismiss {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

/* ==========================================================================
   Mobile-Friendly Emergency Broadcast Notice (100% Readable 2-Row Stacked Grid)
   ========================================================================== */
@media (max-width: 768px) {
  .emergency-broadcast-banner {
    padding: 7px 12px 9px !important;
  }
  .emergency-broadcast-banner.banner-type-top_ticker,
  .emergency-broadcast-banner.banner-type-header_bar {
    padding: 7px 12px 9px !important;
  }
  .emergency-banner-inner {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "badge actions"
      "ticker ticker" !important;
    gap: 6px 10px !important;
    width: 100% !important;
  }
  .emergency-badge-pulse {
    grid-area: badge !important;
    justify-self: start !important;
    font-size: 11px !important;
    padding: 3px 9px !important;
    gap: 5px !important;
    letter-spacing: 0.2px !important;
    max-width: fit-content !important;
  }
  .emergency-banner-actions {
    grid-area: actions !important;
    justify-self: end !important;
    gap: 6px !important;
  }
  .btn-emergency-action {
    padding: 4px 11px !important;
    font-size: 11.5px !important;
    height: 27px !important;
    border-radius: 14px !important;
    gap: 5px !important;
  }
  .btn-emergency-dismiss {
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
  }
  .emergency-ticker-text {
    grid-area: ticker !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    padding: 0 10px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    border-radius: 8px !important;
    border: 1px dashed rgba(239, 68, 68, 0.3) !important;
    box-sizing: border-box !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
  }
  .emergency-broadcast-banner.urgency-urgent .emergency-ticker-text {
    border-color: rgba(249, 115, 22, 0.35) !important;
  }
  .emergency-broadcast-banner.urgency-info .emergency-ticker-text {
    border-color: rgba(37, 99, 235, 0.35) !important;
  }
  .blood-target-chip {
    font-size: 10.5px !important;
    padding: 2px 7px !important;
    margin-left: 6px !important;
  }
}

@media (max-width: 380px) {
  .emergency-broadcast-banner {
    padding: 6px 8px 8px !important;
  }
  .emergency-badge-pulse {
    font-size: 10px !important;
    padding: 2px 7px !important;
  }
  .btn-emergency-action {
    padding: 3px 8px !important;
    font-size: 11px !important;
    height: 25px !important;
  }
  .emergency-ticker-text {
    font-size: 11.5px !important;
    padding: 3px 7px !important;
  }
}

/* Modal Popup Fixes & Top Layering */
#notifMessageDetailModal,
#emergencyNoticeDetailModal,
#editEmergencyNoticeModal {
  z-index: 999999 !important;
}

#notifMessageDetailModal.active,
#emergencyNoticeDetailModal.active,
#editEmergencyNoticeModal.active {
  display: flex !important;
}

/* Custom Toggle Switch for Admin Emergency Studio */
.switch {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 32px;
  vertical-align: middle;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  border: 2px solid #94a3b8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

input:checked+.slider {
  background-color: #22c55e;
  border-color: #16a34a;
}

input:focus+.slider {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

input:checked+.slider:before {
  transform: translateX(26px);
  background-color: #ffffff;
}

/* Desktop & Tablet Unified Account Dropdown & Mobile Action Buttons */
.desktop-tablet-auth-dropdown {
  display: inline-block !important;
}

.mobile-only-actions {
  display: none !important;
}

/* Mobile & Portrait Tablet Navigation (< 992px) */
@media (max-width: 991px) {
  .mobile-only-notif {
    display: inline-block !important;
  }

  .desktop-only-notif {
    display: none !important;
  }

  .desktop-tablet-auth-dropdown {
    display: none !important;
  }

  .mobile-only-actions {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 8px;
  }

  .nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
  }

  .nav-actions .btn-danger,
  .nav-actions .btn-nav-primary,
  .nav-actions .btn-outline {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* Desktop & Tablet Landscape Navigation (>= 992px) */
@media (min-width: 992px) {
  .mobile-only-notif {
    display: none !important;
  }

  .desktop-only-notif {
    display: inline-block !important;
  }

  .desktop-tablet-auth-dropdown {
    display: inline-block !important;
  }

  .mobile-only-actions {
    display: none !important;
  }

  .nav-toggle-btn {
    display: none !important;
  }
}

/* Tablet & Compact Desktop Header Auto-Sizing (992px - 1260px) */
@media (min-width: 992px) and (max-width: 1260px) {
  .brand-subtitle {
    display: none !important;
  }

  .brand-title {
    font-size: 17px !important;
  }

  .brand-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  .nav-container {
    padding: 0 12px !important;
    gap: 8px !important;
  }

  .nav-links {
    gap: 3px !important;
  }

  .nav-links a {
    padding: 6px 7px !important;
    font-size: 12px !important;
  }

  .nav-actions {
    gap: 6px !important;
  }

  .nav-actions .btn-danger,
  .nav-actions .btn-nav-primary,
  .nav-actions .btn-outline {
    padding: 6px 10px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  .btn-notif-bell {
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
  }
}

@keyframes modalPop {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Notification Drawer Modal Responsiveness */
@media (max-width: 580px) {
  .notif-drawer-modal {
    padding-right: 12px !important;
    padding-left: 12px !important;
    padding-top: 65px !important;
  }

  .notif-drawer-content {
    max-width: 100% !important;
  }

  .notif-drawer-header {
    padding: 16px !important;
  }
}

/* Star Rating Input Selector */
.star-rating-selector {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
  font-size: 29px;
  margin: 3px 0 8px 0;
}

.star-rating-selector input[type="radio"] {
  display: none;
}

.star-rating-selector label {
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.star-rating-selector label:hover,
.star-rating-selector label:hover~label,
.star-rating-selector input[type="radio"]:checked~label {
  color: #f59e0b;
}

.star-rating-selector label:hover {
  transform: scale(1.2);
}

@media (max-width: 640px) {
  .star-rating-selector {
    font-size: 26px;
    gap: 4px;
  }
}

/* Requisition Visitor Guidance & Phone Privacy Contact Protection */
.visitor-guidance-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.visitor-guidance-card:hover {
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.18) !important;
}

.donor-actions-locked {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.donor-actions-locked:hover {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
}

/* Page Container & Responsive Layout System */
.page-container {
  max-width: 1280px;
  width: 100%;
  margin: 32px auto 64px;
  padding: 0 24px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-container {
    margin: 16px auto 40px !important;
    padding: 0 14px !important;
  }
}

@media (max-width: 480px) {
  .page-container {
    margin: 12px auto 32px !important;
    padding: 0 10px !important;
  }
}

.matches-header-card {
  padding: 32px;
  background: linear-gradient(135deg, #ffffff, #ecfdf5);
  border: 1px solid #a7f3d0;
  margin-bottom: 32px;
  border-radius: 16px;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 640px) {
  .matches-header-card {
    padding: 18px !important;
    margin-bottom: 20px !important;
  }

  .matches-header-card h1 {
    font-size: 23px !important;
  }

  .visitor-guidance-card {
    padding: 18px !important;
    margin-bottom: 20px !important;
  }

  .visitor-guidance-card h3 {
    font-size: 18px !important;
  }
}

/* Responsive Forgot Password & OTP Portal System */
.forgot-password-container {
  max-width: 520px;
  width: 100%;
  margin: 56px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.forgot-password-card {
  padding: 36px;
  text-align: center;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.step-indicator-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.step-indicator-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  border-bottom: 3px solid transparent;
  margin-bottom: -10px;
  padding-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.25s ease;
}

.step-indicator-item.active {
  color: #dc2626 !important;
  border-color: #dc2626 !important;
}

.step-indicator-item.completed {
  color: #059669 !important;
  border-color: #059669 !important;
}

.otp-code-input {
  width: 100% !important;
  padding: 12px 8px !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: 6px !important;
  text-align: center !important;
  border-radius: 10px !important;
  border: 2px solid #ef4444 !important;
  color: #dc2626 !important;
  background: #fff5f5 !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .forgot-password-container {
    margin: 24px auto 40px !important;
    padding: 0 14px !important;
  }

  .forgot-password-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }

  .forgot-password-card h2 {
    font-size: 20px !important;
  }

  .forgot-password-card p {
    font-size: 16px !important;
    margin-bottom: 18px !important;
  }

  .step-indicator-item {
    font-size: 14px !important;
    padding-bottom: 6px !important;
  }

  .otp-code-input {
    font-size: 20px !important;
    letter-spacing: 4px !important;
    padding: 10px 8px !important;
  }

  .forgot-password-card button {
    padding: 12px 10px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 380px) {
  .forgot-password-container {
    padding: 0 8px !important;
  }

  .forgot-password-card {
    padding: 16px 12px !important;
  }

  .step-indicator-item {
    font-size: 14px !important;
  }

  .otp-code-input {
    font-size: 18px !important;
    letter-spacing: 2px !important;
  }
}

/* ==========================================================================
   Mobile Application View - Standardized Typography Scale (14, 16, 18, 20, 24)
   ========================================================================== */
@media (max-width: 768px) {

  /* Global App Base Text Scaling */
  html {
    font-size: 16px !important;
  }

  /* Level 1: 24px - Main Application Titles & Banners */
  h1,
  .hero-title,
  .matches-header-card h1,
  .page-title,
  .portal-title,
  .auth-card-title,
  .emergency-hero-title,
  .helpline-banner h3,
  .app-header-title,
  .dashboard-header-title {
    font-size: 24px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.3px !important;
    font-weight: 800 !important;
  }

  /* Level 2: 20px - Section Titles & Main Card Headers */
  h2,
  .section-title,
  .widget-title,
  .visitor-guidance-card h2,
  .forgot-password-card h2,
  .timer-modal-title,
  .stats-header,
  .matrix-title,
  .dashboard-card h2,
  .page-header h2,
  .modal-title,
  .search-widget-title,
  .matrix-container h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
  }

  /* Level 3: 18px - Sub-headers & Item/Donor Titles */
  h3,
  h4,
  .donor-card-name,
  .request-card-name,
  .donor-info h4,
  .donor-name,
  .card-title,
  .step-title,
  .visitor-guidance-card h3,
  .filter-section-title,
  .modal-subtitle,
  .event-card-title,
  .blog-card-title,
  .stat-number {
    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
  }

  /* Level 4: 16px - Primary Body Copy, Inputs, Action Buttons, Nav Links */
  body,
  p,
  .hero-subtitle,
  .section-subtitle,
  .donor-location,
  .request-details-text,
  .guidance-text,
  .brand-logo-text,
  .form-control,
  .form-select,
  .emergency-filter-input,
  .emergency-filter-select,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="datetime-local"],
  input[type="date"],
  select,
  textarea,
  .btn,
  .btn-primary,
  .btn-danger,
  .btn-outline,
  .btn-nav-primary,
  .btn-contact,
  .btn-call,
  .btn-whatsapp,
  .matrix-tab-btn,
  .forgot-password-card button,
  .timer-submit-btn,
  .btn-action,
  .emergency-filter-btn,
  .nav-links a,
  .dropdown-menu li a,
  .nav-actions a,
  table td,
  .table td {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  /* Level 5: 14px - Auxiliary Text, Labels, Badges, Metadata & Captions */
  label,
  .form-label,
  .field-label,
  .emergency-filter-label,
  .hero-badge,
  .badge,
  .bg-badge,
  .status-pill,
  .badge-pill,
  .donor-badge,
  .tag,
  .donor-detail-label,
  .donor-detail-val,
  .donor-detail-item,
  .request-detail-label,
  .meta-label,
  .stat-label,
  small,
  .text-sm,
  .form-text,
  .help-text,
  .step-indicator-item,
  .footer-links a,
  .footer-copyright,
  .brand-subtitle,
  .timer-badge,
  table th,
  .table th,
  .sub-text {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  /* App-like Touch Target & Layout Enhancements */
  .btn,
  .btn-primary,
  .btn-danger,
  .btn-outline,
  .btn-nav-primary,
  .btn-contact,
  .btn-call,
  .btn-whatsapp,
  .form-control,
  .form-select,
  .emergency-filter-input,
  .emergency-filter-select {
    min-height: 44px;
    box-sizing: border-box;
  }

  .donor-card,
  .stat-card,
  .visitor-guidance-card,
  .matches-header-card,
  .matrix-container {
    border-radius: 16px !important;
  }
}

/* ==========================================================================
   Universal Card & Grid Centering Layout System (All Devices & Pages)
   ========================================================================== */

/* 1. Global Outer Container Centering across Desktop, Tablet & Mobile */
main section,
section,
.page-container,
.details-container,
.hero-section,
.stats-container,
.matrix-container,
.helpline-banner,
div[style*="max-width: 1280px"],
div[style*="max-width: 1200px"],
div[style*="max-width: 900px"],
div[style*="max-width: 780px"] {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* 2. Grid & Card Container Full-Width Alignment System */
.donor-grid,
.mobile-slider-container,
.bank-card-grid,
.emergency-filter-grid,
.quick-stats-grid,
.profile-dashboard-grid,
div[class*="-grid"]:not(.stats-container),
div[style*="display: grid"]:not(.stats-container),
div[style*="grid-template-columns"]:not(.stats-container) {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-items: stretch !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

/* 3. Individual Cards Centering & Box Sizing */
.glass-panel,
.donor-card,
.blog-card,
.video-card,
.org-card,
.review-card,
.event-card,
.bank-card,
.stat-card,
.visitor-guidance-card,
.matches-header-card,
.forgot-password-card,
.auth-card,
.details-card,
.form-container-card,
.emergency-filter-card,
.card {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* 4. Responsive Mobile Layout System (@media max-width: 768px) */
@media (max-width: 768px) {

  /* Enforce Symmetrical Outer Padding on Mobile Sections */
  main section,
  section,
  .page-container,
  .details-container,
  .hero-section,
  div[style*="max-width: 1280px"],
  div[style*="max-width: 1200px"],
  div[style*="max-width: 900px"],
  div[style*="max-width: 780px"] {
    padding-left: 14px !important;
    padding-right: 14px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 2-Column Mobile Grid for Registered Donors Count & Stats Counter Ribbon */
  .bg-counter-grid,
  .stats-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px auto !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }

  .stat-card {
    padding: 18px 12px !important;
    border-radius: 14px !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .stat-number {
    font-size: 26px !important;
    line-height: 1.15 !important;
  }

  .stat-label {
    font-size: 12px !important;
  }

  .bg-counter-card {
    padding: 16px 10px !important;
    border-radius: 14px !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .bg-counter-badge {
    width: 42px !important;
    height: 42px !important;
    font-size: 17px !important;
    margin-bottom: 6px !important;
  }

  .bg-counter-num {
    font-size: 26px !important;
  }

  .bg-counter-label {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }

  .bg-counter-tag {
    font-size: 10px !important;
    padding: 2px 7px !important;
  }

  /* Single Column Stacked & Centered Grid System for Content Cards */
  .donor-grid,
  .mobile-slider-container,
  .bank-card-grid,
  div[class*="-grid"]:not(.bg-counter-grid):not(.stats-container):not(.reviews-stats-grid),
  div[style*="display: grid"]:not(.bg-counter-grid):not(.stats-container):not(.reviews-stats-grid),
  div[style*="grid-template-columns"]:not(.bg-counter-grid):not(.stats-container):not(.reviews-stats-grid) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    gap: 20px !important;
  }

  /* Universal 100% Full-Width Form Controls & Field Mobile System */
  .form-grid-2col,
  .form-grid-3col,
  .form-grid-4col,
  .emergency-filter-grid,
  .donation-type-grid,
  form div[style*="grid-template-columns"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
    box-sizing: border-box !important;
  }

  .form-group,
  .emergency-filter-group,
  .emergency-filter-actions,
  form .form-group,
  form div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-control,
  .form-select,
  .emergency-filter-input,
  .emergency-filter-select,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="datetime-local"],
  input[type="date"],
  select,
  textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  /* Force 100% Centered Width for All Mobile Cards */
  .glass-panel,
  .donor-card,
  .blog-card,
  .video-card,
  .org-card,
  .review-card,
  .event-card,
  .bank-card,
  .visitor-guidance-card,
  .matches-header-card,
  .forgot-password-card,
  .auth-card,
  .details-card,
  .form-container-card,
  .emergency-filter-card,
  .card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {

  main section,
  section,
  .page-container,
  .details-container,
  div[style*="max-width: 1280px"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* ==========================================================================
   Inner Fields 100% Width & Desktop Centered Action Buttons System
   ========================================================================== */
.profile-header-card,
.glass-panel,
.card,
.form-container-card,
.details-card,
.auth-card {
  width: 100% !important;
  box-sizing: border-box !important;
}

.profile-dashboard-grid > div {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Form groups, inputs, select fields, and primary submit buttons occupy full form width */
.form-group,
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea,
button[type="submit"],
.btn-nav-primary {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Universal Internal Text & Icon Centering for All Buttons */
button,
.btn-nav-primary,
.btn-danger,
.btn-success,
.btn-outline,
.btn-call,
.btn-contact,
a[href*="/report"],
a[href^="tel:"],
a[href*="wa.me"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* Desktop View (min-width: 769px): Centered & Non-Stretched Action Buttons */
@media (min-width: 769px) {
  a[href*="/report"],
  .btn-danger[href*="/report"] {
    width: auto !important;
    min-width: auto !important;
    max-width: max-content !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0.65rem 1.4rem !important;
  }

  /* Desktop Helpline & WhatsApp Buttons Row Alignment */
  .helpline-banner > div,
  .helpline-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  .helpline-banner a[href^="tel:"],
  .helpline-banner a[href*="wa.me"],
  .helpline-banner .btn-helpline,
  .helpline-banner .btn-whatsapp {
    width: auto !important;
    min-width: auto !important;
    max-width: max-content !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.85rem 2rem !important;
    margin: 0 !important;
  }

  /* Centered Alignment for Banner Flex Wrappers holding action buttons */
  div[style*="background: linear-gradient(135deg, #ffffff, #fef2f2)"] {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
}

/* Mobile View (max-width: 768px): 100% Width Column Alignment for Helpline & WhatsApp Buttons */
@media (max-width: 768px) {
  .helpline-banner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5rem auto !important;
    padding: 1.75rem 1rem !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  .helpline-banner > div,
  .helpline-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .helpline-banner a[href^="tel:"],
  .helpline-banner a[href*="wa.me"],
  .helpline-banner .btn-helpline,
  .helpline-banner .btn-whatsapp {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Stunning Notification Inbox & Card Item Design System
   ========================================================================== */
.notif-inbox-card {
  padding: 1.75rem 1.5rem !important;
  background: #ffffff !important;
  margin-bottom: 2rem !important;
  border: 1.5px solid rgba(59, 130, 246, 0.25) !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

.notif-inbox-header {
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.85rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
}

.btn-mark-all-read {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  margin: 0 !important;
  width: auto !important;
}

.btn-mark-all-read:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
  transform: translateY(-1px);
}

.notif-card-item {
  padding: 1.15rem 1.25rem !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 1rem !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  margin-bottom: 12px !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
}

.notif-card-item:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08) !important;
  transform: translateY(-1px);
}

.notif-card-item.unread {
  background: #f0f7ff !important;
  border-color: #bfdbfe !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06) !important;
}

.notif-card-item.unread::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #2563eb;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.notif-icon-badge {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  flex-shrink: 0 !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.15) !important;
  margin-top: 2px !important;
}

.notif-icon-badge.match_alert {
  background: #f0fdf4 !important;
  color: #16a34a !important;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.15) !important;
}

.notif-icon-badge.report_update {
  background: #faf5ff !important;
  color: #7c3aed !important;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.15) !important;
}

.notif-content-body {
  flex: 1 !important;
  min-width: 0 !important;
}

.notif-item-title {
  color: #0f172a !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
  line-height: 1.3 !important;
}

.notif-item-text {
  color: #475569 !important;
  font-size: 0.85rem !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.45 !important;
}

.notif-footer-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  margin-top: 0.75rem !important;
  padding-top: 0.65rem !important;
  border-top: 1px dashed #cbd5e1 !important;
}

.notif-time {
  font-size: 0.78rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.notif-btn-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  margin-left: auto !important;
}

.btn-notif-view {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 6px 14px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1.5px solid #93c5fd !important;
  color: #1d4ed8 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  width: auto !important;
}

.btn-notif-view:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.btn-notif-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #059669 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  width: auto !important;
}

.btn-notif-mark:hover {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
}

/* Explicit Mobile View (@media max-width: 768px): Force View Post and Mark Read in a ROW */
@media (max-width: 768px) {
  .notif-footer-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .notif-btn-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-left: 0 !important;
  }

  .btn-notif-view,
  .btn-notif-mark {
    flex: 1 !important;
    width: 50% !important;
    min-width: 0 !important;
    padding: 7px 10px !important;
    font-size: 0.78rem !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
}

/* Restrict Stats Ribbon to Standard Container Width (1280px Centered) */
.stats-container {
  max-width: 1280px !important;
  width: 100% !important;
  margin: 40px auto !important;
  padding: 0 1.5rem !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   Stunning & High-Converting Voluntary Donation & Fund Page System
   ========================================================================== */
.donation-page-wrapper {
  max-width: 1280px;
  width: 100%;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.donation-hero-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.donation-hero-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.35) 0%, rgba(220, 38, 38, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.donation-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.donation-hero-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1rem;
  max-width: 820px;
}

.donation-hero-title span {
  color: #ef4444;
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.donation-hero-subtitle {
  font-size: 1.08rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 2rem;
}

.donation-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.donation-stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.donation-stat-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: #38bdf8;
  margin-bottom: 4px;
}

.donation-stat-lbl {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

.mfs-section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.mfs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.mfs-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mfs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.mfs-card.bkash { border-color: rgba(226, 19, 110, 0.25); }
.mfs-card.bkash:hover { border-color: #e2136e; box-shadow: 0 12px 30px rgba(226, 19, 110, 0.18); }

.mfs-card.nagad { border-color: rgba(247, 148, 29, 0.25); }
.mfs-card.nagad:hover { border-color: #f7941d; box-shadow: 0 12px 30px rgba(247, 148, 29, 0.18); }

.mfs-card.rocket { border-color: rgba(140, 52, 148, 0.25); }
.mfs-card.rocket:hover { border-color: #8c3494; box-shadow: 0 12px 30px rgba(140, 52, 148, 0.18); }

.mfs-card.upay { border-color: rgba(0, 85, 165, 0.25); }
.mfs-card.upay:hover { border-color: #0055a5; box-shadow: 0 12px 30px rgba(0, 85, 165, 0.18); }

.mfs-logo-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.mfs-logo-badge.bkash { background: #fdf2f7; color: #e2136e; }
.mfs-logo-badge.nagad { background: #fff8f0; color: #f7941d; }
.mfs-logo-badge.rocket { background: #fbf5fc; color: #8c3494; }
.mfs-logo-badge.upay { background: #f0f7ff; color: #0055a5; }

.mfs-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.mfs-type-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.mfs-num-display {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  padding: 8px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  width: 100%;
  box-sizing: border-box;
}

.btn-mfs-copy {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  color: #ffffff;
}

.btn-mfs-copy.bkash { background: #e2136e; }
.btn-mfs-copy.bkash:hover { background: #c20e5c; box-shadow: 0 4px 12px rgba(226, 19, 110, 0.3); }

.btn-mfs-copy.nagad { background: #f7941d; }
.btn-mfs-copy.nagad:hover { background: #d97d10; box-shadow: 0 4px 12px rgba(247, 148, 29, 0.3); }

.btn-mfs-copy.rocket { background: #8c3494; }
.btn-mfs-copy.rocket:hover { background: #722778; box-shadow: 0 4px 12px rgba(140, 52, 148, 0.3); }

.btn-mfs-copy.upay { background: #0055a5; }
.btn-mfs-copy.upay:hover { background: #00407d; box-shadow: 0 4px 12px rgba(0, 85, 165, 0.3); }

.bank-card-container {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.25rem;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  margin-bottom: 2.5rem;
}

.bank-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.bank-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.bank-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.bank-item-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}

.bank-item-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bank-item-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-copy-sm {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #2563eb;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-sm:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.donation-impact-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border-radius: 20px;
  padding: 2.25rem;
  border: 1.5px solid #bfdbfe;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.impact-img-wrap {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.impact-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 992px) {
  .mfs-grid { grid-template-columns: repeat(2, 1fr); }
  .donation-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .donation-impact-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .donation-hero-card { padding: 2rem 1.25rem !important; }
  .donation-hero-title { font-size: 1.75rem !important; }
  .mfs-grid { grid-template-columns: 1fr !important; }
  .bank-details-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .bank-item-box { grid-column: span 1 !important; width: 100% !important; box-sizing: border-box !important; }
  .donation-stats-strip { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}

.btn-whatsapp-direct {
  background: #ffffff !important;
  color: #047857 !important;
  font-weight: 800 !important;
  padding: 0.85rem 1.75rem !important;
  border-radius: 30px !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
}

.btn-whatsapp-direct:hover {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Footer Social Icons & Interactive Buttons */
.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.05rem;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

.footer-social-btn:hover,
.footer-social-btn.facebook:hover,
.footer-social-btn.instagram:hover,
.footer-social-btn.youtube:hover,
.footer-social-btn.linkedin:hover,
.footer-social-btn.whatsapp:hover,
.footer-social-btn.twitter:hover,
.footer-social-btn.x-twitter:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.06) !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45) !important;
}

.footer-social-btn:active,
.footer-social-btn.facebook:active,
.footer-social-btn.instagram:active,
.footer-social-btn.youtube:active,
.footer-social-btn.linkedin:active,
.footer-social-btn.whatsapp:active,
.footer-social-btn.twitter:active,
.footer-social-btn.x-twitter:active {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.35) !important;
}

/* Reviews Page Statistics Responsive Grid */
.reviews-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.25rem !important;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .reviews-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  .reviews-stat-card {
    padding: 1rem 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
}

/* Requisition Detail Popup Modal 100% Full-Width Containers on Mobile */
.req-detail-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 0.9rem !important;
  margin-bottom: 1.25rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.req-detail-grid > div {
  width: 100% !important;
  box-sizing: border-box !important;
}

.req-detail-location-box {
  width: 100% !important;
  box-sizing: border-box !important;
}

.req-detail-footer-actions {
  display: flex !important;
  gap: 10px !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .req-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .req-detail-footer-actions {
    flex-direction: column !important;
    width: 100% !important;
  }

  .req-detail-footer-actions button,
  .req-detail-footer-actions a {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Modern Soft Glassmorphism Donor Card & Single-Line Action Buttons
   ========================================================================== */
.donor-soft-card {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  border-radius: 20px !important;
  padding: 1.4rem !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 4px 10px -2px rgba(15, 23, 42, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.donor-soft-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.35), rgba(16, 185, 129, 0.35));
  opacity: 0.85;
}

.donor-soft-card:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(244, 63, 94, 0.25) !important;
  box-shadow: 0 18px 35px -8px rgba(15, 23, 42, 0.08), 0 6px 14px rgba(244, 63, 94, 0.06) !important;
  transform: translateY(-3px) !important;
}

.donor-btn-call {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0.72rem 0.9rem !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  background: rgba(239, 68, 68, 0.08) !important;
  color: #e11d48 !important;
  border: 1px solid rgba(239, 68, 68, 0.22) !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.donor-btn-call:hover {
  background: rgba(239, 68, 68, 0.9) !important;
  color: #ffffff !important;
  border-color: rgba(239, 68, 68, 0.9) !important;
  box-shadow: 0 6px 18px -2px rgba(239, 68, 68, 0.3) !important;
  transform: translateY(-2px) !important;
}

.donor-btn-wa {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0.72rem 0.9rem !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  background: rgba(16, 185, 129, 0.08) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.donor-btn-wa:hover {
  background: rgba(16, 185, 129, 0.9) !important;
  color: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.9) !important;
  box-shadow: 0 6px 18px -2px rgba(16, 185, 129, 0.3) !important;
  transform: translateY(-2px) !important;
}

.matches-page-wrapper {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.matched-donors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .matches-page-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.75rem auto 2rem !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

  .matched-donors-grid {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    box-sizing: border-box !important;
  }

  .donor-soft-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    padding: 1.15rem 1rem !important;
    border-radius: 18px !important;
  }

  .matches-header-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    padding: 1.25rem 1rem !important;
  }
}

@media (max-width: 480px) {
  .matches-page-wrapper {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .donor-soft-card {
    padding: 1rem 0.85rem !important;
    border-radius: 16px !important;
  }
}

.donor-btn-locked-login {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0.68rem 0.6rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  background: rgba(245, 158, 11, 0.1) !important;
  color: #b45309 !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.donor-btn-locked-login:hover {
  background: rgba(245, 158, 11, 0.9) !important;
  color: #ffffff !important;
  border-color: rgba(245, 158, 11, 0.9) !important;
  box-shadow: 0 6px 18px -2px rgba(245, 158, 11, 0.3) !important;
  transform: translateY(-2px) !important;
}

.donor-btn-locked-support {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0.68rem 0.6rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  background: rgba(239, 68, 68, 0.08) !important;
  color: #e11d48 !important;
  border: 1px solid rgba(239, 68, 68, 0.22) !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.donor-btn-locked-support:hover {
  background: rgba(239, 68, 68, 0.9) !important;
  color: #ffffff !important;
  border-color: rgba(239, 68, 68, 0.9) !important;
  box-shadow: 0 6px 18px -2px rgba(239, 68, 68, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   Admin Studio - Advanced Reports & Complaints Management System
   ========================================================================== */
.rep-kpi-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.rep-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.rep-kpi-card.active {
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.rep-kpi-card.kpi-all.active {
  border-color: #3b82f6 !important;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
}

.rep-kpi-card.kpi-pending.active {
  border-color: #ef4444 !important;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%) !important;
}

.rep-kpi-card.kpi-investigating.active {
  border-color: #f59e0b !important;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%) !important;
}

.rep-kpi-card.kpi-resolved.active {
  border-color: #10b981 !important;
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%) !important;
}

.rep-kpi-card.kpi-dismissed.active {
  border-color: #64748b !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
}

.rep-kpi-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  margin-left: 6px;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
  animation: repPulse 1.6s infinite;
}

@keyframes repPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.rep-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  position: relative;
}

.rep-card:hover {
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.08);
}

.rep-card.status-pending {
  border-left: 5px solid #ef4444;
}

.rep-card.status-under-investigation {
  border-left: 5px solid #f59e0b;
}

.rep-card.status-resolved {
  border-left: 5px solid #10b981;
}

.rep-card.status-dismissed {
  border-left: 5px solid #64748b;
}

.rep-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.rep-action-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.rep-proof-thumb {
  position: relative;
  width: 100px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rep-proof-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: #ef4444;
}

.rep-proof-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rep-proof-thumb:hover img {
  transform: scale(1.08);
}

.rep-proof-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rep-proof-thumb:hover .rep-proof-overlay {
  opacity: 1;
}

/* Reports Filter Toolbar Elements (Vertical Clipping Fix & Responsive Layout) */
.rep-filter-toolbar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.rep-filter-inputs-group {
  display: flex;
  gap: 10px;
  flex: 1 1 520px;
  flex-wrap: wrap;
  align-items: center;
}

.rep-filter-search-wrapper {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
}

.rep-search-input {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  line-height: normal !important;
  padding: 8px 34px 8px 36px !important;
  font-size: 0.88rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  color: #0f172a !important;
}

.rep-search-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
  outline: none !important;
}

.rep-filter-select {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  line-height: normal !important;
  padding: 6px 32px 6px 12px !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  width: auto !important;
  flex: 0 0 auto !important;
  cursor: pointer !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.rep-filter-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
  outline: none !important;
}

@media (max-width: 820px) {
  .rep-filter-inputs-group {
    flex-direction: column !important;
    width: 100% !important;
    align-items: stretch !important;
  }
  
  .rep-filter-search-wrapper,
  .rep-filter-select {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }
}

/* ==========================================================================
   Admin Reviews Moderation Tab Styling & Interactive Controls
   ========================================================================== */
.rev-stat-tile {
  cursor: pointer;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  user-select: none;
}

.rev-stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.rev-stat-tile.active-rev-filter {
  border-color: var(--primary) !important;
  background: #f0fdf4 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

@keyframes revPulseAnim {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}

.rev-tile-pending-pulse {
  animation: revPulseAnim 2.5s infinite;
}

.review-admin-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 1.25rem 1.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.review-admin-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.review-admin-card.is-pending {
  border-left: 5px solid #f59e0b;
  background: #fffdf7;
}

.review-admin-card.is-approved {
  border-left: 5px solid #10b981;
}

.review-admin-card.is-rejected {
  border-left: 5px solid #ef4444;
  opacity: 0.85;
}

.rev-preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.rev-preset-chip:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.rev-preset-chip:active {
  transform: translateY(0);
}

/* ==========================================================================
   Public Reviews Page (/reviews) - Mobile Friendly & 100% Width Counter Containers
   ========================================================================== */
.reviews-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.reviews-stat-card {
  background: #ffffff;
  padding: 1.25rem 1rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.reviews-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.reviews-stat-card .stat-stars {
  color: #f59e0b;
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

.reviews-stat-card .stat-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 6px;
}

.reviews-stat-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0 0;
  line-height: 1.1;
}

.reviews-stat-card h3 span {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
}

.reviews-stat-card .stat-label {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Tablet ("Tab View") & Mobile View Responsiveness for Counter Containers */
@media (max-width: 991px) {
  .reviews-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 100% !important;
    width: 100% !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .reviews-stat-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.15rem 1rem !important;
    box-sizing: border-box !important;
  }

  .reviews-main-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .reviews-form-col {
    order: 2 !important;
    width: 100% !important;
  }

  .reviews-list-col {
    order: 1 !important;
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  .reviews-stats-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
  }

  .reviews-stat-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    text-align: left !important;
  }

  .reviews-stat-card .stat-left-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .reviews-stat-card h3 {
    font-size: 1.5rem !important;
    margin: 0 !important;
  }

  .reviews-filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .reviews-filter-tabs {
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .public-rev-card {
    padding: 1.15rem 1rem !important;
  }
}

/* Public Review Cards & Interactive Components */
.reviews-filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}

.reviews-filter-chip:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.reviews-filter-chip.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
}

.public-rev-card {
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.public-rev-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.rev-public-admin-reply {
  margin-top: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #10b981;
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

/* ==========================================================================
   Modern & Organized Gallery UI System
   ========================================================================== */
.gallery-page-container {
  max-width: 1320px;
  margin: 1.5rem auto 4rem;
  padding: 0 1.5rem;
}

/* Hero section */
.gallery-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.08);
  position: relative;
  overflow: hidden;
}

.gallery-hero-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.gallery-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.75rem;
  position: relative;
  z-index: 2;
}

.gallery-hero-content {
  max-width: 820px;
}

.gallery-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.gallery-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 12px 0 8px 0;
  line-height: 1.25;
}

.gallery-hero-subtitle {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.gallery-stats-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gallery-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.gallery-stat-pill.pill-primary {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.gallery-stat-pill.pill-video {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* Control Toolbar & Filters */
.gallery-control-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-sizing: border-box;
  width: 100%;
}

.gallery-toolbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

/* Modern Tab Switcher */
.gallery-type-tabs {
  display: inline-flex;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 14px;
  gap: 4px;
  max-width: 100%;
  box-sizing: border-box;
}

.gallery-tab-btn {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.gallery-tab-btn:hover {
  color: #0f172a;
}

.gallery-tab-btn.active {
  background: #ffffff;
  color: #059669;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-tab-btn.active.tab-video {
  color: #dc2626;
}

/* Search input */
.gallery-search-wrap {
  position: relative;
  min-width: 260px;
  max-width: 420px;
  flex: 1;
  box-sizing: border-box;
}

.gallery-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

.gallery-search-input {
  width: 100%;
  padding: 10px 38px 10px 38px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.gallery-search-input:focus {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.gallery-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  display: none;
}

.gallery-search-clear:hover {
  color: #ef4444;
}

/* Category Filter & Header */
.gallery-category-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  width: 100%;
}

.gallery-cat-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.gallery-cat-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-count-indicator {
  font-size: 0.82rem;
  color: #059669;
  font-weight: 700;
  background: #ecfdf5;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
}

.gallery-cat-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.gallery-cat-pill {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.gallery-cat-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.gallery-cat-pill.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}
  color: #64748b;
  font-weight: 600;
}

/* Section Dividers */
.gallery-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gallery-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

/* Cards Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Photo Card */
.gallery-photo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.gallery-photo-card:hover {
  transform: translateY(-6px);
  border-color: #93c5fd;
  box-shadow: 0 20px 30px -10px rgba(59, 130, 246, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
}

.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  background: #0f172a;
  overflow: hidden;
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-photo-card:hover .gallery-thumb-img {
  transform: scale(1.06);
}

.gallery-badge-top-left {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.gallery-badge-top-right {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 2;
}

.gallery-thumb-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.gallery-photo-card:hover .gallery-thumb-hover-overlay {
  opacity: 1;
}

.gallery-hover-action-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 9999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.gallery-photo-card:hover .gallery-hover-action-btn {
  transform: translateY(0);
}

.gallery-photo-body {
  padding: 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-item-title {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 6px 0;
}

.gallery-item-desc {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.82rem;
  color: #64748b;
}

.gallery-click-hint {
  color: #059669;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Video Card */
.gallery-video-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.gallery-video-card:hover {
  transform: translateY(-6px);
  border-color: #fca5a5;
  box-shadow: 0 20px 30px -10px rgba(239, 68, 68, 0.15), 0 8px 16px rgba(0, 0, 0, 0.06);
}

.gallery-video-player-box {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000000;
  overflow: hidden;
}

.gallery-video-player-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-video-poster:hover .gallery-play-btn {
  transform: translate(-50%, -50%) scale(1.15) !important;
  background: #dc2626 !important;
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.7) !important;
}

.gallery-video-body {
  padding: 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Empty State */
.gallery-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: 24px;
  border: 2px dashed #cbd5e1;
  color: #64748b;
}

.gallery-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .gallery-page-container {
    padding: 0 1rem;
    margin: 1rem auto 3rem;
  }
  .gallery-hero-card {
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
    margin-bottom: 1.5rem;
  }
  .gallery-hero-title {
    font-size: 1.65rem;
  }
  .gallery-stats-group {
    width: 100%;
    gap: 0.5rem;
  }
  .gallery-stat-pill {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.82rem;
    padding: 6px 10px;
  }
  .gallery-control-panel {
    padding: 1rem 0.85rem;
    border-radius: 18px;
    gap: 0.95rem;
    margin-bottom: 2rem;
  }
  .gallery-toolbar-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }
  .gallery-type-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    box-sizing: border-box;
    padding: 4px;
    gap: 3px;
    border-radius: 12px;
  }
  .gallery-tab-btn {
    width: 100%;
    padding: 8px 3px;
    font-size: 0.8rem;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
  }
  .gallery-tab-text {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gallery-search-wrap {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .gallery-search-input {
    width: 100%;
    font-size: 0.86rem;
    padding: 9px 34px 9px 36px;
  }
  .gallery-category-bar {
    padding-top: 0.75rem;
    gap: 8px;
  }
  .gallery-cat-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .gallery-cat-label {
    font-size: 0.78rem;
  }
  .gallery-count-indicator {
    font-size: 0.76rem;
    padding: 2px 8px;
  }
  .gallery-cat-pills-row {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    gap: 6px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .gallery-cat-pills-row::-webkit-scrollbar {
    height: 4px;
  }
  .gallery-cat-pills-row::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }
  .gallery-cat-pill {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 5px 12px;
  }
  .gallery-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .gallery-section-title {
    font-size: 1.25rem;
  }
  .gallery-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 1.25rem !important;
    margin-bottom: 2.5rem !important;
    box-sizing: border-box !important;
  }
  .gallery-photo-card,
  .gallery-video-card,
  .gallery-item-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .gallery-thumb-wrap {
    width: 100% !important;
    height: 220px !important;
    box-sizing: border-box !important;
  }
  .gallery-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .gallery-video-player-box {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .gallery-close-btn {
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .lightbox-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .lightbox-prev-btn { left: 10px; }
  .lightbox-next-btn { right: 10px; }
}

@media (max-width: 480px) {
  .gallery-page-container {
    padding: 0 0.35rem;
  }
  .gallery-hero-card {
    padding: 1.25rem 0.85rem;
  }
  .gallery-hero-title {
    font-size: 1.4rem;
  }
  .gallery-control-panel {
    padding: 0.85rem 0.6rem;
  }
  .gallery-tab-btn {
    font-size: 0.74rem;
    padding: 7px 2px;
  }
  .gallery-tab-btn i {
    font-size: 0.78rem;
  }
  .gallery-tab-text {
    font-size: 0.74rem;
  }
  .gallery-search-input {
    font-size: 0.82rem;
    padding: 8px 30px 8px 32px;
  }
  .gallery-search-icon {
    left: 10px;
    font-size: 0.85rem;
  }
  .gallery-photo-card,
  .gallery-video-card {
    border-radius: 16px;
    width: 100% !important;
  }
  .gallery-thumb-wrap {
    height: 200px !important;
  }
}

/* ==========================================================================
   Public Organizations Cards System (Shared & Device-Friendly)
   ========================================================================== */
.public-org-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 4px rgba(15, 23, 42, 0.02);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.public-org-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #cbd5e1;
  transition: height 0.2s ease;
}

.public-org-card.theme-healthcare::before {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.public-org-card.theme-humanitarian::before {
  background: linear-gradient(90deg, #059669, #10b981);
}

.public-org-card.theme-blood::before {
  background: linear-gradient(90deg, #e11d48, #f43f5e);
}

.public-org-card.theme-student::before {
  background: linear-gradient(90deg, #7c3aed, #8b5cf6);
}

.public-org-card.theme-sponsor::before {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.public-org-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.public-org-card:hover::before {
  height: 5px;
}

.org-card-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.org-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.15rem;
}

.org-logo-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
  overflow: hidden;
}

.org-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.org-logo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.org-logo-fallback.theme-healthcare {
  background: #eff6ff;
  color: #2563eb;
}

.org-logo-fallback.theme-humanitarian {
  background: #ecfdf5;
  color: #059669;
}

.org-logo-fallback.theme-blood {
  background: #fff1f2;
  color: #e11d48;
}

.org-logo-fallback.theme-student {
  background: #faf5ff;
  color: #7c3aed;
}

.org-logo-fallback.theme-sponsor {
  background: #fffbeb;
  color: #d97706;
}

.org-logo-fallback.theme-default {
  background: #f1f5f9;
  color: #475569;
}

.org-meta-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.org-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
}

.org-category-badge.theme-healthcare {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.org-category-badge.theme-humanitarian {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.org-category-badge.theme-blood {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.org-category-badge.theme-student {
  background: #faf5ff;
  color: #6d28d9;
  border: 1px solid #e9d5ff;
}

.org-category-badge.theme-sponsor {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.org-category-badge.theme-default {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.org-est-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 20px;
}

.org-identity-section {
  margin-bottom: 0.85rem;
}

.org-card-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
}

.org-card-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.org-card-location i {
  color: #ef4444;
  font-size: 0.85rem;
}

.org-card-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
}

.org-contact-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.org-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.org-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.org-contact-icon.icon-phone {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
}

.org-contact-icon.icon-email {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.org-contact-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.org-contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.org-contact-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.org-contact-link:hover {
  color: #059669;
  text-decoration: underline;
}

.org-phone-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.2px;
  color: #047857;
}

.org-quick-dial-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.org-quick-dial-btn:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  transform: scale(1.05);
}

.org-card-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: center !important;
  gap: 10px !important;
  padding-top: 1rem !important;
  margin-top: auto !important;
  border-top: 1px solid #f1f5f9 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.org-card-actions > .org-action-btn:only-child {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.org-action-btn {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border-radius: 12px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.btn-website {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.btn-website:hover {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #2563eb !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12) !important;
}

.btn-website i {
  font-size: 0.82rem !important;
  color: #3b82f6 !important;
  transition: transform 0.2s ease !important;
}

.btn-website:hover i {
  color: #1d4ed8 !important;
  transform: translate(1px, -1px) !important;
}

.btn-call-desk {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border: 1.5px solid transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
}

.btn-call-desk:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35) !important;
}

.btn-call-desk i {
  font-size: 0.82rem !important;
  color: #ffffff !important;
}

.btn-verified-badge {
  background: #f8fafc !important;
  border: 1.5px dashed #cbd5e1 !important;
  color: #64748b !important;
  cursor: default !important;
  font-size: 0.82rem !important;
}

.btn-verified-badge i {
  color: #059669 !important;
}

/* ==========================================================================
   Home Dynamic Loop Sections & Card Grids (100% Mobile Responsive)
   ========================================================================== */
.home-loop-section {
  max-width: 1280px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.home-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.public-org-card {
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 820px) {
  .home-loop-section {
    padding: 0 1rem !important;
    margin-bottom: 2.75rem !important;
    width: 100% !important;
  }
  .home-section-header {
    margin-bottom: 1.25rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .home-section-header .btn-outline {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .home-cards-grid,
  .organizations-cards-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 1.25rem !important;
  }
  .public-org-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1.25rem 1rem !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }
  .org-card-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .org-action-btn {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    font-size: clamp(0.78rem, 3.2vw, 0.86rem) !important;
    padding: 0 6px !important;
  }
  .public-rev-card {
    padding: 1.25rem !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .home-loop-section {
    padding: 0 0.85rem !important;
  }
  .public-org-card {
    padding: 1rem 0.9rem !important;
  }
  .org-card-name {
    font-size: 1.1rem !important;
  }
  .org-card-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .org-action-btn {
    height: 40px !important;
    min-height: 40px !important;
    font-size: 0.78rem !important;
    padding: 0 4px !important;
    gap: 4px !important;
    border-radius: 10px !important;
  }
  .public-rev-card {
    padding: 1rem !important;
  }
  .event-card-content {
    padding: 16px 12px !important;
  }
  .event-card-title {
    font-size: 1.15rem !important;
  }
  .event-meta-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }
}


