/* =====================================================
   Stokvel Society – Account Dashboard Styles v2.1.2
   ===================================================== */

/* =====================================================
   Core Layout & Reset
   ===================================================== */
.ss-account-dashboard {
  font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, sans-serif;
  font-size: 15px;
  color: #1f2937;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  min-height: 100vh;
}

/* ------------------------------------------------------------------
   Styles moved from includes/*.php (consolidated)
   - moved from class-dashboard-core.php and shortcodes.php
   - reason: reduce inline styles and centralize them for maintainability
 ------------------------------------------------------------------ */

/* Pending/disabled actions (applied when account is pending approval)
   Previously injected inline in class-dashboard-core.php */
.ss-plan-selection-section,
.ss-contribution-section,
.ss-plan-change-options,
button[data-action="make-contribution"],
button[data-action="request-withdrawal"] {
  display: none !important;
}
.ss-plan-status { opacity: 0.9; }

/* ══════════════════════════════════════════════════════════
   PLAN SELECTION PAGE
══════════════════════════════════════════════════════════ */
.plan-section {
  background: linear-gradient(135deg, #083421, #0f5c3a, #147445);
  min-height: 100vh;
  padding: 28px 16px 36px;
}

.plan-container {
  max-width: 1100px;
  margin: 0 auto;
}

.plan-header {
  text-align: center;
  margin-bottom: 28px;
}

.plan-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 9999px;
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}

.plan-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.plan-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin: 0 auto;
  max-width: 520px;
  line-height: 1.5;
}

