/* ============================================================
   MFAP — Muslim Funeral Assistance Program
   Design System v2.0  |  2026 Ultra-Modern Edition
   Islamic Green #0d5c4b + Gold #c9a227 | Bootstrap 5.3.2
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1. DESIGN TOKENS / CSS CUSTOM PROPERTIES
   ───────────────────────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --mfap-primary:           #0d5c4b;
  --mfap-primary-dark:      #093f34;
  --mfap-primary-deeper:    #062d25;
  --mfap-primary-mid:       #0f7060;
  --mfap-primary-light:     #e6f4f1;
  --mfap-primary-xlight:    #f0faf8;
  --mfap-primary-rgb:       13, 92, 75;

  --mfap-gold:              #c9a227;
  --mfap-gold-dark:         #a8841a;
  --mfap-gold-light:        #fdf3d9;
  --mfap-gold-rgb:          201, 162, 39;

  --mfap-accent:            #1aa384;
  --mfap-accent-light:      #d0f0e8;

  /* Neutral Palette */
  --mfap-text:              #0f172a;
  --mfap-text-secondary:    #475569;
  --mfap-text-muted:        #94a3b8;
  --mfap-text-light:        #cbd5e1;
  --mfap-border:            #e2e8f0;
  --mfap-border-light:      #f1f5f9;
  --mfap-surface:           #ffffff;
  --mfap-surface-2:         #f8fafc;
  --mfap-surface-3:         #f1f5f9;

  /* Admin Dark Palette */
  --admin-bg:               #080f1a;
  --admin-sidebar-bg:       #0b1524;
  --admin-sidebar-border:   rgba(255,255,255,0.06);
  --admin-nav-hover:        rgba(13,92,75,0.25);
  --admin-nav-active:       rgba(13,92,75,0.4);
  --admin-text:             #e2e8f0;
  --admin-text-muted:       #64748b;
  --admin-card-bg:          #0f1e30;
  --admin-card-border:      rgba(255,255,255,0.07);
  --admin-header-bg:        linear-gradient(135deg, #062d25 0%, #0b1524 50%, #0a1628 100%);

  /* Semantic Status Colors */
  --color-success:          #10b981;
  --color-success-bg:       #d1fae5;
  --color-success-text:     #065f46;
  --color-error:            #ef4444;
  --color-error-bg:         #fee2e2;
  --color-error-text:       #7f1d1d;
  --color-warning:          #f59e0b;
  --color-warning-bg:       #fef3c7;
  --color-warning-text:     #78350f;
  --color-info:             #3b82f6;
  --color-info-bg:          #dbeafe;
  --color-info-text:        #1e3a8a;

  /* Typography */
  --font-base: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.625rem;
  --radius-lg:   1rem;
  --radius-xl:   1.25rem;
  --radius-2xl:  1.75rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:  0 2px 6px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
  --shadow-card: 0 2px 20px rgba(13,92,75,0.07), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-card-hover: 0 12px 40px rgba(13,92,75,0.15), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-primary: 0 8px 24px rgba(13,92,75,0.35);
  --shadow-gold:    0 6px 20px rgba(201,162,39,0.35);

  /* Transitions */
  --transition-fast:   all 0.15s ease;
  --transition-base:   all 0.25s ease;
  --transition-slow:   all 0.4s ease;
  --transition-spring: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --navbar-height: 72px;
  --sidebar-width: 260px;
}

/* ─────────────────────────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--mfap-text);
  background-color: var(--mfap-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.mfap-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-grow { flex: 1 1 auto; }

img, svg { max-width: 100%; display: block; }

a {
  color: var(--mfap-primary);
  text-decoration: none;
  transition: var(--transition-base);
}
a:hover { color: var(--mfap-primary-mid); }

/* ─────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 700;
  line-height: 1.25;
  color: var(--mfap-text);
  letter-spacing: -0.025em;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.6rem, 4vw, var(--text-4xl)); }
h3 { font-size: clamp(1.25rem, 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--mfap-text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}
p:last-child { margin-bottom: 0; }

.text-mfap-primary { color: var(--mfap-primary) !important; }
.text-mfap-gold    { color: var(--mfap-gold) !important; }
.text-mfap-accent  { color: var(--mfap-accent) !important; }

.lead {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--mfap-text-secondary);
  line-height: 1.8;
}

/* Gradient text */
.text-gradient-green {
  background: linear-gradient(135deg, var(--mfap-primary) 0%, var(--mfap-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--mfap-gold-dark) 0%, var(--mfap-gold) 50%, #f5d06b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────────────────────────
   4. LAYOUT UTILITIES
   ───────────────────────────────────────────────────────────── */
.section-pad    { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }
.section-pad-lg { padding: 6rem 0; }

.bg-surface-2  { background-color: var(--mfap-surface-2); }
.bg-surface-3  { background-color: var(--mfap-surface-3); }

.container-narrow { max-width: 800px; margin-inline: auto; }

.mfap-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mfap-border), transparent);
  margin: 2rem 0;
}

/* ─────────────────────────────────────────────────────────────
   5. NAVBAR
   ───────────────────────────────────────────────────────────── */
.navbar-mfap {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  min-height: var(--navbar-height);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  z-index: 1040;
  padding: 0;
}

.navbar-mfap.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
}

.navbar-mfap .container { align-items: center; }

/* Brand */
.navbar-mfap .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mfap-text);
  text-decoration: none;
  padding: 0;
  transition: var(--transition-base);
}

.navbar-mfap .navbar-brand:hover { color: var(--mfap-primary); }

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--mfap-primary) 0%, var(--mfap-accent) 100%);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13,92,75,0.3);
}

/* Nav links */
.navbar-mfap .nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--mfap-text-secondary);
  padding: 0.4rem 0.65rem !important;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.navbar-mfap .nav-link:hover,
.navbar-mfap .nav-link.active-link {
  color: var(--mfap-primary);
  background: var(--mfap-primary-xlight);
}

.navbar-mfap .nav-link.active-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mfap-primary);
}

/* CTA nav button — gold pill */
.btn-nav-cta {
  background: linear-gradient(135deg, var(--mfap-gold) 0%, #e6b830 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: var(--text-sm) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--radius-full) !important;
  border: none;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-nav-cta:hover {
  background: linear-gradient(135deg, var(--mfap-gold-dark) 0%, var(--mfap-gold) 100%);
  box-shadow: 0 8px 24px rgba(201,162,39,0.45);
  transform: translateY(-1px);
  color: #fff !important;
}

/* Dropdown */
.navbar-mfap .dropdown-menu {
  border: 1px solid var(--mfap-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 200px;
  animation: dropIn 0.18s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.navbar-mfap .dropdown-item {
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  padding: 0.5rem 0.75rem;
  transition: var(--transition-fast);
  color: var(--mfap-text-secondary);
}

.navbar-mfap .dropdown-item:hover {
  background: var(--mfap-primary-xlight);
  color: var(--mfap-primary);
}

/* Hamburger */
.navbar-mfap .navbar-toggler {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--mfap-border) !important;
  background: var(--mfap-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  padding: 0;
}

.navbar-mfap .navbar-toggler:hover {
  background: var(--mfap-primary-xlight);
  border-color: var(--mfap-primary) !important;
}

.navbar-mfap .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230d5c4b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.2rem;
  height: 1.2rem;
}

@media (max-width: 991.98px) {
  .navbar-mfap {
    height: auto;
    min-height: var(--navbar-height);
    padding: 0.75rem 0;
    z-index: 1050 !important;
    position: sticky;
    top: 0;
  }

  .navbar-mfap .container {
    flex-wrap: wrap;
  }

  .navbar-mfap .navbar-collapse {
    background: rgba(255,255,255,0.99);
    border-radius: var(--radius-xl);
    padding: 1rem;
    margin-top: 0.75rem;
    border: 1px solid var(--mfap-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    width: 100%;
    flex-basis: 100%;
  }

  .navbar-mfap .navbar-toggler {
    z-index: 1051 !important;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
  }

  .navbar-mfap .nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    display: block;
    width: 100%;
    cursor: pointer;
  }

  .navbar-mfap ul.navbar-nav { gap: 0.25rem !important; }

  .navbar-mfap .btn-nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem !important;
    margin-top: 0.25rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   6. BUTTONS
   ───────────────────────────────────────────────────────────── */

/* Primary Green */
.btn-mfap-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--mfap-primary) 0%, var(--mfap-primary-mid) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: var(--text-base);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-base);
  box-shadow: var(--shadow-primary);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  font-family: var(--font-base);
  line-height: 1.4;
}

.btn-mfap-primary:hover {
  background: linear-gradient(135deg, var(--mfap-primary-dark) 0%, var(--mfap-primary) 100%);
  box-shadow: 0 12px 32px rgba(13,92,75,0.45);
  transform: translateY(-2px);
  color: #fff !important;
}

.btn-mfap-primary:active { transform: translateY(0); box-shadow: var(--shadow-primary); }

.btn-mfap-primary:disabled,
.btn-mfap-primary[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }

/* Outline Primary */
.btn-mfap-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--mfap-primary) !important;
  font-weight: 600;
  font-size: var(--text-base);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--mfap-primary);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-base);
  font-family: var(--font-base);
}

.btn-mfap-outline:hover {
  background: var(--mfap-primary);
  color: #fff !important;
  box-shadow: var(--shadow-primary);
  transform: translateY(-2px);
}

/* Gold Accent */
.btn-mfap-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--mfap-gold) 0%, #e6b830 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: var(--text-base);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-base);
  box-shadow: var(--shadow-gold);
  font-family: var(--font-base);
}

.btn-mfap-gold:hover {
  background: linear-gradient(135deg, var(--mfap-gold-dark) 0%, var(--mfap-gold) 100%);
  box-shadow: 0 12px 32px rgba(201,162,39,0.5);
  transform: translateY(-2px);
  color: #fff !important;
}

