/* ============================================================
   FoundationHub CRM — Frontend Dashboard CSS  v3.0
   Step 2Gether brand: Pink #e91e8c | Navy #0f172a | Indigo #4f46e5
   Premium modern design — no hyperlink underlines in nav
   ============================================================ */

/* Google Fonts import for Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  /* Brand */
  --fhd-primary:        #e91e8c;
  --fhd-primary-dark:   #c41079;
  --fhd-primary-light:  rgba(233,30,140,.10);
  --fhd-indigo:         #4f46e5;
  --fhd-violet:         #7c3aed;
  --fhd-teal:           #0891b2;
  --fhd-emerald:        #059669;
  --fhd-amber:          #d97706;
  --fhd-donate:         #e91e8c;

  /* Neutrals */
  --fhd-navy:           #0f172a;
  --fhd-navy-light:     #1e293b;
  --fhd-text:           #1e293b;
  --fhd-text-muted:     #64748b;
  --fhd-text-light:     #94a3b8;
  --fhd-bg:             #f1f5f9;
  --fhd-surface:        #f8fafc;
  --fhd-card-bg:        #ffffff;
  --fhd-border:         #e2e8f0;
  --fhd-border-light:   #f1f5f9;

  /* Shapes */
  --fhd-radius:         14px;
  --fhd-radius-sm:      8px;
  --fhd-radius-lg:      20px;

  /* Shadows */
  --fhd-shadow-xs:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --fhd-shadow:         0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  --fhd-shadow-md:      0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  --fhd-shadow-pink:    0 8px 32px rgba(233,30,140,.18);
  --fhd-shadow-indigo:  0 8px 32px rgba(79,70,229,.18);

  /* Transitions */
  --fhd-transition:     all .2s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   Base
   ============================================================ */
.fhd-wrap {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--fhd-text);
  width: 100%;
  padding: 24px 20px;
  -webkit-font-smoothing: antialiased;
}

.fhd-wrap *,
.fhd-wrap *::before,
.fhd-wrap *::after { box-sizing: border-box; }

/* ============================================================
   Cards
   ============================================================ */
.fhd-card {
  background: var(--fhd-card-bg);
  border-radius: var(--fhd-radius);
  box-shadow: var(--fhd-shadow);
  padding: 30px 34px;
  margin-bottom: 24px;
  border: 1px solid var(--fhd-border);
}

/* ============================================================
   Auth pages
   ============================================================ */
.fhd-auth-card {
  max-width: 480px;
  margin: 0 auto;
}

.fhd-auth-header {
  text-align: center;
  padding: 32px 32px 26px;
  margin: -30px -34px 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #4f46e5 100%);
  border-radius: var(--fhd-radius) var(--fhd-radius) 0 0;
  position: relative;
  overflow: hidden;
}

.fhd-auth-header::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(233,30,140,.25);
}

.fhd-auth-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  position: relative;
}

.fhd-auth-header p {
  color: rgba(255,255,255,.75);
  margin: 0;
  font-size: 14px;
  position: relative;
}

.fhd-auth-links {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--fhd-text-muted);
}

.fhd-auth-links a {
  color: var(--fhd-primary);
  text-decoration: none;
  font-weight: 700;
}

.fhd-auth-links a:hover { text-decoration: none; opacity: .85; }
.fhd-auth-links span { margin: 0 6px; }

/* ============================================================
   Forms
   ============================================================ */
.fhd-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fhd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fhd-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fhd-text);
  letter-spacing: .01em;
}

.fhd-field input,
.fhd-field select,
.fhd-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--fhd-border);
  border-radius: var(--fhd-radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--fhd-text);
  background: var(--fhd-surface);
  box-sizing: border-box;
  transition: var(--fhd-transition);
}