.plan-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* ── Card ── */
.plan-card {
  width: 340px;       /* desktop — overridden to 100% on mobile */
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 18px;
  padding: 16px 18px 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.plan-card--featured {
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  padding-top: 30px;
}

@media (max-width: 768px) {
  .plan-card--featured {
    padding-top: 46px;
  }
  .plan-card--featured .plan-icon {
    margin-top: 18px; /* push SS logo below the Most Popular badge */
  }
}

/* Most Popular badge */
.plan-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #147445, #0d8b5e);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 5px 16px;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── Animated SS logo icon ── */
.plan-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.plan-icon-text {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  animation: planLogoSwayPulse 2s ease-in-out infinite;
}

@keyframes planLogoSwayPulse {
  0%,100% { transform: rotate(-4deg) scale(0.92); }
  50%      { transform: rotate(4deg)  scale(1.10); }
}

.plan-icon--standard {
  background: linear-gradient(135deg, #147445, #0d8b5e);
  box-shadow: 0 3px 10px rgba(20,116,69,0.35);
  border: 2px solid rgba(255,255,255,0.35);
}

.plan-icon--pro {
  background: linear-gradient(135deg, #0a3d27, #147445);
  box-shadow: 0 3px 12px rgba(10,61,39,0.45);
  border: 2px solid rgba(255,255,255,0.35);
}

.plan-icon--premium {
  background: linear-gradient(135deg, #b45309, #d97706);
  box-shadow: 0 3px 10px rgba(180,83,9,0.35);
  border: 2px solid rgba(255,255,255,0.35);
}

/* ── Card content ── */
.plan-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px;
  text-align: center;
}

.plan-goal {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  margin-bottom: 3px;
}
.plan-goal strong { color: #147445; font-weight: 700; }

.plan-amount {
  font-size: 26px;
  font-weight: 800;
  color: #147445;
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* ensure small gap between amount and duration */
.plan-amount + .plan-duration {
  margin-top: 4px;
}
.plan-amount span {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.plan-duration {
  font-size: 10.5px;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 2px;
}
.plan-duration i { margin-right: 4px; color: #cbd5e1; }

.plan-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 8px 0;
}

/* Features */
.plan-features {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: #334155;
  margin: 0;
  padding: 0;
  line-height: 1.35;
}

.plan-features li i {
  color: #147445;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Fee row */
.plan-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 11px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #64748b;
}
.plan-fee-row strong { color: #0f172a; font-weight: 700; }
.plan-fee-row i { margin-right: 4px; color: #94a3b8; }

/* CTA button */
.plan-button {
  width: 100%;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #147445, #0d8b5e);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 8px rgba(20,116,69,0.3);
  margin-top: 4px;
}

.plan-button:hover {
  background: linear-gradient(135deg, #0d8b5e, #147445);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(20,116,69,0.4);
}

.plan-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.plan-button--featured {
  background: linear-gradient(135deg, #0a3d27, #147445) !important;
  box-shadow: 0 3px 10px rgba(10,61,39,0.4) !important;
}
.plan-button--featured:hover {
  background: linear-gradient(135deg, #147445, #0a3d27) !important;
}

/* Disclaimer */
.plan-disclaimer-box {
  max-width: 700px;
  margin: 28px auto 0;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 16px 22px;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  line-height: 1.6;
}
.plan-disclaimer-box i { margin-right: 6px; color: #fde68a; }
.plan-disclaimer-box strong { color: #ffffff; }
.plan-disclaimer-box p { margin: 0 0 8px; }
.plan-disclaimer-box p:last-child { margin-bottom: 0; }
.plan-disclaimer-box a { color: rgba(255,255,255,0.9); text-decoration: underline; }

/* Responsive */
/* ── Carousel wrapper ── */
.plan-carousel-wrapper {
  position: relative; /* buttons position against this */
}

.plan-carousel-track-outer {
  overflow: hidden;
  width: 100%;
  overscroll-behavior-x: contain;
}

/* Nav arrow buttons — hidden on desktop, overlaid on mobile */
.plan-nav-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.22s ease;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #147445;
  font-size: 13px;

  /* Solid white so arrow is always visible against green bg */
  background: #ffffff;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.plan-nav-prev { left: 12px; }
.plan-nav-next { right: 12px; }

/* Brand green arrow — bold, centred, glowing */
.plan-nav-btn i {
  color: #147445;
  font-size: 16px;
  font-weight: 900;
  filter: drop-shadow(0 0 4px rgba(20,116,69,0.55));
  transition: filter 0.2s ease, transform 0.2s ease;
}

/* Hover — more glass, brighter glow */
.plan-nav-btn:hover:not(:disabled) {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.15) 100%
  );
  border-color: rgba(255,255,255,0.7);
  box-shadow:
    0 6px 22px rgba(0,0,0,0.28),
    0 2px 6px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 0 -1px 0 rgba(0,0,0,0.08);
  transform: translateY(-50%) scale(1.1);
}
.plan-nav-btn:hover:not(:disabled) i {
  filter: drop-shadow(0 0 7px rgba(20,116,69,0.8));
  transform: scale(1.15);
}

/* Press */
.plan-nav-btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.94);
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.28) 0%,
    rgba(255,255,255,0.12) 100%
  );
  box-shadow:
    0 2px 8px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Disabled — invisible, untappable */
.plan-nav-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

/* Dot indicators — hidden on desktop */
.plan-carousel-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 0;
}
.plan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}
.plan-dot--active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* ── Mobile: activate carousel ── */
@media (max-width: 768px) {
  .plan-nav-btn {
    display: flex;
  }
  .plan-carousel-dots {
    display: flex;
    margin-bottom: 20px; /* gap between dots and disclaimer on mobile */
  }
  .plan-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    justify-content: flex-start !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
     }
     
  .plan-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-height: auto;
    height: auto;
    touch-action: pan-y;
  }

  /* Ensure inner content isn't collapsed */
  .plan-card > * {
    visibility: visible;
    opacity: 1;
  }

  /* Align feature ticks vertically on mobile */
  .plan-features li {
    align-items: flex-start;
  }

  .plan-features li i {
    flex-shrink: 0;
    margin-top: 1px;
    min-width: 16px;
  }
}

@media (max-width: 480px) {
  .plan-section { padding: 16px 12px 28px; }
  .plan-title { font-size: 20px; margin: 0 0 6px; }
  .plan-subtitle { font-size: 13px; line-height: 1.4; }
  .plan-header { margin-bottom: 14px; }
  .plan-header-badge { margin-bottom: 8px; padding: 4px 12px; font-size: 10px; }
  .plan-card { padding: 14px 16px 16px; }
}
/* ══════════════════════════════════════════════════════════
   CHECKOUT PAGE  (co-* namespace)
══════════════════════════════════════════════════════════ */

/* Page wrapper — same green section background as plan page */
.co-page {
  background: linear-gradient(135deg, #083421, #0f5c3a, #147445);
  min-height: 100vh;
  padding: 32px 16px 48px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Card — matches plan-card style */
.co-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
  box-sizing: border-box;
}

/* ── Header ── */
.co-header {
  background: linear-gradient(135deg, #083421, #147445);
  padding: 24px 24px 20px;
  text-align: center;
}
.co-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 18px;
  color: #fff;
}
.co-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}
.co-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin: 0;
}
.co-subtitle strong { color: #fff; }

/* ── Summary strip ── */
.co-summary {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #f8fafc;
  border-bottom: 1px solid #e9eef2;
  padding: 14px 16px;
  gap: 8px;
}
.co-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.co-summary-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
}
.co-summary-value {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.co-summary-value--total { color: #147445; }
.co-summary-divider {
  width: 1px;
  height: 32px;
  background: #e2e8f0;
}

/* ── Banking details ── */
.co-bank {
  margin: 16px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.co-bank-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0a3d27, #147445);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 9px 14px;
}
.co-bank-header i { font-size: 13px; opacity: 0.9; }

.co-bank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.co-bank-table tr {
  border-bottom: 1px solid #f1f5f9;
}
.co-bank-table tr:last-child { border-bottom: none; }

.co-bt-label {
  padding: 8px 14px;
  color: #64748b;
  font-weight: 600;
  font-size: 11.5px;
  white-space: nowrap;
  width: 38%;
  vertical-align: middle;
}
.co-bt-value {
  padding: 8px 14px 8px 0;
  color: #0f172a;
  font-weight: 500;
  vertical-align: middle;
}
.co-bt-mono {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0f172a;
}

/* Amount + reference rows — green tint */
.co-bt-highlight {
  background: #f0fdf4;
}
.co-bt-highlight .co-bt-label { color: #147445; }
.co-bt-highlight .co-bt-value { color: #0a3d27; }
.co-bt-ref .co-bt-value {
  color: #147445;
  font-size: 14px;
  font-weight: 800;
}

/* ── Notice ── */
.co-notice {
  margin: 0 20px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #78350f;
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.co-notice i { color: #f59e0b; flex-shrink: 0; margin-top: 1px; }
.co-notice a { color: #147445; font-weight: 600; white-space: nowrap; }

/* ── Confirm checkbox ── */
.co-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 20px 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.45;
}
.co-confirm input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #147445;
  cursor: pointer;
}

/* ── Action buttons ── */
.co-actions {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.co-btn-primary {
  width: 100%;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #147445, #0d8b5e);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(20,116,69,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.2px;
}
.co-btn-primary:hover {
  background: linear-gradient(135deg, #0d8b5e, #147445);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(20,116,69,0.4);
}
.co-btn-back {
  width: 100%;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
}
.co-btn-back:hover {
  border-color: #147445;
  color: #147445;
  background: #f0fdf4;
}

.co-btn-primary:disabled,
.co-btn-primary[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    background: #cccccc !important; /* override gradient */
    box-shadow: none;
    transform: none;
}

@media (max-width: 480px) {
  .co-card { border-radius: 14px; }
  .co-header { padding: 20px 16px 16px; }
  .co-bank { margin: 12px 14px; }
  .co-notice { margin: 0 14px 12px; }
  .co-confirm { margin: 0 14px 14px; }
  .co-actions { padding: 0 14px 16px; }
  .co-summary { padding: 12px 10px; }
  .co-summary-value { font-size: 14px; }
}


/* ── No Active Plan Banner ──────────────────────────────── */
.ss-no-plan-banner {
  background: linear-gradient(135deg, #fffbf0, #fff8e6);
  border: 1px solid #f39c12;
  border-left: 4px solid #f39c12;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.ss-no-plan-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.ss-no-plan-title {
  font-size: 17px;
  font-weight: 700;
  color: #92400e;
}

.ss-no-plan-text {
  font-size: 13.5px;
  color: #b45309;
  margin: 0;
  max-width: 360px;
  line-height: 1.5;
}

.ss-no-plan-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 26px;
  background: linear-gradient(135deg, #147445, #0d8b5e);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(20,116,69,0.3);
}
.ss-no-plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(20,116,69,0.4);
}

/* ── Email verification notice (shown inside .ss-no-plan-banner when unverified) ── */
.ss-email-verify-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  width: 100%;
}

.ss-verify-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #147445, #0e5531);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(20,116,69,0.3);
}

.ss-verify-title {
  font-size: 17px;
  font-weight: 700;
  color: #147445;
}

.ss-verify-text {
  font-size: 13.5px;
  color: #555;
  margin: 0;
  max-width: 380px;
  line-height: 1.55;
}

.ss-verify-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.ss-verify-hint {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* Override the amber banner colours when showing verify notice */
.ss-no-plan-banner:has(.ss-email-verify-notice) {
  background: linear-gradient(135deg, #f0faf5, #e8f7ee);
  border-color: #147445;
  border-left-color: #147445;
}

/* Header banner inline resend button */
.ss-banner-resend-btn {
  background: none;
  border: none;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}
.ss-banner-resend-btn:hover {
  opacity: 0.8;
}

.ss-wrapper {
  margin: 0 auto;
  padding: 20px;
  max-width: 1400px;
}

/* =====================================================
   DESKTOP SIDEBAR STYLES (new structure)
   ===================================================== */
.ss-sidebar-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.ss-sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #147445, #0d8b5e);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ss-sidebar-identity-text {
  flex: 1;
}

.ss-sidebar-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f1724;
}

.ss-sidebar-memberid {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* Balance pill - desktop */
.ss-sidebar-balance-pill {
  margin: 16px;
  padding: 14px 18px;
  background: #f0fdf4;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ss-sidebar-balance-label {
  font-size: 12px;
  font-weight: 600;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.ss-sidebar-balance-value {
  font-size: 18px;
  font-weight: 800;
  color: #147445;
  font-family: 'Courier New', monospace;
}

/* Plan row & status chip - desktop */
.ss-sidebar-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 12px;
}

.ss-sidebar-plan-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ss-sidebar-plan-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
}

.ss-sidebar-plan-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f1724;
}

.ss-sidebar-status-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
}
.ss-sidebar-status-chip.good {
  background: #e6f9ec;
  color: #147445;
  border: 1px solid #a7f3d0;
}
.ss-sidebar-status-chip.pending {
  background: #fffbeb;
  color: #c05e00;
  border: 1px solid #fcd34d;
}
.ss-sidebar-status-chip.overdue {
  background: #fee2e2;
  color: #b91c1c;
}

/* Due row */
.ss-sidebar-due-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 16px;
  font-size: 13px;
  color: #64748b;
}

.ss-sidebar-due-row i {
  font-size: 15px;
}

/* No-plan fallback */
.ss-sidebar-no-plan {
  margin: 12px 16px;
  padding: 12px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  color: #c05e00;
  font-weight: 600;
}

.ss-sidebar-no-plan-sub {
  font-size: 11px;
  font-weight: 500;
  color: #147445;
  margin-top: 5px;
  opacity: 0.9;
  letter-spacing: 0.01em;
}

/* Sidebar footer branding - desktop (light theme) */
.ss-sidebar-footer {
  padding: 24px 16px 16px;
  margin-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
  color: #64748b;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Mobile-first: base adjustments for smaller screens
   These override desktop defaults when viewport is narrow
*/
@media (max-width: 980px) {
  .ss-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
    padding: 12px;
    max-width: 100%;
  }

  .ss-sidebar {
    width: 100%;
    position: relative;
    top: auto;
    flex-shrink: 0;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  }

  .ss-sidebar:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  }

  .ss-header {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .ss-profile-block { gap: 10px; }

  .ss-avatar { width: 56px; height: 56px; }

  .ss-avatar-instruction { display: none; }

  .ss-content { padding: 12px 0 60px; }

  .ss-card { padding: 16px; border-radius: 12px; }

  .ss-nav { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; }
  .ss-nav-link { white-space: nowrap; padding: 10px 14px; min-width: 120px; flex: 0 0 auto; }

  .ss-action-buttons { flex-direction: column; gap: 8px; }

  .ss-quick-btn { min-height: 52px; }

  .ss-checkout-card { max-width: 100%; padding: 12px; }
  .ss-checkout-card .btn-primary,
  .ss-checkout-card .btn-outline { width: 100%; }

  .ss-payment-options { flex-direction: column; gap: 12px; }

  .ss-eft-details-grid { grid-template-columns: 1fr; }

  .ss-eft-label { min-width: 0; }

  .ss-badge { padding: 10px 12px; }

  /* Increase tap targets */
  .ss-nav-link, .ss-checkout-card .btn-primary, .ss-checkout-card .btn-outline, .ss-quick-btn {
    min-height: 48px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .ss-pending {
    background: #fff3e6;
    color: #e67e22;
    border-left-color: #f39c12;
}
.ss-pending strong {
    color: #e67e22;
}

  /* Ensure toast/alerts are full width where appropriate */
  .ss-toast { left: 8px; right: 8px; }

  /* Make tables/wide elements responsive */
  .ss-card table, .ss-card .table { width: 100%; overflow-x: auto; display: block; }
}



/* =====================================================
   Header
   ===================================================== */
.ss-header {
  background: linear-gradient(135deg, #0a3d27, #147445);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  border-radius: 16px;
}

.ss-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.ss-profile-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ss-header h1 {
  margin: 0;
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
}

.ss-header .ss-email,
.ss-header .ss-profile-block div {
  color: #ffffff;
}

.ss-email {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

/* =====================================================
   Avatar Upload
   ===================================================== */
.ss-avatar-upload-form {
  display: inline-block;
  position: relative;
  margin: 0;
}

.ss-avatar-label {
  cursor: pointer;
  display: block;
  position: relative;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ss-avatar-label:hover .ss-avatar {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(20, 116, 69, 0.4);
}

.ss-avatar-label:hover .ss-avatar-instruction {
  opacity: 1;
  transform: translateY(0);
}

.ss-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.ss-avatar-instruction {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: linear-gradient(135deg, #0a3d27, #147445);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ss-avatar-instruction::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid #0a3d27;
}

.ss-avatar-upload-form input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ss-avatar-upload-form.uploading .ss-avatar {
  opacity: 0.7;
}

.ss-avatar-upload-form.success .ss-avatar {
  border-color: #2ecc71;
  animation: pulse 0.6s ease-in-out;
}

.ss-avatar-upload-form.error .ss-avatar {
  border-color: #e74c3c;
}

/* =====================================================
   Sidebar
   ===================================================== */
.ss-sidebar {
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.3s ease-in-out;
  transform: translateX(-100%);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1000;
  width: 280px;
  background: #ffffff;
  padding: 2px;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ss-sidebar.open {
  transform: translateX(0);
}

.ss-sidebar::-webkit-scrollbar {
  width: 6px;
}
.ss-sidebar::-webkit-scrollbar-thumb {
  background-color: #147445;
  border-radius: 3px;
}


.ss-badge {
  background: #f8f9fa;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 14px;
  border-left: 3px solid #147445;
}

.ss-badge strong { 
  color: #147445; 
}

/* Plan pill in sidebar */
/* Ensure Next Due label and value styling matches sidebar badges */
.ss-badge span { color: #1f2937; font-weight: 500; }

.ss-overdue {
  background: #ffe6e6;
  color: #c0392b;
  border-left-color: #c0392b;
}

.ss-up2date {
  background: #e6f9ec;
  color: #147445;
}

.ss-up2date strong { font-weight: 700; }

.ss-sidebar-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: #147445;
  cursor: pointer;
  z-index: 1002;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ss-sidebar-close:hover {
  background: #f8f9fa;
  color: #125c39;
}

/* =====================================================
   Navigation
   ===================================================== */
.ss-nav {
  margin-top: 8px;
}

.ss-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  margin: 6px 0;
  text-decoration: none;
  color: #444;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.ss-nav-link:hover {
  background: #f8f9fa;
  color: #147445;
  border-color: #e6f9ec;
}

.ss-nav-link.active {
  background: linear-gradient(135deg, #0a3d27, #147445);
  color: #fff;
  border: none;
}

.ss-nav-link i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

/* =====================================================
   Main Content
   ===================================================== */
.ss-content {
  flex: 1;
  padding-bottom: 80px;
}

.ss-section {
  display: none !important;
}

.ss-section[aria-hidden="false"] {
  display: block !important;
}

/* =====================================================
   Cards
   ===================================================== */
.ss-card {
  background: #ffffff;
  padding: 24px;
  margin-bottom: 24px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ss-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.ss-card h2,
.ss-card h3,
.ss-card h4 {
  color: #147445;
}

/* Quick Contributions heading inside wallet card */
.ss-quick-heading {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  color: #147445;
  font-weight: 700;
}

/* =====================================================
   Welcome Card - FIXED VERSION
   ===================================================== */
.ss-welcome-card {
  background: linear-gradient(135deg, #0a3d27, #147445) !important;
  color: white !important;
  padding: 30px;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
}

.ss-welcome-card.ss-card {
  background: linear-gradient(135deg, #0a3d27, #147445) !important;
  color: white !important;
}

.ss-welcome-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 20px;
}

.ss-welcome-text h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  color: white !important;
}

.ss-welcome-text p {
  color: rgba(255,255,255,0.9) !important;
  margin: 0;
}

.ss-balance-display {
  text-align: right;
  flex-shrink: 0;
  color: white !important;
}

.ss-balance-amount {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 2px;
  background: linear-gradient(135deg, #ffffff, #e6f9ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ss-balance-note {
  font-size: 12px;
  color: rgba(255,255,255,0.8) !important;
  margin-top: 0;
  margin-bottom: 16px;
}

.ss-plan-status {
  background: rgba(255,255,255,0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  color: white !important;
}

.ss-next-due {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
  color: rgba(255,255,255,0.9) !important;
}

.ss-action-buttons {
  display: flex;
  gap: 12px;
}

.ss-welcome-card .btn-primary {
  background: linear-gradient(135deg, #147445, #0d8b5e) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700;
}

.ss-welcome-card .btn-primary:hover {
  background: linear-gradient(135deg, #0d8b5e, #147445) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 116, 69, 0.3);
}

.ss-welcome-card .btn-outline {
  background: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.ss-welcome-card .btn-outline:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}

.ss-welcome-card .btn-outline[data-action="request-withdrawal"] {
  background: #ffffff !important;
  color: #147445 !important;
  border-color: #ffffff !important;
  font-weight: 600;
}

.ss-welcome-card .btn-outline[data-action="request-withdrawal"]:hover {
  background: #f8f9fa !important;
  color: #0d8b5e !important;
  border-color: #f8f9fa !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ss-welcome-card .btn-primary[disabled],
.ss-welcome-card .btn-primary:disabled {
  background: rgba(255, 255, 255, 0.3) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

/* Ensure all text elements in welcome card are white */
.ss-welcome-card *:not(.btn-outline[data-action="request-withdrawal"]):not(.btn-outline[data-action="request-withdrawal"] *) {
  color: white !important;
}

/* Specific override for balance amount gradient text */
.ss-welcome-card .ss-balance-amount {
  background: linear-gradient(135deg, #ffffff, #e6f9ec) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* =====================================================
   Progress Card
   ===================================================== */
.ss-progress-card {
  border: 1.5px solid rgba(20, 116, 69, 0.25);
  background: linear-gradient(160deg, #ffffff 70%, #f0fdf6 100%);
  box-shadow: 0 4px 20px rgba(20, 116, 69, 0.08), 0 1px 4px rgba(20, 116, 69, 0.06);
}

.ss-progress-card:hover {
  border-color: rgba(20, 116, 69, 0.45);
  box-shadow: 0 8px 28px rgba(20, 116, 69, 0.13), 0 2px 6px rgba(20, 116, 69, 0.08);
}

.ss-progress-card h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #147445;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
}

.ss-progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
}

/* ── Progress bar wrapper (holds bar + floating marker) ─────────────── */
.ss-progress-bar-wrap {
  position: relative;
  margin-bottom: 36px;
}

.ss-progress-bar {
  position: relative;
  background: #dde8e1;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.10);
}

/* Full-width gradient — revealed by removing the mask from left side */
.ss-progress-fill-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

/* Mask covers the unfilled right portion */
.ss-progress-mask {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: #dde8e1;
  transition: left 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 50% payout threshold marker ────────────────────────────────────── */
.ss-progress-marker {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.ss-progress-marker-line {
  width: 2px;
  height: 20px;
  background: #147445;
  margin-top: -4px;
  border-radius: 1px;
}

.ss-progress-marker-label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #147445;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #c8e6d4;
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ss-marker-icon { font-size: 12px; }

/* ── Mini payout-progress bar inside eligibility alert ──────────────── */
.ss-payout-progress-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.ss-payout-mini-label {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}

.ss-payout-mini-bar {
  flex: 1;
  height: 6px;
  background: #e9eef0;
  border-radius: 3px;
  overflow: hidden;
}

.ss-payout-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #e67e22, #f39c12 50%, #27ae60 100%);
  border-radius: 3px;
  transition: width 1s ease-in-out;
}

.ss-payout-mini-fill.reached { background: #147445; }

.ss-payout-mini-pct {
  font-size: 11px;
  font-weight: 700;
  color: #147445;
  min-width: 38px;
  text-align: right;
}

/* =====================================================
   Eligibility Card
   ===================================================== */
.ss-eligibility-alert {
  border: 1.5px solid #f39c12;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.10);
}

.ss-eligibility-alert.eligible {
  border-color: #147445;
  background: linear-gradient(135deg, #e6f9ec, #f0fdf4);
}

.ss-eligibility-alert.not-eligible {
  border-color: #f39c12;
  background: #fff3e6;
}

.ss-tier-badge {
  background: #147445;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

/* =====================================================
   Verification Card
   ===================================================== */
.ss-verification-card h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #147445;
}

.ss-verification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.ss-verification-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9eef0;
}

.ss-verification-item.verified {
  background: linear-gradient(135deg, #e6f9ec, #f0fdf4);
  border-color: #147445;
}

.ss-verification-item.pending {
  background: #fff3e6;
  border-color: #f39c12;
}

.ss-verification-item.rejected {
  background: #ffe6e6;
  border-color: #e74c3c;
}

.ss-verification-item.missing {
  background: #f8f9fa;
  border-color: #bdc3c7;
}

.ss-verification-item i {
  color: #147445;
  width: 16px;
}

.ss-status {
  margin-left: auto;
  font-weight: 600;
  font-size: 14px;
}

.ss-verification-actions {
  text-align: center;
}

/* =====================================================
   Transactions Card
   ===================================================== */
.ss-transactions-card h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #147445;
}

.ss-transactions-list,
.ss-transactions-list-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ss-transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9eef0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInUp 0.3s ease-out;
}

.ss-transaction-item:hover {
  background: #f0f7ff;
  border-color: #147445;
}

.ss-transaction-item:nth-child(even) {
  animation-delay: 0.05s;
}

.ss-transaction-item:nth-child(odd) {
  animation-delay: 0.1s;
}

.ss-transaction-type {
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: capitalize;
}

.ss-transaction-date {
  font-size: 13px;
  color: #7d8689;
  margin-bottom: 4px;
}

.ss-transaction-amount {
  font-weight: bold;
  font-size: 16px;
}

.ss-transaction-amount.positive {
  color: #147445;
}

.ss-transaction-amount.negative {
  color: #c0392b;
}

.ss-transaction-amount.neutral {
  color: #5d6d7e;
  font-weight: 600;
}

/* Transaction Tags */
.ss-transaction-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  margin-top: 4px;
  display: inline-block;
  text-transform: uppercase;
}

.deposit-tag {
  background: linear-gradient(135deg, #e6f9ec, #f0fdf4);
  color: #147445;
}

.withdrawal-tag {
  background: #ffe6e6;
  color: #c0392b;
}

.fee-tag {
  background: #5d6d7e;
  color: white;
}

/* Plan change credit — teal/purple to distinguish from plain DEPOSIT */
.credit-tag {
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
  color: #6d28d9;
  border: 1px solid #c4b5fd;
}

/* Transaction States */
.fee-transaction {
  background: #f8f9fa;
  border-color: #d5dbdb;
}

.fee-transaction:hover {
  background: #f0f3f4;
  border-color: #a6acaf;
}

.fee-transaction .ss-transaction-type::before {
  content: "💸 ";
  font-size: 12px;
}

.pending-transaction {
  opacity: 0.8;
  background: #fff9e6;
  border-color: #f39c12;
  border-left: 4px solid #f39c12;
}

.pending-transaction:hover {
  background: #fff3cc;
}

.pending-transaction .ss-transaction-type::before {
  content: "⏳ ";
  font-size: 12px;
}

.processing-transaction {
  border-left: 4px solid #3498db;
  background: #f8fbff;
}

.processing-transaction:hover {
  background: #f0f7ff;
}

.failed-transaction {
  opacity: 0.7;
  background: #fff0f0;
  border-color: #e74c3c;
}

.failed-transaction:hover {
  background: #ffe6e6;
}

/* Transaction Status Badges */
.ss-transaction-badges {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.ss-transaction-status-badge {
  background: #fff3e6;
  color: #e67e22;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  display: inline-block;
}

.ss-transaction-status-badge.pending {
  background: #fff3e6;
  color: #e67e22;
}

.ss-transaction-status-badge.completed {
  background: #e6f9ec;
  color: #147445;
}

.ss-transaction-status-badge.failed {
  background: #ffe6e6;
  color: #c0392b;
}

.ss-transaction-status-badge.processing {
  background: #e6f2ff;
  color: #3498db;
}

.ss-transactions-footer {
  margin-top: 16px;
  text-align: center;
}

/* =====================================================
   Balance Cards
   ===================================================== */
.ss-balance-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.ss-balance-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #147445;
  text-align: center;
}

.ss-balance-card .ss-balance-amount {
  color: #147445 !important;
  -webkit-text-fill-color: #147445 !important;
}


.ss-balance-card .ss-balance-label {
  color: #7d8689 !important;
}

.ss-balance-card .ss-balance-note {
  color: #a0a8ac !important;
}


/* =====================================================
   Quick Actions
   ===================================================== */
.ss-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.ss-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: #f8f9fa;
  border: 2px solid #e9eef0;
  border-radius: 8px;
  font-weight: 600;
  color: #147445;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 80px;
  position: relative;
  overflow: hidden;
}

.ss-quick-btn::before {
  /* Remove sliding overlay to avoid gradient overlay on hover; keep for future use if needed */
  display: none;
}

.ss-quick-btn:hover {
  border-color: #147445;
  transform: translateY(-2px);
  color: #ffffff !important;
  background: #147445 !important; /* solid brand green on hover */
  box-shadow: 0 4px 12px rgba(20, 116, 69, 0.3);
}

.ss-quick-btn i,
.ss-quick-btn span {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  color: inherit;
}

.ss-quick-btn:hover i,
.ss-quick-btn:hover span,
.ss-quick-btn:hover {
  color: #ffffff !important;
}

.ss-quick-btn i {
  font-size: 20px;
  margin-bottom: 8px;
}

.ss-quick-btn span {
  font-size: 14px;
}

/* =====================================================
   Forms
   ===================================================== */
.ss-form-group {
  margin-bottom: 20px;
}

.ss-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #147445;
}

.ss-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9eef0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  background: #ffffff;
}

.ss-form-input:focus {
  outline: none;
  border-color: #147445;
  box-shadow: 0 0 0 3px rgba(20, 116, 69, 0.1);
}

.ss-form-help {
  font-size: 12px;
  color: #7d8689;
  margin-top: 4px;
}

.ss-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.ss-form-actions .btn-primary,
.ss-form-actions .btn-outline {
  flex: 1;
}

/* =====================================================
   Alerts
   ===================================================== */
.ss-alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Plan notice banner — dynamically hydrated by updatePlanBanner() after every REST load */
#ss-plan-banner {
  margin: 0 0 16px 0;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
  gap: 8px;
  transition: opacity 0.25s ease;
}
#ss-plan-banner.ss-alert-success {
  border-left: 4px solid #147445;
}
#ss-plan-banner.ss-alert-warning {
  border-left: 4px solid #f39c12;
}
#ss-plan-banner.ss-alert-info {
  border-left: 4px solid #3498db;
  display: block;
}

.ss-alert-warning {
  background: #fff3e6;
  border: 1px solid #f39c12;
  color: #e67e22;
}

.ss-alert-success {
  background: linear-gradient(135deg, #e6f9ec, #f0fdf4);
  border-color: #147445;
  color: #14532d;
}

.ss-alert-success strong {
  color: inherit;
}

.ss-alert-info {
  background: #e6f2ff;
  border: 1px solid #3498db;
  color: #2980b9;
  display: block; /* plain text content — not flex children */
}

.ss-alert i {
  font-size: 18px;
  margin-top: 2px;
}

.ss-alert div {
  flex: 1;
}

.ss-alert strong {
  display: block;
  margin-bottom: 4px;
}

.ss-alert p {
  margin: 0;
  font-size: 14px;
}

.ss-alert ol,
.ss-alert ul {
  margin: 12px 0;
  padding-left: 24px;
  text-align: left;
}

.ss-alert li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: inherit;
}

.ss-alert li strong {
  display: inline;
  font-weight: 700;
}

.ss-alert li:last-child {
  margin-bottom: 0;
}

/* =====================================================
   Upload Components
   ===================================================== */
.ss-upload-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.ss-upload-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9eef0;
}

.ss-upload-icon {
  width: 50px;
  height: 50px;
  background: #147445;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.ss-upload-info {
  flex: 1;
}

.ss-upload-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.ss-upload-info p {
  margin: 0;
  font-size: 14px;
  color: #7d8689;
}

.ss-upload-status {
  margin-top: 8px;
}

.ss-status-uploaded {
  color: #147445;
  font-weight: 600;
  font-size: 14px;
}

.ss-status-missing {
  color: #e74c3c;
  font-weight: 600;
  font-size: 14px;
}

.ss-status-uploaded i,
.ss-status-missing i {
  margin-right: 4px;
}

/* =====================================================
   Payment Information
   ===================================================== */
.ss-payment-info {
  margin-top: 16px;
}

.ss-bank-details {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
}

.ss-bank-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e9eef0;
}

.ss-bank-row:last-child {
  border-bottom: none;
}

.ss-bank-row span:first-child {
  font-weight: 600;
  color: #7d8689;
}

.ss-bank-row span:last-child {
  font-weight: 600;
  color: #147445;
}

/* =====================================================
   Info Lists
   ===================================================== */
.ss-info-list,
.ss-guidelines {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.ss-info-item,
.ss-guideline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.ss-info-item i,
.ss-guideline-item i {
  width: 24px;
  text-align: center;
  color: #147445;
  font-size: 18px;
}

.ss-info-item div,
.ss-guideline-item div {
  flex: 1;
}

.ss-info-item strong,
.ss-guideline-item strong {
  display: block;
  margin-bottom: 4px;
}

.ss-info-item p,
.ss-guideline-item p {
  margin: 0;
  font-size: 14px;
  color: #7d8689;
}

/* =====================================================
   Transaction Controls
   ===================================================== */
.ss-transactions-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.ss-search-box {
  flex: 1;
  position: relative;
}

.ss-search-box:before {
  content: '\f002';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7d8689;
  z-index: 1;
}

.ss-search-box input {
  padding-left: 40px;
}

.ss-filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ss-filter-btn {
  background: #f8f9fa;
  border: 2px solid #e9eef0;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #7d8689;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ss-filter-btn.active,
.ss-filter-btn:hover {
  background: #147445;
  border-color: #147445;
  color: white;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn-primary, 
.btn-outline, 
.btn-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid;
  font-size: 14px;
  cursor: pointer;
  min-width: 140px;
}

.btn-primary {
  background: linear-gradient(135deg, #147445, #0d8b5e);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0d8b5e, #147445);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 116, 69, 0.3);
  animation: pulse 0.3s ease-in-out;
}

.btn-outline {
  background: transparent;
  color: #147445;
  border-color: #147445;
}

.btn-outline:hover {
  background: #147445;
  color: #fff;
  transform: translateY(-1px);
  animation: pulse 0.3s ease-in-out;
}

.btn-upload {
  background: #147445;
  color: #ffffff;
  border-color: #147445;
}

/* Wallet Action Buttons */
.ss-wallet-actions {
  display: flex;
  gap: 12px;
}

.ss-wallet-actions .btn-primary,
.ss-wallet-actions .btn-outline {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
}

.ss-wallet-actions .btn-primary {
  background: linear-gradient(135deg, #147445, #0d8b5e);
  color: #ffffff;
  border: none;
}

.ss-wallet-actions .btn-primary:hover {
  background: linear-gradient(135deg, #0d8b5e, #147445);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 116, 69, 0.3);
  animation: pulse 0.3s ease-in-out;
  color: #ffffff;
}

.ss-wallet-actions .btn-outline {
  background: #ffffff;
  color: #147445;
  border-color: #147445;
}

.ss-wallet-actions .btn-outline:hover {
  background: #147445;
  color: #ffffff;
  border-color: #147445;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 116, 69, 0.3);
  animation: pulse 0.3s ease-in-out;
}

/* Button Disabled States */
.btn-primary[disabled],
.btn-primary:disabled,
.btn-outline[disabled],
.btn-outline:disabled,
.ss-quick-btn[disabled],
.ss-quick-btn:disabled,
.ss-form-input[disabled],
.ss-form-input:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.btn-primary[disabled],
.btn-primary:disabled {
  background: #e0e0e0;
  color: #999;
  border: 2px solid #e0e0e0;
}

.btn-primary[disabled]:hover,
.btn-primary:disabled:hover {
  background: #e0e0e0;
  color: #999;
}

.btn-outline[disabled],
.btn-outline:disabled {
  background: transparent;
  color: #ccc;
  border-color: #e0e0e0;
}

.btn-outline[disabled]:hover,
.btn-outline:disabled:hover {
  background: transparent;
  color: #ccc;
  border-color: #e0e0e0;
}

.ss-quick-btn[disabled],
.ss-quick-btn:disabled {
  background: #f5f5f5;
  color: #ccc;
  border-color: #e0e0e0;
}

.ss-quick-btn[disabled]:hover,
.ss-quick-btn:disabled:hover {
  background: #f5f5f5;
  color: #ccc;
  border-color: #e0e0e0;
}

.ss-form-input[disabled],
.ss-form-input:disabled {
  background: #f9f9f9;
  color: #999;
  border-color: #e0e0e0;
}

.ss-form-input[disabled]::placeholder,
.ss-form-input:disabled::placeholder {
  color: #ccc;
}

/* =====================================================
   Toast Notifications
   ===================================================== */
.ss-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 16px;
  min-width: 300px;
  max-width: 400px;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 10000;
  border-left: 4px solid #147445;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}

.ss-toast-show {
  transform: translateX(0);
}

.ss-toast-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.ss-toast i:first-child {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.ss-toast span {
  flex: 1;
  line-height: 1.4;
}

.ss-toast-close {
  background: none;
  border: none;
  color: #7d8689;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.ss-toast-close:hover {
  background: #f8f9fa;
  color: #147445;
}

.ss-toast-success {
  border-left-color: #2ecc71;
}

.ss-toast-success .ss-toast-content i {
  color: #2ecc71;
}

.ss-toast-error {
  border-left-color: #e74c3c;
}

.ss-toast-error .ss-toast-content i {
  color: #e74c3c;
}

.ss-toast-warning {
  border-left-color: #f39c12;
}

.ss-toast-warning .ss-toast-content i {
  color: #f39c12;
}

.ss-toast-info {
  border-left-color: #3498db;
}

.ss-toast-info .ss-toast-content i {
  color: #3498db;
}

/* =====================================================
   Plan Checkout Styles
   ===================================================== */
.ss-checkout-card {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

.ss-checkout-header {
  background: linear-gradient(135deg, #147445 0%, #0d5c34 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.ss-checkout-header h2,
.ss-checkout-header .ss-plan-checkout-title,
#ss-checkout .ss-checkout-header h2 {
  margin: 0 0 10px 0;
  color: #ffffff;
  font-size: 1.8em;
}

.ss-checkout-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 1.1em;
}

.ss-checkout-summary {
  padding: 25px;
  border-bottom: 1px solid #e9ecef;
}

.ss-checkout-plan-details,
.ss-checkout-breakdown {
  margin-bottom: 25px;
}

.ss-checkout-plan-details h3,
.ss-checkout-breakdown h3 {
  color: #147445;
  margin-bottom: 15px;
  font-size: 1.2em;
  border-bottom: 2px solid #f8f9fa;
  padding-bottom: 8px;
}

.ss-plan-detail-item,
.ss-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f8f9fa;
}

.ss-plan-detail-item.ss-ongoing-fees {
  border-top: 2px solid #147445;
  border-bottom: 2px solid #147445;
  margin-top: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: linear-gradient(135deg, #f0fdf4 0%, #e6f9ec 100%);
  border-radius: 6px;
  padding-left: 12px;
  padding-right: 12px;
}

.ss-breakdown-item.ss-breakdown-total {
  border-top: 2px solid #147445;
  border-bottom: none;
  font-size: 1.1em;
  font-weight: 600;
  margin-top: 10px;
  padding-top: 15px;
}

.ss-checkout-note {
  background: #e8f5e8;
  border-left: 4px solid #147445;
  padding: 15px 25px;
  margin: 0 25px;
  border-radius: 0 8px 8px 0;
}

.ss-checkout-note p {
  margin: 0;
  color: #2d5a2d;
  font-size: 0.95em;
}

.ss-checkout-note i {
  color: #147445;
  margin-right: 8px;
}

.ss-actions {
  padding: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ss-btn-large {
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: 600;
}

.ss-btn-outline {
  background: transparent;
  border: 2px solid #147445;
  color: #147445;
  text-align: center;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.ss-btn-outline:hover {
  background: #147445;
  color: white;
}

.ss-plan-select-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: #666;
}

.ss-plan-select-btn.success {
  background-color: #4CAF50;
  border-color: #4CAF50;
}

.fa-spinner.fa-spin {
  animation: fa-spin 2s infinite linear;
}

/* Payment method options */
.ss-checkout-card .ss-payment-options {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 20px 0;
}

.ss-checkout-card .ss-payment-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1f2937;
  background: #f8f9fa;
  padding: 10px 18px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ss-checkout-card .ss-payment-options label:hover {
  border-color: #147445;
  background: #e6f9ec;
}

.ss-checkout-card .ss-payment-options input[type="radio"] {
  accent-color: #147445;
  width: 18px;
  height: 18px;
  margin: 0;
}

/* Button alignment fixes */
.ss-checkout-card .ss-actions .ss-btn {
  flex: 1 1 48%;
  max-width: 260px;
  height: 52px;
  box-sizing: border-box;
  border-radius: 12px;
  margin: 0;
}

.ss-checkout-card .ss-actions .ss-btn:first-child {
  margin-left: 0;
}

.ss-checkout-card .ss-field .ss-payment-radio {
  vertical-align: middle;
  margin-right: 8px;
  margin-left: 0;
  transform: translateY(1px);
}

.ss-checkout-card .ss-field > div {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#ss-eft-details {
  margin-top: 12px;
  padding-top: 8px;
}

#ss-checkout-status.ss-hidden {
  display: none;
}

#ss-checkout-status {
  display: inline-block;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-checkout-card .ss-btn i.fas {
  margin-right: 8px;
  display: inline-block;
}

/* =====================================================
   Branded EFT Payment Section
   ===================================================== */
.ss-eft-box {
  margin: 25px;
  padding: 0;
  border: 2px solid #e9eef0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ss-eft-header-branded {
  background: linear-gradient(135deg, #147445 0%, #0d5c34 100%);
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.ss-eft-header-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ss-eft-header-icon i {
  font-size: 1.8em;
  color: white;
}

.ss-eft-header-text h3 {
  margin: 0 0 5px 0;
  color: white;
  font-size: 1.3em;
  font-weight: 600;
}

.ss-eft-header-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9em;
}

.ss-eft-details-container {
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.ss-eft-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 0;
}

.ss-eft-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9eef0;
  transition: all 0.2s ease;
}

.ss-eft-detail:hover {
  border-color: #147445;
  box-shadow: 0 2px 8px rgba(20, 116, 69, 0.1);
  transform: translateY(-1px);
}

.ss-eft-detail.ss-eft-amount-highlight {
  background: linear-gradient(135deg, #e6f9ec 0%, #f0fdf4 100%);
  border: 2px solid #147445;
  grid-column: 1 / -1;
}

.ss-eft-detail.ss-eft-reference-highlight {
  background: linear-gradient(135deg, #fff3e6 0%, #fffaf0 100%);
  border: 2px solid #f39c12;
  grid-column: 1 / -1;
}

.ss-eft-label {
  font-size: 0.85em;
  color: #666;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ss-eft-label i {
  color: #147445;
  font-size: 0.9em;
}

.ss-eft-amount-highlight .ss-eft-label i,
.ss-eft-reference-highlight .ss-eft-label i {
  color: #147445;
}

.ss-eft-value {
  font-family: 'Courier New', monospace;
  font-size: 1em;
  font-weight: 700;
  color: #147445;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e9eef0;
  word-break: break-all;
}

/* New styles for grouped bank details and combined amount/reference */
.ss-eft-bank-details {
  grid-column: 1 / -1; /* full width card */
  padding: 14px;
}
.ss-eft-bank-details .ss-eft-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.04);
}
.ss-eft-bank-details .ss-eft-line:last-child {
  border-bottom: none;
}
.ss-eft-value-inline {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #147445;
  background: rgba(255,255,255,0.9);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #e9eef0;
}

/* Make Amount+Reference share the green highlight */
.ss-eft-amount-reference {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ss-eft-amount-reference .ss-eft-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ss-eft-reference-value {
  color: #0d5c34;
  font-size: 1.0em;
}

.ss-eft-amount-highlight .ss-eft-value {
  color: #0d5c34;
  background: white;
  border-color: #147445;
  font-size: 1.1em;
}

.ss-eft-reference-highlight .ss-eft-value {
  color: #d35400;
  background: white;
  border-color: #f39c12;
  font-size: 1.05em;
  letter-spacing: 0.5px;
}

.ss-eft-notice {
  margin: 20px 25px;
  padding: 15px;
  background: #fff3e6;
  border-left: 4px solid #f39c12;
  border-radius: 6px;
}

.ss-eft-notice p {
  margin: 0;
  font-size: 0.9em;
  color: #744210;
  line-height: 1.5;
}

.ss-eft-notice a {
  color: #d35400;
  font-weight: 600;
  text-decoration: underline;
}

.ss-eft-confirm-box {
  margin: 20px 25px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9eef0;
}

.ss-eft-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.ss-eft-confirm input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #147445;
  cursor: pointer;
  flex-shrink: 0;
}


/* ── Withdrawal fee sub-row in transaction list ─────────────────────── */
.ss-withdrawal-fee-row {
  margin-top: -10px !important;
  margin-left: 24px !important;
  border-left: 3px solid #f39c12 !important;
  border-top: none !important;
  background: #fffaf0 !important;
  border-radius: 0 0 8px 8px !important;
  opacity: 0.92;
}

.ss-withdrawal-main-row {
  border-radius: 8px 8px 0 0 !important;
  border-bottom: 1px dashed rgba(243,156,18,0.3) !important;
}

.ss-fee-amount {
  font-size: 0.9em !important;
  color: #e67e22 !important;
}

/* =====================================================
   Withdrawal Fee Breakdown Box
   ===================================================== */
.ss-withdrawal-fee-box {
  background: linear-gradient(160deg, #f8fdf9 0%, #ffffff 100%);
  border: 1.5px solid rgba(20, 116, 69, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(20,116,69,0.06);
}

.ss-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
  font-size: 0.95em;
}

.ss-fee-row:last-child { border-bottom: none; }

.ss-fee-label { color: #4a5568; }

.ss-fee-value { font-family: 'Courier New', monospace; font-weight: 700; color: #1a202c; }

.ss-fee-debit { color: #e67e22 !important; }

.ss-fee-row-fee { background: #fffaf0; margin: 0 -18px; padding: 7px 18px; }

.ss-fee-row-total {
  border-top: 2px solid rgba(20,116,69,0.15);
  margin-top: 4px;
  padding-top: 10px;
}

.ss-fee-row-receive .ss-fee-value { color: #147445 !important; font-size: 1.05em; }

/* =====================================================
   Add Bank Account Section
   ===================================================== */
/* ══ BANK ACCOUNT SECTION ═══════════════════════════════════════════════ */

/* Master bank select — full width, prevent text clip */
#bank-account-group .ss-bank-master-select {
  width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: 46px !important;
  line-height: 1.5 !important;
  padding-top: 11px !important;
  padding-bottom: 11px !important;
  white-space: nowrap;
  /* Do NOT set overflow:hidden on a select — it clips the text vertically */
}

/* All selects inside withdrawal section — ensure adequate height and line-height */
#section-withdrawals select.ss-form-input,
#section-withdrawals select {
  height: auto !important;
  min-height: 46px !important;
  line-height: 1.5 !important;
  padding-top: 11px !important;
  padding-bottom: 11px !important;
}

/* Cycle info badge */
.ss-bank-cycle-info {
  margin-top: 6px;
  font-size: 0.8em;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ss-bank-cycle-info i { color: #147445; }

/* Inline add-new form — appears below the dropdown */
.ss-add-bank-inline {
  background: #f8fdf9;
  border: 1.5px solid rgba(20,116,69,0.18);
  border-radius: 10px;
  padding: 16px 18px 14px;
  margin-top: 12px;
  animation: ssSlideUp 0.18s ease;
}

.ss-add-bank-form-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #147445;
  font-size: 0.95em;
  margin-bottom: 14px;
}

.ss-add-bank-form-header i { font-size: 1.1em; }

.ss-bank-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

/* Each field inside the add-new inline form — no card bg */
.ss-bank-field-group { display: flex; flex-direction: column; gap: 4px; }
.ss-bank-field-group .ss-form-label { margin-bottom: 2px; }

.ss-add-bank-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* Badge for FIFO warning on toggle button */
.ss-badge-warn {
  font-size: 11px;
  color: #e67e22;
  font-weight: 600;
}

/* Saved accounts manage list */
.ss-saved-banks-list { margin-top: 4px; }

.ss-saved-bank-row {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #e9eef0;
  border-radius: 8px;
  margin-bottom: 5px;
  background: #fff;
  font-size: 0.88em;
  gap: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ss-saved-bank-row:hover {
  border-color: #c3d9cc;
  background: #f8fdf9;
}

.ss-bank-row-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-bank-delete-btn {
  opacity: 0.4;
  transition: opacity 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

.ss-bank-delete-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.ss-bank-delete-btn:focus-visible {
  outline: 2px solid #c0392b;
  border-radius: 4px;
}

/* Confirm modal animations */
@keyframes ssFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ssSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ss-add-bank-toggle {
  font-size: 0.9em;
  padding: 10px 18px;
}

@media (max-width: 768px) {
  .ss-eft-box {
    margin: 20px 15px;
  }
  
  .ss-eft-header-branded {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .ss-eft-details-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .ss-eft-detail.ss-eft-amount-highlight,
  .ss-eft-detail.ss-eft-reference-highlight {
    grid-column: 1;
  }
  
  .ss-eft-details-container {
    padding: 20px;
  }
  
  .ss-eft-notice,
  .ss-eft-confirm-box {
    margin-left: 15px;
    margin-right: 15px;
  }
}

/* =====================================================
   Bottom Navigation (Mobile)
   ===================================================== */
.ss-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e9eef0;
  padding: 12px 8px 8px 8px;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  justify-content: space-around;
  align-items: center;
}

.ss-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #7d8689;
  font-size: 11px;
  flex: 1;
  padding: 0 4px;
  transition: all 0.2s ease;
  gap: 4px;
}

.ss-bottom-nav a.active {
  color: #147445;
  font-weight: 600;
}

.ss-bottom-nav a i {
  font-size: 18px;
}

/* Hamburger Toggle */
.ss-hamburger-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: #ffffff !important;
  cursor: pointer;
  padding: 8px;
  margin-right: 12px;
}

.ss-hamburger-toggle:hover {
  color: #125c39;
}

/* =====================================================
   Menu Auth Button Styles
   ===================================================== */
.primary-navigation .menu > li > a:not(.menu-auth-btn),
#site-navigation .menu > li > a:not(.menu-auth-btn) {
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu-item.menu-auth-btn-container a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.menu-item.menu-auth-btn-container a:focus {
  outline: 2px solid #147445;
  outline-offset: 2px;
}

.menu-item.menu-auth-btn--login a {
  background: linear-gradient(135deg, #147445, #0d8b5e);
  color: #fff;
}

.menu-item.menu-auth-btn--login a:hover,
.menu-item.menu-auth-btn--login a:focus {
  background: linear-gradient(135deg, #0d8b5e, #147445);
}

.menu-item.menu-auth-btn--logout a {
  background: #c0392b;
  color: #fff;
}

.menu-item.menu-auth-btn--logout a:hover,
.menu-item.menu-auth-btn--logout a:focus {
  background: #a93226;
}

.menu-item.menu-item-auth {
  margin-left: 10px;
}

.menu-item.menu-item-auth a {
  display: inline-block;
  padding: 8px 16px;
  white-space: nowrap;
}

/* =====================================================
   Utilities
   ===================================================== */
.ss-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #7d8689;
}

.ss-loading {
  display: none;
  visibility: hidden;
  text-align: center;
  padding: 60px 20px;
  color: #7d8689;
}

.ss-loading .ss-spinner,
.ss-loading p {
  display: none;
  visibility: hidden;
}

.ss-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #147445;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.ss-hidden {
  display: none;
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes slideInUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes progressFill {
  from { width: 0%; }
}

/* =====================================================
   Accessibility
   ===================================================== */
a:focus,
button:focus,
.ss-form-input:focus,
.btn-primary:focus,
.btn-outline:focus,
.btn-upload:focus,
.ss-quick-btn:focus,
.ss-filter-btn:focus {
  outline: 3px solid rgba(20, 116, 69, 0.3);
  outline-offset: 2px;
}

.btn-primary[disabled]:focus,
.btn-outline[disabled]:focus,
.ss-quick-btn[disabled]:focus,
.ss-form-input[disabled]:focus {
  outline: 2px solid #ccc;
  outline-offset: 2px;
}

/* =====================================================
   Responsive Design
   ===================================================== */

/* Tablet/iPad (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .ss-welcome-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .ss-welcome-text,
  .ss-balance-display {
    text-align: center;
    width: 100%;
  }

  .ss-action-buttons {
    justify-content: center;
  }
}

/* Mobile (max-width: 980px) */
@media (max-width: 980px) {
  .ss-hamburger-toggle {
    display: block;
  }

  .ss-wrapper {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .ss-sidebar {
    display: none;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    border-radius: 0;
    overflow-y: auto;
    padding-top: 60px;
  }

  .ss-sidebar.open {
    display: block;
  }

  .ss-sidebar-close {
    display: flex;
  }

  .ss-content {
    padding: 20px 16px 100px;
  }

  .ss-welcome-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .ss-balance-display {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .ss-balance-amount {
    font-size: 32px;
    text-align: center;
  }

  .ss-action-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .ss-action-buttons .btn-primary,
  .ss-action-buttons .btn-outline {
    width: 100%;
    text-align: center;
  }

  .ss-verification-grid {
    grid-template-columns: 1fr;
  }

  .ss-bottom-nav {
    display: flex;
  }

  .ss-toast {
    left: 20px;
    right: 20px;
    min-width: auto;
    max-width: none;
    transform: translateY(-100px);
  }
  
  .ss-toast-show {
    transform: translateY(0);
  }

  .ss-balance-cards {
    grid-template-columns: 1fr;
  }

  .ss-wallet-actions {
    flex-direction: column;
  }

  .ss-form-actions {
    flex-direction: column;
  }

  .ss-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .ss-transactions-controls {
    flex-direction: column;
  }

  .ss-filter-buttons {
    justify-content: center;
  }
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .ss-avatar-label .ss-avatar {
    width: 60px;
    height: 60px;
  }
  
  .ss-avatar-instruction {
    font-size: 9px;
    bottom: -22px;
    padding: 3px 6px;
  }

  .ss-wallet-actions {
    gap: 10px;
  }
  
  .ss-wallet-actions .btn-primary,
  .ss-wallet-actions .btn-outline {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  .ss-quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .ss-quick-btn {
    min-height: 70px;
    padding: 12px 8px;
  }
  
  .ss-quick-btn i {
    font-size: 18px;
    margin-bottom: 6px;
  }
  
  .ss-quick-btn span {
    font-size: 13px;
  }

  .ss-alert ol,
  .ss-alert ul {
    padding-left: 20px;
  }
  
  .ss-alert li {
    font-size: 13px;
  }

  .ss-checkout-card .ss-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ss-checkout-card .ss-actions .ss-btn {
    width: 100%;
    max-width: none;
  }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
  .ss-card {
    padding: 20px 16px;
  }

  .ss-welcome-card {
    padding: 24px 20px;
  }

  .ss-balance-amount {
    font-size: 28px;
  }

  .ss-quick-actions {
    grid-template-columns: 1fr;
  }

  .ss-upload-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .ss-upload-info {
    text-align: center;
  }

  .ss-quick-btn {
    min-height: 60px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 16px;
  }
  
  .ss-quick-btn i {
    margin-bottom: 0;
    margin-right: 12px;
    font-size: 16px;
  }

  .ss-toast {
    left: 10px;
    right: 10px;
    padding: 12px;
  }

  .ss-alert {
    padding: 12px;
  }
  
  .ss-alert ol,
  .ss-alert ul {
    padding-left: 16px;
  }
}

/* Desktop - hide hamburger */
@media (min-width: 981px) {
  .ss-hamburger-toggle {
    display: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .menu-item.menu-auth-btn--login a {
    background: #147445;
    border: 2px solid #147445;
  }
  
  .menu-item.menu-auth-btn--logout a {
    background: #c0392b;
    border: 2px solid #c0392b;
  }
  
  .ss-avatar-label:hover .ss-avatar {
    border-color: #ffffff;
    outline: 2px solid #147445;
  }
}

.ss-payment-options {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
  text-align: center;
}

.ss-payment-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.ss-actions .ss-btn {
  flex: 1 1 48%;
  max-width: 260px;
  height: 52px;
  margin: 0;
}

/* Checkout form alignment fixes */
.ss-field .ss-payment-radio {
  vertical-align: middle;
  margin-right: 6px;
}
.ss-field label {
  display: inline-flex;
  align-items: center;
  margin-right: 16px;
}

.ss-checkout-card .btn-primary,
.ss-checkout-card .btn-outline {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ss-checkout-card .ss-actions {
  display: flex;
  gap: 12px;
}


/* ============================
   Plan Checkout Payment Method
   ============================ */
.ss-checkout-card .ss-field {
  margin: 20px 0;
  text-align: center; /* center the heading text */
}

.ss-checkout-card .ss-field label {
  font-weight: 600;
  color: #147445;
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
}

.ss-checkout-card .ss-field .ss-payment-options {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ss-checkout-card .ss-field .ss-payment-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
}

.ss-checkout-card .ss-field .ss-payment-radio {
  margin: 0;
  transform: translateY(1px); /* micro-align with text */
}

.ss-eft-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px 0;
}

.ss-eft-list li {
  display: block;              /* stack content vertically */
  padding: 8px 0;
  border-bottom: 1px solid #dce6ef;
}

.ss-eft-list li:last-child {
  border-bottom: none;
}

.ss-eft-list .label {
  display: block;              /* force onto its own line */
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.ss-eft-list .value {
  display: block;              /* force onto its own line */
  font-weight: 600;
  color: #147445;
}

/* =====================================================
   CHECKOUT / EFT & My Account Styles (moved from stokvel-auth-section.css)
   Centralized so dashboard and contribution pages share the same look
   ===================================================== */

.ss-checkout-card {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.ss-checkout-header {
  background: linear-gradient(135deg, #147445 0%, #0d8b5e 100%);
  color: white;
  padding: 20px 24px;
  text-align: left;
  display: flex;
  gap: 16px;
  align-items: center;
}

.ss-checkout-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.ss-checkout-header p {
  margin: 0;
  opacity: 0.95;
  color: rgba(255,255,255,0.95);
}

.ss-eft-details-container {
  padding: 18px 20px 28px 20px;
}

.ss-eft-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 0 0;
}

.ss-eft-detail {
  display: flex;
  flex-direction: column;
}

.ss-eft-line { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.ss-eft-label { font-weight:600; color:#234; min-width:160px; display:inline-flex; align-items:center; gap:8px; }
.ss-eft-value-inline { font-family: monospace; background:#f7fafc; padding:8px 12px; border-radius:8px; border:1px solid #e6eef2; color:#0f1724; }

.ss-eft-amount-highlight { background: linear-gradient(90deg,#e6ffef,#f0fff4); padding:12px; border-radius:8px; border:1px solid #d1fae5; }
.ss-eft-amount-highlight .ss-eft-value { font-family: monospace; background: transparent; padding:0; border-radius:4px; border:none; }

.ss-eft-notice { background:#fffaf0; border:1px solid #fed7aa; border-radius:8px; padding:12px; margin-top:12px; color:#7a4b1b; }

@media (max-width:768px) {
  .ss-eft-details-grid { grid-template-columns: 1fr; }
  .ss-checkout-header { text-align:left; }
}

/* =====================================================
   COMPLETE MOBILE OPTIMIZATION - FIXED VERSION
   Welcome card now properly displays with green background and white text
   ===================================================== */

/* ============= BASE MOBILE RESET ============= */
@media (max-width: 768px) {
    html {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        background: #f8f9fa;
    }
    
    /* Prevent text selection interference */
    body {
        -webkit-user-select: none;
        user-select: none;
    }
    
    input, textarea, .auth-form, .ss-card, p, span, div {
        -webkit-user-select: text;
        user-select: text;
    }
    
    /* ============= APP-LIKE DASHBOARD CONTAINER ============= */
    .ss-account-dashboard {
        background: #f8f9fa;
        min-height: 100vh;
        padding: 0;
        margin: 0;
    }
    
    /* Full-width header with no padding */
    .ss-header {
        margin: 0;
        padding: 16px;
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Wrapper takes full width on mobile */
    .ss-wrapper {
        padding: 0;
        margin: 0;
        gap: 0;
        width: 100%;
    }
    
   /* Content area - full width with strategic padding - RESTORED TOP PADDING */
    .ss-content {
    padding: 16px 0 calc(70px + env(safe-area-inset-bottom)) 0; /* Added 16px top padding */
    width: 100%;
    box-sizing: border-box;
}
    
    /* Cards are full-width with no side margins on mobile - EXCEPT WELCOME CARD */
    .ss-card:not(.ss-welcome-card) {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        border-radius: 0;
        padding: 20px 16px;
        box-shadow: none;
        border-bottom: 1px solid #e9eef0;
        background: #ffffff;
    }
    
    /* Special styling for welcome card - full bleed but keep green background */
    .ss-welcome-card {
        margin: 0 !important;
        padding: 24px 16px !important;
        border-radius: 0 !important;
        background: linear-gradient(135deg, #0a3d27, #147445) !important;
        color: white !important;
    }
    
    /* Section spacing */
    .ss-section {
        background: #f8f9fa;
    }
    
    /* Add subtle dividers between cards */
    .ss-card + .ss-card {
        margin-top: 8px;
    }
    
    /* ============= ENHANCED BALANCE CARDS - APP-LIKE ============= */
    .ss-balance-cards {
        padding: 16px;
        background: #ffffff;
        margin: 0;
        gap: 12px;
    }
    
    .ss-balance-card {
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border: 1px solid #e9eef0;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    /* ============= ENHANCED QUICK ACTIONS - NATIVE FEEL ============= */
    .ss-quick-actions {
        padding: 16px;
        background: #ffffff;
        margin: 0;
        gap: 12px;
    }
    
    .ss-quick-btn {
        background: #ffffff;
        border: 2px solid #e9eef0;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        transition: all 0.2s ease;
    }
    
    .ss-quick-btn:active {
        transform: scale(0.98);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    
    /* ============= WALLET ACTIONS - FULL WIDTH BUTTONS ============= */
    .ss-wallet-actions {
        padding: 16px;
        background: #ffffff;
        margin: 0;
        gap: 12px;
    }
    
    .ss-wallet-actions .btn-primary,
    .ss-wallet-actions .btn-outline {
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(20, 116, 69, 0.15);
    }
    
    .ss-wallet-actions .btn-primary:active,
    .ss-wallet-actions .btn-outline:active {
        transform: scale(0.98);
    }
    
    /* ============= TRANSACTION LIST - REFINED ============= */
    .ss-transactions-list,
    .ss-transactions-list-full {
        padding: 0 16px 16px 16px;
        background: #f8f9fa;
        margin: 0;
    }
    
    .ss-transaction-item {
        background: #ffffff;
        border: 1px solid #e9eef0;
        border-radius: 12px;
        margin-bottom: 8px;
        padding: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }
    
    .ss-transaction-item:active {
        transform: scale(0.99);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    /* ============= PROGRESS CARD - ENHANCED ============= */
    .ss-progress-card {
        background: #ffffff;
        padding: 20px 16px;
    }
    
    .ss-progress-bar {
        height: 12px;
        border-radius: 6px;
        background: #f0f0f0;
        overflow: hidden;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .ss-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #147445, #0d8b5e);
        border-radius: 6px;
        box-shadow: 0 1px 2px rgba(20, 116, 69, 0.3);
    }
    
    /* ============= ELIGIBILITY ALERT - POLISHED ============= */
    .ss-eligibility-alert {
        border-radius: 12px;
        padding: 16px;
        margin: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    /* ============= FORM INPUTS - NATIVE FEEL ============= */
    .ss-form-input {
        border-radius: 12px;
        padding: 14px 16px;
        font-size: 16px;
        border: 2px solid #e9eef0;
        background: #f8f9fa;
        transition: all 0.2s ease;
    }
    
    .ss-form-input:focus {
        background: #ffffff;
        border-color: #147445;
        box-shadow: 0 0 0 4px rgba(20, 116, 69, 0.1);
        transform: scale(1.01);
    }
    
    /* ============= UPLOAD ITEMS - ENHANCED ============= */
    .ss-upload-item {
        background: #ffffff;
        border: 1px solid #e9eef0;
        border-radius: 12px;
        padding: 16px;
        margin: 0 16px 12px 16px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }
    
    .btn-upload {
        border-radius: 12px;
        padding: 12px 20px;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(20, 116, 69, 0.15);
    }
    
    /* ============= VERIFICATION GRID - REFINED ============= */
    .ss-verification-grid {
        padding: 0 16px;
        gap: 12px;
    }
    
    .ss-verification-item {
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }
    
    /* ============= ALERTS - MODERN STYLING ============= */
    .ss-alert {
        border-radius: 12px;
        padding: 16px;
        margin: 16px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }
    
    /* ============= INFO LISTS - POLISHED ============= */
    .ss-info-list,
    .ss-guidelines {
        padding: 0 16px 16px 16px;
        gap: 12px;
    }
    
    .ss-info-item,
    .ss-guideline-item {
        background: #ffffff;
        border: 1px solid #e9eef0;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }
    
    /* ============= SECTION HEADINGS - APP-LIKE ============= */
    .ss-card h2,
    .ss-card h3 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 16px;
        color: #147445;
    }
    
    /* ============= PULL-TO-REFRESH INDICATOR ============= */
    .ss-loading {
        background: transparent;
        padding: 20px;
    }
    
    /* ============= ENHANCED BOTTOM NAVIGATION - NATIVE FEEL ============= */
    .ss-bottom-nav {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
    }
    
    .ss-bottom-nav a {
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .ss-bottom-nav a.active {
        color: #147445;
        transform: translateY(-2px);
    }
    
    .ss-bottom-nav a.active i {
        transform: scale(1.1);
    }
    
    .ss-bottom-nav a.active::before {
        content: '';
        position: absolute;
        top: -9px;
        left: 50%;
        transform: translateX(-50%);
        width: 32px;
        height: 3px;
        background: #147445;
        border-radius: 0 0 3px 3px;
        box-shadow: 0 2px 8px rgba(20, 116, 69, 0.4);
    }
    
    .ss-bottom-nav a:active {
        transform: scale(0.95);
    }
    
    /* ============= SMOOTH SCROLLING ============= */
    .ss-content {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* ============= CARD ENTER ANIMATIONS ============= */
    .ss-card {
        animation: slideInUp 0.3s ease-out;
    }
    
    /* ============= HAPTIC FEEDBACK SIMULATION ============= */
    .ss-quick-btn:active,
    .btn-primary:active,
    .btn-outline:active,
    .ss-nav-link:active,
    .ss-filter-btn:active {
        transition: transform 0.1s ease;
    }
    
    /* ============= IMPROVED TOUCH TARGETS ============= */
    .ss-nav-link,
    .ss-quick-btn,
    .ss-filter-btn,
    .btn-primary,
    .btn-outline,
    .ss-transaction-item {
        position: relative;
    }
    
    .ss-nav-link::after,
    .ss-quick-btn::after,
    .ss-filter-btn::after {
        content: '';
        position: absolute;
        top: -8px;
        right: -8px;
        bottom: -8px;
        left: -8px;
    }
    
    /* ============= SAFE AREA SUPPORT ============= */
    .ss-header {
        padding-top: max(16px, env(safe-area-inset-top));
    }
    
    .ss-content {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
    
    .ss-bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    
    /* ============= STATUS BAR SPACING (iOS) ============= */
    @supports (-webkit-touch-callout: none) {
        .ss-header {
            padding-top: max(16px, env(safe-area-inset-top));
        }
    }
    
    /* ============= PREVENT OVERSCROLL BOUNCE (WHERE APPROPRIATE) ============= */
    .ss-card,
    .ss-transaction-item {
        overscroll-behavior: contain;
    }
    
    /* ============= ENHANCED FOCUS STATES FOR ACCESSIBILITY ============= */
    .btn-primary:focus-visible,
    .btn-outline:focus-visible,
    .ss-quick-btn:focus-visible,
    .ss-nav-link:focus-visible {
        outline: 3px solid #147445;
        outline-offset: 2px;
        box-shadow: 0 0 0 4px rgba(20, 116, 69, 0.2);
    }
}

/* ============= TOUCH TARGET SIZES ============= */
@media (max-width: 768px) {
    .ss-nav-link,
    .ss-quick-btn,
    .ss-filter-btn,
    .btn-primary,
    .btn-outline,
    .ss-plan-select-btn,
    .ss-eft-confirm input[type="checkbox"] {
        min-height: 48px !important;
        min-width: 48px !important;
        padding: 12px 16px !important;
    }

    /* Larger tap area for checkbox */
    .ss-eft-confirm {
        padding: 12px !important;
        margin: -12px !important;
    }
}

/* ============= HORIZONTAL SCROLLING TABLES ============= */
@media (max-width: 768px) {
    .ss-transactions-list,
    .ss-transactions-list-full {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .ss-transaction-item {
        min-width: 280px !important;
    }
}

/* ============= EFT DETAILS MOBILE LAYOUT ============= */
@media (max-width: 480px) {
    .ss-eft-details-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .ss-eft-detail {
        padding: 10px !important;
    }

    .ss-eft-value,
    .ss-eft-value-inline {
        font-size: 0.9em !important;
        word-break: break-all !important;
        padding: 6px 10px !important;
    }

    .ss-eft-header-branded {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
}

/* ============= WELCOME CARD MOBILE OPTIMIZATION - FIXED ============= */
@media (max-width: 768px) {
    .ss-welcome-card {
        padding: 24px 16px !important;
        background: linear-gradient(135deg, #0a3d27, #147445) !important;
        color: white !important;
    }
    
    .ss-welcome-content {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    
    .ss-welcome-text,
    .ss-balance-display {
        text-align: center !important;
        color: white !important;
    }
    
    .ss-welcome-text h2 {
        color: white !important;
    }
    
    .ss-welcome-text p {
        color: rgba(255,255,255,0.9) !important;
    }
    
    .ss-balance-amount {
        font-size: 32px !important;
        background: linear-gradient(135deg, #ffffff, #e6f9ec) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
    
    .ss-action-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .ss-action-buttons .btn-primary,
    .ss-action-buttons .btn-outline {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Ensure all text in welcome card stays white on mobile */
    .ss-welcome-card .ss-plan-status,
    .ss-welcome-card .ss-next-due,
    .ss-welcome-card .ss-balance-note,
    .ss-welcome-card .ss-email {
        color: white !important;
    }
}

/* ============= TOAST NOTIFICATIONS MOBILE POSITION ============= */
@media (max-width: 768px) {
    .ss-toast {
        top: auto !important;
        bottom: calc(80px + env(safe-area-inset-bottom)) !important;
        left: 10px !important;
        right: 10px !important;
        min-width: auto !important;
        max-width: none !important;
        transform: translateY(150%) !important;
    }

    .ss-toast-show {
        transform: translateY(0) !important;
    }
}

/* ============= REDUCE ANIMATION COMPLEXITY ON MOBILE ============= */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
    /* Simpler animations for better performance */
    .ss-card:hover:not(.ss-welcome-card),
    .ss-sidebar:hover,
    .ss-transaction-item:hover {
        transform: none !important;
    }

    .btn-primary:hover,
    .btn-outline:hover {
        transform: translateY(-1px) !important;
    }
}

/* ============= FORM INPUT ZOOM PREVENTION ============= */
@media (max-width: 768px) {
    .auth-section input[type="text"],
    .auth-section input[type="password"],
    .auth-section input[type="email"],
    .auth-section input[type="tel"],
    .ss-form-input,
    .auth-input {
        font-size: 16px !important;
    }
}

/* ============= SMALL MOBILE (< 480px) ============= */
@media (max-width: 480px) {
    .ss-balance-amount {
        font-size: 28px;
    }
    
    .ss-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .ss-quick-btn {
        min-height: 60px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 16px;
    }
    
    .ss-quick-btn i {
        margin-bottom: 0;
        margin-right: 12px;
        font-size: 16px;
    }
}

/* ============= iOS SPECIFIC FIXES ============= */
@media (max-width: 768px) {
    /* Prevent zoom on input focus */
    select,
    textarea,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    input[type="number"] {
        font-size: 16px !important;
    }
    
    /* Fix for iOS Safari viewport */
    @supports (-webkit-touch-callout: none) {
        .ss-account-dashboard {
            min-height: -webkit-fill-available;
        }
    }
    
    /* Safe area insets (notches) */
    .ss-header {
        padding-top: max(16px, env(safe-area-inset-top));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* ============= PREVENT OVERFLOW ============= */
@media (max-width: 768px) {
    .ss-account-dashboard,
    .ss-container,
    .ss-card,
    .ss-form,
    .ss-form-group,
    .ss-form-input,
    .btn-primary,
    .ss-plan-card {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .ss-card h2,
    .ss-card h3,
    .ss-card p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* =====================================================
   MOBILE-FIRST DASHBOARD OPTIMIZATION
   Add this to the END of dashboard (10).css
   ===================================================== */

/* ============= MOBILE BASE (0-768px) ============= */
@media (max-width: 768px) {
    /* ========== Reset & Foundation ========== */
    html, body {
        -webkit-overflow-scrolling: touch;
        overflow-x: clip;
        width: 100%;
    }
    
    body {
        background: #f8f9fa;
        padding: 0;
        margin: 0;
    }
    
    /* ========== Header Optimization ========== */
    .ss-header {
        margin: 0;
        padding: 12px 16px;
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .ss-header-inner {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .ss-profile-block {
        flex: 1;
        gap: 12px;
        min-width: 0; /* Allow text truncation */
    }
    
    .ss-profile-block > div {
        min-width: 0; /* Allow text truncation */
        overflow: hidden;
    }
    
    .ss-profile-block h1 {
        font-size: 16px;
        margin: 0 0 4px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .ss-profile-block div {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .ss-email {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* ========== Avatar Mobile ========== */
    .ss-avatar {
        width: 50px;
        height: 50px;
        border-width: 3px;
        flex-shrink: 0;
    }
    
    .ss-avatar-instruction {
        display: none; /* Hide on mobile - save space */
    }
    
    /* ========== Hamburger Always Visible ========== */
    .ss-hamburger-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        width: 40px;
        height: 40px;
        padding: 0;
        flex-shrink: 0;
    }
    
    /* ========== Wrapper Full Width ========== */
    .ss-wrapper {
        padding: 0;
        margin: 0;
        gap: 0;
        width: 100%;
        flex-direction: column;
    }
    
    /* ========== Sidebar Mobile Drawer ========== */
    .ss-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 320px;
        background: #ffffff;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        padding: 60px 16px 80px 16px;
        overflow-y: auto;
        border-radius: 0 16px 16px 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }
    
    .ss-sidebar.open {
        display: block;
        transform: translateX(0);
    }
    
    .ss-sidebar-close {
        display: flex !important;
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 10000;
    }
    
    /* Sidebar Backdrop — handled by .ss-sidebar-overlay div */
    
    /* ========== Navigation Mobile ========== */
    .ss-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
    }
    
    .ss-nav-link {
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 15px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .ss-nav-link i {
        width: 24px;
        font-size: 16px;
    }
    
    /* ========== Content Area ========== */
    .ss-content {
        padding: 0 0 calc(70px + env(safe-area-inset-bottom)) 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* ========== Cards Full Bleed on Mobile ========== */
    .ss-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        border-radius: 0 !important;
        padding: 20px 16px !important;
        box-shadow: none !important;
        border-bottom: 1px solid #e9eef0 !important;
        background: #ffffff;
    }
    
    /* Exception: Welcome Card keeps gradient */
    .ss-welcome-card {
        background: linear-gradient(135deg, #0a3d27, #147445) !important;
        color: white !important;
        padding: 24px 16px !important;
        border-bottom: none !important;
    }
    
    /* ========== Welcome Card Mobile Layout ========== */
    .ss-welcome-content {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        text-align: center;
    }
    
    .ss-welcome-text,
    .ss-balance-display {
        text-align: center !important;
        width: 100%;
    }
    
    .ss-welcome-text h2 {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }
    
    .ss-welcome-text p {
        font-size: 14px !important;
        margin: 4px 0 !important;
    }
    
    .ss-balance-amount {
        font-size: 32px !important;
        margin-bottom: 4px;
    }
    
    .ss-balance-note {
        font-size: 13px !important;
        margin-bottom: 12px;
    }
    
    .ss-plan-status {
        font-size: 13px !important;
        padding: 4px 10px !important;
        display: inline-block;
        margin-bottom: 4px;
    }
    
    .ss-next-due {
        font-size: 13px !important;
    }
    
    /* ========== Action Buttons Stacked ========== */
    .ss-action-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100%;
        margin-top: 16px;
    }
    
    .ss-action-buttons .btn-primary,
    .ss-action-buttons .btn-outline,
    .ss-action-buttons a {
        width: 100% !important;
        justify-content: center !important;
        min-height: 48px !important;
        font-size: 15px !important;
        padding: 14px 20px !important;
    }
    
    /* ========== Progress Card Compact ========== */
    .ss-progress-card {
        padding: 16px !important;
    }
    
    .ss-progress-card h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .ss-progress-stats {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .ss-progress-bar {
        height: 8px;
        margin-bottom: 16px;
    }
    
    /* ========== Eligibility Alert Compact ========== */
    .ss-eligibility-alert {
        padding: 12px !important;
        gap: 10px !important;
        flex-direction: row;
        align-items: flex-start;
        border-radius: 0 !important;
    }
    
    .ss-eligibility-icon {
        font-size: 20px;
        flex-shrink: 0;
        width: 28px;
    }
    
    .ss-eligibility-content {
        flex: 1;
        min-width: 0;
    }
    
    .ss-eligibility-content strong {
        font-size: 14px;
        display: block;
        margin-bottom: 4px;
    }
    
    .ss-eligibility-content p {
        font-size: 13px;
        margin: 0;
    }
    
    .ss-tier-badge {
        font-size: 11px !important;
        padding: 3px 8px !important;
        margin-top: 6px;
        display: inline-block;
    }
    
    /* ========== Verification Section Mobile ========== */
    .ss-verification-card {
        padding: 16px !important;
    }
    
    .ss-verification-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .ss-verification-item {
        padding: 12px !important;
        gap: 10px !important;
        border-radius: 0 !important;
    }
    
    .ss-verification-item i {
        font-size: 16px;
        width: 20px;
    }
    
    .ss-verification-item div {
        font-size: 14px;
    }
    
    .ss-verification-item strong {
        font-size: 14px;
    }
    
    .ss-verification-item p {
        font-size: 12px;
        margin: 2px 0 0 0;
    }
    
    .ss-status {
        font-size: 12px !important;
        white-space: nowrap;
    }
    
    /* ========== Transactions Mobile ========== */
    .ss-transactions-card {
        padding: 16px !important;
    }
    
    .ss-transactions-list,
    .ss-transactions-list-full {
        gap: 8px;
        padding: 0;
    }
    
    .ss-transaction-item {
        padding: 12px !important;
        border-radius: 0 !important;
        min-width: 280px;
        gap: 12px;
    }
    
    .ss-transaction-details {
        flex: 1;
        min-width: 0;
    }
    
    .ss-transaction-type {
        font-size: 14px;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .ss-transaction-date {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .ss-transaction-badges {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        margin-top: 4px;
    }
    
    .ss-transaction-tag,
    .ss-transaction-status-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    
    .ss-transaction-amount {
        font-size: 15px !important;
        white-space: nowrap;
        flex-shrink: 0;
        text-align: right;
    }
    
    /* Transaction Controls */
    .ss-transactions-controls {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
        padding: 16px;
        background: #f8f9fa;
        border-radius: 0;
    }
    
    .ss-search-box {
        width: 100%;
    }
    
    .ss-filter-buttons {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .ss-filter-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
        border-radius: 16px;
        min-height: 36px;
    }
    
    /* ========== Balance Cards Mobile ========== */
    .ss-balance-cards {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 16px;
        margin: 0;
    }
    
    .ss-balance-card {
        padding: 16px !important;
        border-radius: 0 !important;
    }
    
    .ss-balance-label {
        font-size: 13px !important;
        margin-bottom: 6px;
    }
    
    .ss-balance-amount {
        font-size: 28px !important;
    }
    
    .ss-balance-note {
        font-size: 12px !important;
    }
    
    /* ========== Quick Actions Mobile Grid ========== */
    .ss-quick-actions {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 16px;
        margin: 0;
    }
    
    .ss-quick-btn {
        min-height: 70px !important;
        padding: 12px 8px !important;
        border-radius: 0 !important;
        font-size: 14px;
    }
    
    .ss-quick-btn i {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .ss-quick-btn span {
        font-size: 13px;
    }
    
    /* ========== Wallet Actions Stacked ========== */
    .ss-wallet-actions {
        flex-direction: column !important;
        gap: 10px;
        padding: 16px;
        margin: 0;
    }
    
    .ss-wallet-actions .btn-primary,
    .ss-wallet-actions .btn-outline {
        width: 100% !important;
        min-height: 48px !important;
        font-size: 15px !important;
        border-radius: 0 !important;
    }
    
    /* ========== Form Inputs Mobile ========== */
    .ss-form-group {
        margin-bottom: 16px;
    }
    
    .ss-form-label {
        font-size: 14px !important;
        margin-bottom: 6px;
    }
    
    .ss-form-input,
    .ss-input {
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 12px 14px !important;
        border-radius: 0 !important;
    }
    
    .ss-form-help {
        font-size: 12px;
        margin-top: 4px;
    }
    
    .ss-form-actions {
        flex-direction: column !important;
        gap: 10px;
    }
    
    .ss-form-actions .btn-primary,
    .ss-form-actions .btn-outline {
        width: 100% !important;
        min-height: 48px !important;
    }
    
    /* ========== Upload Section Mobile ========== */
    .ss-upload-grid {
        gap: 12px;
        padding: 0;
    }
    
    .ss-upload-item {
        flex-direction: column !important;
        text-align: center !important;
        padding: 16px !important;
        gap: 12px;
        border-radius: 0 !important;
    }
    
    .ss-upload-icon {
        margin: 0 auto;
    }
    
    .ss-upload-info {
        text-align: center;
    }
    
    .ss-upload-info strong {
        font-size: 14px;
    }
    
    .ss-upload-info p {
        font-size: 13px;
    }
    
    .btn-upload {
        width: 100%;
        min-height: 44px !important;
        border-radius: 0 !important;
    }
    
    /* ========== Guidelines Mobile ========== */
    .ss-guidelines {
        gap: 12px;
        padding: 16px;
        margin: 0;
    }
    
    .ss-guideline-item {
        padding: 12px !important;
        gap: 12px;
        border-radius: 0 !important;
    }
    
    .ss-guideline-item i {
        font-size: 16px;
        width: 20px;
    }
    
    .ss-guideline-item strong {
        font-size: 14px;
    }
    
    .ss-guideline-item p {
        font-size: 13px;
    }
    
    /* ========== Alert Messages Mobile ========== */
    .ss-alert {
        padding: 12px !important;
        gap: 10px;
        border-radius: 0 !important;
        font-size: 14px;
    }
    
    .ss-alert i {
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .ss-alert strong {
        font-size: 14px;
    }
    
    .ss-alert p {
        font-size: 13px;
        margin: 4px 0 0 0;
    }
    
    .ss-alert ol,
    .ss-alert ul {
        font-size: 13px;
        padding-left: 20px;
        margin: 8px 0;
    }
    
    .ss-alert li {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    /* ========== Info Lists Mobile ========== */
    .ss-info-list {
        gap: 10px;
        padding: 16px;
        margin: 0;
    }
    
    .ss-info-item {
        padding: 12px !important;
        gap: 12px;
        border-radius: 0 !important;
    }
    
    .ss-info-item i {
        font-size: 16px;
        width: 20px;
    }
    
    .ss-info-item strong {
        font-size: 14px;
    }
    
    .ss-info-item p {
        font-size: 13px;
    }
    
    /* ========== Account Settings Mobile ========== */
        margin-bottom: 8px;
        border-radius: 0 !important;
    }
    
    .ss-badge strong {
        font-size: 13px;
    }
    
    /* ========== Bottom Navigation Enhanced ========== */
    .ss-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        justify-content: space-around;
    }
    
    .ss-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #7d8689;
        font-size: 11px;
        font-weight: 500;
        flex: 1;
        padding: 6px 4px;
        transition: all 0.2s ease;
        gap: 4px;
        min-width: 60px;
        max-width: 80px;
        position: relative;
    }
    
    .ss-bottom-nav a i {
        font-size: 20px;
        transition: all 0.2s ease;
    }
    
    .ss-bottom-nav a.active {
        color: #147445;
        transform: translateY(-2px);
    }
    
    .ss-bottom-nav a.active i {
        transform: scale(1.1);
    }
    
    .ss-bottom-nav a.active::before {
        content: '';
        position: absolute;
        top: -9px;
        left: 50%;
        transform: translateX(-50%);
        width: 32px;
        height: 3px;
        background: #147445;
        border-radius: 0 0 3px 3px;
        box-shadow: 0 2px 8px rgba(20, 116, 69, 0.4);
    }
    
    .ss-bottom-nav a:active {
        transform: scale(0.95);
    }
    
    /* ========== Toast Notifications Mobile ========== */
    .ss-toast {
        left: 10px !important;
        right: 10px !important;
        top: auto !important;
        bottom: calc(80px + env(safe-area-inset-bottom)) !important;
        min-width: auto !important;
        max-width: none !important;
        padding: 12px !important;
        font-size: 14px;
        transform: translateY(150%) !important;
    }
    
    .ss-toast-show {
        transform: translateY(0) !important;
    }
    
    .ss-toast-content {
        gap: 10px;
    }
    
    .ss-toast i {
        font-size: 16px;
    }
    
    /* ========== Card Headers Mobile ========== */
    .ss-card h2,
    .ss-card h3 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    .ss-card h4 {
        font-size: 16px !important;
    }
    
    /* ========== iOS Safe Areas ========== */
    .ss-header {
        padding-top: max(12px, env(safe-area-inset-top));
    }
    
    .ss-content {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
    
    .ss-sidebar {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
    
    /* ========== Touch Target Enhancement ========== */
    .ss-nav-link,
    .ss-quick-btn,
    .ss-filter-btn,
    .btn-primary,
    .btn-outline,
    .btn-upload,
    .ss-wrapper,
    .ss-content,
    .ss-card,
    .ss-section {
        max-width: 100%;
        overflow-x: clip;
        box-sizing: border-box;
    }
    
    /* ========== Text Wrapping ========== */
    .ss-card h2,
    .ss-card h3,
    .ss-card h4,
    .ss-card p,
    .ss-alert p,
    .ss-guideline-item p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* ========== Smooth Scrolling ========== */
    .ss-content,
    .ss-sidebar {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* ========== Performance Optimizations ========== */
    .ss-card:hover,
    .ss-transaction-item:hover,
    .ss-quick-btn:hover {
        transform: none;
    }
    
    /* ========== Prevent iOS Input Zoom ========== */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ============= SMALL MOBILE (0-480px) ============= */
@media (max-width: 480px) {
    /* Even more compact on very small screens */
    .ss-header {
        padding: 10px 12px;
    }
    
    .ss-header h1 {
        font-size: 14px !important;
    }
    
    .ss-avatar {
        width: 45px;
        height: 45px;
    }
    
    .ss-card {
        padding: 16px 12px !important;
    }
    
    .ss-welcome-card {
        padding: 20px 12px !important;
    }
    
    .ss-balance-amount {
        font-size: 28px !important;
    }
    
    .ss-quick-actions {
        grid-template-columns: 1fr !important;
    }
    
    .ss-quick-btn {
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding: 12px 16px !important;
    }
    
    .ss-quick-btn i {
        margin-bottom: 0 !important;
        margin-right: 12px;
        font-size: 16px;
    }
    
    .ss-bottom-nav a {
        font-size: 10px;
        min-width: 50px;
    }
    
    .ss-bottom-nav a i {
        font-size: 18px;
    }
}

/* ============= LANDSCAPE MOBILE (max-height: 500px) ============= */
@media (max-width: 768px) and (max-height: 500px) and (orientation: landscape) {
    .ss-header {
        padding: 8px 12px;
    }
    
    .ss-avatar {
        width: 40px;
        height: 40px;
    }
    
    .ss-card {
        padding: 12px !important;
    }
    
    .ss-welcome-card {
        padding: 16px !important;
    }
    
    .ss-balance-amount {
        font-size: 24px !important;
    }
    
    .ss-action-buttons {
        flex-direction: row !important;
        gap: 8px !important;
    }
    
    .ss-action-buttons .btn-primary,
    .ss-action-buttons .btn-outline {
        flex: 1;
    }
}

/* ============= TABLET (769px - 1024px) ============= */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet gets a hybrid layout */
    .ss-wrapper {
        padding: 16px;
        gap: 16px;
    }
    
    .ss-sidebar {
        width: 240px;
        position: relative;
        top: auto;
    }
    
    .ss-content {
        padding-bottom: 20px;
    }
    
    .ss-card {
        border-radius: 12px !important;
        margin-bottom: 16px !important;
    }
    
    .ss-bottom-nav {
        display: none !important;
    }
    
    .ss-hamburger-toggle {
        display: none !important;
    }
    
    .ss-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ss-verification-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============= DESKTOP (981px+) ============= */
@media (min-width: 981px) {
    /* sidebar should behave as a normal sticky column at tablet/desktop widths */
    .ss-hamburger-toggle {
        display: none !important;
    }
    
    .ss-bottom-nav {
        display: none !important;
    }
    
    .ss-sidebar {
        display: block;
        position: sticky !important;
        top: 20px;
        transform: none !important;
        width: 280px;
        flex-shrink: 0;
    }

    /* prevent the "open" state from forcing the fixed/mobile transform */
    .ss-sidebar.open {
        position: sticky !important;
        transform: none !important;
    }

    /* ensure wrapper/content adopt side‑by‑side layout */
    .ss-wrapper {
        display: flex !important;
        flex-direction: row;
        gap: 24px;
        padding: 20px;
    }

    .ss-content {
        flex: 1;
        padding-bottom: 0;
    }
}

/* ============= ACCESSIBILITY ENHANCEMENTS ============= */
@media (max-width: 768px) {
    /* Focus States */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 3px solid rgba(20, 116, 69, 0.5);
        outline-offset: 2px;
    }
    
    /* Reduced Motion */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* High Contrast Mode */
    @media (prefers-contrast: high) {
        .ss-card {
            border: 2px solid #000 !important;
        }
        
        .btn-primary,
        .btn-outline {
            border-width: 3px !important;
        }
        
        .ss-nav-link.active {
            border: 3px solid #fff;
        }
    }
}

/* ============= ADDITIONAL MOBILE FIXES ============= */
@media (max-width: 768px) {
    /* ========== EFT Details Mobile ========== */
    .ss-eft-details-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .ss-eft-detail {
        padding: 10px !important;
        border-radius: 0 !important;
    }
    
    .ss-eft-value,
    .ss-eft-value-inline {
        font-size: 13px !important;
        padding: 6px 10px !important;
        word-break: break-all;
    }
    
    .ss-eft-header-branded {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
        padding: 16px !important;
    }
    
    .ss-eft-box {
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .ss-eft-details-container {
        padding: 16px !important;
    }
    
    .ss-eft-notice {
        margin: 16px !important;
        padding: 12px !important;
        font-size: 13px;
        border-radius: 0 !important;
    }
    
    .ss-eft-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .ss-eft-label {
        min-width: auto;
        font-size: 13px;
    }
    
    /* ========== Checkout Card Mobile ========== */
    .ss-checkout-card {
        max-width: 100%;
        margin: 0;
        border-radius: 0 !important;
    }
    
    .ss-checkout-header {
        padding: 16px !important;
        border-radius: 0 !important;
    }
    
    .ss-checkout-header h2 {
        font-size: 18px !important;
    }
    
    .ss-checkout-summary {
        padding: 16px !important;
    }
    
    .ss-plan-detail-item,
    .ss-breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 0;
        font-size: 14px;
    }
    
    .ss-checkout-note {
        margin: 16px !important;
        padding: 12px 16px !important;
        font-size: 13px;
    }
    
    .ss-actions {
        padding: 16px !important;
        flex-direction: column;
    }
    
    .ss-actions .ss-btn,
    .ss-checkout-card .btn-primary,
    .ss-checkout-card .btn-outline {
        width: 100% !important;
        max-width: none !important;
    }
    
    .ss-payment-options {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .ss-payment-options label {
        width: 100%;
        justify-content: center;
    }
    
    /* ========== Plan Card Mobile (if used) ========== */
    .ss-plan-card {
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 16px !important;
    }
    
    .ss-plan-carousel {
        padding: 0 !important;
        gap: 12px;
    }
    
    /* ========== Withdrawal Section Specific ========== */
    .ss-withdrawals-section .ss-form-group {
        margin-bottom: 16px;
    }
    
    .ss-withdrawals-section select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23147445' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
    }
    
    /* ========== Password Change Form Mobile ========== */
    .ss-change-password-card .form-group {
        margin-bottom: 14px;
    }
    
    .ss-change-password-card label {
        font-size: 14px !important;
    }
    
    .ss-change-password-card .ss-input {
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    /* ========== Close Account Section ========== */
        height: 36px;
        border-width: 3px;
    }
    
    /* ========== Empty States ========== */
    .ss-no-results {
        padding: 40px 20px;
        font-size: 14px;
    }
    
    .ss-no-results i {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    /* ========== Transaction Filters Enhanced ========== */
    .ss-transactions-controls .ss-search-box {
        position: relative;
    }
    
    .ss-transactions-controls .ss-search-box input {
        padding-left: 36px;
    }
    
    /* ========== Scrollbar Styling (Mobile) ========== */
    .ss-content::-webkit-scrollbar,
    .ss-sidebar::-webkit-scrollbar {
        width: 0;
        display: none;
    }
    
    /* ========== Button Loading States ========== */
    .btn-primary.loading,
    .btn-outline.loading,
    .btn-upload.loading {
        opacity: 0.7;
        pointer-events: none;
    }
    
    .btn-primary.loading::after,
    .btn-outline.loading::after,
    .btn-upload.loading::after {
        content: '';
        display: inline-block;
        width: 14px;
        height: 14px;
        margin-left: 8px;
        border: 2px solid currentColor;
        border-right-color: transparent;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }
    
    /* ========== Avatar Upload Mobile ========== */
    .ss-avatar-upload-form {
        position: relative;
    }
    
    .ss-avatar-upload-form.uploading .ss-avatar {
        opacity: 0.6;
    }
    
    .ss-avatar-upload-form.uploading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 24px;
        height: 24px;
        border: 3px solid #fff;
        border-right-color: transparent;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }
    
    /* ========== Pull-to-Refresh Indicator ========== */
    .ss-content.refreshing::before {
        content: '';
        display: block;
        width: 30px;
        height: 30px;
        margin: 20px auto;
        border: 3px solid #e9eef0;
        border-top-color: #147445;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }
    
    /* ========== Haptic Feedback Simulation ========== */
    .ss-quick-btn:active,
    .btn-primary:active,
    .btn-outline:active,
    .ss-nav-link:active,
    .ss-filter-btn:active,
    .ss-transaction-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* ========== Status Indicators ========== */
    .ss-up2date,
    .ss-overdue {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
    
    /* ========== Section Spacing ========== */
    .ss-section {
        background: #f8f9fa;
    }
    
    .ss-section > .ss-card:first-child {
        margin-top: 0 !important;
    }
    
    .ss-section > .ss-card:last-child {
        margin-bottom: 0 !important;
    }
    
    /* ========== Contribution Form Specific ========== */
    #contrib-amount,
    #withdrawal-amount {
        text-align: right;
        font-weight: 600;
        font-size: 18px !important;
        letter-spacing: 0.5px;
    }
    
    /* ========== Bank Details Display ========== */
    .ss-payment-info {
        background: #f8f9fa;
        padding: 12px;
        border-radius: 0;
        margin-top: 8px;
    }
    
    .ss-payment-info .ss-eft-line {
        padding: 8px 0;
        border-bottom: 1px dashed #e9eef0;
    }
    
    .ss-payment-info .ss-eft-line:last-child {
        border-bottom: none;
    }
    
    /* ========== Modal/Overlay Support ========== */
    body.sidebar-open {
        overflow: hidden;
    }
    
    /* ========== Progressive Enhancement ========== */
    @supports (backdrop-filter: blur(10px)) {
        .ss-bottom-nav {
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
        }
        
        .ss-sidebar.open {
            backdrop-filter: blur(5px);
        }
    }
    
    /* ========== Dark Mode Support (if needed later) ========== */
    @media (prefers-color-scheme: dark) {
        /* Placeholder for future dark mode support */
        /* Currently using light mode only */
    }
}

/* ============= ANIMATION KEYFRAMES ============= */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fix emoji alignment in "No Plan Selected" alert */
.ss-eligibility-alert.not-eligible {
    align-items: flex-start !important;
}

/* Optional: fine‑tune the icon’s position */
.ss-eligibility-alert.not-eligible .ss-eligibility-icon {
    margin-top: 2px; /* adjust as needed */
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* ============= UTILITY CLASSES FOR MOBILE ============= */
@media (max-width: 768px) {
    .mobile-hide {
        display: none !important;
    }
    
    .mobile-show {
        display: block !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
    .mobile-text-center {
        text-align: center !important;
    }
    
    .mobile-stack {
        flex-direction: column !important;
    }
    
    .mobile-no-gap {
        gap: 0 !important;
    }
    
    .mobile-compact {
        padding: 12px !important;
    }
}

/* ============= PRINT STYLES ============= */
@media print {
    .ss-hamburger-toggle,
    .ss-sidebar,
    .ss-bottom-nav,
    .ss-avatar-upload-form,
    .btn-primary,
    .btn-outline,
    .ss-action-buttons {
        display: none !important;
    }
    
    .ss-card {
        page-break-inside: avoid;
        border: 1px solid #000 !important;
        margin: 10px 0 !important;
    }
    
    .ss-welcome-card {
        background: #fff !important;
        color: #000 !important;
    }
}

/* ============= FINAL FIXES & TWEAKS ============= */
@media (max-width: 768px) {
    /* Ensure no weird gaps */
    * {
        -webkit-tap-highlight-color: rgba(20, 116, 69, 0.1);
    }
    
    /* Smooth font rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Fix for select dropdowns */
    select {
        background-color: #fff;
        border: 2px solid #e9eef0;
    }
    
    /* Fix for iOS Safari address bar */
    @supports (-webkit-touch-callout: none) {
        .ss-content {
            min-height: -webkit-fill-available;
        }
    }
    
    /* Prevent double-tap zoom */
    button,
    a,
    input[type="button"],
    input[type="submit"] {
        touch-action: manipulation;
    }
    
    /* Improve tap accuracy */
    ::before,
    ::after {
        pointer-events: none;
    }
}

/* ============= END MOBILE OPTIMIZATION ============= */

/* Force Login/Logout button text to always be white */
.ss-login-btn,
.ss-logout-btn,
.ss-header .btn-login,
.ss-header .btn-logout {
  color: #ffffff !important;
  font-weight: 600;
}

/* If they use outline style, override border too */
.ss-login-btn.btn-outline,
.ss-logout-btn.btn-outline {
  border-color: #ffffff !important;
}

/* =====================================================
   Login/Logout Button White Text Fix
   ===================================================== */

/* Ensure ALL login/logout pill buttons have white text */
.menu-item.menu-auth-btn--login a,
.menu-item.menu-auth-btn--logout a,
.menu-item.menu-auth-btn-container a,
.ss-login-btn,
.ss-logout-btn,
.ss-header .btn-login,
.ss-header .btn-logout {
  color: #ffffff !important;
}

/* Specifically target the login button gradient background */
.menu-item.menu-auth-btn--login a {
  background: linear-gradient(135deg, #147445, #0d8b5e) !important;
  color: #ffffff !important;
  border: none !important;
}

/* Specifically target the logout button red background */
.menu-item.menu-auth-btn--logout a {
  background: #c0392b !important;
  color: #ffffff !important;
  border: none !important;
}

/* Hover states with white text */
.menu-item.menu-auth-btn--login a:hover,
.menu-item.menu-auth-btn--logout a:hover,
.menu-item.menu-auth-btn-container a:hover,
.ss-login-btn:hover,
.ss-logout-btn:hover,
.ss-header .btn-login:hover,
.ss-header .btn-logout:hover {
  color: #ffffff !important;
}

/* Focus states with white text */
.menu-item.menu-auth-btn--login a:focus,
.menu-item.menu-auth-btn--logout a:focus,
.menu-item.menu-auth-btn-container a:focus,
.ss-login-btn:focus,
.ss-logout-btn:focus,
.ss-header .btn-login:focus,
.ss-header .btn-logout:focus {
  color: #ffffff !important;
  outline: 2px solid #ffffff !important;
  outline-offset: 2px !important;
}

/* Active states with white text */
.menu-item.menu-auth-btn--login a:active,
.menu-item.menu-auth-btn--logout a:active,
.menu-item.menu-auth-btn-container a:active,
.ss-login-btn:active,
.ss-logout-btn:active,
.ss-header .btn-login:active,
.ss-header .btn-logout:active {
  color: #ffffff !important;
}

/* Ensure all text elements inside the buttons are white */
.menu-item.menu-auth-btn--login a *,
.menu-item.menu-auth-btn--logout a *,
.menu-item.menu-auth-btn-container a *,
.ss-login-btn *,
.ss-logout-btn *,
.ss-header .btn-login *,
.ss-header .btn-logout * {
  color: #ffffff !important;
}

/* Mobile responsive - ensure white text on all screen sizes */
@media (max-width: 980px) {
  .menu-item.menu-auth-btn--login a,
  .menu-item.menu-auth-btn--logout a,
  .menu-item.menu-auth-btn-container a,
  .ss-login-btn,
  .ss-logout-btn,
  .ss-header .btn-login,
  .ss-header .btn-logout {
    color: #ffffff !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .menu-item.menu-auth-btn--login a,
  .menu-item.menu-auth-btn--logout a {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
  }
}


.ss-plan-feature:last-child {
    margin-bottom: 0;
}

.ss-plan-feature i {
    color: #17a2b8;
    font-size: 1.2em;
    margin-top: 2px;
}

.ss-plan-feature strong {
    color: #2d3748;
    display: block;
    margin-bottom: 4px;
}

.ss-plan-feature p {
    margin: 0;
    font-size: 0.9em;
    color: #718096;
}

/* Featured card badge/logo gap - high specificity override */
@media (max-width: 768px) {
  .plan-card.plan-card--featured .plan-icon {
    margin-top: 20px !important;
  }
}

/* Empty state transaction item — two stacked paragraphs, not side-by-side */
.ss-transaction-item[style*="text-align: center"],
.ss-transaction-item[style*="text-align:center"] {
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  text-align: center;
}
.ss-transaction-item[style*="text-align: center"] p,
.ss-transaction-item[style*="text-align:center"] p {
  hyphens: none !important;
  word-break: normal;
  white-space: normal;
  min-width: 0;
  width: 100%;
}

/* Empty state - no transactions */
.ss-empty-state {
  text-align: center;
  padding: 40px 20px;
  width: 100%;
}

.ss-progress-bar {
    background: #d0d7dd;           /* slightly darker than #e9eef0 */
    height: 12px;                   /* a bit taller */
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.ss-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #147445, #0d8b5e);
    border-radius: 6px;
    transition: width 0.5s ease;    /* smooth width change */
}

/* Make missing document items in the overview card use warning red */
.ss-verification-item.missing i {
    color: #e74c3c; /* warning red */
}

.ss-verification-item.missing .ss-status {
    color: #e74c3c;
    font-weight: 600;
}

/* Optional: add a light red border or background */
.ss-verification-item.missing {
    border-color: #e74c3c;
    background: #fff5f5; /* very light red */
}

/* =====================================================
   MY ACCOUNT SECTION — All rules scoped to #section-account
   Hard-coded values + !important to beat global overrides
   ===================================================== */

/* Section layout */
/* Hidden state — belt-and-braces against theme CSS that resets [hidden] */
#section-account[aria-hidden="true"],
#section-account[hidden] {
  display: none !important;
}
/* Active state */
#section-account[aria-hidden="false"] {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0 24px;
}

/* Cards */
#section-account .ss-card {
  background: #ffffff !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06) !important;
  border: 1px solid #e9eef0 !important;
  padding: 20px 22px !important;
  margin-bottom: 0 !important;
  transition: box-shadow 0.2s ease;
}
#section-account .ss-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.09) !important;
  transform: none !important;
}

/* Card titles */
#section-account .ss-card-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0a3d27 !important;
  letter-spacing: 0.01em;
  margin: 0 0 14px !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
}
#section-account .ss-card-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e9eef0;
  margin-left: 6px;
}

/* Card 1: green tint */
#section-account .ss-card:first-child {
  background: linear-gradient(160deg, rgba(230,249,236,0.7) 0%, #ffffff 55%) !important;
}
#section-account .ss-card:first-child > p {
  font-size: 13px;
  color: #64748b;
  margin: -6px 0 14px;
  line-height: 1.5;
}

/* Account info grid */
#section-account .ss-account-info {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px 16px !important;
  padding: 0 !important;
}
#section-account .ss-account-info > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding: 10px 12px !important;
  background: #e6f9ec !important;
  border-radius: 10px !important;
  border: 1px solid rgba(20,116,69,0.15) !important;
  margin: 0 !important;
  align-items: flex-start !important;
}
#section-account .ss-account-info > div:last-child { grid-column: 1 / -1 !important; }
#section-account .ss-account-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #147445 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  margin: 0 !important;
  min-width: unset !important;
  display: block !important;
}
#section-account .ss-account-value {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #0f1724 !important;
  line-height: 1.3 !important;
}

/* Plan status tile */
#section-account .ss-account-info-plan {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 11px 14px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
}
#section-account .ss-acc-plan--active  { background: #e6f9ec !important; border-color: rgba(20,116,69,.2) !important; }
#section-account .ss-acc-plan--active .ss-account-value { color: #14532d !important; font-weight: 700 !important; }
#section-account .ss-acc-plan--pending { background: #fef9ec !important; border-color: rgba(161,98,7,.25) !important; }
#section-account .ss-acc-plan--pending .ss-account-value { color: #92400e !important; font-weight: 700 !important; }
#section-account .ss-acc-plan--none    { background: #f1f5f9 !important; border-color: #e2e8f0 !important; }
#section-account .ss-acc-plan--none .ss-account-value { color: #64748b !important; }

/* Card 2: Reset password button */
#section-account .ss-change-password-card { border-top: 3px solid #147445 !important; }
#section-account .ss-change-password-card > p { font-size: 13px; color: #64748b; margin: -6px 0 16px; line-height: 1.5; }
#section-account #ss-send-reset-btn,
#section-account .ss-acc-reset-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 13px 20px !important;
  background: linear-gradient(135deg, #147445, #0d8b5e) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(20,116,69,0.3) !important;
  transition: all 0.25s ease !important;
  font-family: inherit !important;
  min-width: unset !important;
  text-decoration: none !important;
}
#section-account #ss-send-reset-btn:hover,
#section-account .ss-acc-reset-btn:hover {
  background: linear-gradient(135deg, #0d8b5e, #147445) !important;
  box-shadow: 0 6px 20px rgba(20,116,69,0.4) !important;
  transform: translateY(-1px) !important;
}

/* Card 3: Change plan */
#section-account .ss-change-plan-card { border-top: 3px solid #d4af37 !important; }
#section-account .form-group { margin-bottom: 14px; }
#section-account .form-group label {
  display: block; font-size: 12px; font-weight: 700; color: #147445;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;
}
#section-account #new_plan,
#section-account select.ss-input {
  width: 100% !important;
  padding: 11px 36px 11px 14px !important;
  border: 2px solid #e9eef0 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: #0f1724 !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23147445' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center !important;
  cursor: pointer !important; appearance: none !important; -webkit-appearance: none !important;
}
#section-account #new_plan:focus,
#section-account select.ss-input:focus {
  outline: none !important; border-color: #147445 !important;
  box-shadow: 0 0 0 3px rgba(20,116,69,0.12) !important;
}
#section-account .ss-form-help { font-size: 11px; color: #64748b; margin-top: 5px; }
#section-account #ss-change-plan-btn {
  display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 8px !important; width: 100% !important; padding: 13px 20px !important;
  background: linear-gradient(135deg, #d4af37, #b8962f) !important;
  color: #ffffff !important; border: none !important; border-radius: 9999px !important;
  font-size: 14px !important; font-weight: 700 !important; cursor: pointer !important;
  font-family: inherit !important; box-shadow: 0 4px 14px rgba(212,175,55,0.35) !important;
  transition: all 0.25s ease !important; margin-top: 4px !important; min-width: unset !important;
}
#section-account #ss-change-plan-btn:hover {
  background: linear-gradient(135deg, #b8962f, #d4af37) !important;
  transform: translateY(-1px) !important; box-shadow: 0 6px 18px rgba(212,175,55,0.45) !important;
}

/* Make arrow icon white in Change Plan button */
#section-account #ss-change-plan-btn i,
#section-account #ss-change-plan-btn svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* Alert states */
#section-account .ss-acc-alert--warning,
#section-account .ss-acc-alert--pending,
#section-account .ss-acc-alert--info {
  display: flex !important; align-items: flex-start !important; gap: 12px !important;
  padding: 13px 15px !important; border-radius: 10px !important; margin-bottom: 16px !important;
}
#section-account .ss-acc-alert--warning { background: #fffbeb !important; border: 1px solid #fbbf24 !important; color: #78350f !important; }
#section-account .ss-acc-alert--warning i { color: #d97706; font-size: 16px; flex-shrink: 0; margin-top: 2px; }
#section-account .ss-acc-alert--warning strong { display: block; font-size: 13px; color: #92400e; margin-bottom: 3px; }
#section-account .ss-acc-alert--warning p { font-size: 12px; margin: 0; line-height: 1.5; }
#section-account .ss-acc-alert--pending { background: #fef9ec !important; border: 1px solid #f59e0b !important; color: #78350f !important; }
#section-account .ss-acc-alert--pending i { color: #d97706; font-size: 18px; flex-shrink: 0; margin-top: 2px; }
#section-account .ss-acc-alert--pending strong { display: block; font-size: 13px; color: #92400e; margin-bottom: 4px; }
#section-account .ss-acc-alert--pending p { font-size: 12px; margin: 0; line-height: 1.5; }
#section-account .ss-acc-alert--info { background: #e6f9ec !important; border: 1px solid rgba(20,116,69,.2) !important; color: #14532d !important; }
#section-account .ss-acc-alert--info i { color: #147445; font-size: 20px; flex-shrink: 0; margin-top: 2px; }
#section-account .ss-acc-alert--info strong { display: block; font-size: 13px; color: #0a3d27; margin-bottom: 4px; }
#section-account .ss-acc-alert--info p { font-size: 13px; margin: 0 0 12px; line-height: 1.5; color: #1a6b3c; }
#section-account .ss-acc-cta-btn {
  display: inline-flex !important; align-items: center !important; gap: 8px !important;
  padding: 9px 18px !important; background: linear-gradient(135deg, #147445, #0d8b5e) !important;
  color: #ffffff !important; border-radius: 9999px !important; font-size: 13px !important;
  font-weight: 700 !important; text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(20,116,69,.3) !important; transition: all .2s ease !important;
}
#section-account .ss-acc-cta-btn:hover {
  background: linear-gradient(135deg, #0d8b5e, #147445) !important;
  transform: translateY(-1px) !important; color: #ffffff !important;
}

/* Card 4: Close account */
#section-account .ss-close-account-card { border-top: 3px solid #c0392b !important; background: #fff5f5 !important; border-left: none !important; padding: 18px 22px !important; }
#section-account .ss-close-account-card .ss-card-title { color: #c0392b !important; }
#section-account .ss-close-account-card .ss-card-title::after { background: rgba(192,57,43,0.15) !important; }
#section-account .ss-close-account-card > p { font-size: 13px; line-height: 1.5; margin: -6px 0 8px; }
#section-account .ss-close-account-card > p:first-of-type { color: #7f1d1d !important; }
#section-account .ss-checkbox-label {
  display: flex !important; align-items: flex-start !important; gap: 10px !important;
  padding: 12px 14px !important; background: rgba(192,57,43,0.06) !important;
  border: 1px solid rgba(192,57,43,0.2) !important; border-radius: 10px !important;
  cursor: pointer !important; font-size: 13px !important; color: #7f1d1d !important;
  line-height: 1.4 !important; margin-top: 10px !important; user-select: none !important;
  transition: background 0.15s ease !important;
}
#section-account .ss-checkbox-label:hover { background: rgba(192,57,43,0.1) !important; }
#section-account .ss-checkbox-label input[type="checkbox"] {
  width: 16px !important; height: 16px !important; flex-shrink: 0 !important;
  margin-top: 1px !important; accent-color: #c0392b !important; cursor: pointer !important;
}
#section-account .btn-danger {
  display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 8px !important; width: 100% !important; padding: 13px 20px !important;
  background: #c0392b !important; color: #ffffff !important; border: none !important;
  border-radius: 9999px !important; font-size: 14px !important; font-weight: 700 !important;
  cursor: pointer !important; font-family: inherit !important;
  box-shadow: 0 4px 14px rgba(192,57,43,0.25) !important; transition: all 0.25s ease !important;
  margin-top: 16px !important; min-width: unset !important;
}
#section-account .btn-danger:hover:not(:disabled) { background: #a93226 !important; transform: translateY(-1px) !important; }
#section-account .btn-danger:disabled { background: #e0e0e0 !important; color: #aaa !important; cursor: not-allowed !important; box-shadow: none !important; transform: none !important; }

/* Shared */
#section-account .ss-form-actions { margin-top: 16px; gap: 10px; }
#section-account #ss-reset-password-status,
#section-account #ss-change-plan-status,
#section-account #ss-close-status { font-size: 13px; border-radius: 10px; padding: 10px 14px; margin-top: 10px; text-align: center; transition: all 0.2s ease; }

/* Mobile */
@media (max-width: 600px) {
  #section-account .ss-account-info { grid-template-columns: 1fr !important; }
  #section-account .ss-account-info > div:last-child { grid-column: 1 !important; }
  #section-account .ss-card { padding: 16px !important; border-radius: 14px !important; }
}

/* Desktop: boxed layout */
@media (min-width: 981px) {
    .ss-wrapper {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
}

/* =====================================================
   DOCS · TRANSACTIONS · CONTRIBUTION BANKING
   Design polish — scoped, zero global side-effects
   ===================================================== */

/* ── Shared tokens ─────────────────────────────────── */
#section-docs,
#section-transactions {
  --dg: #147445;
  --dg-dark: #0a3d27;
  --dg-deep: #0d5c34;
  --dg-tint: #e8f5ee;
  --dg-tint2: #f0fdf4;
  --dg-glow: rgba(20,116,69,0.12);
  --border: #e4eae8;
  --muted: #64748b;
  --r-card: 16px;
  --r-inner: 10px;
  --r-pill: 9999px;
}

/* ══════════════════════════════════════════════════
   §1  DOCUMENTS & VERIFICATION
   ══════════════════════════════════════════════════ */

#section-docs .ss-card {
  padding: 20px !important;
  border-radius: var(--r-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05) !important;
}

/* Heading */
#section-docs .ss-card > h2 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--dg-dark) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--dg-tint) !important;
}

/* Status alert — tighter */
#section-docs .ss-alert {
  padding: 10px 13px !important;
  border-radius: var(--r-inner) !important;
  margin-bottom: 12px !important;
  font-size: 13px !important;
  gap: 10px !important;
}
#section-docs .ss-alert strong { font-size: 12px !important; margin-bottom: 2px !important; }
#section-docs .ss-alert p      { font-size: 11px !important; line-height: 1.4; }
#section-docs .ss-alert i      { font-size: 14px !important; }

/* ── Upload grid: tighter, coloured ─────────────────── */
#section-docs .ss-upload-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

#section-docs .ss-upload-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  background: linear-gradient(to right, var(--dg-tint2), #ffffff) !important;
  border: 1px solid rgba(20,116,69,0.18) !important;
  border-left: 3px solid var(--dg) !important;
  border-radius: var(--r-inner) !important;
  transition: box-shadow 0.15s ease;
}
#section-docs .ss-upload-item:hover {
  box-shadow: 0 2px 8px var(--dg-glow);
  border-color: rgba(20,116,69,0.30) !important;
  border-left-color: var(--dg) !important;
}

/* Icon — smaller, gradient */
#section-docs .ss-upload-icon {
  width: 38px !important;
  height: 38px !important;
  font-size: 15px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, var(--dg), var(--dg-deep)) !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px var(--dg-glow) !important;
}

/* Text */
#section-docs .ss-upload-info { min-width: 0; }
#section-docs .ss-upload-info strong {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f1724 !important;
  margin-bottom: 1px !important;
}
#section-docs .ss-upload-info p {
  font-size: 11px !important;
  color: var(--muted) !important;
  margin: 0 !important;
}
#section-docs .ss-upload-status { margin-top: 4px !important; }

/* Status chips */
#section-docs .ss-status-missing  { font-size: 11px !important; font-weight: 700 !important; color: #dc2626 !important; }
#section-docs .ss-status-verified { font-size: 11px !important; font-weight: 700 !important; color: var(--dg) !important; }
#section-docs .ss-status-pending  { font-size: 11px !important; font-weight: 700 !important; color: #d97706 !important; }
#section-docs .ss-status-rejected { font-size: 11px !important; font-weight: 700 !important; color: #c0392b !important; }

/* Upload button — compact pill */
#section-docs .btn-upload {
  flex-shrink: 0 !important;
  padding: 7px 16px !important;
  min-width: unset !important;
  border-radius: var(--r-pill) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  min-height: 34px !important;
  background: linear-gradient(135deg, var(--dg), var(--dg-deep)) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 6px var(--dg-glow) !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
#section-docs .btn-upload:hover:not(:disabled) {
  box-shadow: 0 4px 10px rgba(20,116,69,0.28) !important;
  transform: translateY(-1px) !important;
}
#section-docs .btn-upload:disabled {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* ── Guidelines: 2-col grid, compact, coloured ───────── */
#section-docs .ss-guidelines {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 7px !important;
  margin-top: 0 !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--border) !important;
}

#section-docs .ss-guideline-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 9px !important;
  padding: 10px 11px !important;
  background: var(--dg-tint2) !important;
  border: 1px solid rgba(20,116,69,0.13) !important;
  border-radius: var(--r-inner) !important;
  transition: background 0.15s ease;
}
#section-docs .ss-guideline-item:hover {
  background: var(--dg-tint) !important;
}
#section-docs .ss-guideline-item i {
  font-size: 12px !important;
  color: var(--dg) !important;
  width: 14px !important;
  flex-shrink: 0;
  margin-top: 2px;
}
#section-docs .ss-guideline-item strong {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--dg-dark) !important;
  display: block !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 2px !important;
}
#section-docs .ss-guideline-item p {
  font-size: 11px !important;
  color: var(--muted) !important;
  margin: 0 !important;
  line-height: 1.3;
}

/* Mobile: single-column guidelines */
@media (max-width: 520px) {
  #section-docs .ss-guidelines {
    grid-template-columns: 1fr !important;
  }
}


/* ══════════════════════════════════════════════════
   §2  TRANSACTION HISTORY
   ══════════════════════════════════════════════════ */

#section-transactions .ss-card {
  padding: 18px 20px !important;
  border-radius: var(--r-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05) !important;
}

/* Heading */
#section-transactions .ss-card > h2 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--dg-dark) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--dg-tint) !important;
}

/* ── Controls bar: horizontal, pill bg ───────────────── */
#section-transactions .ss-transactions-controls {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  padding: 8px 10px !important;
  background: var(--dg-tint2) !important;
  border: 1px solid rgba(20,116,69,0.12) !important;
  border-radius: var(--r-inner) !important;
  flex-wrap: wrap;
}

/* Search input */
#section-transactions .ss-form-input.ss-search-box {
  flex: 1 !important;
  min-width: 120px !important;
  padding: 7px 10px 7px 32px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  height: 32px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
}

/* Filter pills */
#section-transactions .ss-filter-buttons {
  display: flex !important;
  gap: 5px !important;
  flex-wrap: wrap;
}
#section-transactions .ss-filter-btn {
  padding: 5px 11px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-radius: var(--r-pill) !important;
  border: 1.5px solid var(--border) !important;
  background: #ffffff !important;
  color: var(--muted) !important;
  min-height: 28px !important;
  cursor: pointer;
  transition: all 0.15s ease !important;
}
#section-transactions .ss-filter-btn.active,
#section-transactions .ss-filter-btn:hover {
  background: var(--dg) !important;
  border-color: var(--dg) !important;
  color: #ffffff !important;
}

/* ── Transaction list: unified bordered container ─────── */
#section-transactions .ss-transactions-list,
#section-transactions .ss-transactions-list-full {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-inner) !important;
  overflow: visible !important;  /* allow .ss-no-results to show outside */
}
/* Clip only the rows themselves, not the container */
#section-transactions .ss-transaction-item:first-child { border-radius: var(--r-inner) var(--r-inner) 0 0 !important; }
#section-transactions .ss-transaction-item:last-of-type:not(.ss-no-results) { border-radius: 0 0 var(--r-inner) var(--r-inner) !important; }

/* Transaction row — compact, alternating tint */
#section-transactions .ss-transaction-item {
  display: flex;                              /* No !important — JS filter must be able to override with display:none */
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 14px !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #f0f4f8 !important;
  gap: 10px !important;
  animation: none !important;
  transition: background 0.12s ease !important;
}
/* Ensure JS filter hide always wins — inline style="display:none" must not be overridden */
#section-transactions .ss-transaction-item[style*="display: none"],
#section-transactions .ss-transaction-item[style*="display:none"] {
  display: none !important;
}
#section-transactions .ss-transaction-item:last-child {
  border-bottom: none !important;
}
#section-transactions .ss-transaction-item:nth-child(even) {
  background: var(--dg-tint2) !important;
}
#section-transactions .ss-transaction-item:hover {
  background: var(--dg-tint) !important;
}

/* Transaction text */
#section-transactions .ss-transaction-type {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f1724 !important;
  margin-bottom: 1px !important;
}
#section-transactions .ss-transaction-date {
  font-size: 11px !important;
  color: var(--muted) !important;
  margin-bottom: 0 !important;
}
#section-transactions .ss-transaction-amount {
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
#section-transactions .ss-transaction-badges {
  display: flex !important;
  gap: 3px !important;
  flex-wrap: wrap !important;
  margin-top: 3px !important;
}
#section-transactions .ss-transaction-tag,
#section-transactions .ss-transaction-status-badge {
  font-size: 9px !important;
  padding: 2px 5px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* Empty state */
#section-transactions [style*="text-align: center; padding: 60px"] {
  padding: 28px 20px !important;
}

/* View all footer */
#section-transactions .ss-transactions-footer {
  padding-top: 10px !important;
  text-align: center !important;
}
#section-transactions .ss-transactions-footer .btn-outline {
  padding: 8px 18px !important;
  font-size: 12px !important;
  border-radius: var(--r-pill) !important;
  border-width: 1.5px !important;
}

/* Mobile */
@media (max-width: 600px) {
  #section-transactions .ss-transactions-controls {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  #section-transactions .ss-form-input.ss-search-box {
    width: 100% !important;
  }
  #section-transactions .ss-transaction-item {
    padding: 9px 12px !important;
  }
}


/* ══════════════════════════════════════════════════
   §3  CONTRIBUTION — banking box vendor label fix
   The label "Vendor: Stokvel Society SA" has been
   moved into the box as a first .ss-eft-line row
   in dashboard.js — no extra CSS needed beyond
   ensuring the label is hidden if somehow rendered.
   ══════════════════════════════════════════════════ */

/* Safety net: hide any orphan label above the box */
#section-contrib .ss-form-group > .ss-form-label:not([for]) {
  display: none !important;
}

/* ── END DOCS · TRANSACTIONS · CONTRIBUTION POLISH ── */


/* =====================================================
   WALLET + OVERVIEW — Compact, Consistent Design Pass
   #section-wallet  #section-overview  (+ global normalise)
   All rules scoped. Zero global side-effects.
   ===================================================== */

/* ── Global design tokens (extend existing :root) ──── */
:root {
  --ss-g:       #147445;
  --ss-gd:      #0a3d27;
  --ss-gp:      #0d5c34;
  --ss-gt:      #e8f5ee;
  --ss-gt2:     #f0fdf4;
  --ss-gg:      rgba(20,116,69,0.14);
  --ss-border:  #e4eae8;
  --ss-muted:   #64748b;
  --ss-body:    #0f1724;
  --ss-rc:      16px;
  --ss-ri:      10px;
  --ss-pill:    9999px;
  --ss-shadow:  0 1px 8px rgba(0,0,0,0.06);
}

/* ══════════════════════════════════════════════════════
   GLOBAL TYPOGRAPHY NORMALISATION
   Every section's card content uses the same scale:
     h2 heading:  14px / 700 / uppercase
     h3 subhead:  12px / 700 / uppercase
     body text:   13px / 400
     label:       11px / 700 / uppercase
     secondary:   11px / 400 / muted
   ══════════════════════════════════════════════════════ */

/* Normalise ALL ss-card headings across every section */
.ss-section .ss-card h2,
.ss-section .ss-card > h2 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ss-gd) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--ss-gt) !important;
}

.ss-section .ss-card h3,
.ss-section .ss-card > h3 {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--ss-g) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 10px !important;
}

/* Normalise info-item / guideline-item text in all sections */
.ss-section .ss-info-item strong,
.ss-section .ss-guideline-item strong {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--ss-g) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 1px !important;
}
.ss-section .ss-info-item p,
.ss-section .ss-guideline-item p {
  font-size: 12px !important;
  color: var(--ss-muted) !important;
  margin: 0 !important;
  line-height: 1.35;
}
.ss-section .ss-info-item i,
.ss-section .ss-guideline-item i {
  font-size: 13px !important;
  width: 16px !important;
  flex-shrink: 0;
}

/* Normalise alert text across all sections */
.ss-section .ss-alert strong {
  font-size: 12px !important;
  margin-bottom: 2px !important;
  display: block;
}
.ss-section .ss-alert p {
  font-size: 12px !important;
  line-height: 1.45;
  margin: 0;
}

/* Normalise form labels across all sections */
.ss-section .ss-form-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: var(--ss-g) !important;
  margin-bottom: 6px !important;
}

/* Normalise form help text */
.ss-section .ss-form-help {
  font-size: 11px !important;
  color: var(--ss-muted) !important;
  margin-top: 4px !important;
}

/* Normalise ss-card shell */
.ss-section .ss-card {
  border-radius: var(--ss-rc) !important;
  box-shadow: var(--ss-shadow) !important;
  border: 1px solid var(--ss-border) !important;
  padding: 18px 20px !important;
  margin-bottom: 14px !important;
}


/* ══════════════════════════════════════════════════════
   §1  WALLET SECTION
   ══════════════════════════════════════════════════════ */

/* ── Balance card — compact tinted tile ─────────────── */
#section-wallet .ss-balance-cards {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin-bottom: 14px !important;
}

#section-wallet .ss-balance-card {
  background: linear-gradient(135deg, var(--ss-gt2) 0%, #f7fdfa 100%) !important;
  border: 1px solid rgba(20,116,69,0.16) !important;
  border-left: 3px solid var(--ss-g) !important;
  border-radius: var(--ss-ri) !important;
  padding: 14px 18px !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

#section-wallet .ss-balance-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--ss-g) !important;
}

#section-wallet .ss-balance-amount {
  font-size: 26px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--ss-gd), var(--ss-g)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

#section-wallet .ss-balance-note {
  font-size: 11px !important;
  color: var(--ss-muted) !important;
}

/* ── Quick Contributions — single row, small, bordered ─ */
#section-wallet .ss-quick-heading {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--ss-g) !important;
  margin: 14px 0 8px !important;
}

#section-wallet .ss-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
  margin: 0 0 14px !important;
}