/* Hero Buttons */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: linear-gradient(135deg, var(--mfap-gold) 0%, #e6b830 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: var(--text-lg);
  padding: 1rem 2.25rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-spring);
  letter-spacing: 0.01em;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(201,162,39,0.5);
  color: #fff !important;
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: #fff !important;
  font-weight: 700;
  font-size: var(--text-lg);
  padding: 1rem 2.25rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-base);
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
  color: #fff !important;
}

/* Size modifiers */
.btn-mfap-sm { padding: 0.45rem 1rem !important; font-size: var(--text-sm) !important; border-radius: var(--radius-md) !important; }
.btn-mfap-lg { padding: 1rem 2.5rem !important;  font-size: var(--text-lg) !important; border-radius: var(--radius-xl) !important; }

/* Loading state */
.btn-loading { pointer-events: none; opacity: 0.8; }
.btn-loading .btn-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

/* ─────────────────────────────────────────────────────────────
   7. FORM ELEMENTS
   ───────────────────────────────────────────────────────────── */
.mfap-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--mfap-text);
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}

.mfap-input {
  display: block;
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--mfap-text);
  background: var(--mfap-surface);
  border: 1.5px solid var(--mfap-border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.mfap-input::placeholder { color: var(--mfap-text-muted); font-weight: 400; }
.mfap-input:hover         { border-color: #b8c9c5; }

.mfap-input:focus {
  border-color: var(--mfap-primary);
  box-shadow: 0 0 0 3.5px rgba(13,92,75,0.12);
  background: var(--mfap-primary-xlight);
}

.mfap-input.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

textarea.mfap-input {
  height: auto;
  min-height: 120px;
  padding: 0.875rem 1rem;
  resize: vertical;
  line-height: 1.6;
}

select.mfap-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230d5c4b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.75rem;
  cursor: pointer;
}

/* Input with prefix icon */
.input-icon-wrap { position: relative; }

.input-icon-wrap .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mfap-text-muted);
  pointer-events: none;
  font-size: 1rem;
  z-index: 2;
  transition: color 0.2s;
}

.input-icon-wrap .mfap-input { padding-left: 2.75rem; }
.input-icon-wrap:focus-within .input-icon { color: var(--mfap-primary); }

/* Password toggle button */
.input-pwd-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--mfap-text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  z-index: 2;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.input-pwd-toggle:hover { color: var(--mfap-primary); }

/* Validation errors */
.form-error-list {
  list-style: none;
  padding: 0;
  margin: 0.375rem 0 0;
}

.form-error-list li {
  font-size: var(--text-sm);
  color: var(--color-error);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.form-error-list li::before {
  content: '\F33A';
  font-family: 'bootstrap-icons';
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Styled checkbox */
.mfap-check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
}

.mfap-check input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--mfap-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────
   8. ALERTS
   ───────────────────────────────────────────────────────────── */
.mfap-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.mfap-alert .alert-icon { flex-shrink: 0; font-size: 1.1rem; margin-top: 0.05rem; }

.mfap-alert-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border-color: rgba(16,185,129,0.25);
}

.mfap-alert-success.mfap-alert .alert-icon { color: var(--color-success); }

/* auth-session-status uses this without the .mfap-alert structure */
div.mfap-alert-success:not(.mfap-alert) {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
}

.mfap-alert-error,
.mfap-alert-danger {
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border-color: rgba(239,68,68,0.25);
}

.mfap-alert-error.mfap-alert .alert-icon,
.mfap-alert-danger.mfap-alert .alert-icon { color: var(--color-error); }

.mfap-alert-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  border-color: rgba(245,158,11,0.25);
}

.mfap-alert-warning.mfap-alert .alert-icon { color: var(--color-warning); }

.mfap-alert-info {
  background: var(--color-info-bg);
  color: var(--color-info-text);
  border-color: rgba(59,130,246,0.25);
}

.mfap-alert-info.mfap-alert .alert-icon { color: var(--color-info); }

/* ─────────────────────────────────────────────────────────────
   9. BADGES & STATUS PILLS
   ───────────────────────────────────────────────────────────── */
.mfap-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.badge-primary  { background: var(--mfap-primary-light); color: var(--mfap-primary); }
.badge-gold     { background: var(--mfap-gold-light);    color: var(--mfap-gold-dark); }
.badge-success  { background: var(--color-success-bg);   color: var(--color-success-text); }
.badge-warning  { background: var(--color-warning-bg);   color: var(--color-warning-text); }
.badge-danger   { background: var(--color-error-bg);     color: var(--color-error-text); }
.badge-info     { background: var(--color-info-bg);      color: var(--color-info-text); }
.badge-muted    { background: var(--mfap-surface-3);     color: var(--mfap-text-secondary); }

/* Status dot pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-active   { background: var(--color-success-bg); color: var(--color-success-text); }
.status-active::before   { background: var(--color-success); box-shadow: 0 0 0 2px rgba(16,185,129,0.3); }
.status-pending  { background: var(--color-warning-bg); color: var(--color-warning-text); }
.status-pending::before  { background: var(--color-warning); }
.status-inactive { background: var(--mfap-surface-3); color: var(--mfap-text-secondary); }
.status-inactive::before { background: var(--mfap-text-muted); }

/* ─────────────────────────────────────────────────────────────
   10. TOAST NOTIFICATIONS
   ───────────────────────────────────────────────────────────── */
#mfap-toast-container {
  position: fixed;
  top: calc(var(--navbar-height) + 1rem);
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 380px;
  width: calc(100vw - 2.5rem);
}

.mfap-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: var(--mfap-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--mfap-border);
  border-left: 4px solid transparent;
  animation: slideInRight 0.3s cubic-bezier(0.34,1.56,0.64,1);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toast-success { border-left-color: var(--color-success); }
.toast-error   { border-left-color: var(--color-error); }
.toast-warning { border-left-color: var(--color-warning); }
.toast-info    { border-left-color: var(--color-info); }

.mfap-toast-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.toast-success .mfap-toast-icon { background: var(--color-success-bg); color: var(--color-success); }
.toast-error   .mfap-toast-icon { background: var(--color-error-bg);   color: var(--color-error);   }
.toast-warning .mfap-toast-icon { background: var(--color-warning-bg); color: var(--color-warning); }
.toast-info    .mfap-toast-icon { background: var(--color-info-bg);    color: var(--color-info);    }

.mfap-toast-body  { flex: 1; min-width: 0; }

.mfap-toast-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--mfap-text);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.mfap-toast-msg {
  font-size: var(--text-sm);
  color: var(--mfap-text-secondary);
  line-height: 1.5;
  word-break: break-word;
}

.mfap-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--mfap-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  line-height: 1;
  display: flex;
  align-items: center;
}

.mfap-toast-close:hover { color: var(--mfap-text); background: var(--mfap-surface-3); }

/* Progress bar on toast */
.mfap-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  animation: toastProgress 5s linear forwards;
}

.toast-success .mfap-toast-progress { background: var(--color-success); }
.toast-error   .mfap-toast-progress { background: var(--color-error); }
.toast-warning .mfap-toast-progress { background: var(--color-warning); }
.toast-info    .mfap-toast-progress { background: var(--color-info); }

@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

.toast-hiding {
  opacity: 0;
  transform: translateX(120%);
  pointer-events: none;
}

@media (max-width: 575.98px) {
  #mfap-toast-container {
    top: auto;
    bottom: 1rem;
    right: 0.75rem;
    left: 0.75rem;
    max-width: 100%;
    width: auto;
  }
}

/* ─────────────────────────────────────────────────────────────
   10A. MFAP HERO SECTION (Alternative naming)
   ───────────────────────────────────────────────────────────── */
.mfap-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(140deg,
    var(--mfap-primary-deeper) 0%,
    var(--mfap-primary-dark) 30%,
    var(--mfap-primary) 65%,
    var(--mfap-primary-mid) 100%
  );
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.mfap-hero-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(201,162,39,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.min-vh-hero { min-height: 85vh; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mfap-gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem,5vw,4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title-accent {
  color: var(--mfap-gold);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  background: var(--mfap-gold);
  color: var(--mfap-primary-deeper);
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-hero-primary:hover {
  background: var(--mfap-gold-dark);
  color: var(--mfap-primary-deeper);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,162,39,0.4);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.hero-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-trust i {
  color: var(--mfap-accent);
}

.hero-card-wrap {
  position: relative;
}

.hero-stats-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 1.5rem;
  width: 320px;
}

.hero-stats-header {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-stat-item {
  text-align: center;
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}

.hero-stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,92,75,0.3);
  color: #4ade80;
  border-radius: 10px;
  font-size: 1.25rem;
}

.hero-stat-val {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

.hero-stats-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.hero-card-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-float-badge {
  padding: 0.45rem 1rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* Animation classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; }
.fade-in-up-delay-2 { animation-delay: 0.2s; }
.fade-in-up-delay-3 { animation-delay: 0.3s; }
.fade-in-up-delay-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────
   10B. MFAP SECTIONS
   ───────────────────────────────────────────────────────────── */
.mfap-section {
  padding: 5rem 0;
}

.mfap-section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.mfap-section-title .pre-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mfap-accent);
  margin-bottom: 0.75rem;
}

.mfap-section-title h2 {
  font-size: clamp(1.75rem,3vw,2.5rem);
  font-weight: 700;
  color: var(--mfap-text);
  margin-bottom: 0.75rem;
}

.mfap-section-title p {
  font-size: 1.0625rem;
  color: var(--mfap-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.pre-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mfap-accent);
  margin-bottom: 0.5rem;
}

/* Feature Cards */
.mfap-feature-card {
  background: #fff;
  border: 1px solid var(--mfap-border);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
}

