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

/* Global overflow safety */
html, body{
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after{ box-sizing: border-box; }


/* Fixed header + auto hide/show */
:root{ --header-offset: 0px; }
body{ padding-top: var(--header-offset); }
#site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transform: translateY(0);
  transition: transform .28s ease, box-shadow .2s ease;
}
#site-header.header-hidden{
  transform: translateY(calc(-100% - 6px));
}
body.mobile-menu-open #site-header,
#site-header.menu-open{
  transform: translateY(0) !important;
}


/* Header responsive helpers */
.header-row,
.brand-link,
.brand-copy,
.header-actions{
  min-width: 0;
}

#site-header .brand-link{
  gap: .6rem;
}

.brand-title,
.brand-subtitle{
  max-width: 100%;
}

/* Premium brand text colors */
.brand-title,
.footer-brand-title{
  color: #ffffff;
  background: linear-gradient(90deg, #f8fbff 0%, #7dd3fc 42%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(34, 211, 238, .08);
}

.brand-subtitle{
  color: #9fb3c8 !important;
}

.footer-brand-subtitle{
  color: #b6c7da;
}

.brand-link:hover .brand-title,
.footer-brand-link:hover .footer-brand-title{
  filter: brightness(1.08);
}

.brand-logo-shell{
  overflow:hidden;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex: 0 0 48px;
  padding: 2px;
}
.brand-logo-img,
.site-logo-img,
.footer-brand-logo-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.brand-logo-img{
  width:100%;
  height:100%;
  transform: scale(1.12);
  transform-origin:center;
}
.site-logo-img{
  width:92%;
  height:92%;
}
.footer-brand-logo-img{
  width:94%;
  height:94%;
}

@media (max-width: 767px){
  .container-wide{
    padding-left: 10px;
    padding-right: 10px;
  }

  .premium-header .header-row{
    gap: .75rem;
  }

  .premium-header .brand-link{
    flex: 1 1 auto;
    overflow: hidden;
  }

  .premium-header .brand-copy{
    overflow: hidden;
  }

  .premium-header .brand-title{
    font-size: 1rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .premium-header .brand-subtitle{
    font-size: .72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .premium-header .header-actions{
    gap: .5rem;
    flex: 0 0 auto;
  }

  .premium-header #balance-box,
  .premium-header #servicesTopBtn{
    display: none !important;
  }

  .premium-header #user-menu-wrap{
    display: none !important;
    min-width: 0;
    max-width: min(46vw, 180px);
  }

  .premium-header #user-chip{
    display: none !important;
    align-items: center;
    gap: .45rem;
    padding: .45rem .55rem;
    max-width: 100%;
  }

  .premium-header #user-chip #header-username{
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .82rem;
  }

  .premium-header #user-chip #header-hint{
    display: none !important;
  }

  .premium-header.is-auth #user-menu-wrap{
    display: block !important;
  }

  .premium-header.is-auth #user-chip{
    display: inline-flex !important;
  }

  .premium-header #authBtn{
    display: inline-flex !important;
    align-items: center;
    gap: .4rem;
    padding: .65rem .8rem;
    font-size: .85rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .premium-header.is-auth #authBtn{
    display: none !important;
  }

  .premium-header #mobileMenuBtn{
    flex: 0 0 auto;
  }
}

/* Wide container with minimal side gap */
.container-wide{
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 14px;
  padding-right: 14px;
}

@media (min-width: 1280px){
  .container-wide{
    padding-left: 18px;
    padding-right: 18px;
  }
}

.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: 18px; }
.ash-af-value{ font-weight: 800; font-size: 1rem; margin-bottom: 18px; }
.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: 90px; }
  /* 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;
}


/* === Reviews Stars === */
.review-stars{
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 18px;
  line-height: 1;
  letter-spacing: .5px;
}
.review-star{
  color: rgb(203 213 225); /* slate-300 */
  text-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.review-star.filled{
  color: rgb(245 158 11); /* amber-500 */
}

/* Composer star buttons */
.star-btn{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.45);
  background: #fff;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .12s ease, border-color .12s ease;
  padding: 0;
}
.star-btn:hover{
  border-color: rgba(2,132,199,.35);
  box-shadow: 0 8px 18px rgba(2,132,199,.08);
}
.star-btn:active{ transform: scale(.98); }
.star-btn .star-icon{
  font-size: 18px;
  line-height: 1;
  color: rgb(203 213 225);
  text-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.star-btn.filled .star-icon{
  color: rgb(245 158 11);
}
.star-btn.selected{
  border-color: rgba(245,158,11,.55);
  box-shadow: 0 10px 22px rgba(245,158,11,.14);
}

/* Auth modal should stay below fixed header */
#auth-modal{
  position: fixed;
  inset: 0;
  z-index: 10050 !important;
  padding: calc(var(--header-offset, 0px) + 16px) 12px 16px;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  background: rgba(15,23,42,.45);
}
#auth-modal.flex{
  display: flex !important;
}
#auth-modal > div{
  width: min(100%, 32rem);
  margin: 0 auto;
  max-height: calc(100dvh - var(--header-offset, 0px) - 32px);
  overflow: auto;
}
@media (max-width: 767px){
  #auth-modal{
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 90px;
  }
  #auth-modal > div{
    width: 100%;
    border-radius: 22px;
  }
}


/* header/footer cleanup */
#category-chips{display:none !important;}
.footer-links-row{display:flex;flex-wrap:wrap;gap:14px 22px;align-items:center;}
.footer-links-lower{justify-content:flex-start;}
.footer-social-wrap{margin-left:auto;}
.footer-inline-link{font-size:14px;font-weight:700;color:#475569;text-decoration:none;background:none;border:0;padding:0;cursor:pointer;}
.footer-inline-link:hover{color:#0369a1;}
@media (max-width: 767px){
  .footer-links-row{gap:12px 16px;}
  .footer-inline-link{font-size:13px;}
  .footer-links-lower{justify-content:center;}
  .footer-social-wrap{width:100%;}
  .footer-social-wrap .text-right{text-align:center !important;}
  .footer-social-wrap .justify-end{justify-content:center !important;}
}


.products-filter-chip{display:inline-flex;align-items:center;justify-content:center;padding:.6rem .95rem;border-radius:999px;border:1px solid rgba(148,163,184,.35);background:#fff;color:#0f172a;font-size:.9rem;font-weight:800;line-height:1;transition:all .18s ease;box-shadow:0 6px 18px rgba(15,23,42,.04);}
.products-filter-chip:hover{border-color:rgba(14,165,233,.35);background:#f8fbff;color:#0369a1;}
.products-filter-chip.active{background:linear-gradient(135deg,#0ea5e9,#2563eb);border-color:transparent;color:#fff;box-shadow:0 10px 24px rgba(37,99,235,.22);}
@media (max-width:640px){.products-filter-chip{padding:.55rem .85rem;font-size:.84rem;}}

/* compact footer links/social layout */
.premium-footer .container-wide{max-width:100%;}
.footer-links-row{display:flex;flex-wrap:wrap;gap:16px 28px;align-items:center;}
.footer-links-top{justify-content:flex-start;}
.footer-social-row{min-height:auto;}
.footer-social-wrap{margin-left:auto;}
.footer-inline-link{font-size:14px;font-weight:700;color:#475569;text-decoration:none;background:none;border:0;padding:2px 0;cursor:pointer;line-height:1.2;}
@media (max-width: 767px){
  .premium-footer .container-wide{padding-top:12px;padding-bottom: 90px;}
  .footer-links-row{gap:12px 18px;}
  .footer-links-top{justify-content:center;}
  .footer-social-wrap{width:100%;}
  .footer-social-wrap .text-right{text-align:center !important;}
  .footer-social-wrap .justify-end{justify-content:center !important;}
}


/* =========================================================
   Complete Premium Marketplace UI Refresh
   ========================================================= */
:root{
  --page-bg: #eef4ff;
  --surface-dark: rgba(15,23,42,.72);
  --surface-border: rgba(255,255,255,.12);
  --shadow-soft: 0 18px 45px rgba(15,23,42,.08);
  --shadow-strong: 0 22px 50px rgba(2,6,23,.14);
}

body{
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.10), transparent 24%),
    radial-gradient(circle at top right, rgba(99,102,241,.10), transparent 20%),
    linear-gradient(180deg, #f7fbff 0%, var(--page-bg) 38%, #edf3fb 100%);
  color: #0f172a;
}

main.container-wide{
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.page{ animation: pageFade .28s ease; }
@keyframes pageFade{ from{ opacity:0; transform:translateY(8px);} to{opacity:1; transform:none;} }

.premium-header{
  background: linear-gradient(90deg, rgba(8,15,35,.98), rgba(14,24,52,.96) 45%, rgba(10,20,43,.98));
}
.premium-header .header-row{
  min-height: 86px;
}
.premium-header .brand-link{
  padding-right: .25rem;
}
.premium-header .brand-title{
  font-size: 1rem;
  letter-spacing: -.03em;
}
.premium-header .brand-subtitle{
  font-size: .74rem;
}
.premium-header .top-nav,
.premium-header .btn-ghost,
.premium-header #user-chip,
.premium-header #servicesTopBtn,
.premium-header #authBtn{
  border-radius: 16px;
}
.premium-header nav{
  padding: .35rem;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.premium-header .relative.w-40 > span,
.premium-header .relative.lg\:w-52 > span,
.premium-header .relative.xl\:w-60 > span{
  left: 14px !important;
}
.premium-header .top-nav{
  padding: .7rem .92rem;
  font-size: .82rem;
  letter-spacing: -.01em;
}
.premium-header .top-nav.active{
  box-shadow: inset 0 0 0 1px rgba(56,189,248,.18), 0 10px 24px rgba(2,132,199,.16);
}
.premium-header .relative.w-40,
.premium-header .relative.lg\:w-52,
.premium-header .relative.xl\:w-60{
  width: min(290px, 24vw) !important;
}
.premium-header input{
  height: 46px;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  font-size: .9rem;
}
.premium-header input::placeholder{
  font-size: .86rem;
}
.premium-header #authBtn{
  padding: .9rem 1.2rem;
}

#page-home > .grid{
  gap: 2.25rem;
  align-items: stretch;
}
#page-home h1{
  font-size: clamp(2.35rem, 4.6vw, 4.6rem);
  line-height: .96;
  letter-spacing: -.055em;
  max-width: 11ch;
}
#page-home p.text-slate-600.text-lg{
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.75;
  color: rgb(71 85 105);
}
#page-home .tag{
  border-radius: 999px;
  padding: .48rem .82rem;
  background: rgba(255,255,255,.72);
  border-color: rgba(148,163,184,.20);
  box-shadow: 0 10px 22px rgba(148,163,184,.10);
  font-size: .78rem;
}
#page-home .btn-primary,
#page-home .btn-ghost,
#page-products .btn-primary,
#page-products .btn-ghost,
#page-updates .btn-primary,
#page-updates .btn-ghost,
#page-discounts .btn-primary,
#page-discounts .btn-ghost,
#page-services .btn-primary,
#page-services .btn-ghost{
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(2,132,199,.16);
}
#page-home .stat{
  background: rgba(255,255,255,.82);
  border-color: rgba(148,163,184,.16);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1rem;
}
#page-home .statValue{ font-size: 1.08rem; }
.heroCard,
.card{
  border-color: rgba(148,163,184,.16);
  box-shadow: var(--shadow-soft);
}
.heroCard{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82));
  border-radius: 28px;
  padding: 1.4rem;
}
.heroCard::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: linear-gradient(135deg, rgba(56,189,248,.16), rgba(99,102,241,.10), transparent 72%);
  pointer-events: none;
}
#featured-products > *{
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(255,255,255,.9);
}
#page-home .mt-10 > .flex.items-center.justify-between,
#page-products .flex.items-center.justify-between.gap-3.flex-wrap,
#page-updates .flex.items-center.justify-between.gap-3.flex-wrap,
#page-discounts .flex.items-center.justify-between.gap-3.flex-wrap{
  margin-bottom: 1rem;
}
#page-home h2.text-xl.font-extrabold,
#page-products h2.text-2xl.font-extrabold,
#page-updates h2.text-2xl.font-extrabold,
#page-discounts h2.text-2xl.font-extrabold,
#page-services h2.text-2xl.font-extrabold{
  letter-spacing: -.03em;
}
#latest-products,
#top-selling-products,
#products-grid,
#updates-grid,
#discounts-grid,
#services-grid{
  gap: 1.1rem !important;
}
[data-product-card="1"]{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88));
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
[data-product-card="1"]:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(56,189,248,.22);
}
[data-product-card="1"] img,
[data-product-card="1"] .bg-slate-50{
  height: 220px !important;
}
[data-product-card="1"] .absolute.bottom-3.right-3 span{
  border-radius: 999px !important;
  padding: .45rem .85rem !important;
  background: rgba(255,255,255,.94) !important;
  border: 1px solid rgba(148,163,184,.16) !important;
}
[data-product-card="1"] .p-4{ padding: 1.15rem !important; }
[data-product-card="1"] .text-base{ font-size: 1rem !important; line-height: 1.45 !important; }
[data-product-card="1"] .text-sm{ font-size: .82rem !important; }