.fhd-field input:focus,
.fhd-field select:focus,
.fhd-field textarea:focus {
  outline: none;
  border-color: var(--fhd-indigo);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.fhd-readonly {
  background: #f1f5f9 !important;
  color: var(--fhd-text-muted) !important;
  cursor: default;
}

/* ============================================================
   Buttons
   ============================================================ */
.fhd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--fhd-radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--fhd-transition);
  line-height: 1.4;
  letter-spacing: .01em;
  white-space: nowrap;
}

.fhd-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.fhd-btn-primary {
  background: linear-gradient(135deg, #e91e8c 0%, #c41079 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(233,30,140,.35);
}

.fhd-btn-primary:hover {
  background: linear-gradient(135deg, #f02d9b 0%, #d41585 100%);
  color: #fff;
  box-shadow: var(--fhd-shadow-pink);
}

.fhd-btn-secondary {
  background: var(--fhd-surface);
  color: var(--fhd-text);
  border: 1.5px solid var(--fhd-border);
}

.fhd-btn-secondary:hover {
  background: #fff;
  border-color: var(--fhd-indigo);
  color: var(--fhd-indigo);
}

.fhd-btn-donate {
  background: linear-gradient(135deg, #e91e8c 0%, #c41079 100%);
  color: #fff;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--fhd-radius);
  box-shadow: var(--fhd-shadow-pink);
  font-weight: 700;
}

.fhd-btn-donate:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(233,30,140,.35);
}

.fhd-btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 6px;
}

.fhd-btn-full { width: 100%; }

.fhd-btn-download {
  background: var(--fhd-navy);
  color: #fff;
}

.fhd-btn-download:hover {
  background: var(--fhd-primary);
  color: #fff;
}

.fhd-btn-indigo {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: var(--fhd-shadow-indigo);
}

.fhd-btn-indigo:hover { color: #fff; opacity: .92; }

/* ============================================================
   Alerts / Flash messages
   ============================================================ */
.fhd-alert {
  padding: 14px 18px;
  border-radius: var(--fhd-radius-sm);
  margin-bottom: 18px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}

.fhd-alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--fhd-emerald);
}

.fhd-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
}

.fhd-alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--fhd-amber);
}

/* ============================================================
   Dashboard Layout — 2-column grid
   ============================================================ */
.fhd-dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  padding-top: 8px;
}

/* ============================================================
   Sidebar Navigation
   ============================================================ */
.fhd-dash-nav {
  background: var(--fhd-navy);
  border-radius: var(--fhd-radius);
  box-shadow: var(--fhd-shadow-md);
  overflow: hidden;
  position: sticky;
  top: 84px;
  border: 1px solid rgba(255,255,255,.05);
}

/* User Header */
.fhd-dash-user {
  padding: 22px 18px 20px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 60%, #1a0830 100%);
  position: relative;
  overflow: hidden;
}

.fhd-dash-user::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(233,30,140,.15);
}

.fhd-dash-user::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 40px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(79,70,229,.12);
}

.fhd-dash-user-inner {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
}

.fhd-user-avatar {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #e91e8c, #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(233,30,140,.4);
  border: 2px solid rgba(255,255,255,.15);
}

.fhd-dash-user strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.fhd-dash-user small {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  letter-spacing: .02em;
}

/* Role pill */
.fhd-role-pill {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 9px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(233,30,140,.25);
  color: #ffb3d9;
  border: 1px solid rgba(233,30,140,.3);
}

/* Nav Items — NO hyperlink underlines */
.fhd-dash-menu {
  display: flex;
  flex-direction: column;
  padding: 10px 10px;
  gap: 2px;
}

.fhd-dash-menu a {
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  text-decoration: none !important;
  border-radius: var(--fhd-radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--fhd-transition);
  border: 1px solid transparent;
  outline: none;
}

.fhd-dash-menu a:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.06);
  text-decoration: none !important;
}