.mfap-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--mfap-primary-light);
}

.mfap-feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Steps Row */
.mfap-steps-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  overflow: hidden;
}

.mfap-step-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
}

.mfap-step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: #fff;
}

.mfap-step-connector {
  position: absolute;
  top: 32px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--mfap-primary) 0%, var(--mfap-gold) 100%);
}

.mfap-step-item:last-child .mfap-step-connector { display: none; }

@media (max-width: 575.98px) {
  .mfap-steps-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .mfap-step-item {
    min-width: unset;
    width: 100%;
    max-width: 280px;
  }
  .mfap-step-connector { display: none; }
}

.mfap-step-num-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mfap-text-muted);
  margin-bottom: 0.5rem;
}

.mfap-step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mfap-text);
  margin-bottom: 0.5rem;
}

.mfap-step-desc {
  font-size: 0.875rem;
  color: var(--mfap-text-secondary);
  line-height: 1.6;
}

/* Gradient Box */
.mfap-gradient-box {
  background: linear-gradient(135deg, var(--mfap-primary-light) 0%, var(--mfap-primary-xlight) 100%);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--mfap-primary-light);
}

.mfap-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mfap-check-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(13,92,75,0.1);
}

.mfap-check-list li:last-child { border-bottom: none; }

.check-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mfap-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
}

/* Plan Card */
.mfap-plan-card {
  background: #fff;
  border: 1px solid var(--mfap-border);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
}

.mfap-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.mfap-plan-card-featured {
  border-color: var(--mfap-gold);
  box-shadow: var(--shadow-gold);
}

.plan-card-ribbon {
  background: var(--mfap-gold);
  color: var(--mfap-primary-deeper);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  text-align: center;
}

.plan-card-header {
  padding: 2rem 1.5rem 1rem;
  text-align: center;
}

.plan-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  border-radius: 12px;
  font-size: 1.5rem;
}

.plan-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mfap-text);
  margin-bottom: 0.5rem;
}

.plan-card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.plan-price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--mfap-primary);
}

.plan-price-period {
  font-size: 1rem;
  color: var(--mfap-text-muted);
}

.plan-card-body {
  padding: 1rem 1.5rem 2rem;
}

.plan-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.plan-card-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--mfap-text-secondary);
}

.plan-card-features li i {
  color: var(--mfap-accent);
}

.btn-mfap-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  background: var(--mfap-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-mfap-primary:hover {
  background: var(--mfap-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-mfap-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--mfap-primary);
  font-weight: 600;
  border: 2px solid var(--mfap-primary);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

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

/* Testimonial */
.mfap-testimonial {
  background: #fff;
  border: 1px solid var(--mfap-border);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
}

.mfap-testimonial-quote {
  font-size: 2rem;
  color: var(--mfap-gold);
  margin-bottom: 1rem;
}

.mfap-testimonial-text {
  font-size: 1rem;
  color: var(--mfap-text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.mfap-testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mfap-testimonial-author-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  border-radius: 50%;
  font-size: 1.25rem;
}

/* Trust Bar */
.mfap-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem;
  background: var(--mfap-surface-3);
  border-radius: 16px;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--mfap-text-secondary);
}

.trust-bar-item i {
  font-size: 1.25rem;
  color: var(--mfap-primary);
}

.trust-bar-divider {
  width: 1px;
  height: 24px;
  background: var(--mfap-border);
}

/* CTA Section */
.mfap-cta-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--mfap-primary-deeper) 0%, var(--mfap-primary-dark) 50%, #0a1628 100%);
  overflow: hidden;
}

.mfap-cta-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,162,39,0.15) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(13,92,75,0.3) 0%, transparent 40%);
  pointer-events: none;
}

.mfap-cta-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 20px;
  font-size: 2rem;
  color: var(--mfap-gold);
}

.mfap-cta-title {
  font-size: clamp(1.75rem,3vw,2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.mfap-cta-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.mfap-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--mfap-gold);
  color: var(--mfap-primary-deeper);
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-cta-primary:hover {
  background: var(--mfap-gold-dark);
  color: var(--mfap-primary-deeper);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,162,39,0.4);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-cta-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.mfap-cta-footnote {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

/* Duplicate navbar block removed — defined above */

/* Footer */
.footer-mfap {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  margin-top: auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mfap-primary);
  color: var(--mfap-gold);
  border-radius: 8px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--mfap-gold);
}

.footer-bottom {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Auth Pages */
.mfap-auth-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--mfap-primary-deeper) 0%, #0a1628 50%, #0f1a2e 100%);
}

.mfap-auth-page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.guest-center-box {
  width: 100%;
  max-width: 440px;
}

.mfap-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mfap-auth-logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mfap-gold);
  color: var(--mfap-primary-deeper);
  border-radius: 12px;
  font-size: 1.5rem;
}

.mfap-auth-logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.mfap-auth-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
}

/* Toast */
#mfap-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mfap-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  min-width: 300px;
  animation: toastIn 0.3s ease;
}

.toast-hiding {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(100px); }
}

.mfap-toast-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast-success .mfap-toast-icon { background: var(--color-success-bg); color: var(--color-success); }
.toast-error .mfap-toast-icon { background: var(--color-error-bg); color: var(--color-error); }
.toast-warning .mfap-toast-icon { background: var(--color-warning-bg); color: var(--color-warning); }
.toast-info .mfap-toast-icon { background: var(--color-info-bg); color: var(--color-info); }

.mfap-toast-body { flex: 1; }

.mfap-toast-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--mfap-text);
}

.mfap-toast-msg {
  font-size: 0.85rem;
  color: var(--mfap-text-secondary);
  margin-top: 0.25rem;
}

.mfap-toast-close {
  background: none;
  border: none;
  color: var(--mfap-text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Body & Layout */
.mfap-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--mfap-surface-2);
}

.main-grow { flex: 1; }

/* Page Headers */
.mfap-page-header-inner {
  background: linear-gradient(135deg, var(--mfap-primary-deeper) 0%, var(--mfap-primary-dark) 100%);
  padding: 2rem 0;
}

/* ─────────────────────────────────────────────────────────────
   11. HERO SECTION
   ───────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(140deg,
    var(--mfap-primary-deeper) 0%,
    var(--mfap-primary-dark) 30%,
    var(--mfap-primary) 65%,
    var(--mfap-primary-mid) 100%
  );
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(201,162,39,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'%3E%3Cpolygon points='30,2 58,18 58,42 30,58 2,42 2,18'/%3E%3Cpolygon points='30,12 48,22 48,38 30,48 12,38 12,22'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.9);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 1.25rem;
}

.hero-pretitle .pretitle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mfap-gold);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--mfap-gold);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 3px;
  background: var(--mfap-gold);
  opacity: 0.4;
  border-radius: 2px;
}

.hero-desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.25rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-card-float {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  animation: float 5s ease-in-out infinite;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
}

/* Hero staggered animations */
.hero-content .hero-pretitle { animation: heroFadeUp 0.6s 0.1s ease both; }
.hero-content .hero-title     { animation: heroFadeUp 0.7s 0.2s ease both; }
.hero-content .hero-desc      { animation: heroFadeUp 0.7s 0.35s ease both; }
.hero-content .hero-cta-group { animation: heroFadeUp 0.7s 0.5s ease both; }
.hero-content .hero-stats-row { animation: heroFadeUp 0.7s 0.65s ease both; }
.hero-visual                  { animation: slideInRight 0.8s 0.3s cubic-bezier(0.34,1.1,0.64,1) both; }

@media (max-width: 575.98px) {
  .hero-section { min-height: auto; padding: 5rem 0 3.5rem; }
  .hero-cta-group { flex-direction: column; }
  .btn-hero-primary,
  .btn-hero-outline { width: 100%; justify-content: center; }
  .hero-stats-row { gap: 1.25rem; }
}

/* ─────────────────────────────────────────────────────────────
   12. SECTION TITLE BLOCK (pre-label + h2 + p)
   ───────────────────────────────────────────────────────────── */
.section-title-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-prelabel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mfap-primary);
  margin-bottom: 0.875rem;
}

.section-prelabel::before,
.section-prelabel::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--mfap-primary);
  opacity: 0.5;
  border-radius: 2px;
}

.section-title-block h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--mfap-text);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-title-block p {
  font-size: var(--text-lg);
  color: var(--mfap-text-secondary);
  line-height: 1.75;
  margin: 0;
}

.section-title-block.text-start { text-align: left; margin-left: 0; }
.section-title-block.text-start .section-prelabel::before { display: none; }

/* Dark section variant */
.section-dark .section-prelabel { color: var(--mfap-gold); }
.section-dark .section-prelabel::before,
.section-dark .section-prelabel::after { background: var(--mfap-gold); }
.section-dark .section-title-block h2 { color: #f8fafc; }
.section-dark .section-title-block p  { color: rgba(255,255,255,0.6); }

/* ─────────────────────────────────────────────────────────────
   13. FEATURE CARDS
   ───────────────────────────────────────────────────────────── */
.feature-card {
  background: var(--mfap-surface);
  border: 1px solid var(--mfap-border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mfap-primary), var(--mfap-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(13,92,75,0.15);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  transition: var(--transition-spring);
}

.feature-card:hover .feature-icon {
  background: var(--mfap-primary);
  color: #fff;
  transform: scale(1.12) rotate(-6deg);
}

.feature-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--mfap-text);
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--mfap-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   14. STEPS ROW (how it works)
   ───────────────────────────────────────────────────────────── */
.steps-section { background: var(--mfap-surface-2); }

.steps-row {
  display: flex;
  gap: 0;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: calc(16.666% + 1.75rem);
  right: calc(16.666% + 1.75rem);
  height: 2px;
  background: linear-gradient(90deg, var(--mfap-primary-light), var(--mfap-primary), var(--mfap-primary-light));
}

.step-item {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.step-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mfap-primary) 0%, var(--mfap-primary-mid) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-primary);
  transition: var(--transition-spring);
}