/* newsletter panel */
#page-home .card.\!p-0.overflow-hidden{
  border-radius: 30px !important;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.14);
  box-shadow: var(--shadow-soft);
}
#page-home .card.\!p-0.overflow-hidden .p-8{
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.15), transparent 22%),
    radial-gradient(circle at top right, rgba(99,102,241,.10), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(247,250,255,.9));
  padding: 3rem 2rem;
}
#page-home .card.\!p-0.overflow-hidden h2{
  letter-spacing: -.045em;
  line-height: 1.05;
}
#page-home #newsletter-email{
  border-radius: 16px;
  min-height: 56px;
  font-size: .98rem;
}
#page-home #newsletter-subscribe{
  min-height: 56px;
  border-radius: 16px !important;
}

/* footer */
.premium-footer{
  margin-top: 1rem;
}
.premium-footer .container-wide{
  padding-top: 1.8rem;
  padding-bottom: 1.5rem;
}
.premium-footer-grid{
  display: grid;
  grid-template-columns: 1.3fr .95fr .75fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand-link{
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
}
.footer-brand-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(56,189,248,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.footer-brand-title,
.footer-brand-subtitle{
  display: block;
}
.footer-brand-title{
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -.03em;
}
.footer-brand-subtitle{
  margin-top: .2rem;
  font-size: .84rem;
  color: rgba(226,232,240,.78);
}
.footer-brand-text{
  margin-top: 1.1rem;
  max-width: 30rem;
  color: rgba(226,232,240,.82);
  line-height: 1.75;
  font-size: .84rem;
}
.footer-badges{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}
.footer-badges span{
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 .95rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #f8fafc;
  font-size: .8rem;
  font-weight: 700;
}
.footer-block-title{
  margin-bottom: 1rem;
  color: rgba(248,250,252,.92);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.footer-links-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem 2rem;
}
.premium-footer .footer-inline-link{
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(226,232,240,.82) !important;
}
.premium-footer .footer-inline-link:hover{
  color: #38bdf8 !important;
  transform: translateX(3px);
}
.footer-social-list{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.premium-footer .socialIcon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 1.15rem;
}
.premium-footer-bottom{
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(226,232,240,.68);
}

@media (max-width: 1100px){
  .premium-header nav{
    gap: .15rem;
  }
  .premium-header .top-nav{
    padding: .68rem .75rem;
    font-size: .79rem;
  }
  .premium-footer-grid{
    grid-template-columns: 1fr 1fr;
  }
  .footer-social-wrap{
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px){
  main.container-wide{
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  #page-home h1{
    max-width: none;
    font-size: clamp(2rem, 8.6vw, 2.8rem);
  }
  #page-home p.text-slate-600.text-lg{
    font-size: .94rem;
    line-height: 1.7;
  }
  .premium-header .header-row{
    min-height: 72px;
  }
  .premium-header .brand-title{
    font-size: 1.02rem;
  }
  .premium-header .brand-subtitle{
    font-size: .7rem;
  }
  .heroCard,
  .card{
    border-radius: 24px;
  }
  [data-product-card="1"] img,
  [data-product-card="1"] .bg-slate-50{
    height: 190px !important;
  }
  #page-home .card.\!p-0.overflow-hidden .p-8{
    padding: 2rem 1.2rem;
  }
  .premium-footer-grid{
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-links-grid{
    grid-template-columns: 1fr 1fr;
    gap: .85rem 1.25rem;
  }
  .premium-footer-bottom{
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px){
  .footer-links-grid{
    grid-template-columns: 1fr;
  }
  .footer-brand-icon{
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }
  .premium-footer .socialIcon{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1rem;
  }
}


/* ===== Premium marketplace polish: modern cards, richer hover, better mobile ===== */
:root{
  --card-radius-premium: 26px;
  --card-border-premium: rgba(148,163,184,.18);
  --card-glow-premium: 0 18px 40px rgba(15,23,42,.10);
}

#latest-products,
#top-selling-products,
#products-grid,
#updates-grid,
#discounts-grid,
#services-grid{
  display:grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem !important;
}

[data-product-card="1"]{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--card-radius-premium);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92)),
    radial-gradient(circle at top right, rgba(56,189,248,.10), transparent 30%);
  border: 1px solid var(--card-border-premium);
  box-shadow: var(--card-glow-premium);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease, background .28s ease;
}
[data-product-card="1"]::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(56,189,248,.12), transparent 22%, transparent 78%, rgba(99,102,241,.12));
  opacity:0;
  transition: opacity .28s ease;
  pointer-events:none;
}
[data-product-card="1"]::after{
  content:"";
  position:absolute;
  left:-20%;
  top:0;
  width:40%;
  height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.30), transparent);
  transform: skewX(-18deg) translateX(-180%);
  transition: transform .65s ease;
  pointer-events:none;
}
[data-product-card="1"]:hover{
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(56,189,248,.28);
  box-shadow: 0 26px 56px rgba(15,23,42,.14), 0 10px 24px rgba(56,189,248,.10);
}
[data-product-card="1"]:hover::before{ opacity:1; }
[data-product-card="1"]:hover::after{ transform: skewX(-18deg) translateX(420%); }
[data-product-card="1"] > *{ position:relative; z-index:1; }
[data-product-card="1"] .relative{
  overflow:hidden;
}
[data-product-card="1"] .relative::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 22%, rgba(2,6,23,.08) 100%);
  pointer-events:none;
}
[data-product-card="1"] img{
  width:100%;
  object-fit:cover;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}
[data-product-card="1"]:hover img{
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.02);
}
[data-product-card="1"] .absolute.bottom-3.right-3 span{
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(15,23,42,.12);
}
[data-product-card="1"] .p-4{
  padding: 1.15rem 1.15rem 1.2rem !important;
}
[data-product-card="1"] .font-extrabold.text-base,
[data-product-card="1"] button.min-w-0.text-left.font-extrabold.text-base.leading-snug{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.8em;
  letter-spacing:-.02em;
}
[data-product-card="1"] .text-sm.text-slate-600,
[data-product-card="1"] .text-sm.font-extrabold.text-slate-500{
  font-size:.8rem !important;
}
[data-product-card="1"] .ri-shopping-cart-2-line{
  color:#0ea5e9;
}

/* premium hover for cards/buttons */
.heroCard,
.card,
.stat,
.btn-primary,
.btn-premium,
.top-nav,
.socialIcon{
  transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, background .24s ease, border-color .24s ease;
}
.heroCard:hover,
.stat:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15,23,42,.10);
}
.btn-primary:hover,
.btn-premium:hover,
.premium-header .top-nav:hover{
  transform: translateY(-1px);
}

/* footer quick links + smaller social icons */
.footer-links-grid{
  grid-template-columns: repeat(2, minmax(0, max-content));
}
.premium-footer .socialIcon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: .95rem;
}

/* mobile polish */
@media (max-width: 991px){
  #latest-products,
  #top-selling-products,
  #products-grid,
  #updates-grid,
  #discounts-grid,
  #services-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem !important;
  }
  .premium-header nav{
    padding: .35rem;
    border-radius: 22px;
  }
}

@media (max-width: 767px){
  body{ overflow-x:hidden; }
  .container-wide{ padding-left: 1rem; padding-right: 1rem; }
  .premium-header{
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
  }
  .premium-header .header-row{
    gap: .75rem;
    min-height: 68px;
    padding-top: .8rem;
    padding-bottom: .8rem;
  }
  .premium-header .brand-link{ min-width: 0; gap: .7rem; }
  .brand-logo-shell{ width: 52px; height: 52px; flex-basis: 52px; border-radius: 16px; }
  .premium-header .brand-title{ font-size: .96rem; }
  .premium-header .brand-subtitle{ font-size: .68rem; }
  .premium-header #authBtn,
  .premium-header #servicesTopBtn{
    padding: .72rem .95rem !important;
    border-radius: 16px !important;
    font-size: .82rem;
  }
  #mobileMenu{
    margin-top: .25rem;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: .85rem;
  }
  .premium-header .mobile-nav{
    min-height: 46px;
    border-radius: 16px;
    font-size: .82rem;
    font-weight: 800;
  }
  #page-home{
    overflow: clip;
  }
  #page-home .grid.md\:grid-cols-2{
    gap: 1.25rem;
  }
  #page-home .mt-6.grid.sm\:grid-cols-3{
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  #page-home .heroCard{
    padding: 1.1rem;
  }
  #featured-products > *{
    border-radius: 18px;
  }
  #page-home .card.\!p-0.overflow-hidden .p-8{
    padding: 1.35rem 1rem;
  }
  #page-home #newsletter-email,
  #page-home #newsletter-subscribe{
    min-height: 50px;
    font-size: .9rem;
  }
  #latest-products,
  #top-selling-products,
  #products-grid,
  #updates-grid,
  #discounts-grid,
  #services-grid{
    grid-template-columns: 1fr;
  }
  [data-product-card="1"]{
    border-radius: 22px;
  }
  [data-product-card="1"] img,
  [data-product-card="1"] .bg-slate-50{
    height: 200px !important;
  }
  .premium-footer .socialIcon{
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: .9rem;
  }
}

@media (max-width: 520px){
  .premium-header .brand-copy{ max-width: 120px; }
  .premium-header #authBtn{
    padding: .68rem .85rem !important;
    font-size: .78rem;
  }
  .premium-header #mobileMenuBtn{
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }
  .footer-links-grid{
    grid-template-columns: 1fr 1fr;
    gap: .8rem 1rem;
  }
}


