/* frontend.css - Custom stylesheet for UI/UX improvements, RTL components, member profile, and help desk */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

/* RTL Direction & Arabic/Urdu Typography */
body[dir="rtl"], .rtl-context {
  direction: rtl;
  text-align: right;
}

.font-amiri {
  font-family: 'Amiri', 'Georgia', serif;
}

.font-nastaliq {
  font-family: 'Noto Nastaliq Urdu', 'Amiri', serif;
  line-height: 2.2;
}

/* WhatsApp Help Desk Button */
.whatsapp-btn-footer, .whatsapp-btn-general {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background-color: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.whatsapp-btn-footer:hover, .whatsapp-btn-general:hover {
  transform: translateY(-2px);
  background-color: #20ba5a;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  color: #FFFFFF;
}

.wa-icon {
  font-size: 1.3rem;
}

/* Profile Login Page */
.profile-login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: 2rem 1rem;
}

.profile-login-card {
  width: 100%;
  max-width: 480px;
  background-color: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease;
}

.profile-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald-light) 0%, var(--gold-primary) 100%);
}

.profile-login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-login-icon {
  font-size: 3rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.profile-login-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.profile-login-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.profile-login-help {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.85rem;
}

.profile-login-help p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Profile Dashboard Styling */
.profile-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .profile-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.member-profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
}

.member-avatar-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-medium) 0%, var(--emerald-dark) 100%);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.member-header-details {
  flex-grow: 1;
}

.member-name-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.member-code-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  background-color: rgba(200, 150, 12, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(200, 150, 12, 0.3);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.4rem;
}

.profile-logout-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.profile-logout-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--red-accent);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Wallet Card (Gold frame) */
.wallet-box {
  background: linear-gradient(180deg, var(--surface-3) 0%, var(--surface-2) 100%);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 10px 30px rgba(200, 150, 12, 0.05);
}

.wallet-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px dashed rgba(212, 175, 55, 0.15);
  border-bottom: 1px dashed rgba(212, 175, 55, 0.15);
}

.wallet-stat-block {
  text-align: center;
}

.wallet-stat-num {
  font-family: 'Outfit', 'Amiri', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1.2;
}

.wallet-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* Dynamic badges and tables inside dashboard */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.dashboard-table th {
  text-align: right;
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--border-subtle);
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.dashboard-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.dashboard-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.01);
  color: var(--text-primary);
}

/* Digital ID card overlay details */
.card-print-badge {
  background-color: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.card-print-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.card-print-btn {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: #000000;
  border: none;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.card-print-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* DIGITAL ID CARD CSS (Beautiful golden framed print/screen layout) */
.digital-id-card-frame {
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  color: #0f172a;
  border: 8px double #C8960C;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-family: 'Amiri', serif;
  direction: rtl;
  text-align: right;
  overflow: hidden;
}

.digital-id-card-frame::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(200, 150, 12, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.id-card-header {
  text-align: center;
  border-bottom: 2px solid #C8960C;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.id-card-logo-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.id-card-logo-subtitle {
  font-size: 0.8rem;
  color: #C8960C;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Outfit', sans-serif;
  margin: 0;
}

.id-card-photo-area {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.id-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #C8960C;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #C8960C;
}

.id-card-body-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 1.05rem;
}

.id-card-row {
  display: flex;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 0.3rem;
}

.id-card-label {
  font-weight: 700;
  min-width: 100px;
  color: #64748b;
}

.id-card-value {
  color: #0f172a;
  flex-grow: 1;
}

.id-card-footer {
  margin-top: 1.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  font-family: 'Inter', sans-serif;
}

.id-card-stamp {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  width: 65px;
  height: 65px;
  border: 2px dashed rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(16, 185, 129, 0.6);
  transform: rotate(-15deg);
  pointer-events: none;
}

/* Printable styles for ID Card */
@media print {
  body.printing-id-card > * {
    display: none !important;
  }
  
  body.printing-id-card {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    display: block !important;
  }
  
  body.printing-id-card #printable-id-card-area {
    display: block !important;
    position: relative !important;
    margin: 4rem auto !important;
    padding: 0 !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 420px !important;
  }

  body.printing-id-card #printable-id-card-area,
  body.printing-id-card #printable-id-card-area * {
    color: #0f172a !important;
    visibility: visible !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  /* Make sure flex rows and spacing render correctly in print */
  body.printing-id-card .id-card-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    border-bottom: 1px dashed #cccccc !important;
    padding-bottom: 0.3rem !important;
    margin-bottom: 0.6rem !important;
    width: 100% !important;
  }

  body.printing-id-card .id-card-label {
    display: inline-block !important;
    color: #64748b !important;
    font-weight: bold !important;
    min-width: 100px !important;
  }

  body.printing-id-card .id-card-value {
    display: inline-block !important;
    color: #0f172a !important;
    font-weight: bold !important;
    flex-grow: 1 !important;
  }

  body.printing-id-card .id-card-logo-subtitle {
    color: #C8960C !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.8rem !important;
  }

  body.printing-id-card .id-card-avatar {
    border: 2px solid #C8960C !important;
    color: #C8960C !important;
    background-color: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    margin: 0 auto !important;
  }
}