.step-item:hover .step-circle {
  transform: scale(1.12);
  box-shadow: 0 16px 40px rgba(13,92,75,0.4);
}

.step-item h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--mfap-text);
  margin-bottom: 0.5rem;
}

.step-item p {
  font-size: var(--text-sm);
  color: var(--mfap-text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 767.98px) {
  .steps-row { flex-direction: column; gap: 2rem; }
  .steps-row::before { display: none; }
  .step-item { display: flex; gap: 1.25rem; text-align: left; padding: 0; }
  .step-circle { width: 3.5rem; height: 3.5rem; min-width: 3.5rem; font-size: 1.1rem; margin: 0; }
  .step-item > div { flex: 1; }
}

/* ─────────────────────────────────────────────────────────────
   15. PLAN CARDS
   ───────────────────────────────────────────────────────────── */
.plan-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1.5px solid var(--mfap-border);
  transition: var(--transition-slow);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--mfap-surface);
  position: relative;
}

.plan-card.featured {
  border-color: var(--mfap-primary);
  box-shadow: 0 0 0 3px rgba(13,92,75,0.1), var(--shadow-xl);
  transform: scale(1.03);
}

.plan-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: var(--mfap-primary);
}

.plan-card.featured:hover { transform: scale(1.03) translateY(-6px); }

/* Ribbon badge */
.plan-ribbon {
  position: absolute;
  top: 1.5rem;
  right: -3rem;
  background: linear-gradient(135deg, var(--mfap-gold) 0%, #e6b830 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 3.5rem;
  transform: rotate(35deg);
  box-shadow: 0 2px 8px rgba(201,162,39,0.4);
  white-space: nowrap;
}

/* Plan header */
.plan-header {
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(140deg, var(--mfap-primary) 0%, var(--mfap-primary-mid) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.plan-header::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.plan-header.gold-header {
  background: linear-gradient(140deg, var(--mfap-primary-deeper) 0%, var(--mfap-primary-dark) 100%);
}

.plan-name {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.375rem;
}

.plan-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.plan-price sup {
  font-size: 1.25rem;
  vertical-align: top;
  margin-top: 0.5rem;
  font-weight: 600;
}

.plan-price-note {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.plan-benefit {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--mfap-gold);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.plan-body {
  padding: 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: var(--text-sm);
  color: var(--mfap-text-secondary);
  border-bottom: 1px solid var(--mfap-border-light);
  line-height: 1.5;
}

.plan-features li:last-child { border-bottom: none; }

.plan-features li .feat-icon {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 0.1rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-4px); }
}

/* ─────────────────────────────────────────────────────────────
   16. TRUST BAR
   ───────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--mfap-surface-2);
  border-top: 1px solid var(--mfap-border);
  border-bottom: 1px solid var(--mfap-border);
  padding: 1.5rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--mfap-text-secondary);
}

.trust-item i { font-size: 1.25rem; color: var(--mfap-primary); }

/* ─────────────────────────────────────────────────────────────
   17. CTA SECTION
   ───────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--mfap-primary-deeper) 0%, var(--mfap-primary) 50%, var(--mfap-primary-mid) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(201,162,39,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.72);
  margin-bottom: 2rem;
  max-width: 500px;
}

/* ─────────────────────────────────────────────────────────────
   18. TESTIMONIALS
   ───────────────────────────────────────────────────────────── */
.testimonial-card {
  background: var(--mfap-surface);
  border: 1px solid var(--mfap-border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  height: 100%;
  transition: var(--transition-slow);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: rgba(13,92,75,0.2);
}

.testimonial-quote {
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
  color: var(--mfap-primary-light);
  margin-bottom: 0.5rem;
  display: block;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--mfap-text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 0.875rem; }

.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mfap-primary) 0%, var(--mfap-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-name { font-size: var(--text-sm); font-weight: 700; color: var(--mfap-text); margin-bottom: 0.1rem; }
.testimonial-loc  { font-size: var(--text-xs); color: var(--mfap-text-muted); }

.stars {
  color: var(--mfap-gold);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────────────────────
   19. FOOTER
   ───────────────────────────────────────────────────────────── */
.footer-mfap {
  background: linear-gradient(160deg, #05201a 0%, #0b1f2e 40%, #080f1a 100%);
  color: #94a3b8;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.footer-mfap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mfap-primary), var(--mfap-gold), var(--mfap-primary), transparent);
  opacity: 0.5;
}

.footer-brand {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-brand:hover { color: var(--mfap-gold); }

.footer-brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--mfap-primary) 0%, var(--mfap-accent) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13,92,75,0.4);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-heading {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 1.125rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: #64748b;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a i { font-size: 0.8rem; opacity: 0.7; }
.footer-links a:hover { color: #94a3b8; gap: 0.625rem; }

.footer-bottom {
  padding-top: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: var(--text-sm);
  color: #475569;
}

/* ─────────────────────────────────────────────────────────────
   20. AUTH LAYOUT
   ───────────────────────────────────────────────────────────── */
.mfap-auth-bg {
  min-height: 100vh;
  background: linear-gradient(160deg,
    var(--mfap-primary-deeper) 0%,
    var(--mfap-primary-dark) 40%,
    #0a1f2e 80%,
    #050e1a 100%
  );
  position: relative;
  overflow-x: hidden;
}

/* Geometric SVG pattern overlay */
.mfap-auth-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'%3E%3Cpolygon points='40,4 76,24 76,56 40,76 4,56 4,24'/%3E%3Cpolygon points='40,16 64,30 64,50 40,64 16,50 16,30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* CRITICAL: flex-start not center — fixes mobile scroll */
.mfap-auth-page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem 2rem;
}

.guest-center-box {
  width: 100%;
  max-width: 480px;
}

/* Logo pill */
.mfap-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.mfap-auth-logo-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(135deg, var(--mfap-primary) 0%, var(--mfap-accent) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(13,92,75,0.4);
  flex-shrink: 0;
}

.mfap-auth-logo-text {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

/* Auth card */
.mfap-auth-card {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.3),
    0 8px 24px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  animation: cardIn 0.5s cubic-bezier(0.34,1.26,0.64,1) both;
}

@media (max-width: 575.98px) {
  .mfap-auth-page-wrap { padding: 1.5rem 0.75rem; }
}

/* ─────────────────────────────────────────────────────────────
   21. ADMIN SIDEBAR LAYOUT — Deep Space Dark Mode
   ───────────────────────────────────────────────────────────── */
.admin-layout { background: var(--admin-bg); min-height: 100vh; }

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--admin-sidebar-bg);
  border-right: 1px solid var(--admin-sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 1030;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--admin-sidebar-border);
  flex-shrink: 0;
}

.sidebar-brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--mfap-primary) 0%, var(--mfap-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13,92,75,0.4);
}

.sidebar-brand-name {
  font-size: var(--text-lg);
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.03em;
}

.sidebar-brand-sub {
  font-size: 0.65rem;
  color: var(--admin-text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--admin-text-muted);
  padding: 1.25rem 1.25rem 0.375rem;
}

.sidebar-nav {
  list-style: none;
  padding: 0.5rem 0.75rem;
  margin: 0;
  flex: 1;
}

.sidebar-nav-item { margin-bottom: 2px; }

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

.sidebar-nav-link:hover { background: var(--admin-nav-hover); color: #e2e8f0; }

.sidebar-nav-link.active {
  background: var(--admin-nav-active);
  color: #fff;
  font-weight: 600;
}

.sidebar-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--mfap-primary);
  border-radius: 0 2px 2px 0;
}

.sidebar-nav-link i { font-size: 1.1rem; width: 1.25rem; text-align: center; flex-shrink: 0; }

.sidebar-nav-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--mfap-primary);
  color: #fff;
}

.sidebar-user {
  padding: 1rem 0.875rem 1.25rem;
  border-top: 1px solid var(--admin-sidebar-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.sidebar-user-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mfap-primary) 0%, var(--mfap-accent) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.sidebar-user-role { font-size: 0.7rem; color: var(--admin-text-muted); font-weight: 500; }

.admin-main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Admin page header */
.admin-page-header {
  background: var(--admin-header-bg);
  padding: 2rem 2rem 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.admin-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mfap-primary), transparent);
}

.admin-page-header-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.admin-page-header-sub { font-size: var(--text-sm); color: #64748b; }

.admin-content { padding: 2rem; flex: 1; }

/* Mobile sidebar */
.admin-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1040;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--mfap-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-primary);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1029;
  backdrop-filter: blur(2px);
}

@media (max-width: 1023.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,0.4); }
  .admin-main { margin-left: 0; }
  .admin-mobile-toggle { display: flex; }
  .sidebar-overlay.visible { display: block; }
  .admin-content { padding: 1.25rem; }
  .admin-page-header { padding: 1.5rem 1.25rem; }
}

/* ─────────────────────────────────────────────────────────────
   22. ADMIN STAT CARDS
   ───────────────────────────────────────────────────────────── */