/* footer payment methods */
.footer-social-wrap{display:flex;flex-direction:column;align-items:flex-start;}
.footer-payment-box{
  margin-top: 1rem;
  width: min(100%, 360px);
  padding: .8rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.footer-payment-title{
  margin-bottom: .6rem;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(226,232,240,.75);
}
.footer-payment-image{
  display:block;
  width:100%;
  height:auto;
  border-radius: 12px;
}
@media (max-width: 1100px){
  .footer-payment-box{width:min(100%, 420px);}
}
@media (max-width: 767px){
  .footer-social-wrap{align-items:center;}
  .footer-payment-box{width:100%;max-width:420px;}
  .footer-payment-title{text-align:center;}
}


/* page loading animation */
.body-loading{
  overflow:hidden;
}
.body-loading > *:not(#site-loader){
  visibility:hidden !important;
}
.body-loading #site-loader,
.body-loading #site-loader *{
  visibility:visible !important;
}
.site-loader{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1.25rem;
  background:radial-gradient(circle at top, rgba(14,165,233,.14), transparent 34%), linear-gradient(135deg, #020817 0%, #071a3c 55%, #0f172a 100%);
  transition:opacity .35s ease, visibility .35s ease;
}
.site-loader.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.site-loader-card{
  width:min(100%, 320px);
  padding:1.4rem 1.2rem;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(15,23,42,.72);
  box-shadow:0 18px 60px rgba(2,6,23,.42), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.9rem;
}
.site-loader-logo{
  width:68px;
  height:68px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(56,189,248,.18), rgba(59,130,246,.08));
  border:1px solid rgba(125,211,252,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.site-loader-spinner{
  width:46px;
  height:46px;
  border-radius:50%;
  border:3px solid rgba(148,163,184,.22);
  border-top-color:#38bdf8;
  border-right-color:#60a5fa;
  animation:siteSpin .9s linear infinite;
}
.site-loader-text{
  color:#e2e8f0;
  font-size:.92rem;
  font-weight:700;
  letter-spacing:.01em;
  text-align:center;
}
@keyframes siteSpin{
  to{ transform:rotate(360deg); }
}
@media (max-width: 520px){
  .site-loader-card{
    width:min(100%, 280px);
    padding:1.15rem 1rem;
    border-radius:22px;
  }
  .site-loader-logo{
    width:60px;
    height:60px;
    border-radius:18px;
  }
  .site-loader-spinner{
    width:42px;
    height:42px;
  }
  .site-loader-text{
    font-size:.86rem;
  }
}

/* live search suggestions */
.live-search-wrap{position:relative;}
.live-search-panel{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  right:0;
  background:rgba(15,23,42,.96);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  box-shadow:0 22px 50px rgba(2,6,23,.45);
  backdrop-filter:blur(16px);
  padding:.45rem;
  z-index:70;
}
.live-search-clear{
  position:absolute;
  right:.55rem;
  top:50%;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
  color:rgba(226,232,240,.82);
  z-index:2;
}
.live-search-clear:hover{background:rgba(255,255,255,.12);color:#fff;}
.live-search-empty{
  padding:.8rem .9rem;
  color:rgba(226,232,240,.72);
  font-size:.82rem;
}
.live-search-item{
  display:flex;
  align-items:center;
  gap:.8rem;
  width:100%;
  text-align:left;
  padding:.7rem .75rem;
  border-radius:14px;
  transition:background .18s ease, transform .18s ease;
  color:#fff;
}
.live-search-item:hover,
.live-search-item.active{
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
}
.live-search-thumb{
  width:46px;
  height:46px;
  border-radius:12px;
  overflow:hidden;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  flex:0 0 46px;
}
.live-search-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.live-search-thumb i{font-size:1.05rem;color:rgba(226,232,240,.72);display:flex;align-items:center;justify-content:center;width:100%;height:100%;}
.live-search-meta{min-width:0;flex:1;}
.live-search-title{
  font-size:.88rem;
  font-weight:800;
  color:#f8fafc;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.live-search-sub{
  margin-top:.14rem;
  font-size:.73rem;
  color:rgba(226,232,240,.68);
  display:flex;
  gap:.45rem;
  flex-wrap:wrap;
}
.live-search-price{
  font-size:.78rem;
  font-weight:800;
  color:#38bdf8;
  margin-left:.6rem;
  white-space:nowrap;
}
.live-search-badge{
  display:inline-flex;
  align-items:center;
  padding:.12rem .42rem;
  border-radius:999px;
  background:rgba(56,189,248,.14);
  color:#7dd3fc;
  border:1px solid rgba(56,189,248,.18);
}
.live-search-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.65rem .8rem .4rem;
  color:rgba(226,232,240,.66);
  font-size:.74rem;
}
.live-search-footer button{
  color:#7dd3fc;
  font-weight:700;
}
@media (max-width: 767px){
  .live-search-panel{
    position:static;
    margin-top:.6rem;
    box-shadow:none;
  }
}


/* notification bell */
.notification-bell{
  position:relative;
  width:42px;
  height:42px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
  color:#f8fafc;
  box-shadow:0 14px 30px rgba(2,6,23,.18);
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.notification-bell:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.12);
  border-color:rgba(125,211,252,.36);
}
.notification-bell i{font-size:1.06rem;}
.notification-bell.is-active{
  background:rgba(56,189,248,.14);
  border-color:rgba(125,211,252,.42);
  color:#bae6fd;
}
.notification-badge{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#fb7185,#ef4444);
  color:#fff;
  font-size:.62rem;
  font-weight:800;
  box-shadow:0 8px 18px rgba(239,68,68,.38);
}
.notification-panel{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  width:min(360px,calc(100vw - 28px));
  background:rgba(15,23,42,.96);
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  box-shadow:0 26px 60px rgba(2,6,23,.42);
  backdrop-filter:blur(18px);
  z-index:80;
  overflow:hidden;
}
.notification-panel-head,
.notification-panel-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.95rem 1rem;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.notification-panel-foot{
  border-bottom:none;
  border-top:1px solid rgba(255,255,255,.08);
}
.notification-panel-title{
  color:#f8fafc;
  font-size:.9rem;
  font-weight:800;
}
.notification-panel-sub{
  color:rgba(226,232,240,.62);
  font-size:.72rem;
  margin-top:.14rem;
}
.notification-mark-read,
.notification-view-all{
  color:#7dd3fc;
  font-size:.74rem;
  font-weight:800;
  white-space:nowrap;
}
.notification-list{
  max-height:360px;
  overflow:auto;
  padding:.45rem;
}
.notification-empty{
  padding:1rem;
  color:rgba(226,232,240,.72);
  font-size:.82rem;
}
.notification-item{
  width:100%;
  display:flex;
  align-items:flex-start;
  gap:.75rem;
  padding:.78rem;
  border-radius:16px;
  text-align:left;
  color:#e2e8f0;
  transition:background .18s ease, transform .18s ease;
}
.notification-item:hover{
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
}
.notification-item.is-unread{
  background:linear-gradient(135deg,rgba(56,189,248,.14),rgba(59,130,246,.08));
  border:1px solid rgba(125,211,252,.12);
}
.notification-thumb{
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
}
.notification-thumb img,
.notification-thumb span{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  object-fit:cover;
}
.notification-thumb span{
  color:rgba(226,232,240,.74);
  font-size:1rem;
}
.notification-body{min-width:0;flex:1;}
.notification-row{display:flex;align-items:flex-start;gap:.5rem;justify-content:space-between;}
.notification-name{
  color:#f8fafc;
  font-size:.84rem;
  font-weight:800;
  line-height:1.3;
}
.notification-dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  margin-top:.25rem;
  border-radius:999px;
  background:#38bdf8;
  box-shadow:0 0 0 4px rgba(56,189,248,.16);
}
.notification-meta,
.notification-price{
  margin-top:.22rem;
  font-size:.72rem;
}
.notification-meta{color:rgba(226,232,240,.66);}
.notification-price{color:#7dd3fc;font-weight:800;}
@media (max-width: 767px){
  .notification-bell{
    width:38px;
    height:38px;
    border-radius:12px;
  }
  .notification-panel{
    position:fixed;
    top:78px;
    right:12px;
    left:12px;
    width:auto;
    max-width:none;
  }
}

/* ===== Homepage premium upgrade ===== */
.home-showcase-grid,
.home-insight-grid{
  display:grid;
  gap:1rem;
}
.home-showcase-grid{ grid-template-columns: minmax(0,1.35fr) minmax(280px,.9fr); }
.home-insight-grid{ grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }
.home-panel{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.18);
  border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,250,252,.98));
  box-shadow:0 18px 45px rgba(15,23,42,.08);
  padding:1.35rem;
}
.home-panel::before{
  content:"";
  position:absolute;
  inset:auto -12% 72% auto;
  width:220px;
  height:220px;
  background:radial-gradient(circle,rgba(56,189,248,.14),transparent 70%);
  pointer-events:none;
}
.section-kicker{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#0284c7;
  margin-bottom:.5rem;
}
.section-title-lg{
  font-size:1.45rem;
  line-height:1.2;
  font-weight:900;
  color:#0f172a;
}
.section-sub{
  margin-top:.3rem;
  font-size:.86rem;
  color:#64748b;
}
.home-category-grid{
  margin-top:1rem;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.85rem;
}
.home-category-card{
  text-align:left;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg,#fff,#f8fbff);
  border-radius:22px;
  padding:1rem;
  min-height:118px;
  display:flex;
  flex-direction:column;
  gap:.4rem;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home-category-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 35px rgba(2,132,199,.12);
  border-color:rgba(56,189,248,.35);
}
.home-category-card-accent{
  background:linear-gradient(135deg,#0f172a,#1e3a8a 70%,#0284c7);
  color:#eff6ff;
}
.home-category-card-accent .home-category-meta{ color:rgba(239,246,255,.78); }
.home-category-icon{
  width:40px;
  height:40px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(2,132,199,.1);
  color:#0284c7;
  font-size:1.1rem;
}
.home-category-card-accent .home-category-icon{
  background:rgba(255,255,255,.14);
  color:#fff;
}
.home-category-title{ font-size:.98rem; font-weight:900; }
.home-category-meta{ font-size:.78rem; color:#64748b; }
.flash-deal-panel{
  background:linear-gradient(135deg,#0f172a,#111827 45%,#1d4ed8 100%);
  color:#eff6ff;
}
.flash-deal-panel::before{ background:radial-gradient(circle,rgba(125,211,252,.24),transparent 70%); inset:-18% auto auto -10%; }
.flash-deal-badge{
  display:inline-flex;
  align-items:center;
  padding:.42rem .78rem;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  font-size:.72rem;
  font-weight:800;
}
.flash-deal-title{ margin-top:.9rem; font-size:1.5rem; line-height:1.15; font-weight:900; }
.flash-deal-copy{ margin-top:.55rem; font-size:.84rem; line-height:1.6; color:rgba(226,232,240,.82); }
.flash-deal-timer{
  margin-top:1rem;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.7rem;
}
.flash-time-box{
  border-radius:20px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  padding:.8rem .55rem;
  text-align:center;
}
.flash-time-box span{ display:block; font-size:1.35rem; font-weight:900; line-height:1; }
.flash-time-box small{ display:block; margin-top:.28rem; font-size:.72rem; color:rgba(226,232,240,.76); }
.flash-deal-actions{ margin-top:1rem; display:flex; flex-wrap:wrap; gap:.7rem; }
.flash-ghost-btn{
  border:1px solid rgba(255,255,255,.16);
  color:#fff !important;
  background:rgba(255,255,255,.07);
}
.home-stats-grid{
  margin-top:1rem;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.8rem;
}
.market-stat-card{
  border-radius:22px;
  padding:1rem;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border:1px solid rgba(148,163,184,.18);
}
.market-stat-card strong{
  display:block;
  font-size:1.35rem;
  line-height:1;
  color:#0f172a;
  font-weight:900;
}
.market-stat-card span{ display:block; margin-top:.35rem; font-size:.8rem; color:#64748b; }
.why-choose-list{ margin-top:1rem; display:grid; gap:.75rem; }
.why-item{
  display:flex;
  gap:.8rem;
  align-items:flex-start;
  padding:.95rem 1rem;
  border-radius:22px;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg,#fff,#f8fbff);
}
.why-item-icon{
  flex:0 0 auto;
  width:38px;
  height:38px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(14,165,233,.12);
  color:#0284c7;
  font-size:1rem;
}
.why-item strong{ display:block; font-size:.92rem; color:#0f172a; }
.why-item small{ display:block; margin-top:.15rem; font-size:.78rem; color:#64748b; line-height:1.55; }
.rating-summary-card{
  margin-top:1rem;
  border-radius:24px;
  padding:1rem;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border:1px solid rgba(148,163,184,.18);
  box-shadow:0 14px 28px rgba(15,23,42,.05);
}
.rating-summary-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  flex-wrap:wrap;
}
.rating-chip{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.45rem .75rem;
  border-radius:999px;
  background:rgba(2,132,199,.1);
  color:#0284c7;
  font-size:.72rem;
  font-weight:800;
}
.rating-count{
  font-size:.76rem;
  color:#64748b;
}
.rating-summary-main{
  margin-top:.9rem;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:1rem;
  align-items:center;
}
.rating-score-block{
  min-width:110px;
  border-radius:20px;
  padding:.9rem 1rem;
  background:linear-gradient(135deg,#0f172a,#1d4ed8);
  color:#eff6ff;
  text-align:center;
}
.rating-score-block strong{
  display:block;
  font-size:2rem;
  line-height:1;
  font-weight:900;
}
.rating-score-block span{
  display:block;
  margin-top:.35rem;
  font-size:.76rem;
  color:rgba(239,246,255,.8);
}
.rating-stars{
  font-size:1.1rem;
  letter-spacing:.08em;
  color:#f59e0b;
}
.rating-stars-block small{
  display:block;
  margin-top:.4rem;
  font-size:.78rem;
  line-height:1.55;
  color:#64748b;
}
.rating-progress-list{
  margin-top:.9rem;
  display:grid;
  gap:.55rem;
}
.rating-progress-row{
  display:grid;
  grid-template-columns:30px 1fr 34px;
  gap:.7rem;
  align-items:center;
  font-size:.76rem;
  color:#475569;
}
.rating-progress{
  position:relative;
  height:8px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
}
.rating-progress i{
  position:absolute;
  inset:0 auto 0 0;
  border-radius:inherit;
  background:linear-gradient(90deg,#38bdf8,#2563eb);
}
@media (max-width: 640px){
  .rating-summary-main{ grid-template-columns:1fr; }
  .rating-score-block{ min-width:0; }
}

@media (max-width: 991px){
  .home-showcase-grid,
  .home-insight-grid{ grid-template-columns:1fr; }
}
@media (max-width: 640px){
  .home-panel{ padding:1rem; border-radius:22px; }
  .section-title-lg{ font-size:1.2rem; }
  .home-category-grid,
  .home-stats-grid{ grid-template-columns:1fr; }
  .flash-deal-title{ font-size:1.2rem; }
  .flash-deal-timer{ gap:.55rem; }
  .flash-time-box span{ font-size:1.05rem; }
}

.home-showcase-grid.no-flash .home-panel-featured{grid-column:1 / -1;}
.flash-deal-panel.is-hidden{display:none !important;}
.flash-deal-products{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;}
.flash-deal-product-pill{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.08);color:#fff;font-weight:700;font-size:13px;cursor:pointer;transition:.2s;}
.flash-deal-product-pill:hover{transform:translateY(-1px);background:rgba(255,255,255,.14);}
.flash-deal-product-pill .meta{font-weight:600;font-size:11px;opacity:.78;}
.flash-deal-switcher{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;}
.flash-deal-switcher-btn{padding:9px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#dbeafe;font-size:12px;font-weight:700;cursor:pointer;transition:.2s;}
.flash-deal-switcher-btn.is-active,.flash-deal-switcher-btn:hover{background:rgba(14,165,233,.24);border-color:rgba(56,189,248,.46);color:#fff;}
@media (max-width: 900px){
  .flash-deal-products,.flash-deal-switcher{margin-top:14px;}
  .flash-deal-product-pill{font-size:12px;padding:9px 12px;}
}

/* ===== Compact homepage card spacing refinement ===== */
.home-showcase-grid{
  align-items:start;
  gap:.8rem;
  grid-template-columns:minmax(0,1.25fr) minmax(300px,.78fr);
}
.home-panel{
  padding:1.1rem;
  border-radius:24px;
}
.section-title-lg{
  font-size:1.3rem;
}
.section-sub{
  font-size:.8rem;
}
.home-category-grid{
  margin-top:.85rem;
  gap:.7rem;
}
.home-category-card{
  padding:.82rem;
  min-height:92px;
  border-radius:18px;
  gap:.28rem;
}
.home-category-icon{
  width:32px;
  height:32px;
  border-radius:11px;
  font-size:.9rem;
}
.home-category-title{
  font-size:.86rem;
}
.home-category-meta{
  font-size:.74rem;
  line-height:1.35;
}
.flash-deal-badge{
  padding:.34rem .7rem;
  font-size:.68rem;
}
.flash-deal-title{
  margin-top:.75rem;
  font-size:1.18rem;
}
.flash-deal-copy{
  margin-top:.4rem;
  font-size:.78rem;
  line-height:1.5;
}
.flash-deal-timer{
  margin-top:.8rem;
  gap:.55rem;
}
.flash-time-box{
  border-radius:16px;
  padding:.62rem .45rem;
}
.flash-time-box span{
  font-size:1.05rem;
}
.flash-time-box small{
  margin-top:.2rem;
  font-size:.66rem;
}
.flash-deal-actions{
  margin-top:.8rem;
  gap:.55rem;
}
.flash-deal-actions .btn,
.flash-deal-actions button,
.flash-deal-actions a{
  padding:.72rem 1rem;
  font-size:.82rem;
  border-radius:14px;
}
.flash-deal-products{
  gap:8px;
  margin-top:12px;
}
.flash-deal-product-pill{
  padding:8px 12px;
  font-size:12px;
}
.flash-deal-product-pill .meta{
  font-size:10px;
}
.flash-deal-switcher{
  gap:8px;
  margin-top:12px;
}
.flash-deal-switcher-btn{
  padding:8px 11px;
  font-size:11px;
}
@media (max-width: 640px){
  .home-showcase-grid{
    gap:.7rem;
  }
  .home-panel{
    padding:.92rem;
    border-radius:20px;
  }
  .home-category-card{
    min-height:84px;
    padding:.78rem;
  }
  .flash-deal-actions .btn,
  .flash-deal-actions button,
  .flash-deal-actions a{
    width:100%;
    justify-content:center;
  }
}


/* ===== Header profile balance + hero alignment refinement ===== */
.premium-header .header-actions{
  gap:.65rem;
}

.premium-header #notification-wrap{
  margin-left:.15rem;
}

#user-menu-wrap{
  max-width:none;
}

#user-menu{
  width:18rem;
}

.user-menu-balance{
  display:block;
}

.user-menu-balance .text-slate-500{
  color:#64748b !important;
}

#page-home .hero-grid > .relative{
  margin-top:1rem;
}

#page-home .heroCard{
  border-radius:30px;
}

@media (min-width: 1024px){
  #page-home .hero-grid > .relative{
    margin-top:1.35rem;
  }
}

@media (max-width: 767px){
  #page-home .hero-grid > .relative{
    margin-top:.35rem;
  }
}


/* ===== v15 hero featured card final position fix ===== */
#page-home .hero-grid > .relative{
  margin-top: 2.1rem !important;
}

#page-home .hero-grid > .relative .heroCard{
  margin-top: 0 !important;
}