.fhd-dash-menu a.fhd-active {
  background: linear-gradient(135deg, rgba(233,30,140,.2) 0%, rgba(124,58,237,.15) 100%);
  color: #fff;
  font-weight: 700;
  border-color: rgba(233,30,140,.25);
  box-shadow: inset 0 0 0 1px rgba(233,30,140,.15);
}

.fhd-dash-menu a.fhd-active .fhd-nav-dot {
  background: var(--fhd-primary);
  box-shadow: 0 0 6px rgba(233,30,140,.6);
}

/* Navigation dot indicator */
.fhd-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
  margin-left: auto;
  transition: var(--fhd-transition);
}

/* Nav section divider */
.fhd-nav-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 6px 0;
}

/* Logout link */
.fhd-nav-logout {
  color: rgba(233,30,140,.7) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 9px 13px !important;
  margin-top: 2px;
  border-top: 1px solid rgba(255,255,255,.05) !important;
  border-radius: 0 0 6px 6px !important;
}

.fhd-nav-logout:hover {
  color: var(--fhd-primary) !important;
  background: rgba(233,30,140,.08) !important;
}

/* ============================================================
   Main Content Area
   ============================================================ */
.fhd-dashboard-content {
  background: var(--fhd-card-bg);
  border-radius: var(--fhd-radius);
  box-shadow: var(--fhd-shadow);
  padding: 32px 36px;
  min-height: 460px;
  border: 1px solid var(--fhd-border);
}

.fhd-dashboard-content h2 {
  margin-top: 0;
  color: var(--fhd-text);
  font-size: 21px;
  font-weight: 800;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fhd-border-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fhd-dashboard-content h2 .fhd-h2-bar {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(to bottom, var(--fhd-primary), var(--fhd-violet));
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================================
   Welcome Banner
   ============================================================ */
.fhd-welcome-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
  border-radius: var(--fhd-radius);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.fhd-welcome-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(233,30,140,.15);
}

.fhd-welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -30px; right: 80px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(79,70,229,.1);
}

.fhd-welcome-text { position: relative; }
.fhd-welcome-text h3 { margin: 0 0 4px; color: #fff; font-size: 18px; font-weight: 800; }
.fhd-welcome-text p  { margin: 0; color: rgba(255,255,255,.65); font-size: 13px; }

/* ============================================================
   Stat Cards
   ============================================================ */
.fhd-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.fhd-stat-card {
  background: #fff;
  border-radius: var(--fhd-radius);
  padding: 22px 20px;
  box-shadow: var(--fhd-shadow-xs);
  border: 1px solid var(--fhd-border);
  transition: var(--fhd-transition);
  position: relative;
  overflow: hidden;
}

.fhd-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fhd-primary), var(--fhd-violet));
  border-radius: 14px 14px 0 0;
}

.fhd-stat-card:nth-child(2)::before { background: linear-gradient(90deg, var(--fhd-indigo), var(--fhd-teal)); }
.fhd-stat-card:nth-child(3)::before { background: linear-gradient(90deg, var(--fhd-emerald), var(--fhd-teal)); }
.fhd-stat-card:nth-child(4)::before { background: linear-gradient(90deg, var(--fhd-amber), #f59e0b); }

.fhd-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fhd-shadow-md);
  border-color: transparent;
}

.fhd-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  background: var(--fhd-primary-light);
}

.fhd-stat-card:nth-child(2) .fhd-stat-icon { background: rgba(79,70,229,.1); }
.fhd-stat-card:nth-child(3) .fhd-stat-icon { background: rgba(5,150,105,.1); }
.fhd-stat-card:nth-child(4) .fhd-stat-icon { background: rgba(217,119,6,.1); }

.fhd-stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--fhd-text);
  margin-bottom: 4px;
  line-height: 1;
  letter-spacing: -.02em;
}

