
/* Abir Store Hub - DoniaHub-like UI (light) */
:root { --sky: #0284c7; }

.top-nav{
  padding: .5rem .75rem;
  border-radius: .75rem;
  font-size: .875rem;
  font-weight: 700;
  color: rgb(71 85 105);
}
.top-nav:hover{ background: rgb(241 245 249); }
.top-nav.active{
  background: rgb(224 242 254);
  color: rgb(2 132 199);
}

.mobile-nav{
  padding: .75rem;
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  font-weight: 800;
  font-size: .9rem;
  background: white;
}
.mobile-nav:hover{ background: rgb(248 250 252); }

.chip{
  padding: .35rem .7rem;
  border-radius: 9999px;
  border: 1px solid rgb(226 232 240);
  background: white;
  font-weight: 700;
  font-size: .8rem;
  color: rgb(71 85 105);
  white-space: nowrap;
}
.chip:hover{ background: rgb(248 250 252); }
.chip.active{
  background: rgb(224 242 254);
  border-color: rgb(186 230 253);
  color: rgb(2 132 199);
}

.tag{
  padding: .35rem .6rem;
  border-radius: .75rem;
  border: 1px solid rgb(226 232 240);
  background: white;
  font-size: .85rem;
  color: rgb(71 85 105);
}

.btn-primary{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 1rem;
  background: var(--sky);
  color: white;
  font-weight: 800;
}
.btn-primary:hover{ filter: brightness(.95); }

.btn-ghost{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 1rem;
  background: white;
  border: 1px solid rgb(226 232 240);
  font-weight: 800;
}
.btn-ghost:hover{ background: rgb(248 250 252); }

.card{
  background: white;
  border: 1px solid rgb(226 232 240);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.option{
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgb(226 232 240);
  font-weight: 800;
  background: white;
}
.option:hover{ background: rgb(248 250 252); }
.option i{ color: rgb(2 132 199); font-size: 1.25rem; }

.stat{
  background: white;
  border: 1px solid rgb(226 232 240);
  border-radius: 1.25rem;
  padding: 1rem;
}
.statLabel{ font-size: .75rem; color: rgb(100 116 139); font-weight: 700; }
.statValue{ font-size: 1rem; font-weight: 900; }

.heroCard{
  background: white;
  border: 1px solid rgb(226 232 240);
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.badge{
  padding: .3rem .6rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 900;
  background: rgb(254 249 195);
  color: rgb(161 98 7);
  border: 1px solid rgb(253 230 138);
}

.skeleton{
  background: linear-gradient(90deg, rgb(241 245 249), rgb(226 232 240), rgb(241 245 249));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}
@keyframes shimmer{
  0%{ background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}

/* Footer social icons */
.socialIcon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border-radius: 14px;
  border: 1px solid rgb(226 232 240);
  background: white;
  color: rgb(30 41 59);
  font-size: 22px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.socialIcon:hover{
  transform: translateY(-1px);
  background: rgb(248 250 252);
  border-color: rgb(186 230 253);
  color: rgb(2 132 199);
}


/* Discount chip */
.chip-discount{ border-color: rgba(244,63,94,.25)!important; background: rgba(244,63,94,.06)!important; color: rgb(190,18,60)!important; }


/* =========================================================
   Premium Navbar (dark gradient + glass)
   ========================================================= */
.premium-header{
  background: linear-gradient(90deg, #0b1220, #0f172a 45%, #111c33);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(2, 6, 23, .35);
  backdrop-filter: blur(12px);
}


/* =========================================================
   Premium Footer (match navbar theme)
   ========================================================= */
.premium-footer{
  background: linear-gradient(90deg, #0b1220, #0f172a 45%, #111c33) !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 -10px 30px rgba(2, 6, 23, .35);
  color: rgb(248,250,252);
  backdrop-filter: blur(12px);
}

/* Override utility-ish text colors inside footer */
.premium-footer .text-slate-900{ color: rgb(248,250,252) !important; }
.premium-footer .text-slate-600{ color: rgba(226,232,240,.82) !important; }
.premium-footer .text-slate-500{ color: rgba(226,232,240,.65) !important; }

/* Buttons/links inside footer */
.premium-footer a,
.premium-footer button{ color: rgba(226,232,240,.82) !important; }
.premium-footer a:hover,
.premium-footer button:hover{ color: #38bdf8 !important; }

/* Brand icon box in footer */
.premium-footer .bg-sky-50{
  background: rgba(56,189,248,.10) !important;
}
.premium-footer .border{
  border-color: rgba(255,255,255,.12) !important;
}

/* Social icons on dark footer */
.premium-footer .socialIcon{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: rgba(248,250,252,.9);
}
.premium-footer .socialIcon:hover{
  background: rgba(56,189,248,.12);
  border-color: rgba(56,189,248,.35);
  color: #38bdf8;
}

/* Brand area */
.premium-header .text-slate-500{ color: rgba(226,232,240,.72)!important; }
.premium-header .text-slate-900{ color: rgb(248,250,252)!important; }
.premium-header .text-sky-600{ color: #38bdf8!important; }

.premium-header a,
.premium-header button{ color: rgb(248,250,252); }

/* Logo icon box */
.premium-header .bg-sky-50{
  background: rgba(255,255,255,.06)!important;
}
.premium-header .border{ border-color: rgba(255,255,255,.12)!important; }

/* Search */
.premium-header input{
  background: rgba(255,255,255,.08)!important;
  border-color: rgba(255,255,255,.14)!important;
  color: rgb(248,250,252)!important;
}
.premium-header input::placeholder{ color: rgba(226,232,240,.65); }

/* Top nav buttons */
.premium-header .top-nav{
  color: rgba(226,232,240,.85);
}
.premium-header .top-nav:hover{
  background: rgba(255,255,255,.08);
}
.premium-header .top-nav.active{
  background: rgba(56,189,248,.14);
  color: #38bdf8;
}

/* Category chips inside header */
.premium-header .chip{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(226,232,240,.88);
}
.premium-header .chip:hover{ background: rgba(255,255,255,.10); }
.premium-header .chip.active{
  background: rgba(56,189,248,.14);
  border-color: rgba(56,189,248,.24);
  color: #38bdf8;
}
.premium-header .chip-discount{
  background: rgba(244,63,94,.14)!important;
  border-color: rgba(244,63,94,.28)!important;
  color: rgb(255,228,230)!important;
}

/* Premium Sign In button */
.btn-premium{
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 25px rgba(37,99,235,.35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-premium:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(56,189,248,.30);
  filter: brightness(1.02);
}

/* User chip */
.premium-header #user-chip{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
.premium-header #user-chip:hover{ background: rgba(255,255,255,.10); }

/* Mobile menu button */
.premium-header #mobileMenuBtn{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
.premium-header #mobileMenuBtn:hover{ background: rgba(255,255,255,.10); }

/* Mobile menu buttons inside premium header (fix white buttons on dark bg) */
.premium-header .mobile-nav{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(226,232,240,.92);
}
.premium-header .mobile-nav:hover{ background: rgba(255,255,255,.10); }

/* Mobile: hide balance + admin link in header menu to reduce clutter */
@media (max-width: 640px){
  #balance-box{ display:none !important; }
  #mobileMenu a[href*="admin"],
  #mobileMenu a[href*="Admin"]{ display:none !important; }
}

/* Mobile-only: hide balance & admin link (user marked with X) */
@media (max-width: 640px){
  #balance-box{ display:none !important; }
  #mobileMenu a[href*="admin"]{ display:none !important; }
}


/* User Dashboard (DoniaHub-like) */
.dash-tabs{
  display:flex;
  gap:.25rem;
  flex-wrap:wrap;
  border:1px solid rgb(226 232 240);
  background: rgb(248 250 252);
  padding:.35rem;
  border-radius: 1.25rem;
}
.dash-tab{
  padding:.65rem 1rem;
  border-radius: 1rem;
  font-weight: 900;
  font-size: .9rem;
  color: rgb(71 85 105);
}
.dash-tab:hover{ background: white; }
.dash-tab.active{
  background: white;
  color: rgb(2 132 199);
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
  border: 1px solid rgb(226 232 240);
}
.dash-metric{
  position: relative;
  overflow:hidden;
  background: white;
  border: 1px solid rgb(226 232 240);
  border-radius: 1.25rem;
  padding: 1.1rem 1.1rem 1rem 1.1rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  min-height: 92px;
}
.dash-metric-label{
  font-size: .8rem;
  font-weight: 800;
  color: rgb(100 116 139);
}
.dash-metric-value{
  font-size: 1.6rem;
  font-weight: 950;
  margin-top: .15rem;
}
.dash-metric-icon{
  position:absolute;
  right: 14px;
  top: 14px;
  height: 44px;
  width: 44px;
  border-radius: 14px;
  border: 1px solid rgb(226 232 240);
  background: rgb(248 250 252);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgb(2 132 199);
  font-size: 20px;
}

/* Dashboard cardview (WHMCS-style colored tiles) */
.dash-metric--blue,
.dash-metric--purple,
.dash-metric--orange,
.dash-metric--green,
.dash-metric--teal{
  border: 0;
  color: white;
  box-shadow: 0 14px 28px rgba(15,23,42,.08);
}
.dash-metric--blue{ background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.dash-metric--purple{ background: linear-gradient(135deg, #7c3aed, #a855f7); }
.dash-metric--orange{ background: linear-gradient(135deg, #f97316, #fb7185); }
.dash-metric--green{ background: linear-gradient(135deg, #22c55e, #16a34a); }
.dash-metric--teal{ background: linear-gradient(135deg, #06b6d4, #0ea5e9); }

.dash-metric--blue .dash-metric-label,
.dash-metric--purple .dash-metric-label,
.dash-metric--orange .dash-metric-label,
.dash-metric--green .dash-metric-label,
.dash-metric--teal .dash-metric-label{
  color: rgba(255,255,255,.88);
}

.dash-metric--blue .dash-metric-value,
.dash-metric--purple .dash-metric-value,
.dash-metric--orange .dash-metric-value,
.dash-metric--green .dash-metric-value,
.dash-metric--teal .dash-metric-value{
  letter-spacing: -.02em;
}

.dash-metric--blue .dash-metric-icon,
.dash-metric--purple .dash-metric-icon,
.dash-metric--orange .dash-metric-icon,
.dash-metric--green .dash-metric-icon,
.dash-metric--teal .dash-metric-icon{
  border: 0;
  background: rgba(255,255,255,.20);
  color: white;
  backdrop-filter: blur(6px);
}
.icon-btn{
  height: 40px;
  width: 40px;
  border-radius: 14px;
  border:1px solid rgb(226 232 240);
  background: white;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgb(71 85 105);
}
.icon-btn:hover{ background: rgb(248 250 252); }

.mini-bars{
  display:flex;
  align-items:flex-end;
  gap: 10px;
  height: 180px;
  padding: 10px 2px 2px 2px;
  border-top: 1px solid rgb(226 232 240);
  margin-top: 6px;
}
.mini-bar{
  flex:1;
  min-width: 18px;
  border-radius: 10px 10px 6px 6px;
  background: rgb(34 197 94 / .75);
  border: 1px solid rgb(22 163 74 / .25);
}
.mini-bars-legend{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: .75rem;
  color: rgb(100 116 139);
  font-weight: 700;
}

/* Highlight a purchase card when opened from the Orders "Download" button */
.purchase-highlight{
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.85);
}

/* Add Fund modal */
.ash-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}
.ash-modal-overlay.hidden{ display:none; }
.ash-modal{
  width: min(620px, 94vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(2,6,23,.35);
  overflow: hidden;
}
.ash-modal-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.ash-modal-head h3{ margin:0; font-size: 1.05rem; }
.ash-modal-close{
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
}
.ash-modal-body{ padding: 12px 14px 14px; overflow: auto; }
.ash-af-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.ash-af-instructions{ margin-top: 10px; }
.ash-af-right{
  border-left: 1px solid rgba(15,23,42,.08);
  padding-left: 12px;
}
@media (max-width: 860px){
  .ash-af-layout{ grid-template-columns: 1fr; }
  .ash-af-right{ border-left: 0; padding-left: 0; border-top: 1px solid rgba(15,23,42,.08); padding-top: 12px; margin-top: 12px; }
}
.ash-af-cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
@media (max-width: 520px){
  .ash-af-cards{ grid-template-columns: 1fr; }
}
.ash-af-card{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 12px;
  padding: 10px;
}
.ash-af-title{ font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
.ash-af-value{ font-weight: 800; font-size: 1rem; margin-bottom: 10px; }
.ash-af-actions{ display:flex; gap: 8px; flex-wrap: wrap; }
.ash-af-form .ash-row{ display:flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ash-af-form label{ font-weight: 700; font-size: .9rem; }
.ash-af-form input, .ash-af-form select{
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 10px;
  padding: 9px 12px;
  outline: none;
}
.ash-alert{
  background: rgba(14,165,233,.10);
  border: 1px solid rgba(14,165,233,.20);
  padding: 9px 12px;
  border-radius: 12px;
}
.ash-muted{ color: rgb(100 116 139); }


/* --- Mobile Add Fund modal polish (sticky submit + safe bottom) --- */
@media (max-width: 640px){
  .ash-modal{ max-height: 92vh; }
  .ash-modal-body{ padding-bottom: 10px; }
  /* Make the submit row always reachable on small screens */
  .ash-af-form .ash-row:last-of-type{
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    margin-top: 10px;
    box-shadow: 0 -12px 24px rgba(2,6,23,.06);
    z-index: 2;
  }
  #af-submit{ width: 100%; justify-content: center; }
}


/* Hide loading skeleton chips (safety) */
#category-chips .chip-skeleton{display:none!important;}


/* Hide loading skeleton pills in category bar */
#category-chips .skeleton{display:none !important;}


/* === FIX: User dropdown (white background) text contrast === */
#user-menu{
  background: #ffffff !important;
  border: 1px solid rgba(15,23,42,.12) !important;
}
#user-menu button{
  color: #0f172a !important;
}
#user-menu .text-slate-600{ color: #475569 !important; }
#user-menu .text-slate-500{ color: #64748b !important; }
#user-menu .text-slate-400{ color: #94a3b8 !important; }
#user-menu button:hover{
  background: rgba(15,23,42,.04) !important;
}


/* === Add Fund modal (Compact clean UI) === */
#add-fund-modal .ash-modal{
  /* narrower modal like the marked area */
  width: min(560px, 94vw);
  max-height: 86vh;
  border-radius: 16px;
}
#add-fund-modal .ash-modal-head{
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(14,165,233,.14) 0%, rgba(255,255,255,0) 100%);
  border-bottom: 0;
}
#add-fund-modal .ash-modal-head h3{
  font-size: 1.25rem;
  font-weight: 900;
}
#add-fund-modal .ash-modal-close{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  padding: 0;
}
#add-fund-modal .ash-modal-body{
  padding: 16px;
  background: linear-gradient(180deg, rgba(14,165,233,.10) 0%, rgba(255,255,255,1) 240px);
  overflow: auto;
}
#add-fund-modal .ash-af-layout{
  display: block;
}
#add-fund-modal .ash-af-right{
  padding: 0;
  border-left: 0;
}
#add-fund-modal .ash-af-form .ash-row{ margin-top: 10px; }
#add-fund-modal .ash-af-form label{ font-size: .92rem; }
#add-fund-modal .ash-af-form{
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(2,6,23,.06);
}
#add-fund-modal .ash-af-form input,
#add-fund-modal .ash-af-form select{
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
}
#add-fund-modal .ash-af-form .btn-primary{
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 900;
}
@media (max-width: 640px){
  #add-fund-modal .ash-modal{ max-height: 92vh; }
  #add-fund-modal .ash-modal-body{ padding: 14px; }
  #add-fund-modal .ash-af-form{ padding: 14px; }
}

/* Method number box (shows above Amount) */
#add-fund-modal .ash-af-methodinfo{
  margin-top: 10px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(14,165,233,.06);
}

#add-fund-modal .ash-af-methodinfo-left{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Add Fund: method logo */
#add-fund-modal .ash-af-mi-logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  padding: 5px;
}

#add-fund-modal .ash-af-autocard-icon img{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
}
#add-fund-modal .ash-af-methodinfo-title{
  font-weight: 800;
  font-size: .85rem;
  color: rgb(51 65 85);
}
#add-fund-modal .ash-af-methodinfo-value{
  font-weight: 900;
  font-size: .98rem;
  margin-top: 4px;
}
#add-fund-modal #af-mi-copy{
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  font-weight: 800;
}