@media (min-width: 1024px){
  #page-home .hero-grid > .relative{
    margin-top: 2.6rem !important;
  }
}

@media (max-width: 767px){
  #page-home .hero-grid > .relative{
    margin-top: .65rem !important;
  }
}

/* ===== Production polish v1 ===== */
:root{
  --mobile-dock-h: 72px;
}
html{ scroll-behavior:smooth; }
body{ text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased; }
.skip-link{
  position:fixed;
  left:14px;
  top:14px;
  z-index:9999;
  transform:translateY(-180%);
  background:#071a35;
  color:#fff;
  padding:.7rem .95rem;
  border-radius:.85rem;
  font-weight:800;
  box-shadow:0 16px 32px rgba(2,8,23,.28);
  transition:transform .18s ease;
}
.skip-link:focus{ transform:translateY(0); }
.premium-header{
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .28s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.premium-header.header-scrolled{
  background:linear-gradient(135deg, rgba(5,16,38,.94), rgba(11,31,63,.92));
  box-shadow:0 16px 40px rgba(2,8,23,.22);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.hero-grid > .relative{
  margin-top:22px;
}
#page-home .heroCard,
.home-panel,
.market-stat-card,
.why-item,
.footer-payment-box,
.socialIcon,
.top-nav,
.mobile-nav,
.btn-primary,
.btn-ghost,
.home-category-card,
.flash-time-box,
[data-product-card="1"]{
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
#page-home .heroCard:hover,
.home-panel:hover,
.market-stat-card:hover,
.why-item:hover,
.footer-payment-box:hover,
.home-category-card:hover,
[data-product-card="1"]:hover{
  transform: translateY(-3px);
  box-shadow:0 18px 42px rgba(15,23,42,.09);
}
.btn-primary:hover,
.btn-ghost:hover,
.top-nav:hover,
.mobile-nav:hover,
.socialIcon:hover{
  transform: translateY(-1px);
}
.skeleton{
  position:relative;
  overflow:hidden;
  background:linear-gradient(90deg, rgba(226,232,240,.92) 8%, rgba(241,245,249,.98) 18%, rgba(226,232,240,.92) 33%);
  background-size:1200px 100%;
  animation:skeletonShimmer 1.25s linear infinite;
}
@keyframes skeletonShimmer{
  0%{ background-position:100% 0; }
  100%{ background-position:-100% 0; }
}
.mobile-bottom-dock{
  position:fixed;
  left:12px;
  right:12px;
  bottom:max(12px, env(safe-area-inset-bottom));
  z-index:60;
  display:flex;
  gap:8px;
  padding:8px;
  border:1px solid rgba(226,232,240,.8);
  border-radius:22px;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:0 18px 45px rgba(15,23,42,.16);
}
.dock-link{
  flex:1 1 0;
  min-width:0;
  min-height:54px;
  border-radius:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  color:#475569;
  font-size:11px;
  font-weight:800;
}
.dock-link i{ font-size:18px; }
.dock-link.active{
  background:linear-gradient(135deg, rgba(14,165,233,.16), rgba(37,99,235,.12));
  color:#0369a1;
}
@media (max-width: 767px){
  body{ padding-bottom: calc(var(--mobile-dock-h) + 90px); }
  footer{ padding-bottom:calc(1rem + var(--mobile-dock-h)); }
  #page-home .hero-grid > .relative{ margin-top:14px; }
  .premium-header .header-row{ gap:.7rem; }
  .premium-header #notification-wrap{ order:2; }
  .premium-header #mobileMenuBtn{ order:3; }
}
@media (min-width: 768px){
  .mobile-bottom-dock{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}


/* DoniaHub style support ticket form */
.dh-ticket-shell{
  max-width: 1380px;
  margin: 0 auto;
}
.dh-ticket-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 16px;
}
.dh-ticket-link{
  margin-left:auto;
  border:0;
  border-radius:14px;
  background:#1565ea;
  color:#fff;
  font-weight:700;
  font-size:17px;
  padding:16px 34px;
  box-shadow:0 10px 24px rgba(21,101,234,.18);
}
.dh-ticket-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:28px 28px 24px;
  box-shadow:0 1px 0 rgba(15,23,42,.03);
}
.dh-ticket-title{
  font-size:28px;
  line-height:1.2;
  font-weight:700;
  color:#111827;
  margin-bottom: 20px;
}
.dh-ticket-grid{
  display:grid;
  gap:20px;
  margin-bottom: 16px;
}
.dh-ticket-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.dh-ticket-grid-subject{
  grid-template-columns:minmax(0,1fr) 320px;
}
.dh-field{
  min-width:0;
}
.dh-label{
  display:block;
  font-size:16px;
  font-weight:500;
  color:#111827;
  margin-bottom: 8px;
}
.dh-input{
  width:100%;
  height:58px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
  padding:0 20px;
  font-size:16px;
  color:#111827;
  outline:none;
  box-shadow:none;
}
.dh-input:focus, .dh-textarea:focus, .dh-file-input:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(59,130,246,.12);
}
.dh-input-muted{
  background:#f3f4f6;
  font-weight:600;
}
.dh-select{
  appearance:none;
  background-image:linear-gradient(45deg, transparent 50%, #111827 50%), linear-gradient(135deg, #111827 50%, transparent 50%);
  background-position:calc(100% - 24px) calc(50% - 3px), calc(100% - 18px) calc(50% - 3px);
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
  padding-right:44px;
}
.dh-ticket-message-wrap{
  margin-bottom: 16px;
}
.dh-textarea{
  min-height:220px;
  height:auto;
  resize:vertical;
  padding:18px 20px;
}
.dh-ticket-upload-wrap{
  margin-top: 8px;
}
.dh-note{
  color:#64748b;
  font-weight:500;
}
.dh-native-file{
  padding: 14px 16px;
  min-height: 58px;
  background:#fff;
}
.dh-native-file::file-selector-button{
  border:0;
  border-radius:10px;
  background:#1586d7;
  color:#fff;
  font-weight:700;
  font-size:14px;
  padding:10px 16px;
  margin-right:14px;
  cursor:pointer;
}
.dh-native-file::-webkit-file-upload-button{
  border:0;
  border-radius:10px;
  background:#1586d7;
  color:#fff;
  font-weight:700;
  font-size:14px;
  padding:10px 16px;
  margin-right:14px;
  cursor:pointer;
}
.dh-file-hint{
  margin-top:10px;
  color:#64748b;
  font-size:15px;
}
.dh-file-preview{
  margin-top:10px;
  color:#64748b;
  font-size:13px;
  line-height:1.5;
  word-break:break-word;
}
.dh-submit-wrap{
  margin-top:28px;
}
.dh-submit-btn{
  width:100%;
  border:0;
  border-radius:10px;
  background:#1565ea;
  color:#fff;
  font-weight:700;
  font-size:19px;
  min-height:60px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  box-shadow:0 14px 28px rgba(21,101,234,.18);
}
@media (max-width: 991px){
  .dh-ticket-grid-2, .dh-ticket-grid-subject{
    grid-template-columns:1fr;
    gap:20px;
  }
}
@media (max-width: 640px){
  .dh-ticket-card{ padding:20px 16px 18px; border-radius:16px; }
  .dh-ticket-link{ width:100%; text-align:center; padding:14px 18px; }
  .dh-ticket-topbar{ display:block; }
  .dh-ticket-title{ font-size:24px; margin-bottom: 18px; }
  .dh-file-display{ border-radius:14px; }
}


.support-live-pill,
.support-unread-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1d4ed8;
}
.support-unread-pill{ background:#ecfeff; border-color:#a5f3fc; color:#0f766e; }
.support-live-dot{
  width:10px; height:10px; border-radius:999px; background:#10b981; box-shadow:0 0 0 4px rgba(16,185,129,.18);
}
.support-thread-panel{ overflow:hidden; }
.support-chat-shell{ background:linear-gradient(180deg,#f8fbff 0%, #eef5fb 100%); border:1px solid #dbe7f5; border-radius:28px; overflow:hidden; }
.support-chat-header{ padding:18px 20px; background:#0f172a; color:#fff; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.support-chat-header-main{ display:flex; align-items:center; gap:12px; }
.support-chat-avatar{ width:44px; height:44px; border-radius:999px; background:linear-gradient(135deg,#22c55e,#14b8a6); color:#fff; font-weight:900; display:flex; align-items:center; justify-content:center; }
.support-chat-sub{ color:rgba(255,255,255,.75); font-size:12px; margin-top:2px; }
.support-chat-status-note{ display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.1); color:#fff; font-size:12px; font-weight:700; }
.support-chat-stream{ padding:18px 16px 20px; display:flex; flex-direction:column; gap:14px; max-height:640px; overflow:auto; }
.support-msg-row{ display:flex; align-items:flex-end; gap:10px; max-width:88%; }
.support-msg-row.me{ margin-left:auto; flex-direction:row-reverse; }
.support-msg-row.system{ margin:0 auto; max-width:100%; }
.support-msg-avatar{ width:34px; height:34px; border-radius:999px; background:#dbeafe; color:#1d4ed8; display:flex; align-items:center; justify-content:center; font-weight:900; font-size:12px; flex:0 0 auto; }
.support-msg-row.me .support-msg-avatar{ background:#dbeafe; color:#2563eb; }
.support-msg-card{ min-width:0; }
.support-msg-bubble{ position:relative; display:inline-block; background:#fff; color:#0f172a; border:1px solid #dbe7f5; border-radius:18px 18px 18px 6px; padding:13px 15px; box-shadow:0 10px 22px rgba(15,23,42,.05); white-space:pre-wrap; word-break:break-word; }
.support-msg-bubble:before{ content:''; position:absolute; left:-6px; bottom: 90px; border-top:7px solid transparent; border-bottom:7px solid transparent; border-right:7px solid #fff; filter:drop-shadow(-1px 0 0 #dbe7f5); }
.support-msg-row.me .support-msg-bubble{ background:linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff; border-color:#2563eb; border-radius:18px 18px 6px 18px; box-shadow:0 14px 28px rgba(37,99,235,.22); }
.support-msg-row.me .support-msg-bubble:before{ left:auto; right:-6px; border-right:0; border-left:7px solid #2563eb; filter:none; }
.support-msg-row.system .support-msg-bubble{ background:#fff7ed; border-color:#fdba74; color:#9a3412; border-radius:999px; padding:10px 14px; }
.support-msg-row.system .support-msg-bubble:before{ display:none; }
.support-msg-meta{ margin-top:6px; font-size:11px; color:#64748b; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.support-msg-row.me .support-msg-meta{ justify-content:flex-end; }
.support-msg-chip{ display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:999px; font-size:11px; font-weight:800; background:#ecfeff; color:#0f766e; }
.support-reply-card{ background:#fff; border:1px solid #dbe7f5; border-radius:24px; padding:18px; box-shadow:0 10px 24px rgba(15,23,42,.05); }
.support-reply-card textarea{ border-radius:18px !important; min-height:112px; }
.support-reply-card input[type=file]{ border-radius:16px !important; }
.support-ticket-unread-dot{ display:inline-block; width:8px; height:8px; border-radius:999px; background:#10b981; box-shadow:0 0 0 4px rgba(16,185,129,.18); }
.support-ticket-open-btn{ position:relative; }
.support-ticket-open-btn.has-unread::after{ content:''; position:absolute; top:8px; right:8px; width:9px; height:9px; border-radius:999px; background:#10b981; }
@media (max-width: 767px){
  .support-msg-row{ max-width:100%; }
  .support-chat-header{ padding:16px; }
  .support-chat-stream{ padding:14px 10px 16px; }
  .support-reply-card{ padding:14px; border-radius:20px; }
}


/* === Mobile premium fixes === */
.mobile-balance-box{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin-bottom: 14px;border:1px solid rgba(148,163,184,.22);border-radius:18px;background:linear-gradient(135deg,rgba(15,23,42,.92),rgba(30,41,59,.96));color:#fff;box-shadow:0 10px 24px rgba(15,23,42,.18);}
.mobile-balance-copy{min-width:0;}
.mobile-balance-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.72);}
.mobile-balance-amount{margin-top:4px;font-size:1.35rem;font-weight:900;line-height:1;color:#38bdf8;}
.mobile-balance-btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:14px;background:#0ea5e9;color:#fff;padding:10px 12px;font-weight:800;white-space:nowrap;}
.dock-link-alerts{position:relative;}
.dock-badge{position:absolute;top:7px;right:18px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#fb7185;color:#fff;font-size:10px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 12px rgba(244,63,94,.28);}
@media (max-width: 767px){
  .premium-header #notification-wrap{display:none !important;}
  .mobile-bottom-dock{grid-template-columns:repeat(5,minmax(0,1fr));}
  .mobile-bottom-dock .dock-link{padding:4px 2px;min-height:58px;font-size:10px;}
  .mobile-bottom-dock .dock-link i{font-size:20px;}
  .dock-badge{right:14px;}
  #liveChatFab,.live-chat-fab,.start-chat,.chat-button{bottom: calc(var(--mobile-dock-h) + 90px) !important;}
  .home-showcase-grid{display:grid;grid-template-columns:1fr;gap:14px;}
  .flash-deal-panel{padding:16px !important;border-radius:24px;overflow:hidden;}
  .flash-deal-title{font-size:1.05rem !important;line-height:1.2;}
  .flash-deal-copy{font-size:.76rem !important;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  .flash-deal-timer{margin-top:.75rem;gap:.45rem;}
  .flash-time-box{padding:.55rem .35rem;border-radius:14px;}
  .flash-time-box span{font-size:.95rem !important;}
  .flash-time-box small{font-size:.6rem !important;}
  .flash-deal-actions{gap:.5rem;}
  .flash-deal-actions .btn, .flash-deal-actions button, .flash-deal-actions a{width:100%;padding:.72rem .85rem;font-size:.8rem;}
  .flash-deal-products{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
  .flash-deal-product-pill{width:100%;justify-content:space-between;border-radius:14px;padding:10px 12px;font-size:12px;}
  .flash-deal-product-pill .meta{font-size:11px;}
  .flash-deal-switcher{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
  .flash-deal-switcher-btn{width:100%;text-align:center;}
}

/* __CHAT_AND_ALERTS_GLOBAL_FIX__ */

/* Desktop live chat a little lower */
@media (min-width: 769px) {
  #support-chat-launcher,
  .live-chat,
  .live-chat-btn,
  .chat-launcher,
  .chat-widget-button {
    bottom: 20px !important;
  }
}

/* Mobile live chat stays above bottom dock */
@media (max-width: 768px) {
  #support-chat-launcher,
  .live-chat,
  .live-chat-btn,
  .chat-launcher,
  .chat-widget-button {
    bottom: calc(var(--mobile-dock-h, 84px) + 14px) !important;
  }
}



/* Mobile alerts should open as a real dropdown/panel */
@media (max-width: 768px) {
  body.mobile-alerts-open .alerts-panel,
  body.mobile-alerts-open .alerts-dropdown,
  body.mobile-alerts-open .notification-panel,
  body.mobile-alerts-open .notification-dropdown,
  body.mobile-alerts-open #alertsPanel,
  body.mobile-alerts-open #alertPanel,
  body.mobile-alerts-open #notificationsPanel,
  body.mobile-alerts-open #notificationPanel,
  body.mobile-alerts-open [data-alerts-panel],
  body.mobile-alerts-open [data-notification-panel] {
    position: fixed !important;
    top: 78px !important;
    right: 12px !important;
    left: 12px !important;
    bottom: auto !important;
    width: auto !important;
    max-height: min(420px, calc(100vh - 120px)) !important;
    overflow: auto !important;
    border-radius: 20px !important;
    z-index: 10050 !important;
    box-shadow: 0 18px 50px rgba(10, 25, 60, 0.22) !important;
    display: block !important;
    transform: none !important;
    margin: 0 !important;
  }
}


/* SAFE GAP FIX */
@media (max-width:768px){
  .balance + div:empty{
    display:none !important;
  }
}

/* restore footer/payment area */
footer, .footer, .payment-methods, .payment-icons{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}


/* __FINAL_V5_ALERTS_FIX__ */
@media (max-width: 767px){
  /* allow mobile alerts panel to exist even though header bell is hidden */
  .premium-header #notification-wrap{
    display:block !important;
    position:static !important;
    width:0 !important;
    height:0 !important;
    overflow:visible !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    opacity:1 !important;
    pointer-events:none !important;
  }
  .premium-header #notificationBellBtn{
    display:none !important;
  }
  body.mobile-alerts-open #notificationPanel{
    pointer-events:auto !important;
  }
}


/* __PREMIUM_AUTH_UI_FIX__ */
:root{
  --auth-bg-1:#f5f9ff;
  --auth-bg-2:#eef4ff;
  --auth-text:#0b1736;
  --auth-muted:#6b768f;
  --auth-border:rgba(24,52,112,.12);
  --auth-shadow:0 20px 55px rgba(18,42,94,.12);
  --auth-primary-1:#12b8ff;
  --auth-primary-2:#2f64ff;
}

@media (max-width: 768px){
  body.login-page,
  body.signin-page,
  body.auth-page,
  .login-page,
  .signin-page,
  .auth-page,
  .auth-shell,
  .login-shell,
  .signin-shell,
  .login-wrap,
  .signin-wrap,
  .auth-wrap{
    background:
      radial-gradient(circle at top left, rgba(18,184,255,.10), transparent 32%),
      linear-gradient(180deg, var(--auth-bg-1) 0%, #ffffff 100%) !important;
  }

  .login-container,
  .signin-container,
  .auth-container,
  .login-card,
  .signin-card,
  .auth-card,
  .login-form-wrap,
  .signin-form-wrap,
  .auth-form-wrap,
  .user-login-card,
  .user-signin-card{
    width: min(100%, 460px) !important;
    margin: 0 auto !important;
    padding: 22px 18px 18px !important;
    border-radius: 28px !important;
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: var(--auth-shadow) !important;
    border: 1px solid var(--auth-border) !important;
  }

  .login-container h1,
  .signin-container h1,
  .auth-container h1,
  .login-card h1,
  .signin-card h1,
  .auth-card h1,
  .login-container .title,
  .signin-container .title,
  .auth-container .title,
  .user-login-card h1,
  .user-signin-card h1{
    font-size: clamp(34px, 8vw, 48px) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.03em !important;
    color: var(--auth-text) !important;
    margin: 2px 0 10px !important;
    font-weight: 800 !important;
  }

  .login-container p,
  .signin-container p,
  .auth-container p,
  .login-card p,
  .signin-card p,
  .auth-card p,
  .login-subtitle,
  .signin-subtitle,
  .auth-subtitle{
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: var(--auth-muted) !important;
    margin: 0 0 16px !important;
  }

  .login-container label,
  .signin-container label,
  .auth-container label,
  .login-card label,
  .signin-card label,
  .auth-card label,
  .form-group label{
    font-size: 12px !important;
    line-height: 1.2 !important;
    color: var(--auth-text) !important;
    margin: 0 0 7px !important;
    font-weight: 700 !important;
    display: inline-block !important;
  }

  .login-container .form-group,
  .signin-container .form-group,
  .auth-container .form-group,
  .login-card .form-group,
  .signin-card .form-group,
  .auth-card .form-group,
  .field-group{
    margin-bottom: 14px !important;
  }

  .login-container input,
  .signin-container input,
  .auth-container input,
  .login-card input,
  .signin-card input,
  .auth-card input,
  .login-container .input,
  .signin-container .input,
  .auth-container .input,
  .form-group input,
  .form-control{
    height: 52px !important;
    min-height: 52px !important;
    border-radius: 18px !important;
    border: 1.5px solid rgba(18,42,94,.10) !important;
    background: #ffffff !important;
    color: var(--auth-text) !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

  .login-container input::placeholder,
  .signin-container input::placeholder,
  .auth-container input::placeholder,
  .login-card input::placeholder,
  .signin-card input::placeholder,
  .auth-card input::placeholder,
  .form-control::placeholder{
    color: #9aa4b8 !important;
    font-size: 14px !important;
  }

  .login-container input:focus,
  .signin-container input:focus,
  .auth-container input:focus,
  .login-card input:focus,
  .signin-card input:focus,
  .auth-card input:focus,
  .form-control:focus{
    outline: none !important;
    border-color: rgba(41,121,255,.45) !important;
    box-shadow: 0 0 0 5px rgba(18,184,255,.12) !important;
  }

  .password-toggle,
  .toggle-password,
  .show-password,
  .password-eye{
    right: 16px !important;
    font-size: 18px !important;
    opacity: .72 !important;
  }

  .login-btn,
  .signin-btn,
  .auth-btn,
  .btn-login,
  .btn-signin,
  .login-container button[type="submit"],
  .signin-container button[type="submit"],
  .auth-container button[type="submit"],
  .login-card button[type="submit"],
  .signin-card button[type="submit"],
  .auth-card button[type="submit"]{
    height: 54px !important;
    min-height: 54px !important;
    width: 100% !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--auth-primary-1), var(--auth-primary-2)) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: -.01em !important;
    box-shadow: 0 14px 28px rgba(47,100,255,.28) !important;
    margin-top: 18px !important;
  }

  .login-btn::after,
  .signin-btn::after,
  .auth-btn::after,
  .btn-login::after,
  .btn-signin::after{
    display:none !important;
  }

  .divider,
  .or-divider,
  .auth-divider{
    margin: 18px 0 !important;
  }

  .google-login,
  .social-login,
  .oauth-btn,
  .google-btn{
    min-height: 50px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(24,52,112,.10) !important;
    background: #fff !important;
  }

  .login-footer,
  .signin-footer,
  .auth-footer,
  .register-link,
  .new-here{
    margin-top: 16px !important;
    font-size: 13px !important;
    color: var(--auth-muted) !important;
  }

  /* reduce big blank spaces */
  .login-container > * + *,
  .signin-container > * + *,
  .auth-container > * + *,
  .login-card > * + *,
  .signin-card > * + *,
  .auth-card > * + *{
    margin-top: 0 !important;
  }

  .login-container,
  .signin-container,
  .auth-container,
  .login-card,
  .signin-card,
  .auth-card{
    gap: 0 !important;
  }

  /* overall text scale smaller and premium */
  body,
  input,
  button,
  textarea,
  select,
  p,
  span,
  a,
  li{
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
}

/* __PREMIUM_SAAS_REDESIGN__ */
:root{
  --saas-bg:#f5f8ff;
  --saas-surface:#ffffff;
  --saas-surface-2:#f8fbff;
  --saas-line:rgba(148,163,184,.22);
  --saas-line-strong:rgba(148,163,184,.28);
  --saas-text:#0f172a;
  --saas-muted:#64748b;
  --saas-primary:#5b35ff;
  --saas-primary-2:#8b5cf6;
  --saas-primary-soft:rgba(91,53,255,.12);
  --saas-shadow:0 16px 40px rgba(15,23,42,.08);
  --saas-shadow-hover:0 22px 50px rgba(15,23,42,.12);
  --saas-radius:24px;
  --saas-speed:.24s cubic-bezier(.2,.8,.2,1);
}

html[data-theme="dark"]{
  --saas-bg:#07111f;
  --saas-surface:rgba(12,22,39,.88);
  --saas-surface-2:rgba(17,28,48,.92);
  --saas-line:rgba(148,163,184,.16);
  --saas-line-strong:rgba(148,163,184,.22);
  --saas-text:#e7edf8;
  --saas-muted:#9fb0c9;
  --saas-primary:#7c5cff;
  --saas-primary-2:#3ecbff;
  --saas-primary-soft:rgba(124,92,255,.18);
  --saas-shadow:0 18px 50px rgba(2,8,23,.42);
  --saas-shadow-hover:0 24px 60px rgba(2,8,23,.5);
}

body{
  background:
    radial-gradient(circle at top left, rgba(91,53,255,.06), transparent 28%),
    radial-gradient(circle at top right, rgba(56,189,248,.07), transparent 24%),
    var(--saas-bg);
  color:var(--saas-text);
  transition: background-color var(--saas-speed), color var(--saas-speed);
}

html[data-theme="dark"] body{
  background:
    radial-gradient(circle at top left, rgba(124,92,255,.16), transparent 24%),
    radial-gradient(circle at top right, rgba(56,189,248,.10), transparent 24%),
    linear-gradient(180deg, #06101d 0%, #0a1426 100%);
}

/* Smaller premium auth CTA like reference */
.auth-cta{
  min-height:42px !important;
  padding:.4rem .92rem !important;
  border-radius:14px !important;
  font-size:.9rem !important;
  line-height:1 !important;
  gap:.45rem !important;
  box-shadow:0 10px 24px rgba(91,53,255,.28) !important;
  background:linear-gradient(135deg,#4f46e5,#9333ea) !important;
}
.auth-cta i{ font-size:1rem !important; }
@media (max-width:767px){
  .auth-cta{
    min-height:38px !important;
    padding:.35rem .78rem !important;
    font-size:.78rem !important;
    border-radius:12px !important;
  }
}

/* Theme toggle button */
.theme-toggle-float{
  position:fixed;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(255,255,255,.94);
  color:#2563eb;
  box-shadow:0 14px 34px rgba(15,23,42,.18);
  z-index:9999;
  transition:transform var(--saas-speed), box-shadow var(--saas-speed), background var(--saas-speed), color var(--saas-speed);
}
.theme-toggle-float:hover{
  transform:translateY(calc(-50% - 2px));
  box-shadow:0 18px 38px rgba(15,23,42,.24);
}
.theme-toggle-float .theme-icon-light{ display:none; }
html[data-theme="dark"] .theme-toggle-float{
  background:rgba(14,24,42,.96);
  color:#f8fafc;
  border-color:rgba(148,163,184,.18);
}
html[data-theme="dark"] .theme-toggle-float .theme-icon-dark{ display:none; }
html[data-theme="dark"] .theme-toggle-float .theme-icon-light{ display:block; }
@media (max-width:767px){
  .theme-toggle-float{
    right:15px;
    top:80px;
    bottom:auto;
    transform:none;
    width:42px;
    height:42px;
    border-radius:14px;
  }
  .theme-toggle-float:hover{
    transform:translateY(-2px);
  }
}

/* Global premium motion */
.card,
.stat,
.option,
.btn-premium,
.btn-primary,
.btn-ghost,
.top-nav,
.mobile-nav,
.dock-link,
.dash-tab,
.dash-metric{
  transition:transform var(--saas-speed), box-shadow var(--saas-speed), border-color var(--saas-speed), background-color var(--saas-speed), color var(--saas-speed), opacity var(--saas-speed);
}

.card:hover,
.stat:hover,
.option:hover,
.dash-metric:hover{
  transform:translateY(-3px);
  box-shadow:var(--saas-shadow-hover);
}

/* Better rendering and smaller button polish */
.btn-primary,
.btn-ghost,
.btn-premium{
  will-change:transform;
}
.btn-primary:hover,
.btn-ghost:hover,
.btn-premium:hover{
  transform:translateY(-2px);
}

/* Dark mode surface colors */
html[data-theme="dark"] .card,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .option,
html[data-theme="dark"] .market-stat-card,
html[data-theme="dark"] .home-category-card,
html[data-theme="dark"] [data-product-card="1"],
html[data-theme="dark"] .dashboard-shell,
html[data-theme="dark"] .dash-chart.card,
html[data-theme="dark"] .support-reply-card{
  background:var(--saas-surface) !important;
  color:var(--saas-text) !important;
  border-color:var(--saas-line) !important;
  box-shadow:var(--saas-shadow) !important;
}
html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-slate-500,
html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] .text-slate-800{
  color:var(--saas-muted) !important;
}
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-slate-100{
  background:var(--saas-surface-2) !important;
}
html[data-theme="dark"] .border,
html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-slate-100{
  border-color:var(--saas-line) !important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{
  background:rgba(15,23,42,.92) !important;
  color:var(--saas-text) !important;
  border-color:var(--saas-line-strong) !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{
  color:#7f93b3 !important;
}

/* Premium dashboard shell */
.page-dashboard-premium{
  content-visibility:auto;
  contain-intrinsic-size: 1200px;
}
.dashboard-shell{
  position:relative;
  overflow:hidden;
  border-radius:32px !important;
  border:1px solid var(--saas-line) !important;
  background:
    radial-gradient(circle at top right, rgba(91,53,255,.08), transparent 22%),
    radial-gradient(circle at top left, rgba(56,189,248,.07), transparent 20%),
    var(--saas-surface) !important;
  box-shadow:var(--saas-shadow) !important;
}
.dashboard-shell::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(91,53,255,.26), transparent);
  pointer-events:none;
}
.page-dashboard-premium h2.text-2xl{
  font-size:clamp(1.75rem,2vw,2.25rem) !important;
  letter-spacing:-.03em;
}
.page-dashboard-premium .dash-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
  padding:.4rem;
  border-radius:22px;
  background:rgba(248,250,252,.8);
  border:1px solid var(--saas-line);
}
html[data-theme="dark"] .page-dashboard-premium .dash-tabs{
  background:rgba(15,23,42,.7);
}
.page-dashboard-premium .dash-tab{
  border-radius:16px;
  padding:.78rem 1rem;
  font-weight:800;
  font-size:.92rem;
  color:var(--saas-muted);
  background:transparent;
  border:1px solid transparent;
}
.page-dashboard-premium .dash-tab.active{
  color:#fff;
  background:linear-gradient(135deg,var(--saas-primary),var(--saas-primary-2));
  box-shadow:0 12px 24px rgba(91,53,255,.26);
}
.page-dashboard-premium .dash-metric{
  position:relative;
  overflow:hidden;
  min-height:124px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 32px rgba(15,23,42,.08);
}
.page-dashboard-premium .dash-metric::after{
  content:"";
  position:absolute;
  inset:auto -30px -30px auto;
  width:110px;
  height:110px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  filter:blur(2px);
}
.page-dashboard-premium .dash-metric-label{
  font-size:.8rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.92;
}
.page-dashboard-premium .dash-metric-value{
  font-size:clamp(1.35rem,2vw,1.9rem);
  font-weight:900;
  letter-spacing:-.03em;
}
.page-dashboard-premium .dash-metric-icon{
  font-size:1.35rem;
  opacity:.96;
}
.page-dashboard-premium .dash-chart.card{
  border-radius:24px !important;
  border:1px solid var(--saas-line) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,250,252,.92)) !important;
}
html[data-theme="dark"] .page-dashboard-premium .dash-chart.card{
  background:linear-gradient(180deg, rgba(15,23,42,.88), rgba(19,31,53,.94)) !important;
}
.page-dashboard-premium table,
.page-dashboard-premium .overflow-x-auto,
.page-dashboard-premium .border.rounded-2xl,
.page-dashboard-premium .border.rounded-xl{
  border-radius:22px !important;
  overflow:hidden;
}
.page-dashboard-premium .icon-btn{
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid var(--saas-line);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.7);
}
html[data-theme="dark"] .page-dashboard-premium .icon-btn{
  background:rgba(15,23,42,.74);
}
.page-dashboard-premium .btn-primary,
.page-dashboard-premium .btn-ghost{
  min-height:46px;
  border-radius:16px;
  font-size:.92rem;
}
@media (max-width:767px){
  .dashboard-shell{
    border-radius:24px !important;
    padding:16px !important;
  }
  .page-dashboard-premium .dash-tabs{
    gap:.5rem;
    border-radius:18px;
  }
  .page-dashboard-premium .dash-tab{
    padding:.68rem .8rem;
    font-size:.84rem;
  }
  .page-dashboard-premium .dash-metric{
    min-height:114px;
    border-radius:20px;
  }
}

/* Subtle reveal animation */
.reveal-up{
  opacity:0;
  transform:translateY(18px) scale(.985);
}
.reveal-up.is-visible{
  opacity:1;
  transform:none;
  transition:opacity .55s ease, transform .55s ease;
}

/* Faster loading helpers */
.page,
.card,
.market-stat-card,
.home-category-card,
[data-product-card="1"],
.premium-footer{
  content-visibility:auto;
  contain-intrinsic-size: 600px;
}

img{
  image-rendering:auto;
}
img[loading="lazy"]{
  content-visibility:auto;
}

/* Better focus / micro interactions */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline:none;
  box-shadow:0 0 0 4px rgba(91,53,255,.14);
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }
}

/* __SECURITY_PERF_FINAL__ */
.auth-cta-thin{
  min-height: 38px !important;
  padding: .32rem .82rem !important;
  font-size: .80rem !important;
  border-radius: 12px !important;
  letter-spacing: -.01em !important;
}
.auth-cta-thin i{ font-size: .92rem !important; }
@media (min-width: 768px){
  .auth-cta-thin{
    min-height: 36px !important;
    padding: .28rem .78rem !important;
    font-size: .76rem !important;
    border-radius: 11px !important;
  }
}

.security-card-premium{
  border-radius: 24px !important;
  border:1px solid rgba(148,163,184,.20) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92)) !important;
}
.security-soft-panel{
  background:linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.96)) !important;
}
.security-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(16,185,129,.10);
  color:#047857;
  font-size:12px;
  font-weight:800;
}
.security-toggle-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.security-toggle-row span{
  display:block;
  min-width:0;
}
.security-toggle-row small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:12px;
  line-height:1.45;
}
.security-toggle-btn{
  position:relative;
  width:56px;
  height:32px;
  border:0;
  border-radius:999px;
  background:#cbd5e1;
  flex:0 0 auto;
  transition:background .22s ease, transform .22s ease;
}
.security-toggle-btn.is-on{
  background:linear-gradient(135deg,#4f46e5,#9333ea);
}
.security-toggle-btn .security-toggle-knob{
  position:absolute;
  top:4px;
  left:4px;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.18);
  transition:transform .22s ease;
}
.security-toggle-btn.is-on .security-toggle-knob{
  transform:translateX(24px);
}
.security-login-list{
  display:grid;
  gap:10px;
}
.security-login-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.18);
  background:#fff;
}
.security-login-item strong{
  display:block;
  font-size:13px;
}
.security-login-item span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:12px;
}
.security-login-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 9px;
  border-radius:999px;
  background:rgba(59,130,246,.10);
  color:#1d4ed8;
  font-size:11px;
  font-weight:800;
}
.security-skeleton{
  position:relative;
  overflow:hidden;
  min-height:18px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(226,232,240,.9) 0%, rgba(241,245,249,1) 50%, rgba(226,232,240,.9) 100%);
  background-size:200% 100%;
  animation: security-shimmer 1.15s linear infinite;
}
.security-skeleton.card{
  min-height:96px;
  border-radius:18px;
}
@keyframes security-shimmer{
  from{ background-position:200% 0; }
  to{ background-position:-200% 0; }
}
.dashboard-skeleton-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.dashboard-skeleton-chart{
  min-height:220px;
  border-radius:24px;
}
@media (max-width:1024px){
  .dashboard-skeleton-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px){
  .dashboard-skeleton-grid{ grid-template-columns:1fr; }
  .auth-cta-thin{
    min-height:34px !important;
    padding:.28rem .68rem !important;
    font-size:.72rem !important;
  }
}

/* 🔥 FINAL ULTRA SLIM AUTH BUTTON */
.auth-cta,
.auth-cta-thin{
  min-height: 26px !important;
  height: 26px !important;
  padding: 0 9px !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  gap: 4px !important;
  line-height: 1 !important;
  box-shadow: 0 3px 8px rgba(79,70,229,.18) !important;
}

.auth-cta i,
.auth-cta-thin i{
  font-size: 11px !important;
}

@media (min-width: 768px){
  .auth-cta,
  .auth-cta-thin{
    min-height: 24px !important;
    height: 24px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
    border-radius: 5px !important;
    gap: 4px !important;
  }

  .auth-cta i,
  .auth-cta-thin i{
    font-size: 10px !important;
  }
}

@media (max-width: 767px){
  .auth-cta,
  .auth-cta-thin{
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 9px !important;
    font-size: 10.5px !important;
    border-radius: 6px !important;
  }
}

/* ===== Smaller hero text + balanced auth button fix ===== */
#page-home h1,
.hero-grid h1{
  font-size: clamp(2.2rem, 3.9vw, 4.15rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
  font-weight: 900 !important;
  max-width: 8.8ch !important;
  text-wrap: balance;
}

#page-home p,
.hero-grid p{
  font-size: 14px !important;
  line-height: 1.62 !important;
  max-width: 40rem !important;
}

/* keep button usable */
a#authBtn,
.btn-premium.auth-cta,
.btn-premium.auth-cta-thin{
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

a#authBtn i,
.btn-premium.auth-cta i,
.btn-premium.auth-cta-thin i{
  font-size: 12px !important;
}

.btn-premium{
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
}

@media (max-width: 1279px){
  #page-home h1,
  .hero-grid h1{
    font-size: clamp(2rem, 3.6vw, 3.5rem) !important;
    max-width: 9.2ch !important;
  }
}

@media (max-width: 767px){
  #page-home h1,
  .hero-grid h1{
    font-size: clamp(1.95rem, 7vw, 2.9rem) !important;
    line-height: 1.0 !important;
    letter-spacing: -0.04em !important;
    max-width: 9.4ch !important;
  }

  #page-home p,
  .hero-grid p{
    font-size: 13px !important;
    line-height: 1.58 !important;
  }

  a#authBtn,
  .btn-premium.auth-cta,
  .btn-premium.auth-cta-thin{
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 11px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
  }

  a#authBtn i,
  .btn-premium.auth-cta i,
  .btn-premium.auth-cta-thin i{
    font-size: 11px !important;
  }
}


/* ===== FORCE 2 LINE HERO + LOWER POSITION ===== */
#page-home h1,
.hero-grid h1{
  max-width: 12ch !important; /* wider = 2 lines */
  margin-top: 20px !important; /* push down */
  font-size: clamp(2rem, 3.4vw, 3.6rem) !important;
}

@media (max-width: 767px){
  #page-home h1,
  .hero-grid h1{
    max-width: 14ch !important;
    margin-top: 16px !important;
    font-size: clamp(1.8rem, 6vw, 2.6rem) !important;
  }
}


/* ===== v16 desktop hero line break + support centering ===== */
.hero-main-title{
  line-height:.94;
  max-width:11ch;
}
.hero-title-break{
  display:block;
}
.premium-header .top-nav{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
#mobileMenu .mobile-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  text-align:center;
}
@media (min-width: 768px){
  #page-home .hero-grid > div:first-child{
    max-width:660px;
  }
}


/* ===== v17 desktop more dropdown ===== */
.more-options-dropdown-wrap{
  position:relative;
  display:flex;
  align-items:center;
}
.more-options-toggle{
  gap:8px;
}
.more-options-toggle i{
  font-size:16px;
  transition:transform .18s ease;
}
.more-options-dropdown-wrap.open .more-options-toggle i{
  transform:rotate(180deg);
}
.more-options-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:50%;
  transform:translateX(-50%);
  min-width:220px;
  padding:10px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(8,22,52,.98);
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  display:flex;
  flex-direction:column;
  gap:6px;
  z-index:120;
}
.more-options-item{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:0 14px;
  border-radius:12px;
  color:#f8fafc;
  text-decoration:none;
  font-weight:700;
  text-align:left;
}
.more-options-item i{
  width:18px;
  text-align:center;
  color:#38bdf8;
  font-size:17px;
}
.more-options-item:hover{
  background:rgba(56,189,248,.14);
}
@media (max-width: 767px){
  .more-options-dropdown-wrap{display:none !important;}
}

.js-dashboard-link.is-auth-hidden{
  display:none !important;
}


#dashboardBtn{display:none !important;}
body.is-logged-in #dashboardBtn{display:flex !important;}

/* Dropdown Dark Theme Fix */
.dropdown-menu{background:#0f172a !important;border:1px solid rgba(255,255,255,0.1);color:#fff;}
.dropdown-menu a{color:#e5e7eb !important;}
.dropdown-menu a:hover{background:rgba(255,255,255,0.05);color:#fff !important;}

/* Auth CTA visibility hard-fix */
#authBtn{display:none !important;}
body.is-guest #authBtn{display:inline-flex !important;}
body.is-logged-in #authBtn{display:none !important;}


/* ===== v20 updates moved into More Options for all users ===== */
body.is-logged-in #nav-updates,
body.is-logged-in #mobile-nav-updates,
body.is-guest #nav-updates,
body.is-guest #mobile-nav-updates{
  display:none !important;
}
body.is-guest #more-updates-link,
body.is-guest #desktop-more-updates-link,
body.is-logged-in #more-updates-link,
body.is-logged-in #desktop-more-updates-link{
  display:flex !important;
}


/* __V21A_MOBILE_ORDERS_SCROLL_AND_AVATAR_FIX__ */
#user-avatar{
  overflow:hidden;
  background:#e2e8f0;
}
#user-avatar img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

@media (max-width: 767px){
  #dash-view-orders .mt-4.overflow-auto.border.rounded-2xl.bg-white{
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;
  }
  #dash-view-orders table{
    min-width: 980px;
  }
  #dash-view-orders th,
  #dash-view-orders td{
    white-space: nowrap;
  }
}


/* product discount badge placement refresh */
.product-discount-badge{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 8px;
  border-radius:999px;
  background:linear-gradient(135deg,#ef4444,#f43f5e);
  color:#fff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.01em;
  line-height:1;
  box-shadow:0 8px 18px rgba(239,68,68,.22);
  border:1px solid rgba(255,255,255,.22);
}
.product-discount-badge i{font-size:10px;line-height:1;}
.product-discount-badge--corner{backdrop-filter:blur(3px);}
@media (max-width: 640px){
  .product-discount-badge{padding:3px 7px;font-size:9px;gap:3px;}
  .product-discount-badge i{font-size:9px;}
}

/* flash deal timer with days */
.flash-deal-timer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}
@media (max-width: 768px){
  .flash-deal-timer{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* ===== Mobile hero overflow fix ===== */
@media (max-width: 767px){
  #page-home{
    overflow-x: hidden !important;
  }

  #page-home .hero-grid{
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }

  #page-home .hero-grid > *{
    min-width: 0 !important;
    width: 100% !important;
  }

  #page-home .mt-6.grid.sm\:grid-cols-3{
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }

  #page-home .mt-4.flex.flex-wrap.gap-2,
  #page-home .mt-6.flex.flex-wrap.gap-3{
    width: 100% !important;
  }

  #page-home .tag,
  #page-home .stat,
  #page-home .btn-primary,
  #page-home .heroCard{
    max-width: 100% !important;
  }
}