.fhd-stat-label {
  font-size: 12px;
  color: var(--fhd-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ============================================================
   Tables
   ============================================================ */
.fhd-table-wrap {
  overflow-x: auto;
  border-radius: var(--fhd-radius-sm);
  border: 1px solid var(--fhd-border);
}

.fhd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.fhd-table thead { background: var(--fhd-surface); }

.fhd-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fhd-text-muted);
  border-bottom: 1px solid var(--fhd-border);
  white-space: nowrap;
}

.fhd-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--fhd-border-light);
  color: var(--fhd-text);
  vertical-align: middle;
}

.fhd-table tbody tr:last-child td { border-bottom: none; }

.fhd-table tbody tr:hover td {
  background: #f8faff;
}

/* ============================================================
   Certificate Grid
   ============================================================ */
.fhd-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.fhd-cert-card {
  background: linear-gradient(145deg, #fdf8ff 0%, #f0f4ff 100%);
  border: 1px solid rgba(79,70,229,.15);
  border-radius: var(--fhd-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  transition: var(--fhd-transition);
  position: relative;
  overflow: hidden;
}

.fhd-cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fhd-indigo), var(--fhd-violet));
  border-radius: 14px 14px 0 0;
}

.fhd-cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--fhd-shadow-indigo);
  border-color: rgba(79,70,229,.3);
}

.fhd-cert-icon { font-size: 34px; }
.fhd-cert-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fhd-cert-info strong { font-size: 14px; font-weight: 700; color: var(--fhd-text); }
.fhd-cert-info span   { font-size: 12px; color: var(--fhd-text-muted); }

/* ============================================================
   Quick Links
   ============================================================ */
.fhd-quick-links { margin-top: 24px; }

.fhd-quick-links h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--fhd-text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.fhd-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.fhd-quick-link-card {
  background: var(--fhd-surface);
  border: 1px solid var(--fhd-border);
  border-radius: var(--fhd-radius-sm);
  padding: 14px 16px;
  text-decoration: none !important;
  color: var(--fhd-text);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--fhd-transition);
}

.fhd-quick-link-card:hover {
  background: #fff;
  border-color: var(--fhd-primary);
  box-shadow: 0 4px 12px rgba(233,30,140,.1);
  transform: translateY(-2px);
  color: var(--fhd-text);
  text-decoration: none !important;
}

.fhd-quick-link-icon { font-size: 22px; }
.fhd-quick-link-label { font-size: 12px; font-weight: 600; }

/* ============================================================
   Donation quick amounts
   ============================================================ */
.fhd-quick-amounts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}

.fhd-qa-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fhd-text-muted);
}

.fhd-qa-pill {
  padding: 7px 18px;
  border: 2px solid var(--fhd-border);
  border-radius: 50px;
  background: #fff;
  color: var(--fhd-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--fhd-transition);
  text-decoration: none !important;
}

.fhd-qa-pill:hover,
.fhd-qa-pill.fhd-qa-active {
  background: var(--fhd-primary);
  border-color: var(--fhd-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(233,30,140,.3);
  text-decoration: none !important;
}

/* ============================================================
   Donate page
   ============================================================ */
.fhd-donate-wrap .fhd-card { max-width: 560px; margin: 0 auto; }

/* ============================================================
   Badges / Chips
   ============================================================ */
.fh-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.fh-badge-pending  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.fh-badge-approved { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.fh-badge-rejected { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.fh-badge-pink     { background: #fdf2f8; color: #be185d; border: 1px solid rgba(233,30,140,.25); }

/* ============================================================
   Section
   ============================================================ */
.fhd-section { margin-bottom: 32px; }
.fhd-section h2 { margin-top: 0; color: var(--fhd-text); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .fhd-dashboard {
    grid-template-columns: 1fr;
  }

  .fhd-dash-nav {
    position: static;
  }

  .fhd-dash-menu {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 8px;
    gap: 4px;
  }

  .fhd-dash-menu a {
    border-radius: 8px;
    padding: 8px 12px;
    flex: none;
  }

  .fhd-nav-dot { display: none; }

  .fhd-dashboard-content {
    padding: 22px 18px;
  }
}

@media (max-width: 640px) {
  .fhd-wrap { padding: 14px 10px; }
  .fhd-card { padding: 20px 18px; }
  .fhd-stat-row { grid-template-columns: 1fr 1fr; }
  .fhd-cert-grid { grid-template-columns: 1fr; }
  .fhd-welcome-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .fhd-stat-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Event Cards Grid
   ============================================================ */
.fhd-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  margin: 16px 0;
}

.fhd-event-card {
  background: #fff;
  border: 1px solid var(--fhd-border);
  border-radius: var(--fhd-radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--fhd-shadow-xs);
  transition: var(--fhd-transition);
  position: relative;
  overflow: hidden;
}

.fhd-event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fhd-primary), var(--fhd-violet));
}

.fhd-event-card:hover {
  box-shadow: var(--fhd-shadow-pink);
  transform: translateY(-4px);
  border-color: rgba(233,30,140,.15);
}

.fhd-event-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--fhd-primary-light);
  color: var(--fhd-primary);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  align-self: flex-start;
  border: 1px solid rgba(233,30,140,.2);
}