.stat-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.stat-card-green::before  { background: linear-gradient(90deg, var(--mfap-primary), var(--mfap-accent)); }
.stat-card-gold::before   { background: linear-gradient(90deg, var(--mfap-gold-dark), var(--mfap-gold)); }
.stat-card-blue::before   { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.stat-card-purple::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.stat-card-red::before    { background: linear-gradient(90deg, #dc2626, #f87171); }

.stat-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}

.stat-card-green  .stat-card-icon { background: rgba(13,92,75,0.25);  color: #4ade80; }
.stat-card-gold   .stat-card-icon { background: rgba(201,162,39,0.2); color: var(--mfap-gold); }
.stat-card-blue   .stat-card-icon { background: rgba(59,130,246,0.2); color: #93c5fd; }
.stat-card-purple .stat-card-icon { background: rgba(124,58,237,0.2); color: #c4b5fd; }
.stat-card-red    .stat-card-icon { background: rgba(239,68,68,0.2);  color: #fca5a5; }

.stat-card-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}

.stat-card-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--admin-text-muted);
}

.stat-card-trend {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: 0.75rem;
}

.stat-card-trend.up   { color: #4ade80; }
.stat-card-trend.down { color: #f87171; }

/* ─────────────────────────────────────────────────────────────
   23. ADMIN TABLES
   ───────────────────────────────────────────────────────────── */
.admin-table-wrap {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.admin-table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--admin-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-table-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: #e2e8f0;
}

.table-mfap {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table-mfap thead { background: rgba(255,255,255,0.03); }

.table-mfap th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--admin-text-muted);
  border-bottom: 1px solid var(--admin-card-border);
  white-space: nowrap;
  user-select: none;
}

.table-mfap th.sortable { cursor: pointer; }
.table-mfap th.sortable:hover { color: #e2e8f0; }
.table-mfap th.sortable::after {
  content: '\F282';
  font-family: 'bootstrap-icons';
  margin-left: 0.375rem;
  opacity: 0.4;
}

.table-mfap td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #94a3b8;
  vertical-align: middle;
}

.table-mfap tr:last-child td { border-bottom: none; }
.table-mfap tbody tr { transition: background 0.15s; }
.table-mfap tbody tr:hover { background: rgba(255,255,255,0.03); }
.table-mfap tbody tr:hover td { color: #cbd5e1; }

.td-name  { font-weight: 600; color: #e2e8f0 !important; }
.td-light { color: var(--admin-text-muted) !important; }

/* Table action buttons */
.btn-table-action {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  background: transparent;
  font-family: var(--font-base);
}

.btn-table-action.view   { color: #93c5fd; border-color: rgba(59,130,246,0.3); }
.btn-table-action.edit   { color: var(--mfap-gold); border-color: rgba(201,162,39,0.3); }
.btn-table-action.delete { color: #fca5a5; border-color: rgba(239,68,68,0.3); }

.btn-table-action.view:hover   { background: rgba(59,130,246,0.1);  color: #93c5fd; }
.btn-table-action.edit:hover   { background: rgba(201,162,39,0.1);  color: var(--mfap-gold); }
.btn-table-action.delete:hover { background: rgba(239,68,68,0.1);   color: #fca5a5; }

/* ─────────────────────────────────────────────────────────────
   24. ADMIN CARD (generic)
   ───────────────────────────────────────────────────────────── */
.admin-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.admin-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--admin-card-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-card-title { font-size: var(--text-base); font-weight: 700; color: #e2e8f0; flex: 1; }
.admin-card-body  { padding: 1.5rem; }

/* ─────────────────────────────────────────────────────────────
   25. MEMBER DASHBOARD
   ───────────────────────────────────────────────────────────── */
.member-layout {
  display: flex;
  min-height: calc(100vh - var(--navbar-height));
  background: var(--mfap-surface-2);
}

.member-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--mfap-surface);
  border-right: 1px solid var(--mfap-border);
  padding: 1.5rem 0.875rem;
  position: sticky;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
  flex-shrink: 0;
}

.member-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--mfap-text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  margin-bottom: 2px;
}

.member-nav-link:hover { background: var(--mfap-primary-xlight); color: var(--mfap-primary); }
.member-nav-link.active { background: var(--mfap-primary-light); color: var(--mfap-primary); font-weight: 700; }
.member-nav-link i { font-size: 1.05rem; width: 1.25rem; text-align: center; }

.member-main { flex: 1; padding: 2rem; overflow-x: hidden; }

/* Welcome header */
.member-welcome-header {
  background: linear-gradient(135deg, var(--mfap-primary) 0%, var(--mfap-primary-mid) 100%);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  color: #fff;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.member-welcome-header::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.member-welcome-name { font-size: var(--text-2xl); font-weight: 800; color: #fff; margin-bottom: 0.25rem; }
.member-welcome-sub  { color: rgba(255,255,255,0.7); font-size: var(--text-sm); }

/* Member stat cards (light) */
.member-stat-card {
  background: var(--mfap-surface);
  border: 1px solid var(--mfap-border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  transition: var(--transition-base);
}

.member-stat-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.member-stat-number { font-size: var(--text-3xl); font-weight: 800; color: var(--mfap-text); letter-spacing: -0.04em; line-height: 1; }
.member-stat-label  { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--mfap-text-muted); margin-top: 0.25rem; }

/* Tab navigation */
.member-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--mfap-surface-3);
  border-radius: var(--radius-xl);
  padding: 0.3rem;
  margin-bottom: 1.75rem;
  overflow-x: auto;
}

.member-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.125rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--mfap-text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.member-tab:hover  { color: var(--mfap-primary); background: var(--mfap-primary-xlight); }
.member-tab.active { background: var(--mfap-surface); color: var(--mfap-primary); box-shadow: var(--shadow-sm); }

/* Member card */
.member-card {
  background: var(--mfap-surface);
  border: 1px solid var(--mfap-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.member-card-header {
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--mfap-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.member-card-title { font-size: var(--text-base); font-weight: 700; color: var(--mfap-text); flex: 1; }
.member-card-body  { padding: 1.5rem; }

/* Mobile member layout */
@media (max-width: 991.98px) {
  .member-layout { flex-direction: column; }
  .member-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    border-right: none;
    border-bottom: 1px solid var(--mfap-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem;
    flex-direction: row;
  }
  .member-nav-link { font-size: var(--text-xs); padding: 0.45rem 0.65rem; }
  .member-main { padding: 1rem; }
}

/* ─────────────────────────────────────────────────────────────
   26. MODALS
   ───────────────────────────────────────────────────────────── */
.modal-mfap .modal-content {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--mfap-border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-mfap .modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--mfap-border);
  background: var(--mfap-surface-2);
}

.modal-mfap .modal-title {
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--mfap-text);
}

.modal-mfap .modal-body  { padding: 1.75rem; }

.modal-mfap .modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--mfap-border);
  background: var(--mfap-surface-2);
  gap: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────
   27. PDF AGREEMENT (print-ready)
   ───────────────────────────────────────────────────────────── */
.pdf-agreement {
  max-width: 820px;
  margin: 0 auto;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 11pt;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
}

.pdf-header {
  text-align: center;
  border-bottom: 3px double #0d5c4b;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.pdf-logo-text  { font-size: 22pt; font-weight: 700; color: #0d5c4b; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.pdf-org-name   { font-size: 11pt; color: #475569; }

.pdf-doc-title {
  font-size: 16pt;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pdf-section-title {
  font-size: 12pt;
  font-weight: 700;
  color: #0d5c4b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.25rem;
  margin: 1.5rem 0 0.75rem;
}

.pdf-field-row { display: flex; gap: 2rem; margin-bottom: 0.625rem; }

.pdf-field {
  flex: 1;
  border-bottom: 1px solid #94a3b8;
  padding-bottom: 0.25rem;
}

.pdf-field-label {
  font-size: 9pt;
  color: #64748b;
  display: block;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.pdf-field-value { font-size: 11pt; color: #1a1a1a; font-weight: 500; }

.pdf-signature-row { display: flex; gap: 2rem; margin-top: 2rem; }
.pdf-signature-box { flex: 1; border-top: 2px solid #1a1a1a; padding-top: 0.5rem; }
.pdf-signature-label { font-size: 9pt; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; }

.pdf-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 9pt;
  color: #94a3b8;
  text-align: center;
}

@media print {
  .pdf-agreement { max-width: 100%; }
  body * { visibility: hidden; }
  .pdf-agreement, .pdf-agreement * { visibility: visible; }
  .pdf-agreement { position: absolute; left: 0; top: 0; }
  @page { margin: 1cm; }
}

/* ─────────────────────────────────────────────────────────────
   28. ANIMATIONS
   ───────────────────────────────────────────────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.2); opacity: 0.7; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1,0.64,1);
}

.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ─────────────────────────────────────────────────────────────
   29. GLASSMORPHISM
   ───────────────────────────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.18);
}

.glass-dark {
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.08);
}

.glass-green {
  background: rgba(13,92,75,0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(13,92,75,0.25);
}

/* ─────────────────────────────────────────────────────────────
   30. UTILITY CLASSES
   ───────────────────────────────────────────────────────────── */
.elevation-1 { box-shadow: var(--shadow-xs) !important; }
.elevation-2 { box-shadow: var(--shadow-sm) !important; }
.elevation-3 { box-shadow: var(--shadow-md) !important; }
.elevation-4 { box-shadow: var(--shadow-lg) !important; }

.cursor-pointer { cursor: pointer; }
.overflow-x-auto { overflow-x: auto; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--mfap-surface-3) 25%, var(--mfap-surface-2) 50%, var(--mfap-surface-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text  { height: 1em;   margin-bottom: 0.5em; }
.skeleton-title { height: 1.5em; margin-bottom: 0.75em; }
.skeleton-card  { height: 200px; }

/* Divider with text */
.divider-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--mfap-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mfap-border);
}

/* Icon box */
.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}

.icon-box-primary { background: var(--mfap-primary-light); color: var(--mfap-primary); }
.icon-box-gold    { background: var(--mfap-gold-light);    color: var(--mfap-gold-dark); }
.icon-box-success { background: var(--color-success-bg);   color: var(--color-success); }
.icon-box-danger  { background: var(--color-error-bg);     color: var(--color-error); }
.icon-box-info    { background: var(--color-info-bg);      color: var(--color-info); }

/* Number circle */
.num-circle {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 800;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   31. SEARCH INPUT
   ───────────────────────────────────────────────────────────── */
.search-input-wrap { position: relative; }

.search-input-wrap .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mfap-text-muted);
  pointer-events: none;
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  height: 2.5rem;
  padding: 0 1rem 0 2.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-lg);
  color: #e2e8f0;
  font-family: var(--font-base);
  font-size: var(--text-sm);
  outline: none;
  transition: var(--transition-fast);
}

.search-input::placeholder { color: var(--admin-text-muted); }

.search-input:focus {
  border-color: var(--mfap-primary);
  background: rgba(13,92,75,0.1);
  box-shadow: 0 0 0 3px rgba(13,92,75,0.2);
}

.search-input-light {
  background: var(--mfap-surface);
  border: 1.5px solid var(--mfap-border);
  color: var(--mfap-text);
}

.search-input-light::placeholder { color: var(--mfap-text-muted); }

.search-input-light:focus {
  border-color: var(--mfap-primary);
  background: var(--mfap-primary-xlight);
  box-shadow: 0 0 0 3px rgba(13,92,75,0.1);
}

/* ─────────────────────────────────────────────────────────────
   32. FAQ ACCORDION
   ───────────────────────────────────────────────────────────── */
.faq-accordion .accordion-item {
  border: 1px solid var(--mfap-border);
  border-radius: var(--radius-xl) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.faq-accordion .accordion-item:hover { box-shadow: var(--shadow-md); }

.faq-accordion .accordion-button {
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--mfap-text);
  background: var(--mfap-surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-xl) !important;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--mfap-primary);
  background: var(--mfap-primary-xlight);
  box-shadow: none;
}

.faq-accordion .accordion-button::after {
  filter: invert(30%) sepia(80%) saturate(500%) hue-rotate(130deg);
}

.faq-accordion .accordion-body {
  font-size: var(--text-sm);
  color: var(--mfap-text-secondary);
  line-height: 1.8;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--mfap-surface);
}

/* ─────────────────────────────────────────────────────────────
   33. PAGINATION
   ───────────────────────────────────────────────────────────── */
.mfap-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.mfap-pagination .page-item .page-link {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg) !important;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1.5px solid var(--mfap-border);
  color: var(--mfap-text-secondary);
  background: var(--mfap-surface);
  transition: var(--transition-fast);
}

.mfap-pagination .page-item .page-link:hover {
  background: var(--mfap-primary-xlight);
  color: var(--mfap-primary);
  border-color: var(--mfap-primary);
}

.mfap-pagination .page-item.active .page-link {
  background: var(--mfap-primary) !important;
  border-color: var(--mfap-primary) !important;
  color: #fff !important;
  box-shadow: var(--shadow-primary);
}

/* ─────────────────────────────────────────────────────────────
   34. PROGRESS BAR
   ───────────────────────────────────────────────────────────── */
.mfap-progress {
  height: 6px;
  background: var(--mfap-surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mfap-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--mfap-primary) 0%, var(--mfap-accent) 100%);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

.mfap-progress-bar.gold {
  background: linear-gradient(90deg, var(--mfap-gold-dark) 0%, var(--mfap-gold) 100%);
}

/* ─────────────────────────────────────────────────────────────
   35. BREADCRUMBS (admin)
   ───────────────────────────────────────────────────────────── */
.mfap-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--admin-text-muted);
  flex-wrap: wrap;
}

.mfap-breadcrumb a { color: var(--admin-text-muted); text-decoration: none; transition: color 0.15s; }
.mfap-breadcrumb a:hover { color: #e2e8f0; }
.mfap-breadcrumb .sep { opacity: 0.4; font-size: 0.75rem; }
.mfap-breadcrumb .current { color: #e2e8f0; font-weight: 600; }

/* ─────────────────────────────────────────────────────────────
   36. EMPTY STATE
   ───────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; }

.empty-state-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  font-size: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.empty-state h4  { font-size: var(--text-lg); font-weight: 700; color: var(--mfap-text); margin-bottom: 0.5rem; }
.empty-state p   { font-size: var(--text-sm); color: var(--mfap-text-muted); max-width: 320px; margin: 0 auto 1.5rem; }

/* ─────────────────────────────────────────────────────────────
   37. STATUS BADGE SHORTCUTS
   ───────────────────────────────────────────────────────────── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--color-success-bg);
  color: var(--color-success-text);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.unverified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

/* ─────────────────────────────────────────────────────────────
   38. BACK TO TOP
   ───────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--mfap-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  box-shadow: var(--shadow-primary);
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition-base);
  z-index: 500;
  text-decoration: none;
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }

.back-to-top:hover {
  background: var(--mfap-primary-dark);
  transform: translateY(-3px);
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   39. GLOBAL RESPONSIVE CATCH-ALL
   ───────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  :root { --navbar-height: 64px; }

  .section-pad    { padding: 3rem 0; }
  .section-pad-lg { padding: 4rem 0; }
  .section-title-block { margin-bottom: 2rem; }

  .stat-card-number { font-size: var(--text-3xl); }
}

@media (max-width: 767.98px) {
  .trust-item { font-size: var(--text-xs); }
}

/* ─────────────────────────────────────────────────────────────
   40. REDUCED MOTION
   ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   41. GENERAL CARD + STAT CARD COMPONENTS
   ───────────────────────────────────────────────────────────── */
.mfap-card {
  background: #fff;
  border: 1px solid #e8eef2;
  border-radius: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.mfap-card:hover { box-shadow: 0 4px 16px rgba(13,92,75,0.08); }
.mfap-card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfc;
}

/* Stat cards */
.mfap-stat-card {
  background: #fff;
  border: 1px solid #e8eef2;
  border-radius: 0.875rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mfap-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,92,75,0.1);
}
.mfap-stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.mfap-stat-icon.stat-primary { background: var(--mfap-primary-light); color: var(--mfap-primary); }
.mfap-stat-icon.stat-warning { background: #fef3c7; color: #d97706; }
.mfap-stat-icon.stat-danger  { background: #fee2e2; color: #dc2626; }
.mfap-stat-icon.stat-accent  { background: rgba(201,162,39,0.12); color: #c9a227; }
.mfap-stat-icon.stat-info    { background: #eff6ff; color: #2563eb; }
.mfap-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mfap-text-muted);
  margin-bottom: 0.25rem;
}
.mfap-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--mfap-text);
  line-height: 1.1;
}

/* ─────────────────────────────────────────────────────────────
   42. PAGE HEADER (public pages)
   ───────────────────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--mfap-primary-deeper) 0%, #0d3d31 60%, #0a2e25 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(201,162,39,0.08) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(13,92,75,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.page-header .lead {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

/* ─────────────────────────────────────────────────────────────
   42. CONTENT PAGE TYPOGRAPHY
   ───────────────────────────────────────────────────────────── */
.mfap-content-page .content-lead {
  font-size: 1.1rem;
  color: var(--mfap-text);
  line-height: 1.8;
  font-weight: 500;
}
.mfap-content-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
}
.mfap-content-section:first-of-type {
  margin-top: 1.5rem;
}
.mfap-content-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mfap-text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.mfap-content-section p,
.mfap-content-section ul {
  color: #475569;
  line-height: 1.8;
}
.mfap-content-section ul {
  padding-left: 1.5rem;
}
.mfap-content-section li {
  margin-bottom: 0.4rem;
}
.mfap-content-highlight {
  background: var(--mfap-primary-light);
  border-left: 3px solid var(--mfap-primary);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

/* Table of contents */
.mfap-toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.mfap-toc h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mfap-text-muted);
  margin-bottom: 0.75rem;
}
.mfap-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 1.5rem;
}
.mfap-toc li { margin-bottom: 0.3rem; }
.mfap-toc a {
  font-size: 0.85rem;
  color: var(--mfap-primary);
  text-decoration: none;
  font-weight: 500;
}
.mfap-toc a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────
   43. ACCORDION (FAQ)
   ───────────────────────────────────────────────────────────── */