/* ===== Mobile overflow hard fix (home + product details) ===== */
@media (max-width: 767px){
  html,
  body,
  #main-content,
  .page,
  #page-home,
  #page-product{
    overflow-x: hidden !important;
  }

  #page-home .hero-grid,
  #page-home .home-showcase-grid,
  #page-home #featured-products,
  #product-details,
  #product-details > div,
  #product-details .grid,
  #product-details .grid > *,
  #product-details .card,
  #product-details aside,
  #product-details .relative,
  #product-details .mt-4,
  #product-details .mt-5{
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #page-home .home-showcase-grid,
  #product-details > div{
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #featured-products{
    gap: 10px !important;
  }

  #featured-products > *{
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  #featured-products > * > *{
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #featured-products .truncate{
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  #featured-products .shrink-0{
    width: 100% !important;
    text-align: left !important;
  }

  #product-details > div{
    display: grid !important;
    gap: 16px !important;
  }

  #product-details aside{
    position: static !important;
  }

  #product-details .sticky{
    position: static !important;
    top: auto !important;
  }

  #product-details h1{
    font-size: clamp(1.7rem, 7.5vw, 2.3rem) !important;
    line-height: 1.08 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  #product-details img,
  #product-details video,
  #product-details canvas,
  #product-details iframe{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  #product-details [class*="max-h-"]{
    max-height: none !important;
  }

  #product-details .absolute.bottom-3.right-3{
    right: 10px !important;
    bottom: 10px !important;
    max-width: calc(100% - 20px) !important;
  }

  #product-details .mt-5.border-b.flex.gap-6,
  #product-details .flex.items-center.justify-between,
  #product-details .flex.items-end.gap-3,
  #product-details .flex.items-center.gap-2,
  #product-details .flex.items-center.gap-3{
    flex-wrap: wrap !important;
    min-width: 0 !important;
  }

  #product-details .whitespace-pre-line,
  #product-details .whitespace-pre-wrap{
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
}