#section-wallet .ss-quick-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  padding: 8px 6px !important;
  min-height: 36px !important;
  height: 36px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--ss-border) !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--ss-g) !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.15s ease !important;
}

#section-wallet .ss-quick-btn::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, var(--ss-g), #0d8b5e) !important;
  opacity: 0 !important;
  transition: opacity 0.15s ease !important;
  border-radius: inherit !important;
}

#section-wallet .ss-quick-btn:hover {
  border-color: var(--ss-g) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px var(--ss-gg) !important;
}

#section-wallet .ss-quick-btn:hover::after {
  opacity: 1 !important;
}

/* Text sits above the ::after overlay */
#section-wallet .ss-quick-btn span,
#section-wallet .ss-quick-btn i {
  position: relative !important;
  z-index: 1 !important;
  font-size: 12px !important;
  margin: 0 !important;  /* remove column-mode margin-bottom */
}

#section-wallet .ss-quick-btn[disabled],
#section-wallet .ss-quick-btn:disabled {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}
#section-wallet .ss-quick-btn[disabled]::after,
#section-wallet .ss-quick-btn:disabled::after {
  display: none !important;
}

/* ── Wallet action buttons ──────────────────────────── */
#section-wallet .ss-wallet-actions {
  display: flex !important;
  gap: 8px !important;
  margin-top: 0 !important;
}
#section-wallet .ss-wallet-actions .btn-primary,
#section-wallet .ss-wallet-actions .btn-outline {
  flex: 1 !important;
  padding: 10px 14px !important;
  border-radius: var(--ss-pill) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  min-height: 40px !important;
  justify-content: center !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}