.accordion-mfap .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-mfap .accordion-button {
  background: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--mfap-text);
  box-shadow: none;
  border-radius: 0.75rem !important;
}
.accordion-mfap .accordion-button:not(.collapsed) {
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.accordion-mfap .accordion-button::after {
  filter: none;
}
.accordion-mfap .accordion-button:not(.collapsed)::after {
  filter: invert(30%) sepia(60%) saturate(400%) hue-rotate(130deg);
}
.accordion-mfap .accordion-body {
  color: #475569;
  line-height: 1.8;
  font-size: 0.9rem;
  padding: 1rem 1.5rem 1.25rem;
}

/* ─────────────────────────────────────────────────────────────
   44. PLAN CARDS (plans/index)
   ───────────────────────────────────────────────────────────── */
.mfap-plan-recommended {
  box-shadow: 0 0 0 2px var(--mfap-primary), 0 8px 30px rgba(13,92,75,0.15) !important;
}
.plan-badge-recommended {
  background: var(--mfap-primary);
  color: #fff;
  text-align: center;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
}
.plan-header-primary {
  background: linear-gradient(135deg, var(--mfap-primary-deeper) 0%, var(--mfap-primary) 100%);
  color: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
}
.plan-header-primary .plan-price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.1rem;
  color: #fff;
}
.plan-header-primary .plan-price-period {
  font-size: 0.85rem;
  opacity: 0.75;
  font-weight: 500;
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   45. ADMIN NAV + BADGES
   ───────────────────────────────────────────────────────────── */
.page-header-admin {
  background: linear-gradient(135deg, #0a2218 0%, var(--mfap-primary-deeper) 50%, #0d3d31 100%);
}
.mfap-admin-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(201,162,39,0.2);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: 2rem;
  border: 1px solid rgba(201,162,39,0.3);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}
/* Member dashboard nav grid */
.member-nav-grid-wrapper {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
}
.member-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.member-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  background: none;
  border: 1.5px solid transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.member-nav-item:hover {
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  border-color: rgba(13,92,75,0.15);
}
.member-nav-item.active {
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  border-color: rgba(13,92,75,0.3);
}
.member-nav-item-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.15s;
}
.member-nav-item:hover .member-nav-item-icon,
.member-nav-item.active .member-nav-item-icon {
  background: rgba(13,92,75,0.15);
  color: var(--mfap-primary);
}
.member-nav-item-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 575.98px) {
  .member-nav-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Admin nav grid */
.admin-nav-grid-wrapper {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.admin-nav-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: visible;
}
@media (max-width: 991.98px) {
  .admin-nav-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
  }
}
@media (max-width: 575.98px) {
  .admin-nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
  }
}
.admin-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #64748b;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
  justify-content: center;
  background: none;
  min-width: 0;
  flex: initial;
}
.admin-nav-item:hover {
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  border-color: rgba(13,92,75,0.15);
}
.admin-nav-item.active {
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  border-color: rgba(13,92,75,0.3);
}
.admin-nav-item-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.15s;
  flex-shrink: 0;
}
.admin-nav-item:hover .admin-nav-item-icon,
.admin-nav-item.active .admin-nav-item-icon {
  background: rgba(13,92,75,0.15);
  color: var(--mfap-primary);
}
.admin-nav-item-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  word-break: normal;
  overflow-wrap: anywhere;
}
.admin-nav-item-export .admin-nav-item-icon { background: #eff6ff; color: #2563eb; }
.admin-nav-item-export { color: #2563eb; }
.admin-nav-item-export:hover { background: #eff6ff; color: #1e40af; border-color: rgba(37,99,235,0.2); }
.admin-nav-item-export:hover .admin-nav-item-icon { background: #dbeafe; color: #1e40af; }
.admin-nav-back {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  text-align: right;
}
.admin-nav-back-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.admin-nav-back-link:hover { color: var(--mfap-primary); }

/* ─────────────────────────────────────────────────────────────
   46. ADMIN SETTINGS CARDS (stripe settings)
   ───────────────────────────────────────────────────────────── */
.admin-settings-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
}
.admin-settings-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfc;
}
.admin-settings-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.admin-settings-card-body {
  padding: 1.25rem 1.5rem;
}
.settings-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.settings-input-prefix {
  position: absolute;
  left: 0.9rem;
  color: var(--mfap-text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 2;
}
.settings-input {
  padding-left: 2.5rem !important;
  padding-right: 3rem !important;
}
.settings-copy-btn,
.settings-toggle-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--mfap-text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.2s;
}
.settings-copy-btn:hover,
.settings-toggle-btn:hover {
  color: var(--mfap-primary);
}
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.settings-switch {
  position: relative;
  width: 3rem;
  height: 1.5rem;
  flex-shrink: 0;
  cursor: pointer;
}
.settings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.settings-switch-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 1rem;
  transition: background 0.25s;
}
.settings-switch-slider::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  background: #fff;
  border-radius: 50%;
  transition: left 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.settings-switch input:checked + .settings-switch-slider {
  background: var(--mfap-primary);
}
.settings-switch input:checked + .settings-switch-slider::before {
  left: calc(100% - 1.35rem);
}
.mode-toggle-group {
  display: flex;
  gap: 0.75rem;
}
.mode-toggle-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.mode-toggle-option input[type="radio"] {
  display: none;
}
.mode-toggle-option.active {
  border-color: var(--mfap-primary);
  background: var(--mfap-primary-light);
}
.mode-toggle-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--mfap-primary-light);
  color: var(--mfap-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-error {
  color: #dc2626;
  font-size: 0.8rem;
}

/* ─────────────────────────────────────────────────────────────
   48. UTILITIES (pulse dot, spinner)
   ───────────────────────────────────────────────────────────── */
.mfap-pulse-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4ade80;
  animation: pulseDot 2s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.mfap-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinnerSpin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spinnerSpin {
  to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────────
   49. FADE-IN ANIMATIONS
   ───────────────────────────────────────────────────────────── */
.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}
.fade-in-up-delay-1 { animation-delay: 0.1s; }
.fade-in-up-delay-2 { animation-delay: 0.2s; }
.fade-in-up-delay-3 { animation-delay: 0.3s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────
   50. DASHBOARD LAYOUT (Sidebar + Content) — Pro Redesign
   ───────────────────────────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: #f0f4f8;
}

/* ── Sidebar ── */
.dashboard-sidebar {
  position: fixed;
  left: 0; top: 0;
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #062d25 0%, #0a3d32 60%, #0d5c4b 100%);
  color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1030;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  border-right: 1px solid rgba(255,255,255,0.07);
  box-shadow: 4px 0 24px rgba(6,45,37,0.18);
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 0.75rem 1rem;
}

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem 1rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}