/* ===== Product details full-banner image fix ===== */
#detail-main-image,
.detail-extra-image{
  width:100% !important;
  aspect-ratio:16/9 !important;
  height:auto !important;
  object-fit:contain !important;
  display:block !important;
  background:#f8fafc !important;
}

#product-details .relative > #detail-main-image{
  max-height:none !important;
}

@media (max-width: 767px){
  #detail-main-image,
  .detail-extra-image{
    aspect-ratio:16/9 !important;
  }
}

/* ==== UX + PERFORMANCE ENHANCEMENTS (Mar 2026) ==== */
.product-card-ajax{
  position:relative;
  isolation:isolate;
  will-change:transform, box-shadow;
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  border:1px solid rgba(148,163,184,.18);
}
.product-card-ajax::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(135deg, rgba(14,165,233,.14), rgba(99,102,241,.08) 45%, rgba(255,255,255,0) 72%);
  opacity:0;
  transition:opacity .28s ease;
  pointer-events:none;
}
.product-card-ajax::after{
  content:"";
  position:absolute;
  top:-20%;
  left:-120%;
  width:58%;
  height:140%;
  transform:skewX(-18deg);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  opacity:0;
  pointer-events:none;
}
.product-card-ajax:hover,
.product-card-ajax:focus-within{
  transform:translateY(-8px);
  box-shadow:0 20px 50px rgba(15,23,42,.13);
  border-color:rgba(14,165,233,.28);
}
.product-card-ajax:hover::before,
.product-card-ajax:focus-within::before{ opacity:1; }
.product-card-ajax:hover::after,
.product-card-ajax:focus-within::after{
  opacity:1;
  animation:productCardShine 1.15s ease forwards;
}
.product-card-ajax img{
  transition:transform .45s ease, filter .35s ease;
  transform-origin:center center;
}
.product-card-ajax:hover img,
.product-card-ajax:focus-within img{
  transform:scale(1.04);
  filter:saturate(1.05) contrast(1.02);
}
.product-card-ajax [data-open-product]{
  outline:none;
}
.product-card-ajax [data-open-product]:focus-visible,
.product-card-ajax button:focus-visible{
  box-shadow:0 0 0 3px rgba(14,165,233,.18);
  border-radius:18px;
}
@keyframes productCardShine{
  0%{ left:-120%; }
  100%{ left:185%; }
}