#section-wallet .ss-wallet-actions .btn-primary {
  background: linear-gradient(135deg, var(--ss-g), #0d8b5e) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 3px 10px var(--ss-gg) !important;
}
#section-wallet .ss-wallet-actions .btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(20,116,69,0.28) !important;
}
#section-wallet .ss-wallet-actions .btn-outline {
  background: transparent !important;
  color: var(--ss-g) !important;
  border: 1.5px solid var(--ss-g) !important;
}
#section-wallet .ss-wallet-actions .btn-outline:hover {
  background: var(--ss-gt) !important;
}

/* ── Account information list ───────────────────────── */
#section-wallet .ss-info-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  border: 1px solid var(--ss-border) !important;
  border-radius: var(--ss-ri) !important;
  overflow: hidden !important;
  margin-top: 0 !important;
}

#section-wallet .ss-info-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 13px !important;
  background: #ffffff !important;
  border: none !important;
  border-bottom: 1px solid #f0f4f8 !important;
  border-radius: 0 !important;
  transition: background 0.12s ease !important;
}
#section-wallet .ss-info-item:last-child {
  border-bottom: none !important;
}
#section-wallet .ss-info-item:nth-child(even) {
  background: var(--ss-gt2) !important;
}
#section-wallet .ss-info-item:hover {
  background: var(--ss-gt) !important;
}