.sidebar-brand i {
  font-size: 1.6rem;
  color: #4ade80;
  filter: drop-shadow(0 0 8px rgba(74,222,128,0.4));
}

/* Nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.sidebar-section { margin-bottom: 1.25rem; }

.sidebar-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.4rem;
  padding: 0 0.75rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.6rem;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: all 0.18s ease;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
  position: relative;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 0;
  background: #4ade80;
  border-radius: 0 2px 2px 0;
  transition: height 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.sidebar-link:hover::before { height: 60%; }

.sidebar-link.active {
  background: rgba(74,222,128,0.15);
  color: #fff;
  font-weight: 600;
}

.sidebar-link.active::before { height: 70%; }

.sidebar-link i {
  width: 1.2rem;
  text-align: center;
  flex-shrink: 0;
  font-size: 1rem;
  opacity: 0.85;
}

.sidebar-link.active i,
.sidebar-link:hover i { opacity: 1; }

/* User card at bottom */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  border-radius: 0.75rem;
}

.user-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #1aa384, #0d5c4b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.user-info { flex: 1; min-width: 0; }

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.sidebar-logout { margin-top: 0.5rem; }

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 0.6rem;
  background: rgba(239,68,68,0.12);
  color: rgba(252,165,165,0.9);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.18s;
  border: 1px solid rgba(239,68,68,0.25);
}

.btn-logout:hover {
  background: rgba(239,68,68,0.22);
  color: #fecaca;
  border-color: rgba(239,68,68,0.45);
}

/* Overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1020;
  display: none;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Main area ── */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ── Topbar ── */
.dashboard-topbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  padding: 0 1.75rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.03);
}

.topbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--mfap-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.4rem;
  transition: background 0.15s;
}

.topbar-toggle:hover { background: #f1f5f9; }

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mfap-text);
  flex: 1;
}

.topbar-brand i { color: var(--mfap-primary); font-size: 1.2rem; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Notification bell */
.topbar-icon-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  position: relative;
}