.product-card-skeleton,
.product-detail-skeleton__media{
  overflow:hidden;
}
.product-card-skeleton__media{
  height:160px;
  border-radius:0;
}
.product-detail-skeleton__media{
  aspect-ratio:16/9;
  width:100%;
}

#page-home,
#page-products,
#page-discounts,
#page-updates,
#page-services,
#page-tasks,
#page-dashboard{
  content-visibility:auto;
  contain-intrinsic-size:900px;
}

img[loading="lazy"]{
  content-visibility:auto;
}

@media (prefers-reduced-motion: reduce){
  .product-card-ajax,
  .product-card-ajax::before,
  .product-card-ajax::after,
  .product-card-ajax img,
  .skeleton{
    animation:none !important;
    transition:none !important;
  }
  .product-card-ajax:hover,
  .product-card-ajax:focus-within{
    transform:none;
  }
}

@media (max-width: 767px){
  .product-card-ajax:hover,
  .product-card-ajax:focus-within{
    transform:translateY(-4px);
  }
}


/* ===== Preview asset protection deterrents ===== */
.protected-asset-wrap{
  position:relative;
  overflow:hidden;
  border-radius:inherit;
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
.protected-asset-wrap::after{
  content:none !important;
  display:none !important;
}
.protected-asset-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to top, rgba(255,255,255,.08), rgba(255,255,255,0)),
    repeating-linear-gradient(-18deg, rgba(255,255,255,0) 0 110px, rgba(15,23,42,.06) 110px 112px, rgba(255,255,255,0) 112px 220px);
  pointer-events:none;
  z-index:1;
}
.protected-asset{
  -webkit-user-drag:none;
  user-select:none;
  -webkit-touch-callout:none;
  pointer-events:auto;
}
.product-card-media,
.detail-asset-wrap,
.live-search-protected,
.notification-protected{
  display:block;
}
.product-card-media::before,
.detail-asset-wrap::before,
.live-search-protected::before,
.notification-protected::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(255,255,255,.06), rgba(255,255,255,0));
  pointer-events:none;
  z-index:2;
}
.live-search-protected::after,
.notification-protected::after{
  font-size:9px;
  letter-spacing:.08em;
  top:auto;
  bottom:6px;
  left:-12%;
  right:-12%;
  transform:rotate(-14deg);
}
@media (max-width: 767px){
  .protected-asset-wrap::after{
    font-size:clamp(10px, 2.8vw, 16px);
    letter-spacing:.1em;
  }
}