#section-wallet .ss-info-item i {
  font-size: 12px !important;
  color: var(--ss-g) !important;
  width: 14px !important;
  flex-shrink: 0 !important;
}

#section-wallet .ss-info-item strong {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--ss-g) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  display: block !important;
  margin-bottom: 1px !important;
}

#section-wallet .ss-info-item p {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ss-body) !important;
  margin: 0 !important;
}


/* ══════════════════════════════════════════════════════
   §2  OVERVIEW — Recent Transactions card
   Match #section-transactions styling exactly
   ══════════════════════════════════════════════════════ */

/* The recent transactions card sits inside #section-overview
   as .ss-card.ss-transactions-card */

#section-overview .ss-transactions-card {
  padding: 18px 20px !important;
}

#section-overview .ss-transactions-card h3 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ss-gd) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--ss-gt) !important;
}

/* Unified bordered container — same as #section-transactions */
#section-overview .ss-transactions-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  border: 1px solid var(--ss-border) !important;
  border-radius: var(--ss-ri) !important;
  overflow: visible !important;
}

/* Row — compact, alternating tint */
#section-overview .ss-transaction-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 14px !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #f0f4f8 !important;
  gap: 10px !important;
  animation: none !important;
  transition: background 0.12s ease !important;
}
#section-overview .ss-transaction-item:last-child {
  border-bottom: none !important;
}
#section-overview .ss-transaction-item:nth-child(even) {
  background: var(--ss-gt2) !important;
}
#section-overview .ss-transaction-item:hover {
  background: var(--ss-gt) !important;
}