/* ========================================================
   MOS Global Frontend - Layout and Navigation Fixes
   ======================================================== */

/* Home Page Hero Custom Styles */
.hero-section {
  padding: 2.5rem 1rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-main-title {
  font-family: 'Amiri', 'Noto Nastaliq Urdu', serif;
  font-size: 3.2rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--gold-primary);
  letter-spacing: 3px;
  margin-bottom: 1.8rem;
  font-weight: 600;
}

/* Home Page Dynamic Statistics Row styling */
.stats-glass-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem auto 0;
  width: 100%;
  max-width: 960px;
}

.stat-glass-card {
  background-color: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.stat-glass-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(200, 150, 12, 0.08);
}

.stat-glass-card.border-gold {
  border-top: 3px solid var(--gold-primary);
}

.stat-glass-card.border-emerald {
  border-top: 3px solid var(--emerald-light);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.stat-value {
  font-family: 'Amiri', 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-value.text-gold {
  color: var(--gold-primary);
}

.stat-value.text-emerald {
  color: var(--emerald-light);
}

/* ========================================================
   Global Header Custom Styles
   ======================================================== */
.top-nav-item.text-gold {
  color: var(--gold-primary) !important;
  font-weight: 600;
}

.top-nav-item.text-gold:hover {
  background-color: rgba(200, 150, 12, 0.08) !important;
  border-color: var(--gold-primary) !important;
}

/* ========================================================
   Global Footer Premium Design
   ======================================================== */
.global-footer {
  background-color: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 2rem 0;
  color: var(--text-secondary);
  width: 100%;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col.branding {
  padding-left: 1rem;
}

.footer-logo-title {
  font-family: 'Amiri', 'Noto Nastaliq Urdu', serif;
  font-size: 1.6rem;
  color: var(--gold-primary);
  margin-bottom: 0.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.footer-logo-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: -0.6rem;
  font-weight: 500;
}

.footer-motto-urdu {
  font-family: 'Amiri', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.footer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--gold-primary);
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  align-self: start;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
}

.footer-list li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  display: inline-block;
}

.footer-list li a:hover {
  color: var(--gold-primary);
  transform: translateX(-5px);
}

.footer-text-help {
  font-family: 'Amiri', serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.whatsapp-btn-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #25D366;
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
  width: 100%;
  max-width: 280px;
}

.whatsapp-btn-footer:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 2rem;
  background-color: rgba(5, 8, 7, 0.4);
  width: 100%;
}

.bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.copyright-text {
  margin: 0;
}

.developer-text {
  margin: 0;
}

/* ========================================================
   Responsive Media Queries
   ======================================================== */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-bottom: 2.5rem;
  }
  
  .stats-glass-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 680px;
  }
}

@media (max-width: 768px) {
  .stats-glass-row {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 1rem;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .hero-main-title {
    font-size: 2.2rem;
  }
}

/* ========================================================
   Homepage Interactive Economics Simulator styling
   ======================================================== */
.simulator-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  padding: 2.5rem;
  margin-top: 2rem;
  background-color: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  direction: rtl;
  text-align: right;
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sim-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sim-control-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 500;
}

