/* ============================================================
   MOBILE APP UI - Complete Mobile Transformation
   Fintech Website → Mobile App Feel
   ============================================================ */

/* ---- Hide old desktop nav elements ---- */
#secondaryMenu,
#pageTitle,
.off-canvas-menu,
.off-canvas-menu-overlay,
.menu-toggle-btn,
#fakeLoader,
#promo,
nav#secondaryMenu {
  display: none !important;
}

/* ---- Base body ---- */
body {
  padding-top: 65px !important;
  padding-bottom: 72px !important;
  background: #f2f4f8 !important;
  font-family: 'Roboto', sans-serif !important;
  min-height: 100vh;
}

/* ============================================================
   MOBILE TOP HEADER BAR
   ============================================================ */
.mobile-top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  color: #fff;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-shadow: 0 3px 12px rgba(13,71,161,0.35);
}

.mobile-top-header .mh-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-top-header .mh-logo img {
  height: 34px;
  width: auto;
  border-radius: 6px;
}

.mobile-top-header .mh-greeting {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.mobile-top-header .mh-greeting small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.78;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-top-header .mh-balance {
  text-align: right;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.25);
}

.mobile-top-header .mh-balance .bal-label {
  font-size: 9px;
  opacity: 0.8;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-top-header .mh-balance .bal-amt {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ============================================================
   BOTTOM NAVIGATION BAR
   ============================================================ */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: stretch;
  height: 62px;
  box-shadow: 0 -3px 16px rgba(0,0,0,0.10);
  border-top: 1px solid #e0e4ef;
}

.bottom-nav-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9aa0b2;
  text-decoration: none !important;
  font-size: 10px;
  font-weight: 500;
  gap: 3px;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 6px 4px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-bar a i {
  font-size: 22px;
  line-height: 1;
  transition: color 0.2s ease;
}

.bottom-nav-bar a span {
  font-size: 9.5px;
  font-weight: 500;
}

/* Active tab indicator (top border + color) */
.bottom-nav-bar a.bnav-active {
  color: #1565c0;
}

.bottom-nav-bar a.bnav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 3px;
  background: #1565c0;
  border-radius: 0 0 4px 4px;
}

.bottom-nav-bar a.bnav-active i {
  color: #1565c0;
}

.bottom-nav-bar a:active {
  background: rgba(21,101,192,0.06);
}

/* ============================================================
   SERVICE CARDS GRID (Dashboard sub-menu cards)
   ============================================================ */
.mob-section {
  padding: 14px 12px 4px;
}

.mob-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #7b8299;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 10px 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mob-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e6f0;
}

.mob-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}

@media (max-width: 540px) {
  .mob-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .mob-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
}

/* Individual service card */
.mob-service-card {
  background: #ffffff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 13px 4px 10px;
  text-decoration: none !important;
  color: #3a3f5c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 82px;
  gap: 7px;
  border: 1px solid rgba(0,0,0,0.04);
  -webkit-tap-highlight-color: transparent;
}

.mob-service-card:hover,
.mob-service-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  text-decoration: none !important;
  color: #3a3f5c;
}

.mob-service-card:active {
  transform: scale(0.96);
}

/* Card icon container */
.mob-sc-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff;
}

/* Card label */
.mob-sc-label {
  font-size: 9.5px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  color: #505672;
  padding: 0 2px;
}

/* ---- Card color variants ---- */
.msc-blue     .mob-sc-icon { background: linear-gradient(145deg, #2196f3, #1565c0); }
.msc-indigo   .mob-sc-icon { background: linear-gradient(145deg, #5c6bc0, #283593); }
.msc-purple   .mob-sc-icon { background: linear-gradient(145deg, #9c27b0, #6a1b9a); }
.msc-green    .mob-sc-icon { background: linear-gradient(145deg, #43a047, #1b5e20); }
.msc-teal     .mob-sc-icon { background: linear-gradient(145deg, #26a69a, #00695c); }
.msc-cyan     .mob-sc-icon { background: linear-gradient(145deg, #00bcd4, #00838f); }
.msc-orange   .mob-sc-icon { background: linear-gradient(145deg, #ff7043, #bf360c); }
.msc-amber    .mob-sc-icon { background: linear-gradient(145deg, #ffb300, #e65100); }
.msc-red      .mob-sc-icon { background: linear-gradient(145deg, #ef5350, #b71c1c); }
.msc-pink     .mob-sc-icon { background: linear-gradient(145deg, #ec407a, #880e4f); }
.msc-brown    .mob-sc-icon { background: linear-gradient(145deg, #8d6e63, #3e2723); }
.msc-slate    .mob-sc-icon { background: linear-gradient(145deg, #607d8b, #263238); }
.msc-lime     .mob-sc-icon { background: linear-gradient(145deg, #8bc34a, #33691e); }
.msc-deepblue .mob-sc-icon { background: linear-gradient(145deg, #1a237e, #0d1b6e); }

/* ============================================================
   DASHBOARD STATS CARDS - Mobile polish
   ============================================================ */
.pricing-table-item {
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
  border: none !important;
  margin-bottom: 10px;
}

.pricing-table-item .pt-head {
  padding: 14px !important;
}

/* ============================================================
   WELCOME / ADD FUND BUTTON AREA (replacing old pageTitle)
   ============================================================ */
.mob-balance-bar {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mob-balance-bar .bal-info .bal-name {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.mob-balance-bar .bal-info .bal-amount-big {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.mob-balance-bar .add-fund-btn {
  background: #fff;
  color: #1565c0;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
}

/* ============================================================
   GENERAL TABLE & PANEL MOBILE FIXES
   ============================================================ */
.panel {
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
  overflow: hidden;
  margin: 0 12px 12px;
}

.panel-heading {
  font-weight: 600;
  font-size: 13px;
}

.table {
  font-size: 12px;
}

.table > thead > tr > th {
  font-size: 11px;
  padding: 8px 6px;
}

.table > tbody > tr > td {
  padding: 7px 6px;
}

.container {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* Flash messages */
.alert-success {
  border-radius: 10px;
  font-size: 13px;
  margin: 8px 12px;
}

/* ============================================================
   LOGOUT CARD (in Account section cards)
   ============================================================ */
.mob-logout-card {
  background: #fff5f5 !important;
  border: 1px solid #ffcdd2 !important;
}

.mob-logout-card .mob-sc-label {
  color: #c62828 !important;
}

/* Admin bar if admin is viewing */
#primaryMenu.alert {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 9998;
  margin: 0;
  border-radius: 0;
  padding: 6px 14px;
  font-size: 12px;
  border: none;
}