.fhd-event-card h3 {
  margin: 0;
  font-size: 15px;
  color: var(--fhd-text);
  font-weight: 700;
}

.fhd-event-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--fhd-text-muted);
}

.fhd-event-desc {
  font-size: 13px;
  color: var(--fhd-text-muted);
  margin: 0;
  line-height: 1.55;
}

.fhd-event-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--fhd-border-light);
}

/* Register links row on login page */
.fhd-register-links {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--fhd-border);
}

@media (max-width: 640px) {
  .fhd-events-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Social Cause Gallery
   ============================================================ */
.fhd-cause-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 20px;
  margin: 16px 0;
}

.fhd-cause-card {
  background: #fff;
  border: 1px solid var(--fhd-border);
  border-radius: var(--fhd-radius);
  overflow: hidden;
  box-shadow: var(--fhd-shadow-xs);
  transition: var(--fhd-transition);
}

.fhd-cause-card:hover {
  box-shadow: var(--fhd-shadow-md);
  transform: translateY(-4px);
}

.fhd-cause-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
}

.fhd-cause-card-body { padding: 16px 18px; }

.fhd-cause-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fhd-text);
}

.fhd-cause-card p {
  font-size: 13px;
  color: var(--fhd-text-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}

.fhd-cause-meta {
  font-size: 11px;
  color: var(--fhd-text-light);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fhd-cause-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 50px;
  background: var(--fhd-primary-light);
  color: var(--fhd-primary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 1px solid rgba(233,30,140,.2);
}

.fhd-cause-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.fhd-cause-filter-btn {
  padding: 6px 15px;
  border: 1.5px solid var(--fhd-border);
  border-radius: 50px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--fhd-text-muted);
  cursor: pointer;
  text-decoration: none !important;
  transition: var(--fhd-transition);
}

.fhd-cause-filter-btn:hover,
.fhd-cause-filter-btn.active {
  background: var(--fhd-primary);
  border-color: var(--fhd-primary);
  color: #fff;
  text-decoration: none !important;
}

/* ============================================================
   Claims form
   ============================================================ */
.fhd-claims-wrap h2 { color: var(--fhd-text); margin-top: 0; }

@media (max-width: 640px) {
  .fhd-cause-grid { grid-template-columns: 1fr; }
}

/* =============================================
   RAZORPAY DONATION FORM
   ============================================= */

.s2g-rzp-wrap {
    background: var(--color-white, #fff);
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
    max-width: 560px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.s2g-rzp-header { margin-bottom: 20px; }

.s2g-rzp-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.s2g-rzp-header p {
    font-size: .88rem;
    color: #6b7280;
    margin: 0;
}

/* Amount pills */
.s2g-rzp-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.s2g-rzp-amt-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: .88rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
    flex: 1;
    min-width: 70px;
}

.s2g-rzp-amt-btn:hover,
.s2g-rzp-amt-btn.active {
    border-color: #e91e8c;
    background: #fdf2f8;
    color: #e91e8c;
}

.s2g-rzp-custom-amount {
    margin-bottom: 14px;
}

.s2g-rzp-custom-amount label {
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 4px;
}

/* Inputs */
.s2g-rzp-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .9rem;
    color: #111827;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.s2g-rzp-input:focus {
    outline: none;
    border-color: #e91e8c;
    box-shadow: 0 0 0 3px rgba(233,30,140,.12);
}

textarea.s2g-rzp-input { resize: vertical; min-height: 70px; }

/* Fields grid */
.s2g-rzp-fields { display: flex; flex-direction: column; gap: 10px; }

.s2g-rzp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 480px) { .s2g-rzp-row { grid-template-columns: 1fr; } }

