/* ==========================================================================
   IBN GOVERNANCE & MULTI-TIER MANAGEMENT SYSTEM
   - Super Admin Panel Layout Fixes & Spacing Rectification
   - Chapter Management & Chapter President Assignment
   - Country-wise & Global Free Trial Period Controls (1, 2, 3 Months)
   - Chapter President Portal & Roster Management
   - State / Regional Directors Portal & Multi-Chapter Allocation
   ========================================================================== */

:root {
  --ibn-navy: #071224;
  --ibn-navy-light: #0d1e38;
  --ibn-gold: #c59b27;
  --ibn-gold-hover: #b0871d;
  --ibn-gold-subtle: #fef9c3;
  --ibn-border: #e2e8f0;
  --ibn-card-bg: #ffffff;
  --ibn-text-dark: #0f172a;
  --ibn-text-muted: #64748b;
  --ibn-emerald: #10b981;
  --ibn-amber: #f59e0b;
  --ibn-rose: #ef4444;
  --ibn-blue: #3b82f6;
  --ibn-purple: #8b5cf6;
}

/* ==========================================================================
   1. UNIVERSAL ROLE / PORTAL TEST SWITCHER BAR
   ========================================================================== */
.governance-portal-switcher {
  background: linear-gradient(90deg, #071224 0%, #0f172a 100%);
  border-bottom: 1px solid #1e293b;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #94a3b8;
  z-index: 1000;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
}

.switcher-pills-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.switcher-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.switcher-pill-btn:hover {
  background: rgba(197, 155, 39, 0.15);
  color: #fef08a;
  border-color: #c59b27;
}

.switcher-pill-btn.active {
  background: #c59b27;
  color: #071224;
  border-color: #c59b27;
  font-weight: 700;
}

/* ==========================================================================
   2. SUPER ADMIN PANEL SPACING & STRUCTURE RECTIFICATION
   ========================================================================== */
#app-admin-section {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #f8fafc;
  overflow-x: hidden;
}

.admin-sidebar {
  width: 260px;
  min-width: 260px;
  background: #071224;
  border-right: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.admin-main-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f8fafc;
  height: 100vh;
  overflow-y: auto;
}

.admin-top-bar {
  background: #ffffff;
  padding: 16px 28px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.admin-content-area {
  padding: 24px 28px;
  flex: 1;
  max-width: 100%;
  box-sizing: border-box;
}

/* 4-Column Balanced Grid that fills 100% of the width cleanly */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
  width: 100%;
}

@media (max-width: 1200px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .admin-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

.admin-stat-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.admin-stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.admin-stat-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.admin-stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #071224;
  line-height: 1.1;
  margin: 4px 0 8px 0;
}

.admin-stat-subtag {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Quick Actions Subheader in Super Admin */
.admin-action-banner {
  background: linear-gradient(135deg, #071224 0%, #1e293b 100%);
  border-radius: 12px;
  padding: 18px 24px;
  color: #ffffff;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 14px rgba(7, 18, 36, 0.08);
}

.admin-action-banner-text h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #ffffff;
}

.admin-action-banner-text p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}

.admin-quick-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-admin-action-gold {
  background: #c59b27;
  color: #071224;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-admin-action-gold:hover {
  background: #d4aa33;
  transform: translateY(-1px);
}

.btn-admin-action-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-admin-action-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Two split tables on dashboard */
.admin-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .admin-split-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   3. TRIAL STATUS BADGES & TAGS
   ========================================================================== */