/* Global copy lock (display content only) */
body, body *:not(input):not(textarea):not(select):not(option):not([contenteditable="true"]):not([contenteditable=""]):not(.allow-copy) {
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, select, option, [contenteditable="true"], [contenteditable=""] , .allow-copy {
  -webkit-user-select: text;
  user-select: text;
}


.top-nav-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;}


/* ==== Mobile free items card fix (Mar 2026) ==== */
@media (max-width: 640px){
  #products-grid,
  #latest-products,
  #top-selling-products{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .product-card-ajax,
  [data-product-card="1"]{
    border-radius: 18px !important;
    overflow: hidden !important;
    min-width: 0 !important;
  }

  [data-product-card="1"] .p-4{
    padding: 14px !important;
  }

  [data-product-card="1"] img,
  [data-product-card="1"] .bg-slate-50,
  .product-card-media{
    height: 170px !important;
  }

  [data-product-card="1"] .font-extrabold.text-base,
  [data-product-card="1"] button.min-w-0.text-left.font-extrabold.text-base.leading-snug{
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    min-height: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.35 !important;
  }

  [data-product-card="1"] .flex.items-start.justify-between.gap-3,
  [data-product-card="1"] .mt-3.flex.items-center.justify-between,
  [data-product-card="1"] .mt-2.flex.items-center.justify-between{
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  [data-product-card="1"] .shrink-0{
    width: 100% !important;
    text-align: left !important;
  }

  #page-products{
    padding-bottom: 120px !important;
  }
}


/* === Mobile free/product card overflow fix === */
@media (max-width: 768px){
  #products-grid,
  #discounts-grid,
  #updates-grid,
  #services-grid{
    grid-template-columns: 1fr !important;
    gap: .9rem !important;
    padding-bottom: calc(var(--mobile-dock-h, 84px) + 28px) !important;
  }

  [data-product-card="1"],
  .product-card-ajax{
    min-height: auto !important;
    overflow: hidden !important;
    border-radius: 20px !important;
  }

  [data-product-card="1"] img,
  [data-product-card="1"] .bg-slate-50,
  .product-card-ajax img{
    height: 165px !important;
    min-height: 165px !important;
    object-fit: cover !important;
  }

  [data-product-card="1"] .p-4,
  .product-card-ajax .p-4{
    padding: 1rem !important;
  }

  [data-product-card="1"] .text-base,
  .product-card-ajax .text-base{
    font-size: .96rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  [data-product-card="1"] .text-sm,
  .product-card-ajax .text-sm{
    font-size: .8rem !important;
  }

  .products-section,
  .free-items-section,
  #page-products,
  #page-free-items{
    padding-bottom: calc(var(--mobile-dock-h, 84px) + 34px) !important;
  }
}


/* === Free items mobile image visibility + same-width safety === */
.product-card-media,
.product-card-image{
  width: 100%;
  max-width: 100%;
  display: block;
}

.product-card--free-landing,
.product-card--free-landing .product-card-media,
.product-card--free-landing .product-card-image{
  min-width: 0;
  max-width: 100%;
}

.product-card--free-landing .product-card-media{
  background: #f8fafc;
}

.product-card--free-landing .product-card-image--contain{
  object-fit: contain !important;
  background: #f8fafc;
}

@media (max-width: 768px){
  #page-products,
  .free-items-section,
  #products-grid{
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  #page-products > .flex,
  #page-products > div,
  #page-products .card,
  #products-grid > *{
    min-width: 0;
    max-width: 100%;
  }

  .product-card--free-landing,
  .product-card--free-landing [data-open-product],
  .product-card--free-landing .product-card-media,
  .product-card--free-landing .product-card-image{
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-card--free-landing .product-card-media,
  .product-card--free-landing .product-card-image{
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
  }

  .product-card--free-landing .product-card-image--contain{
    object-fit: contain !important;
    padding: 6px;
  }
}


/* Pro polish patch */
.ash-hidden{display:none!important;}
#ratingSummaryCard.ash-hidden{display:none!important;}
#latestArticlesSection.ash-hidden{display:none!important;}
#google-area.ash-hidden{display:none!important;}
#security-2fa-card.ash-hidden{display:none!important;}
.card-empty-state,.empty-polished{border:1px solid #e2e8f0;border-radius:1rem;background:#fff;padding:1.1rem;color:#475569;}


.hero-main-title{
  display:flex;
  flex-direction:column;
  gap:.05em;
  line-height:.92;
}
.hero-main-title .hero-line{
  display:block;
  white-space:nowrap;
}
@media (min-width: 768px){
  .hero-main-title{
    font-size: clamp(2.8rem, 4.5vw, 4.6rem) !important;
    letter-spacing: -0.04em;
  }
}
@media (max-width: 767px){
  .hero-main-title .hero-line{
    white-space:normal;
  }
}
.brand-logo-shell img.dynamic-site-logo,
.site-loader-logo img.dynamic-site-logo{
  object-fit:contain;
}


.home-top-selling-section,
.home-reviews-section{
  position: relative;
}

.reviews-slider-shell{
  position: relative;
  margin-top: 1.25rem;
  padding: 0 3.25rem;
}

.reviews-slider-track{
  overflow: hidden;
}

.reviews-slider-row{
  display: flex;
  gap: 18px;
  transition: transform .35s ease;
  will-change: transform;
}

.home-review-card{
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  border-radius: 26px;
  border: 1px solid rgba(148,163,184,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.9));
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
}

.home-review-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.75rem;
}

.home-review-name{
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.home-review-product{
  margin-top: .25rem;
  font-size: .9rem;
  color: #64748b;
  font-weight: 600;
}

.home-review-badge{
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(16,185,129,.1);
  color: #047857;
  padding: .35rem .65rem;
  font-size: .72rem;
  font-weight: 800;
  border: 1px solid rgba(16,185,129,.18);
}

.home-review-stars{
  margin-top: .95rem;
  display:flex;
  gap:.18rem;
  color:#f59e0b;
  font-size:1rem;
}

.home-review-text{
  margin-top: .9rem;
  color: #334155;
  line-height: 1.7;
  font-size: .96rem;
  min-height: 92px;
}

.home-review-meta{
  margin-top: 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  color:#64748b;
  font-size:.82rem;
  font-weight:600;
}

.reviews-slider-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border:none;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  box-shadow: var(--shadow-soft);
  z-index:2;
  cursor:pointer;
}

.reviews-slider-arrow.prev{ left: 0; }
.reviews-slider-arrow.next{ right: 0; }

.reviews-slider-arrow:hover{
  opacity:.92;
}

@media (max-width: 1099px){
  .home-review-card{
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 767px){
  .reviews-slider-shell{
    padding: 0 2.65rem;
  }
  .home-review-card{
    flex-basis: 100%;
  }
  .home-review-text{
    min-height: 0;
  }
}


.site-notice-marquee-wrap{
  position: relative;
  z-index: 20;
  background: linear-gradient(90deg, rgba(15,23,42,.98), rgba(30,41,59,.96));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-notice-marquee-bar{
  display:flex;
  align-items:center;
  gap:1rem;
  min-height:44px;
}
.site-notice-label{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  color:#fff;
  font-weight:800;
  font-size:.82rem;
  padding:.45rem .8rem;
  border-radius:999px;
  background: rgba(56,189,248,.18);
  border:1px solid rgba(56,189,248,.2);
}
.site-notice-marquee{
  position:relative;
  overflow:hidden;
  width:100%;
  min-width:0;
}
.site-notice-marquee-text{
  display:inline-block;
  white-space:nowrap;
  color:#e2e8f0;
  font-weight:700;
  padding-left:100%;
  animation: siteNoticeMarquee 18s linear infinite;
}
@keyframes siteNoticeMarquee{
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (max-width: 767px){
  .site-notice-marquee-bar{ min-height:40px; gap:.7rem; }
  .site-notice-label{ font-size:.74rem; padding:.35rem .65rem; }
}


.site-notice-marquee-wrap{
  background:
    radial-gradient(circle at 0% 50%, rgba(56,189,248,.16), transparent 18%),
    linear-gradient(90deg, rgba(8,15,36,.98), rgba(15,23,42,.96), rgba(30,41,59,.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 30px rgba(2,6,23,.08);
}
.site-notice-marquee-bar{ min-height:52px; gap:1.1rem; }
.site-notice-label{
  background: linear-gradient(135deg, rgba(34,211,238,.24), rgba(59,130,246,.18));
  border: 1px solid rgba(125,211,252,.22);
  box-shadow: 0 10px 20px rgba(8,145,178,.12);
  color:#f8fafc;
  padding:.55rem .95rem;
}
.site-notice-marquee{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 999px;
  padding:.55rem 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.site-notice-marquee-text{
  font-size:.96rem;
  letter-spacing:.01em;
}

.video-card{
  border-radius:26px;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.9));
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.video-frame-wrap{
  position:relative;
  width:100%;
  padding-top:56.25%;
  background:linear-gradient(135deg, rgba(2,6,23,.04), rgba(56,189,248,.06));
}
.video-frame-wrap iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0; display:block;
}
#page-videos .video-card,
#home-video-section .video-card{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#page-videos .video-card:hover,
#home-video-section .video-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-strong);
  border-color:rgba(56,189,248,.24);
}


.home-review-reply{
  margin-top: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(125,211,252,.28);
  background: linear-gradient(180deg, rgba(240,249,255,.95), rgba(224,242,254,.88));
  padding: .85rem .95rem;
  color: #0f172a;
  font-size: .92rem;
  line-height: 1.65;
}
.home-review-reply-label{
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0369a1;
  margin-bottom: .3rem;
}
.home-review-product{ display:none; }


.video-frame-wrap video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
  background:#000;
}


#home-video-grid,
#videos-page-grid{
  align-items: start;
}

.video-card{
  min-width: 0;
}


.video-card{
  min-width: 0;
  border-radius: 26px;
  border: 1px solid rgba(148,163,184,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.9));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.video-card-body{
  padding: 1rem 1rem 1.1rem;
}
.video-card-title{
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 800;
  color: #0f172a;
}
.video-card-description{
  margin-top: .45rem;
  color: #64748b;
  line-height: 1.65;
  font-size: .93rem;
}
.video-item-admin-card textarea,
.video-item-admin-card input,
.video-item-admin-card select{
  width: 100%;
}

/* ===== Home background premium refresh ===== */
:root{
  --page-bg: #eaf2ff;
  --page-bg-soft: #f7fbff;
  --page-bg-accent: rgba(56,189,248,.10);
  --page-bg-accent-2: rgba(91,53,255,.08);
}

body{
  background:
    radial-gradient(circle at top left, var(--page-bg-accent) 0%, transparent 28%),
    radial-gradient(circle at top right, var(--page-bg-accent-2) 0%, transparent 24%),
    linear-gradient(180deg, #f9fcff 0%, var(--page-bg) 42%, #edf4ff 100%) !important;
  color: #0f172a;
}

#page-home{
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.38));
  border-radius: 32px;
}

#page-home::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 18%, rgba(125,211,252,.18), transparent 20%),
    radial-gradient(circle at 88% 10%, rgba(147,197,253,.14), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0));
  z-index: 0;
}

#page-home > *{
  position: relative;
  z-index: 1;
}

/* cards look slightly more premium on this background */
.heroCard,
.home-panel,
.card,
.stat,
.market-stat-card,
.home-category-card,
[data-product-card="1"]{
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92)) !important;
  border-color: rgba(148,163,184,.14) !important;
  box-shadow: 0 18px 42px rgba(15,23,42,.08) !important;
}

/* keep mobile clean */
@media (max-width: 767px){
  body{
    background:
      radial-gradient(circle at top left, rgba(56,189,248,.08) 0%, transparent 26%),
      linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%) !important;
  }

  #page-home{
    border-radius: 24px;
  }

  #page-home::before{
    background:
      radial-gradient(circle at 18% 10%, rgba(125,211,252,.14), transparent 22%),
      linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  }
}