.s2g-rzp-field { display: flex; flex-direction: column; gap: 4px; }
.s2g-rzp-field-full { grid-column: 1 / -1; }

.s2g-rzp-field label {
    font-size: .78rem;
    font-weight: 600;
    color: #374151;
}

.s2g-rzp-field .req { color: #e91e8c; }
.s2g-rzp-pan-hint { font-weight: 400; color: #9ca3af; }

/* 80G badge */
.s2g-rzp-80g {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 14px 0 10px;
}

/* Trust badges */
.s2g-rzp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .72rem;
    color: #6b7280;
    margin-bottom: 16px;
}

.s2g-rzp-trust span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Error */
.s2g-rzp-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: .85rem;
    color: #dc2626;
    margin-bottom: 12px;
}

/* Pay button */
.s2g-rzp-pay-btn {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #e91e8c, #c41079);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.s2g-rzp-pay-btn:hover:not(:disabled) { opacity: .92; transform: translateY(-1px); }
.s2g-rzp-pay-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Spinner */
@keyframes s2g-spin { to { transform: rotate(360deg); } }
.s2g-rzp-spin { animation: s2g-spin .8s linear infinite; }

/* Success state */
.s2g-rzp-success-state {
    text-align: center;
    padding: 20px 10px;
}

.s2g-rzp-success-icon {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.s2g-rzp-success-state h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
}

.s2g-rzp-success-msg {
    font-size: .95rem;
    color: #374151;
    margin-bottom: 16px;
}

.s2g-rzp-receipt-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 20px;
    margin-bottom: 12px;
    font-size: .88rem;
    color: #64748b;
}

.s2g-rzp-receipt-no {
    font-size: 1rem;
    font-weight: 800;
    color: #e91e8c;
    letter-spacing: .04em;
}