.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.trial-badge-active {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.trial-badge-paid {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.trial-badge-expired {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.trial-badge-pill-green {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* ==========================================================================
   4. CHAPTER PRESIDENT PORTAL
   ========================================================================== */
#app-president-section {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: #f8fafc;
}

.president-header-banner {
  background: linear-gradient(135deg, #060e1c 0%, #0d1a2f 50%, #122442 100%);
  border-bottom: 2px solid #e5b842;
  color: #ffffff;
  padding: 26px 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
}

.director-header-banner {
  background: linear-gradient(135deg, #050d1a 0%, #0a1b33 50%, #0e294d 100%);
  border-bottom: 2px solid #38bdf8;
  color: #ffffff;
  padding: 26px 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
}

.president-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
}

.president-chapter-name {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 4px 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.president-meta-pills {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.president-meta-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* President Roster Filter Bar */
.president-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(11, 19, 41, 0.02);
}

.president-tab-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.president-tab-btn,
.dir-tab-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.president-tab-btn:hover,
.dir-tab-btn:hover {
  background: #f1f5f9;
  color: #0b1329;
  border-color: #cbd5e1;
}

.president-tab-btn.active,
.dir-tab-btn.active {
  background: #0b1329;
  color: #ffffff;
  border-color: #0b1329;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(11, 19, 41, 0.16);
}

/* ==========================================================================
   5. REGIONAL / STATE DIRECTORS PORTAL
   ========================================================================== */
#app-director-section {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: #f8fafc;
}

.director-chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.director-chapter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.director-chapter-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.director-chapter-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.director-chapter-title {
  font-size: 15px;
  font-weight: 700;
  color: #071224;
  margin: 0;
}

.director-chapter-stats-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin: 10px 0;
}

.director-chapter-stat-col {
  flex: 1;
  text-align: center;
}

.director-chapter-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #071224;
}

.director-chapter-stat-lbl {
  font-size: 10.5px;
  color: #64748b;
  text-transform: uppercase;
}

/* ==========================================================================
   6. TRIAL SETTINGS CONFIGURATION UI
   ========================================================================== */
.trial-settings-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.trial-global-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.trial-period-select {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  background: #ffffff;
  color: #071224;
  outline: none;
}

.trial-country-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.trial-country-row:hover {
  background: #f8fafc;
}

/* Multi-chapter tag badges in Directors list */
.director-chapter-tags-wrap {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 320px;
}

.director-chapter-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Modal Form Fields enhancement */
.gov-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .gov-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   8. PHASE 5: REVENUE & REFERRALS ANALYTICS, DATE RANGE FILTERS & TYFCB
   ========================================================================== */

/* President & Director Content Container */
.admin-content-area {
  padding: 24px 32px 48px 32px;
}

/* Date Period Filter Bar */
.gov-date-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(11, 19, 41, 0.03);
}

.gov-date-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gov-date-label {
  font-size: 12px;
  font-weight: 800;
  color: #0b1329;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.gov-date-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gov-date-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gov-date-chip:hover {
  background: #f1f5f9;
  color: #0b1329;
  border-color: #cbd5e1;
}

.gov-date-chip.active {
  background: #0b1329;
  border-color: #e5b842;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(11, 19, 41, 0.2);
}

.gov-date-inputs-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gov-date-input {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #1e293b;
  font-family: inherit;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.gov-date-input:focus {
  border-color: #e5b842;
  box-shadow: 0 0 0 3px rgba(229, 184, 66, 0.15);
}

.gov-btn-apply-dates {
  background: linear-gradient(135deg, #e5b842 0%, #c59b27 100%);
  color: #0b1329;
  border: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(229, 184, 66, 0.25);
}

.gov-btn-apply-dates:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(229, 184, 66, 0.35);
}

/* 4-Column Executive Analytics KPI Grid */
.gov-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .gov-analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.gov-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(11, 19, 41, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gov-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(11, 19, 41, 0.08);
}

.gov-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #cbd5e1;
}

.gov-kpi-card.kpi-revenue::before {
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
}

.gov-kpi-card.kpi-referrals::before {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.gov-kpi-card.kpi-business::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.gov-kpi-card.kpi-tynotes::before {
  background: linear-gradient(90deg, #e5b842, #b45309);
}

.gov-kpi-top,
.gov-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.gov-kpi-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.gov-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.gov-kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: #0b1329;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.gov-kpi-sub,
.gov-kpi-subtag {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

/* Secondary Subtab Switcher Bar */
.gov-view-tabs-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(11, 19, 41, 0.02);
  overflow-x: auto;
  max-width: 100%;
}

.gov-tab-btn,
.gov-view-tab {
  background: transparent;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  outline: none;
}

.gov-tab-btn:hover,
.gov-view-tab:hover {
  background: #f1f5f9;
  color: #0b1329;
}

.gov-tab-btn.active,
.gov-view-tab.active {
  background: #0b1329 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(11, 19, 41, 0.18) !important;
}

.gov-tab-btn span,
.gov-view-tab .badge-count {
  background: #e2e8f0;
  color: #475569;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.gov-tab-btn.active span,
.gov-view-tab.active .badge-count {
  background: rgba(229, 184, 66, 0.22) !important;
  color: #fef08a !important;
}

/* Executive Table Container */
.admin-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(11, 19, 41, 0.03);
}

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

.admin-table th {
  background: #f8fafc;
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.admin-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #fbfcfe;
}

/* Amount Pills & Badges */
.amount-pill-green {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-weight: 700;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.amount-pill-gold {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  font-weight: 700;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.amount-pill-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.amount-pill-indigo {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  font-weight: 700;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-completed-pill {
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #a7f3d0;
}

.status-pending-pill {
  background: #fffbeb;
  color: #b45309;
  font-weight: 700;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #fde68a;
}

/* Dual member pills */
.badge-status-paid {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

.badge-status-payment_pending {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

/* ==========================================================================
   INTERACTIVE PORTAL SWITCHERS & CREDENTIALS VAULT STYLING
   ========================================================================== */
.pres-chapter-switcher-box,
.dir-director-switcher-box {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.25s ease-out;
}

.pres-chapter-switcher-box select,
.dir-director-switcher-box select {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pres-chapter-switcher-box select:focus,
.dir-director-switcher-box select:focus {
  border-color: var(--ibn-gold) !important;
  box-shadow: 0 0 0 2px rgba(197, 155, 39, 0.25);
}

.pwd-credential-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.btn-copy-cred {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 11px;
  transition: all 0.15s ease;
}

.btn-copy-cred:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.portal-access-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