.sim-value-badge {
  font-family: 'Outfit', 'Amiri', serif;
  font-weight: 700;
  color: var(--gold-primary);
  background-color: rgba(200, 150, 12, 0.08);
  border: 1px solid rgba(200, 150, 12, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.sim-slider {
  width: 100%;
  accent-color: var(--gold-primary);
  height: 6px;
  border-radius: 3px;
  outline: none;
  background-color: var(--surface-3);
  cursor: pointer;
}

.sim-ratios-card {
  background-color: var(--surface-3);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.2rem;
  margin-top: 0.5rem;
}

.ratio-heading {
  font-family: 'Amiri', serif;
  font-size: 1.15rem;
  color: var(--gold-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
}

.ratio-values-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 0.8rem;
}

.ratio-value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ratio-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ratio-percent {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.ratio-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  text-align: justify;
}

.simulator-outputs {
  background: radial-gradient(circle at center, var(--surface-3) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-active);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.donut-chart {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.donut-bg {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 12;
}

.donut-segment-mudarib {
  fill: none;
  stroke: var(--gold-primary);
  stroke-width: 12;
  stroke-linecap: round;
  transition: var(--transition-smooth);
}

.donut-segment-investor {
  fill: none;
  stroke: var(--emerald-light);
  stroke-width: 12;
  stroke-linecap: round;
  transition: var(--transition-smooth);
}

.pie-chart-area {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto;
}

.donut-center-text {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.donut-center-val {
  font-family: 'Amiri', 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.donut-center-lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 0.2rem;
  letter-spacing: 0.5px;
}

.profit-breakdown-panel {
  width: 100%;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.profit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.profit-lbl {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profit-val {
  font-family: 'Outfit', 'Amiri', serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.bg-gold {
  background-color: var(--gold-primary);
}

.dot.bg-emerald {
  background-color: var(--emerald-light);
}

@media (max-width: 900px) {
  .simulator-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
}

/* ========================================================
   Card Action Buttons (Fixed Grid Layout Overlaps)
   ======================================================== */
.card-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gold-primary);
  color: #000000 !important;
  font-family: 'Outfit', 'Amiri', sans-serif;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  box-shadow: 0 4px 15px rgba(200, 150, 12, 0.15);
  margin-top: 1.2rem;
  width: 100%;
  cursor: pointer;
}

.card-btn-action:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 150, 12, 0.3);
}

/* Color Overrides for Emerald Cards */
.glass-card.card-border-emerald .card-btn-action,
.glass-card.border-left-emerald .card-btn-action {
  background-color: var(--emerald-light);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.glass-card.card-border-emerald .card-btn-action:hover,
.glass-card.border-left-emerald .card-btn-action:hover {
  background-color: #34d399;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Slide Deck Cover Button wrap correction */
.cover-btn-start {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* ========================================================
   Monospaced System Codes & Reference IDs (Enterprise Look)
   ======================================================== */
.sys-code,
.member-code,
.ref-id,
.reference-id,
[class*="member-code"],
[class*="ref-id"] {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  letter-spacing: 1px !important;
  color: var(--gold-primary) !important;
  font-weight: 700 !important;
}

/* ========================================================
   Mobile View responsiveness & optimization (Member Profile Dashboard)
   ======================================================== */
@media (max-width: 768px) {
  .no-sidebar .main-content {
    padding: 5.5rem 1rem 2rem !important;
  }
}

@media (max-width: 600px) {
  /* Member Profile Header */
  .member-profile-header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1.2rem !important;
    padding: 1.5rem 1rem !important;
    align-items: center !important;
  }
  
  .member-avatar-circle {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
  }
  
  .member-header-details {
    text-align: center !important;
  }

  .member-name-title {
    font-size: 1.35rem !important;
  }
  
  .profile-logout-btn {
    width: 100% !important;
    padding: 0.6rem 1.5rem !important;
    font-size: 0.82rem !important;
    margin-top: 0.5rem;
  }

  /* Glass Card Padding reduction */
  .glass-card {
    padding: 1.2rem 1rem !important;
    border-radius: 12px !important;
  }

  /* Headings & Nastaliq Heights */
  h2 {
    font-size: 1.5rem !important;
  }
  h3 {
    font-size: 1.2rem !important;
  }
  .font-nastaliq {
    line-height: 1.8 !important;
    font-size: 1.15rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Wallet details */
  .wallet-stat-num {
    font-size: 1.6rem !important;
  }
  .wallet-figures {
    gap: 0.8rem !important;
    padding: 1rem 0 !important;
    margin: 1rem 0 !important;
  }

  /* Help desk button */
  .whatsapp-btn-general, 
  .whatsapp-btn-footer {
    font-size: 0.82rem !important;
    padding: 0.7rem 1.2rem !important;
    gap: 0.5rem !important;
    justify-content: center !important;
  }

  /* Active Schemes (split-item) vertical stack */
  .split-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    padding: 0.8rem 1rem !important;
  }
  .split-item > div:last-child {
    text-align: right !important;
    width: 100% !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    padding-top: 0.5rem;
  }

  /* Table styling on mobile */
  .dashboard-table th, 
  .dashboard-table td {
    padding: 0.6rem 0.4rem !important;
    font-size: 0.78rem !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
  
  .dashboard-table th {
    font-size: 0.75rem !important;
  }
}