#section-overview .ss-transaction-type {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ss-body) !important;
  margin-bottom: 1px !important;
  text-transform: capitalize !important;
}
#section-overview .ss-transaction-date {
  font-size: 11px !important;
  color: var(--ss-muted) !important;
  margin-bottom: 0 !important;
}
#section-overview .ss-transaction-amount {
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
#section-overview .ss-transaction-badges {
  display: flex !important;
  gap: 3px !important;
  flex-wrap: wrap !important;
  margin-top: 3px !important;
}
#section-overview .ss-transaction-tag,
#section-overview .ss-transaction-status-badge {
  font-size: 9px !important;
  padding: 2px 5px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* View all button */
#section-overview .ss-transactions-footer {
  padding-top: 10px !important;
  text-align: center !important;
}
#section-overview .ss-transactions-footer .btn-outline {
  padding: 7px 16px !important;
  font-size: 12px !important;
  border-radius: var(--ss-pill) !important;
  border-width: 1.5px !important;
  min-width: unset !important;
}

/* Empty state */
#section-overview .ss-empty-state {
  padding: 20px !important;
  text-align: center !important;
}
#section-overview .ss-empty-state p {
  font-size: 12px !important;
}


/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Wallet: 2×2 quick actions grid */
  #section-wallet .ss-quick-actions {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Wallet: stack action buttons */
  #section-wallet .ss-wallet-actions {
    flex-direction: column !important;
  }
  #section-wallet .ss-wallet-actions .btn-primary,
  #section-wallet .ss-wallet-actions .btn-outline {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  #section-wallet .ss-balance-amount { font-size: 22px !important; }
  #section-wallet .ss-quick-btn { font-size: 11px !important; }
}