.topbar-icon-btn:hover { background: #f1f5f9; color: var(--mfap-primary); border-color: #cbd5e1; }

.topbar-user { display: flex; align-items: center; gap: 0.75rem; }

.btn-user-dropdown {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  cursor: pointer;
  color: var(--mfap-text);
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.18s;
}

.btn-user-dropdown:hover { background: #f1f5f9; border-color: #cbd5e1; }

.user-avatar-mini {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.4rem;
  background: linear-gradient(135deg, #0d5c4b, #1aa384);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}

.user-name-mini {
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.dropdown-menu {
  min-width: 190px;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 0.4rem;
}

.dropdown-item {
  border-radius: 0.5rem;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
}

/* ── Content area ── */
.dashboard-content {
  flex: 1;
  padding: 1.75rem 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}

/* ── Page heading inside content ── */
.dash-page-header {
  margin-bottom: 1.5rem;
}

.dash-page-header h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.dash-page-header p {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

/* ── Pro filter bar ── */
.dash-filter-bar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dash-filter-bar .filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  white-space: nowrap;
}

.dash-filter-bar .form-select,
.dash-filter-bar .form-control {
  border-radius: 0.5rem;
  border-color: #e2e8f0;
  font-size: 0.85rem;
  height: 2.1rem;
  padding: 0 0.75rem;
  background-color: #f8fafc;
  min-width: 0;
}

.dash-filter-bar .form-select:focus,
.dash-filter-bar .form-control:focus {
  border-color: var(--mfap-primary);
  box-shadow: 0 0 0 3px rgba(13,92,75,0.1);
  background: #fff;
}

.dash-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  white-space: nowrap;
}

.dash-filter-btn-primary {
  background: var(--mfap-primary);
  color: #fff;
}

.dash-filter-btn-primary:hover { background: var(--mfap-primary-dark); color: #fff; }

.dash-filter-btn-outline {
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.dash-filter-btn-outline:hover { background: #f1f5f9; color: #0f172a; }

/* ── Pro table card ── */
.dash-table-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e8edf3;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.dash-table-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-table-card-header h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-table-card-header h5 i {
  color: var(--mfap-primary);
  font-size: 1rem;
}

.dash-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25em 0.75em;
  border-radius: 9999px;
  background: #f0faf8;
  color: var(--mfap-primary);
  border: 1px solid rgba(13,92,75,0.15);
}

.dash-table-card table thead tr th {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94a3b8;
  background: #fafbfc;
  border-bottom: 1px solid #f1f5f9;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.dash-table-card table tbody tr td {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  border-bottom: 1px solid #f8fafc;
  vertical-align: middle;
}

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

.dash-table-card table tbody tr:hover td { background: #fafeff; }

.dash-table-card .table-footer {
  padding: 0.85rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}

/* ── Stat cards — redesigned ── */
.ds-stat-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e8edf3;
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.ds-stat-card::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: 0.06;
}

.ds-stat-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.ds-stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.ds-stat-body { flex: 1; min-width: 0; }

.ds-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

.ds-stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ds-stat-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.3rem;
}

/* Color variants */
.ds-stat-green .ds-stat-icon { background: #d1fae5; color: #059669; }
.ds-stat-green::after { background: #059669; }
.ds-stat-blue .ds-stat-icon { background: #dbeafe; color: #2563eb; }
.ds-stat-blue::after { background: #2563eb; }
.ds-stat-amber .ds-stat-icon { background: #fef3c7; color: #d97706; }
.ds-stat-amber::after { background: #d97706; }
.ds-stat-purple .ds-stat-icon { background: #ede9fe; color: #7c3aed; }
.ds-stat-purple::after { background: #7c3aed; }
.ds-stat-red .ds-stat-icon { background: #fee2e2; color: #dc2626; }
.ds-stat-red::after { background: #dc2626; }
.ds-stat-teal .ds-stat-icon { background: #ccfbf1; color: #0d9488; }
.ds-stat-teal::after { background: #0d9488; }

/* ── Action buttons in tables ── */
.btn-table-view {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.8rem;
  border-radius: 0.45rem;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #374151;
  white-space: nowrap;
}

.btn-table-view:hover { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; }

.btn-table-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.8rem;
  border-radius: 0.45rem;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #dc2626;
  white-space: nowrap;
}

.btn-table-danger:hover { background: #fee2e2; border-color: #fca5a5; }

.btn-table-success {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.8rem;
  border-radius: 0.45rem;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid #a7f3d0;
  background: #f0fdf4;
  color: #059669;
  white-space: nowrap;
}

.btn-table-success:hover { background: #d1fae5; border-color: #6ee7b7; }

.btn-table-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.8rem;
  border-radius: 0.45rem;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid rgba(13,92,75,0.3);
  background: #f0faf8;
  color: var(--mfap-primary);
  white-space: nowrap;
  text-decoration: none;
}

.btn-table-primary:hover { background: #e6f4f1; border-color: rgba(13,92,75,0.5); color: var(--mfap-primary-dark); }

/* ── Alert banner ── */
.dash-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.dash-alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.dash-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.dash-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #065f46;
}


/* ── Empty state ── */
.dash-empty {
  text-align: center;
  padding: 3rem 1.5rem;
}

.dash-empty-icon {
  font-size: 2.75rem;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.dash-empty p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
}

/* ── Status badge refinements ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25em 0.7em;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: capitalize;
}

.status-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-success { background: #dcfce7; color: #166534; }
.status-success::before { background: #16a34a; }
.status-warning { background: #fef9c3; color: #854d0e; }
.status-warning::before { background: #ca8a04; }
.status-danger  { background: #fee2e2; color: #991b1b; }
.status-danger::before  { background: #dc2626; }
.status-info    { background: #dbeafe; color: #1e40af; }
.status-info::before    { background: #3b82f6; }
.status-muted   { background: #f1f5f9; color: #475569; }
.status-muted::before   { background: #94a3b8; }

/* ══════════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE SYSTEM
   Breakpoints: xs<576 | sm≥576 | md≥768 | lg≥992 | xl≥1200
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet & below (< 992px) ── */
@media (max-width: 991.98px) {
  .dashboard-sidebar { transform: translateX(-260px); }
  .dashboard-sidebar.active { transform: translateX(0); }
  .sidebar-overlay { display: block; }
  .dashboard-main { margin-left: 0; }
  .topbar-toggle { display: block; }
  .dashboard-topbar { padding: 0 1rem; }
  .dashboard-content { padding: 1.25rem 1rem; }
  .user-name-mini { display: inline; }

  /* Admin nav - restore responsive grid on tablet */
  .admin-nav-item { min-width: 0; flex: initial; padding: 0.55rem 0.4rem; }

  /* Stat cards - 2 per row on tablet */
  .ds-stat-card { padding: 1rem; gap: 0.75rem; }
  .ds-stat-value { font-size: 1.5rem; }

  /* Filter bar wraps */
  .dash-filter-bar { gap: 0.5rem; }

  /* Tables - allow horizontal scroll */
  .dash-table-card { overflow-x: auto; }
}

/* ── Mobile (< 768px) — primary target ── */
@media (max-width: 767.98px) {
  /* Layout */
  .dashboard-sidebar { width: 280px; transform: translateX(-280px); }
  .dashboard-sidebar.active { transform: translateX(0); box-shadow: 8px 0 40px rgba(0,0,0,0.3); }
  .sidebar-overlay { display: block; }
  .dashboard-main { margin-left: 0; }
  .topbar-toggle { display: block; }
  .dashboard-topbar { padding: 0 0.75rem; height: 56px; gap: 0.5rem; }
  .topbar-brand span { display: none; }
  .dashboard-content { padding: 0.875rem 0.75rem; }
  .user-name-mini { display: none; }
  .btn-user-dropdown { padding: 0.35rem; border: none; background: none; gap: 0; }
  .btn-user-dropdown .bi-chevron-down { display: none; }

  /* Page header */
  .dash-page-header { margin-bottom: 1rem; }
  .dash-page-header h1 { font-size: 1.15rem; }
  .dash-page-header p { font-size: 0.8rem; }

  /* Stat cards — 2 per row, compact */
  .ds-stat-card { padding: 0.875rem; gap: 0.65rem; flex-direction: row; align-items: center; }
  .ds-stat-icon { width: 2.25rem; height: 2.25rem; font-size: 0.95rem; border-radius: 0.6rem; }
  .ds-stat-value { font-size: 1.25rem; letter-spacing: -0.02em; }
  .ds-stat-label { font-size: 0.65rem; }
  .ds-stat-sub { display: none; }
  .ds-stat-card::after { display: none; }

  /* Member nav grid — 3 cols on mobile, 5 on bigger */
  .member-nav-grid { grid-template-columns: repeat(3, 1fr); gap: 0.3rem; }
  .member-nav-item { padding: 0.55rem 0.3rem; font-size: 0.65rem; }
  .member-nav-item-icon { width: 1.75rem; height: 1.75rem; font-size: 0.85rem; }

  /* Admin nav grid — mobile responsive like member dashboard */
  .admin-nav-grid-wrapper { padding: 0.6rem 0.5rem; margin-bottom: 1.25rem; }
  .admin-nav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25rem; }
  .admin-nav-item { min-width: 0; flex: initial; padding: 0.4rem 0.2rem; }
  .admin-nav-item-icon { width: 1.6rem; height: 1.6rem; font-size: 0.8rem; }
  .admin-nav-item-label { font-size: 0.58rem; line-height: 1.1; }
  .admin-nav-back { padding-top: 0.4rem; }
  .admin-nav-back-link { font-size: 0.65rem; }

  /* Filter bar stacks vertically */
  .dash-filter-bar { flex-direction: column; align-items: stretch; gap: 0.5rem; padding: 0.75rem; }
  .dash-filter-bar form { flex-direction: column; gap: 0.5rem; width: 100%; }
  .dash-filter-bar .form-select,
  .dash-filter-bar .form-control { width: 100% !important; max-width: 100% !important; height: 2.5rem; font-size: 0.9rem; }
  .dash-filter-bar .filter-label { display: none; }
  .dash-filter-btn { width: 100%; justify-content: center; padding: 0.6rem 1rem; font-size: 0.875rem; }

  /* Table card */
  .dash-table-card { border-radius: 0.75rem; }
  .dash-table-card-header { padding: 0.75rem 0.875rem; flex-wrap: wrap; gap: 0.5rem; }
  .dash-table-card-header h5 { font-size: 0.875rem; }

  /* Table — hide less important cols, make key data prominent */
  .dash-table-card table { min-width: 500px; }
  .dash-table-card .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Action buttons — smaller on mobile */
  .btn-table-view,
  .btn-table-danger,
  .btn-table-success,
  .btn-table-primary {
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
    gap: 0.2rem;
  }

  /* Status badges */
  .status-badge { font-size: 0.65rem; padding: 0.2em 0.55em; }

  /* Alert banners */
  .dash-alert { padding: 0.75rem 0.875rem; font-size: 0.82rem; gap: 0.6rem; }

  /* Forms */
  .form-card { padding: 1.25rem !important; border-radius: 0.75rem; }
  .form-section-title { font-size: 0.8rem; margin-bottom: 1rem; }

  /* mfap-card on mobile */
  .mfap-card { border-radius: 0.75rem; }

  /* Remove container padding that double-pads */
  .container, .container-fluid { padding-left: 0; padding-right: 0; }
}

/* ── Small mobile (< 480px) ── */
@media (max-width: 479.98px) {
  .dashboard-content { padding: 0.75rem 0.625rem; }
  .dashboard-topbar { height: 52px; }

  /* Stat cards — 1 col on very small screens */
  .ds-stat-value { font-size: 1.15rem; }

  /* Member nav — 3 cols still, even smaller */
  .member-nav-item-icon { width: 1.5rem; height: 1.5rem; font-size: 0.75rem; }
  .member-nav-item { font-size: 0.6rem; padding: 0.4rem 0.2rem; }

  /* Table action buttons — icon only */
  .btn-table-view span,
  .btn-table-danger span,
  .btn-table-success span,
  .btn-table-primary span { display: none; }

  .dash-table-card-header h5 { font-size: 0.82rem; }

  .dash-page-header h1 { font-size: 1.05rem; }
}

/* ── Touch-device helper — bigger tap targets ── */
@media (hover: none) and (pointer: coarse) {
  .sidebar-link { padding: 0.85rem 0.85rem; min-height: 44px; }
  .admin-nav-item, .member-nav-item { min-height: 44px; }
  .btn-table-view, .btn-table-danger,
  .btn-table-success, .btn-table-primary { min-height: 36px; }
  .dash-filter-btn { min-height: 44px; }
  .form-select, .form-control, .mfap-input { min-height: 48px; font-size: 16px; } /* 16px prevents iOS zoom */
  select.form-select { font-size: 16px; }
}