/* Auto gateway preview card (Live Pay BD) */
#add-fund-modal .ash-af-autocard{
  margin-top: 10px;
  border: 1px dashed rgba(15,23,42,.25);
  border-radius: 16px;
  padding: 12px 14px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,.70);
}
#add-fund-modal .ash-af-autocard-left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}
#add-fund-modal .ash-af-autocard-icon{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(14,165,233,.10);
  border: 1px solid rgba(14,165,233,.20);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}
#add-fund-modal .ash-af-autocard-icon i{ font-size: 18px; color: rgb(2 132 199); }
#add-fund-modal .ash-af-autocard-title{ font-weight: 900; line-height: 1.1; }
#add-fund-modal .ash-af-autocard-sub{ color: rgb(100 116 139); font-weight: 700; font-size: .86rem; }
#add-fund-modal .ash-af-autocard-btn{
  padding: 10px 16px;
  border-radius: 14px;
  border: 0;
  background: rgb(2 132 199);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

/* Add Fund modal height fix */
#add-fund-modal .ash-modal-body{ flex: 1; }
#add-fund-modal .ash-af-layout{ height: 100%; }

/* === Add Fund: thinner method info tab (logo + copy compact) === */
#add-fund-modal .ash-af-methodinfo{
  padding: 10px 12px !important;
  border-radius: 14px !important;
  gap: 10px !important;
}
#add-fund-modal .ash-af-methodinfo-left{ gap: 10px !important; }
#add-fund-modal .ash-af-mi-logo{
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  padding: 5px !important;
}
#add-fund-modal .ash-af-methodinfo-title{
  font-size: .82rem !important;
  margin-bottom: 0 !important;
}
#add-fund-modal .ash-af-methodinfo-value{
  font-size: .95rem !important;
  margin-top: 2px !important;
}
#add-fund-modal #af-mi-copy{
  padding: 7px 10px !important;
  border-radius: 12px !important;
  font-size: .85rem !important;
}