/* ── END WALLET + OVERVIEW COMPACT PASS ── */


/* =====================================================
   VISUAL REFINEMENTS PASS
   Wallet tweaks · Contrib/Withdrawal/Transactions bg
   Font: courier-style brand monospace for EFT values
   ===================================================== */

/* ══ WALLET — balance card: centre + darker bg/border ═ */

#section-wallet .ss-balance-card {
  background: linear-gradient(135deg, #d8f0e4 0%, #e8f5ee 100%) !important;
  border: 1px solid rgba(20,116,69,0.32) !important;
  border-left: 3px solid var(--ss-g) !important;
  text-align: center !important;
  align-items: center !important;
}

#section-wallet .ss-balance-label {
  text-align: center !important;
}

#section-wallet .ss-balance-amount {
  text-align: center !important;
}

#section-wallet .ss-balance-note {
  text-align: center !important;
}

/* ── Quick contribution buttons: darker border + white hover text ── */
#section-wallet .ss-quick-btn {
  border: 1.5px solid rgba(20,116,69,0.35) !important;
}

/* Ensure text + span are white on hover (z-index above ::after overlay) */
#section-wallet .ss-quick-btn:hover,
#section-wallet .ss-quick-btn:hover span,
#section-wallet .ss-quick-btn:hover i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}


/* ══ MAKE CONTRIBUTION — darker bg areas + brand font ═ */

/* Card shell: slight tint */
#section-contrib .ss-card {
  background: #f8fdf9 !important;
}

/* Alert info block: slightly tinted */
#section-contrib .ss-alert-info {
  background: #e8f5ee !important;
  border-color: rgba(20,116,69,0.3) !important;
}

/* Form group wrapper: subtle tint background */
#section-contrib .ss-form-group {
  background: #f2faf5 !important;
  border: 1px solid rgba(20,116,69,0.12) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  margin-bottom: 10px !important;
}

/* The amount input row needs no tint — it's an input, not a data block */
#section-contrib .ss-form-group:has(#contrib-amount) {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Payment info box: darker header and rows */
#section-contrib .ss-payment-info {
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(20,116,69,0.25) !important;
  margin-top: 0 !important;
}

/* Green branded header strip (::before from earlier pass) */
#section-contrib .ss-payment-info::before {
  content: '🏦  Banking Details' !important;
  display: flex !important;
  align-items: center !important;
  background: linear-gradient(135deg, #147445 0%, #0d5c34 100%) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 10px 14px !important;
}

/* EFT rows: tighter + alternating tint */
#section-contrib .ss-eft-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 7px 14px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(20,116,69,0.08) !important;
  gap: 12px !important;
}
#section-contrib .ss-eft-line:last-child {
  border-bottom: none !important;
}
#section-contrib .ss-eft-line:nth-child(odd) {
  background: #f0fdf4 !important;
}
#section-contrib .ss-eft-line:nth-child(even) {
  background: #e8f5ee !important;
}

/* EFT label: small uppercase green */
#section-contrib .ss-eft-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #147445 !important;
  min-width: 120px !important;
  flex-shrink: 0 !important;
}

/* EFT value chip: brand monospace font, darker bg */
#section-contrib .ss-eft-value-inline {
  font-family: 'Courier New', 'Courier', 'Lucida Console', monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0a3d27 !important;
  background: #d4edda !important;
  border: 1px solid rgba(20,116,69,0.28) !important;
  border-radius: 6px !important;
  padding: 3px 10px !important;
  text-align: right !important;
  letter-spacing: 0.02em !important;
}

/* Form actions buttons */
#section-contrib .ss-form-actions {
  margin-top: 4px !important;
  padding-top: 14px !important;
}


/* ══ WITHDRAWAL SECTION — darker bg areas ════════════ */

#section-withdrawals .ss-card {
  background: #f8fdf9 !important;
}

#section-withdrawals .ss-alert {
  background: #e8f5ee !important;
  border-color: rgba(20,116,69,0.28) !important;
}

/* Guideline items: tinted rows */
#section-withdrawals .ss-guideline-item,
#section-withdrawals .ss-info-item {
  background: #edf7f2 !important;
  border: 1px solid rgba(20,116,69,0.14) !important;
  border-left: 3px solid #147445 !important;
}
#section-withdrawals .ss-guideline-item:nth-child(even),
#section-withdrawals .ss-info-item:nth-child(even) {
  background: #e2f4ea !important;
}

/* Form inputs: slightly tinted field bg */
#section-withdrawals .ss-form-group {
  background: #f2faf5 !important;
  border: 1px solid rgba(20,116,69,0.12) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  margin-bottom: 10px !important;
}

/* Form input/select/textarea: white bg to contrast with group tint */
#section-withdrawals .ss-form-input,
#section-withdrawals select.ss-form-input,
#section-withdrawals textarea.ss-form-input {
  background: #ffffff !important;
  border: 1.5px solid rgba(20,116,69,0.2) !important;
}

/* Selects specifically need explicit height/line-height to prevent text clipping */
#section-withdrawals select.ss-form-input,
#section-withdrawals select {
  height: auto !important;
  min-height: 46px !important;
  line-height: 1.5 !important;
  padding-top: 11px !important;
  padding-bottom: 11px !important;
}
#section-withdrawals .ss-form-input:focus,
#section-withdrawals select.ss-form-input:focus,
#section-withdrawals textarea.ss-form-input:focus {
  border-color: #147445 !important;
  box-shadow: 0 0 0 3px rgba(20,116,69,0.1) !important;
}


/* ══ TRANSACTION HISTORY — darker controls + bg ══════ */

/* Card: slight tint */
#section-transactions .ss-card {
  background: #f8fdf9 !important;
}

/* Controls bar: darker tint */
#section-transactions .ss-transactions-controls {
  background: #dff0e8 !important;
  border-color: rgba(20,116,69,0.22) !important;
}

/* Search input: white on tinted bar */
#section-transactions .ss-form-input.ss-search-box {
  background: #ffffff !important;
  border-color: rgba(20,116,69,0.2) !important;
}