.s2g-rzp-success-sub {
    font-size: .8rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

.s2g-rzp-donate-again {
    background: transparent;
    border: 2px solid #e91e8c;
    color: #e91e8c;
    border-radius: 8px;
    padding: 9px 24px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.s2g-rzp-donate-again:hover {
    background: #e91e8c;
    color: #fff;
}

/* ============================================================
   Social Cause – gallery, submit, sidebar, cards, points
   ============================================================ */

/* Page wrapper */
.fhd-sc-page { font-family: 'Inter', sans-serif; color: #1a1a2e; }

/* Hero */
.fhd-sc-hero {
    background: linear-gradient(135deg, #7b2d8b 0%, #e91e8c 100%);
    color: #fff;
    padding: 60px 20px 50px;
    text-align: center;
}
.fhd-sc-hero h1 { font-size: 2.2rem; font-weight: 800; margin: 0 0 10px; }
.fhd-sc-hero p  { font-size: 1.05rem; opacity: .88; margin: 0 0 24px; }
.fhd-sc-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fhd-sc-hero-btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 50px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.fhd-sc-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.fhd-sc-hero-btn.fhd-btn-white  { background: #fff; color: #e91e8c; }
.fhd-sc-hero-btn.fhd-btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }

/* Points strip under hero */
.fhd-sc-points-strip {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    background: #fdf2f8;
    padding: 16px 20px;
    border-bottom: 1px solid #f3e6f8;
}
.fhd-sc-points-strip-item { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #6b7280; }
.fhd-sc-points-strip-item span { font-weight: 700; color: #7b2d8b; font-size: 1rem; }

/* Body layout */
.fhd-sc-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1200px;
    margin: 36px auto;
    padding: 0 20px;
    align-items: start;
}
@media (max-width: 900px) { .fhd-sc-body { grid-template-columns: 1fr; } }

/* Sidebar */
.fhd-sc-sidebar { display: flex; flex-direction: column; gap: 20px; }
.fhd-sc-sidebar-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    padding: 20px;
}
.fhd-sc-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #7b2d8b;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3e6f8;
}
.fhd-sc-points-info p { font-size: .88rem; color: #6b7280; margin: 0 0 10px; line-height: 1.5; }
.fhd-sc-my-points {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #7b2d8b, #e91e8c);
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 12px;
}
.fhd-sc-my-points span:first-child { font-size: .8rem; opacity: .85; }
.fhd-sc-my-points span:last-child  { font-size: 1.5rem; font-weight: 800; }

/* Leaderboard */
.fhd-sc-leaderboard { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fhd-sc-lb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    padding: 6px 8px;
    border-radius: 8px;
    background: #faf5ff;
}
.fhd-sc-lb-rank {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #7b2d8b;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.fhd-sc-lb-name { flex: 1; font-weight: 600; color: #1a1a2e; }
.fhd-sc-lb-pts  { font-weight: 700; color: #e91e8c; }

/* Filter pills */
.fhd-sc-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.fhd-sc-filter-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    background: #f3e6f8;
    color: #7b2d8b;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all .2s;
}
.fhd-sc-filter-pill:hover,
.fhd-sc-filter-pill.fhd-active { background: #e91e8c; color: #fff; border-color: #e91e8c; }

/* Cause card grid */
.fhd-sc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.fhd-sc-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.fhd-sc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.fhd-sc-card-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f3e6f8; }
.fhd-sc-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.fhd-sc-card:hover .fhd-sc-card-img { transform: scale(1.05); }
.fhd-sc-type-badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(123,45,139,.85);
    color: #fff;
    font-size: .7rem; font-weight: 700;
    padding: 3px 10px; border-radius: 50px;
    backdrop-filter: blur(4px);
}
.fhd-sc-card-body { padding: 14px 16px 12px; }
.fhd-sc-card-title { font-size: .95rem; font-weight: 700; color: #1a1a2e; margin: 0 0 4px; }
.fhd-sc-card-meta  { font-size: .78rem; color: #9ca3af; margin: 0 0 10px; }
.fhd-sc-card-desc  { font-size: .83rem; color: #4b5563; line-height: 1.5; margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Card actions (like + share) */
.fhd-sc-card-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fhd-sc-like-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 50px;
    font-size: .78rem; font-weight: 700; cursor: pointer;
    border: 2px solid #e91e8c; color: #e91e8c; background: #fff;
    transition: all .2s;
}
.fhd-sc-like-btn:hover,
.fhd-sc-like-btn.fhd-liked { background: #e91e8c; color: #fff; }
.fhd-sc-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    font-size: .75rem; font-weight: 700;
    text-decoration: none; border: none; cursor: pointer;
    transition: transform .2s, opacity .2s;
}
.fhd-sc-share-btn:hover { transform: scale(1.15); opacity: .9; }
.fhd-sc-share-wa  { background: #25d366; color: #fff; }
.fhd-sc-share-fb  { background: #1877f2; color: #fff; }
.fhd-sc-share-tw  { background: #1da1f2; color: #fff; }
.fhd-sc-share-li  { background: #0077b5; color: #fff; }

/* Pagination (reuses same structure as volunteer/member pages) */
.fhd-sc-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.fhd-sc-page-btn {
    padding: 7px 14px; border-radius: 8px; font-size: .85rem; font-weight: 600;
    text-decoration: none; border: 2px solid #e2e8f0; color: #374151; background: #fff;
    transition: all .2s;
}
.fhd-sc-page-btn:hover { border-color: #e91e8c; color: #e91e8c; }
.fhd-sc-page-btn.fhd-current { background: #e91e8c; color: #fff; border-color: #e91e8c; }

/* Submit page */
.fhd-sc-submit-wrap { max-width: 680px; margin: 40px auto; padding: 0 20px; }
.fhd-sc-submit-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.09);
    padding: 36px 40px;
}
@media (max-width: 600px) { .fhd-sc-submit-card { padding: 24px 18px; } }
.fhd-sc-submit-card h2 { font-size: 1.5rem; font-weight: 800; color: #7b2d8b; margin: 0 0 6px; }
.fhd-sc-submit-card > p { font-size: .9rem; color: #6b7280; margin: 0 0 24px; }

.fhd-sc-form { display: flex; flex-direction: column; gap: 18px; }
.fhd-sc-field { display: flex; flex-direction: column; gap: 6px; }
.fhd-sc-field label { font-size: .85rem; font-weight: 600; color: #374151; }
.fhd-sc-input,
.fhd-sc-textarea,
.fhd-sc-select {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: .9rem;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: #fafafa;
    transition: border-color .2s;
    width: 100%;
    box-sizing: border-box;
}
.fhd-sc-input:focus,
.fhd-sc-textarea:focus,
.fhd-sc-select:focus { outline: none; border-color: #7b2d8b; background: #fff; }
.fhd-sc-textarea { resize: vertical; min-height: 90px; }

/* File upload */
.fhd-sc-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    color: #6b7280;
    font-size: .88rem;
    transition: border-color .2s, background .2s;
}
.fhd-sc-file-label:hover { border-color: #7b2d8b; background: #fdf2f8; }
.fhd-sc-file-icon { font-size: 2rem; }
.fhd-sc-file-preview { max-width: 200px; border-radius: 10px; margin-top: 10px; display: none; }
.fhd-sc-file-input { display: none; }

/* Submit button */
.fhd-sc-submit-btn {
    padding: 13px 30px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #7b2d8b, #e91e8c);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform .2s, box-shadow .2s;
    align-self: flex-start;
}
.fhd-sc-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,30,140,.35); }

/* Login prompt */
.fhd-sc-login-prompt {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}
.fhd-sc-login-prompt a { color: #e91e8c; font-weight: 700; text-decoration: none; }

/* Empty state */
.fhd-sc-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    grid-column: 1 / -1;
}
.fhd-sc-empty-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.fhd-sc-empty p { font-size: .95rem; }

/* Notice boxes (success/error) */
.fhd-sc-notice {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.fhd-sc-notice.success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.fhd-sc-notice.error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

/* ============================================================
   Membership Control – Legal Disclaimer, Benefits Box, Notices
   ============================================================ */

.fhm-legal-disclaimer {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12.5px;
    color: #78350f;
    line-height: 1.5;
    margin: 14px 0;
}

.fhd-benefits-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #166534;
}

.fhd-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}
.fhd-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #7b2d8b;
}

/* Member type badge on dashboard */
.fhd-member-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.fhd-member-status-pending    { background: #f59e0b; }
.fhd-member-status-approved   { background: #10b981; }
.fhd-member-status-rejected   { background: #ef4444; }
.fhd-member-status-suspended  { background: #f97316; }
.fhd-member-status-terminated { background: #6b7280; }
.fhd-member-status-expired    { background: #9ca3af; }

/* Governance/voting restriction notice */
.fhd-governance-locked {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #64748b;
    margin: 10px 0;
}