/* Transaction rows: darker alternating tint */
#section-transactions .ss-transaction-item:nth-child(even) {
  background: #eaf5ee !important;
}
#section-transactions .ss-transaction-item:nth-child(odd) {
  background: #f4fbf6 !important;
}
#section-transactions .ss-transaction-item:hover {
  background: #d4edda !important;
}

/* No-results message: shown outside the overflow:visible container */
#section-transactions .ss-no-results {
  margin-top: 0 !important;
  border: 1px solid var(--border) !important;
  border-top: none !important;
  border-radius: 0 0 var(--r-inner) var(--r-inner) !important;
  background: #f8fdf9 !important;
  padding: 30px 20px !important;
}
#section-transactions .ss-no-results i {
  color: #94a3b8 !important;
  font-size: 32px !important;
  margin-bottom: 10px !important;
  display: block !important;
}
#section-transactions .ss-no-results p {
  font-size: 12px !important;
  color: var(--ss-muted) !important;
  margin: 4px 0 0 !important;
}

/* =====================================================
   Contribution – Banking Details: inline on mobile
   ===================================================== */
@media (max-width: 768px) {
    #section-contrib .ss-eft-line {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    #section-contrib .ss-eft-label {
        min-width: 120px !important;   /* consistent label width */
        flex-shrink: 0 !important;
        font-size: 12px !important;    /* slightly larger for readability */
    }

    #section-contrib .ss-eft-value-inline {
        text-align: right !important;
        flex: 1 !important;
        font-size: 13px !important;    /* match input size */
        padding: 6px 12px !important;
    }
}

@media (max-width: 768px) {
    #section-contrib .ss-eft-line {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    #section-contrib .ss-eft-label {
        min-width: 120px !important;
        flex-shrink: 0 !important;
        font-size: 12px !important;
    }

    #section-contrib .ss-eft-value-inline {
        text-align: right !important;
        flex: 1 !important;
        font-size: 13px !important;
        padding: 6px 12px !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        word-break: break-word !important; /* fallback for older browsers */
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* On very small screens, reduce the label width to give more room */
@media (max-width: 480px) {
    #section-contrib .ss-eft-label {
        min-width: 100px !important;
        font-size: 11px !important;
    }
    #section-contrib .ss-eft-value-inline {
        font-size: 12px !important;
    }
}

.ss-hamburger-toggle {
    touch-action: manipulation;
}



/* ── END VISUAL REFINEMENTS PASS ── */
/* ── Quick contribution buttons: solid green hover on desktop ──────────
   The ::after overlay approach can misfire on some desktop browsers when
   background: #ffffff on the element itself never changes.
   This rule explicitly sets background + text to the brand green on hover
   for desktop/tablet (pointer: fine = real mouse or trackpad).
   Mobile :active state is handled separately in the existing mobile rules.
   ─────────────────────────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  #section-wallet .ss-quick-btn:hover {
    background: #147445 !important;
    border-color: #147445 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(20, 116, 69, 0.32) !important;
  }

  #section-wallet .ss-quick-btn:hover span,
  #section-wallet .ss-quick-btn:hover i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  /* Keep the ::after overlay disabled on desktop — direct bg is cleaner */
  #section-wallet .ss-quick-btn:hover::after {
    opacity: 0 !important;
  }
}
/* ── END quick-btn desktop hover fix ── */

/* ═══════════════════════════════════════════════════════════════════════
   PLAN CHANGE CHECKOUT — inline 2-step preview inside #section-account
   ─────────────────────────────────────────────────────────────────────
   Step 1: plan selector (existing .ss-change-plan-card styles)
   Step 2: #ss-plan-checkout-step — fee breakdown + benefits + EFT
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Select input for plan step 1 ──────────────────────────────────────── */
#section-account .ss-plan-select-input {
  width: 100% !important;
  padding: 11px 36px 11px 14px !important;
  border: 2px solid #e9eef0 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: #0f1724 !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23147445' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  transition: border-color 0.15s ease !important;
}
#section-account .ss-plan-select-input:focus {
  outline: none !important;
  border-color: #147445 !important;
  box-shadow: 0 0 0 3px rgba(20,116,69,0.12) !important;
}

/* Disabled option = current plan — grey text, italic, not selectable */
#section-account .ss-plan-select-input option:disabled,
#section-account .ss-plan-select-input option.ss-option-current {
  color: #a0aab4 !important;
  font-style: italic;
  background: #f5f7f9;
}

/* ── Checkout preview container ─────────────────────────────────────────── */
#section-account .ss-plan-checkout-preview {
  margin-top: 4px;
}

/* ── Header: plan name + type badge ─────────────────────────────────────── */
#section-account .ss-plan-checkout-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0fdf4, #e6f7ef);
  border: 1px solid rgba(20,116,69,0.2);
  border-radius: 10px;
  margin-bottom: 14px;
}
#section-account .ss-plan-checkout-header > i {
  color: #147445;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
#section-account .ss-plan-checkout-header > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#section-account .ss-plan-checkout-header strong {
  font-size: 14px;
  color: #0f1724;
  font-weight: 700;
}
#section-account .ss-plan-change-type-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: fit-content;
}
#section-account .ss-badge-upgrade {
  background: #fff3e6;
  color: #c05e00;
  border: 1px solid #f39c12;
}
#section-account .ss-badge-downgrade {
  background: #e6f0ff;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

/* ── Fee summary table ───────────────────────────────────────────────────── */
#section-account .ss-plan-fee-summary {
  border: 1px solid #e9eef0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
#section-account .ss-plan-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
}
#section-account .ss-plan-fee-row:last-child {
  border-bottom: none;
}
#section-account .ss-plan-fee-total {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}
#section-account .ss-fee-due {
  background: #fff8f0;
  color: #c05e00;
}
#section-account .ss-fee-due strong { color: #c05e00; font-size: 15px; }
#section-account .ss-fee-credit {
  background: #f0fdf4;
  color: #147445;
}
#section-account .ss-fee-credit strong { color: #147445; font-size: 15px; }

/* ── Benefit comparison grid ─────────────────────────────────────────────── */
#section-account .ss-plan-benefits-compare {
  border: 1px solid #e9eef0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
#section-account .ss-plan-benefits-compare h4 {
  margin: 0;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #147445;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f8fafc;
  border-bottom: 1px solid #e9eef0;
  display: flex;
  align-items: center;
  gap: 7px;
}
#section-account .ss-plan-benefit-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 12px;
  border-bottom: 1px solid #f1f5f9;
}
#section-account .ss-plan-benefit-row:last-child { border-bottom: none; }
#section-account .ss-plan-benefit-row.ss-plan-benefit-changed {
  background: #fafdf7;
}
#section-account .ss-benefit-label {
  color: #64748b;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#section-account .ss-benefit-from {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 11px;
}
#section-account .ss-benefit-arrow {
  color: #cbd5e1;
  font-size: 9px;
}
#section-account .ss-benefit-to {
  font-weight: 700;
  color: #374151;
  font-size: 12px;
}
#section-account .ss-benefit-better { color: #147445 !important; }
#section-account .ss-benefit-lower  { color: #64748b !important; }

/* ── EFT payment box (upgrade only) ─────────────────────────────────────── */
#section-account .ss-plan-eft-box {
  border: 2px solid #147445;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}
#section-account .ss-plan-eft-box .ss-eft-header-branded {
  background: linear-gradient(135deg, #147445, #0d8b5e);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
#section-account .ss-plan-eft-box .ss-eft-header-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
#section-account .ss-plan-eft-box .ss-eft-header-text h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
}
#section-account .ss-plan-eft-box .ss-eft-header-text p {
  margin: 0;
  font-size: 11px;
  opacity: 0.85;
}
#section-account .ss-plan-eft-box .ss-eft-details-container {
  padding: 14px 16px;
  background: #fff;
}
#section-account .ss-plan-eft-box .ss-eft-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}
#section-account .ss-plan-eft-box .ss-eft-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f4f8;
  font-size: 12px;
}
#section-account .ss-plan-eft-box .ss-eft-line:last-child { border-bottom: none; }
#section-account .ss-plan-eft-box .ss-eft-label {
  color: #64748b;
  font-weight: 600;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
#section-account .ss-plan-eft-box .ss-eft-value-inline {
  font-weight: 700;
  color: #0f1724;
  font-size: 12px;
  font-family: 'Courier New', Courier, monospace;
  text-align: right;
}
#section-account .ss-plan-eft-box .ss-eft-value {
  font-weight: 800;
  color: #147445;
  font-family: 'Courier New', Courier, monospace;
  text-align: right;
}
#section-account .ss-plan-eft-box .ss-eft-reference-value {
  color: #c05e00;
  background: #fff8f0;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #f39c12;
  font-size: 12px;
}
#section-account .ss-plan-eft-box .ss-eft-amount-highlight {
  background: #f0fdf4;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(20,116,69,0.15);
}

/* ── EFT confirm checkbox ─────────────────────────────────────────────────── */
#section-account .ss-plan-eft-confirm-row {
  margin-bottom: 14px;
}
#section-account .ss-plan-eft-check-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  background: #fffbeb !important;
  border: 1px solid #fbbf24 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: 12px !important;
  color: #78350f !important;
  line-height: 1.5 !important;
  user-select: none !important;
  transition: background 0.15s ease !important;
}
#section-account .ss-plan-eft-check-label:hover {
  background: #fef3c7 !important;
}
#section-account .ss-plan-eft-check-label input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
  accent-color: #d97706 !important;
  cursor: pointer !important;
}

/* ── Checkout action buttons ──────────────────────────────────────────────── */
#section-account .ss-plan-checkout-actions {
  display: flex !important;
  gap: 10px !important;
  margin-top: 4px !important;
}
#section-account .ss-plan-checkout-actions .btn-outline {
  flex: 0 0 auto !important;
  padding: 11px 18px !important;
  border: 2px solid #e9eef0 !important;
  background: #fff !important;
  color: #374151 !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
  font-family: inherit !important;
}
#section-account .ss-plan-checkout-actions .btn-outline:hover {
  border-color: #147445 !important;
  color: #147445 !important;
}
#section-account .ss-plan-checkout-actions .btn-primary {
  flex: 1 !important;
  padding: 12px 18px !important;
  background: linear-gradient(135deg, #147445, #0d8b5e) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 9999px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  box-shadow: 0 4px 12px rgba(20,116,69,0.3) !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
}
#section-account .ss-plan-checkout-actions .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0d8b5e, #147445) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(20,116,69,0.38) !important;
}
#section-account .ss-plan-checkout-actions .btn-primary:disabled {
  background: #94a3b8 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ── Mobile: collapse eft grid to single column ───────────────────────────── */
@media (max-width: 600px) {
  #section-account .ss-plan-eft-box .ss-eft-details-grid {
    grid-template-columns: 1fr !important;
  }
  #section-account .ss-plan-benefit-row {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
  }
  #section-account .ss-benefit-arrow { display: none !important; }
  #section-account .ss-plan-checkout-actions {
    flex-direction: column !important;
  }
  #section-account .ss-plan-checkout-actions .btn-outline {
    width: 100% !important;
    justify-content: center !important;
  }
}
/* ── END PLAN CHANGE CHECKOUT ── */

/* ── Transaction item borders — both sections ───────────────────────────────
   Replace the bottom-only divider with a full faint border on every row so
   each item reads as a distinct card in the list. The outer list container
   already has a 1px border, so we use a negative-margin trick on the items
   to collapse the doubled border on adjacent edges (item bottom + next item
   top = 1 visible line, not 2).
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Transaction History section ── */
#section-transactions .ss-transaction-item {
  border: 1px solid rgba(20, 116, 69, 0.13) !important;
  border-radius: 6px !important;
  margin: 3px 6px !important;
  border-bottom: 1px solid rgba(20, 116, 69, 0.13) !important;
}

/* Remove the radius overrides that assumed no-border rows */
#section-transactions .ss-transaction-item:first-child {
  border-radius: 6px !important;
  margin-top: 6px !important;
}
#section-transactions .ss-transaction-item:last-of-type:not(.ss-no-results) {
  border-radius: 6px !important;
  margin-bottom: 6px !important;
}
#section-transactions .ss-transaction-item:last-child {
  border-bottom: 1px solid rgba(20, 116, 69, 0.13) !important;
}

/* =====================================================
   SAVINGS BALANCE PILL — Clean stacked version
   (prevents all wrapping & makes it crystal clear)
   ===================================================== */
.ss-sidebar-balance-pill {
  display: flex !important;
  flex-direction: column !important;   /* ← forces own lines */
  align-items: flex-start !important;
  gap: 2px !important;
  padding: 16px 18px !important;
  background: #f0fdf4 !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: 14px !important;
  margin: 16px !important;
}

/* Label — uppercase, small, clean */
.ss-sidebar-balance-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #166534 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  line-height: 1 !important;
  white-space: normal !important;   /* allow natural break if needed, but now it's short */
}

/* Value — big, bold, with R on same line */
.ss-sidebar-balance-value {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #147445 !important;
  font-family: 'Courier New', monospace !important;
  letter-spacing: -0.5px !important;
  line-height: 1 !important;
}

/* Optional: center everything on very narrow screens */
@media (max-width: 480px) {
  .ss-sidebar-balance-pill {
    align-items: center !important;
    text-align: center !important;
  }
}

/* ── Overview recent transactions ── */
#section-overview .ss-transaction-item {
  border: 1px solid rgba(20, 116, 69, 0.13) !important;
  border-radius: 6px !important;
  margin: 3px 6px !important;
  border-bottom: 1px solid rgba(20, 116, 69, 0.13) !important;
}
#section-overview .ss-transaction-item:first-child {
  border-radius: 6px !important;
  margin-top: 6px !important;
}
#section-overview .ss-transaction-item:last-child {
  border-radius: 6px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid rgba(20, 116, 69, 0.13) !important;
}

/* Hover: slightly deeper green tint + border to reinforce the card feel */
#section-transactions .ss-transaction-item:hover,
#section-overview .ss-transaction-item:hover {
  border-color: rgba(20, 116, 69, 0.28) !important;
  box-shadow: 0 1px 4px rgba(20, 116, 69, 0.08) !important;
}
/* ── END transaction item borders ── */
/* ==========================================================================
   MOBILE SIDEBAR — Definitive override (appended, highest specificity)
   Dark brand-green drawer. Overlay backdrop is a real <div>, not ::before.
   ========================================================================== */

/* ── Overlay backdrop div ─────────────────────────────────────────────────── */
.ss-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 30, 18, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1000;
  transition: opacity 0.28s ease;
  opacity: 0;
}
.ss-sidebar-overlay.visible {
  display: block;
  opacity: 1;
}

@media (max-width: 980px) {

  /* ── Drawer shell ──────────────────────────────────────────────────────── */
  .ss-sidebar {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    width: 290px !important;
    max-width: 85vw !important;
    background: linear-gradient(175deg, #083324 0%, #0d5c34 45%, #147445 100%) !important;
    z-index: 1001 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 0 40px 0 !important;
    border-radius: 0 20px 20px 0 !important;
    box-shadow: 6px 0 32px rgba(0,0,0,0.4) !important;
    transform: translateX(-105%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform;
  }

  /* Kill ALL pseudo-element overlays on the sidebar */
  .ss-sidebar::before,
  .ss-sidebar::after,
  .ss-sidebar.open::before,
  .ss-sidebar.open::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
  }

  .ss-sidebar.open {
    transform: translateX(0) !important;
  }

  /* ── Close button ──────────────────────────────────────────────────────── */
  .ss-sidebar-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 34px !important;
    height: 34px !important;
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
    color: rgba(255,255,255,0.9) !important;
    cursor: pointer !important;
    z-index: 10 !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }
  .ss-sidebar-close i { font-size: 13px !important; }
  .ss-sidebar-close:hover { background: rgba(255,255,255,0.25) !important; }

  /* ── Identity block ────────────────────────────────────────────────────── */
  .ss-sidebar-identity {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 24px 18px 18px !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  }

  .ss-sidebar-avatar {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.18) !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #fff !important;
    flex-shrink: 0 !important;
  }

  .ss-sidebar-identity-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
  }

  .ss-sidebar-name {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  .ss-sidebar-memberid {
    color: rgba(255,255,255,0.55) !important;
    font-size: 11px !important;
    font-family: 'Courier New', monospace !important;
    letter-spacing: 0.4px !important;
  }

  /* ── Balance pill ──────────────────────────────────────────────────────── */
  .ss-sidebar-balance-pill {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 14px 14px 0 !important;
    padding: 11px 14px !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 12px !important;
  }

  .ss-sidebar-balance-label {
    font-size: 10px !important;
    color: rgba(255,255,255,0.6) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-weight: 600 !important;
  }

  .ss-sidebar-balance-value {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #fff !important;
    font-family: 'Courier New', monospace !important;
  }

  /* ── Plan + status row ─────────────────────────────────────────────────── */
  .ss-sidebar-plan-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 14px 4px !important;
  }

  .ss-sidebar-plan-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  .ss-sidebar-plan-label {
    font-size: 10px !important;
    color: rgba(255,255,255,0.45) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    font-weight: 600 !important;
  }

  .ss-sidebar-plan-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
  }

  .ss-sidebar-status-chip {
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
  }

  .ss-sidebar-status-chip.good {
    background: rgba(134,239,172,0.2) !important;
    color: #86efac !important;
    border: 1px solid rgba(134,239,172,0.3) !important;
  }

  .ss-sidebar-status-chip.pending {
    background: rgba(251,191,36,0.18) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251,191,36,0.3) !important;
  }

  .ss-sidebar-status-chip.overdue {
    background: rgba(248,113,113,0.18) !important;
    color: #f87171 !important;
    border: 1px solid rgba(248,113,113,0.3) !important;
  }

  .ss-sidebar-due-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 14px 10px !important;
    font-size: 11px !important;
    color: rgba(255,255,255,0.45) !important;
  }

  .ss-sidebar-no-plan {
    margin: 10px 14px !important;
    padding: 9px 13px !important;
    background: rgba(251,191,36,0.12) !important;
    border: 1px solid rgba(251,191,36,0.25) !important;
    border-radius: 10px !important;
    color: #fbbf24 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  /* ── Divider ───────────────────────────────────────────────────────────── */
  .ss-sidebar-divider {
    height: 1px !important;
    background: rgba(255,255,255,0.1) !important;
    margin: 10px 14px 6px !important;
  }

  /* ── Nav links ─────────────────────────────────────────────────────────── */
  .ss-sidebar .ss-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    padding: 0 8px !important;
    margin-top: 0 !important;
  }

  .ss-sidebar .ss-nav-link {
    position: relative !important;
    color: rgba(255,255,255,0.75) !important;
    border-radius: 10px !important;
    padding: 13px 14px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    white-space: nowrap !important;
  }

  .ss-sidebar .ss-nav-link i {
    color: rgba(255,255,255,0.45) !important;
    width: 20px !important;
    font-size: 15px !important;
  }

  .ss-sidebar .ss-nav-link:hover,
  .ss-sidebar .ss-nav-link:active {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.1) !important;
  }

  .ss-sidebar .ss-nav-link:hover i,
  .ss-sidebar .ss-nav-link:active i {
    color: rgba(255,255,255,0.85) !important;
  }

  .ss-sidebar .ss-nav-link.active {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.18) !important;
    font-weight: 700 !important;
  }

  .ss-sidebar .ss-nav-link.active i {
    color: #86efac !important;
  }

  .ss-sidebar .ss-nav-link.active::after {
    content: '' !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #86efac !important;
  }

  /* ── Sidebar footer ────────────────────────────────────────────────────── */
  .ss-sidebar-footer {
    padding: 16px 18px 0 !important;
    margin-top: 10px !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    font-size: 10px !important;
    color: rgba(255,255,255,0.28) !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
  }

  /* ── Hamburger button ──────────────────────────────────────────────────── */
  .ss-hamburger-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    background: linear-gradient(135deg, #147445, #0d5c34) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(20,116,69,0.4) !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }

  .ss-hamburger-toggle:active {
    transform: scale(0.92) !important;
    box-shadow: 0 1px 4px rgba(20,116,69,0.3) !important;
  }

  .ss-hamburger-toggle i { pointer-events: none !important; }

  /* ── Hide OLD ss-badge elements inside sidebar (replaced) ─────────────── */
  .ss-sidebar > .ss-badge,
  .ss-sidebar > .ss-overdue,
  .ss-sidebar > .ss-up2date,
  .ss-sidebar > .ss-pending { display: none !important; }
}