html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body, input, textarea, select, button, ::placeholder {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Times New Roman", Times, serif !important;
}
.font-en {
  font-family: "Times New Roman", Times, serif !important;
}
body.font-en {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Times New Roman", Times, serif !important;
}
.font-bn {
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.font-bn :not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: inherit;
}
.fa, .fas, .far, .fa-solid, .fa-regular {
  font-family: "Font Awesome 6 Free" !important;
}
.fab, .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
}
.fa, .fas, .fa-solid {
  font-weight: 900 !important;
}
.far, .fa-regular {
  font-weight: 400 !important;
}
img, video, canvas, svg {
  max-width: 100%;
}
table {
  min-width: 720px;
}
.break-anywhere, .break-all, td, th, p, a, span, div {
  overflow-wrap: anywhere;
}
input, textarea, select, button {
  max-width: 100%;
}
textarea {
  resize: none;
}
.product-card-compact {
  border-radius: 0.875rem;
  padding: 1rem;
}
.order-alert {
  border-radius: 0.875rem;
  border: 1px solid #fecaca;
  background: #fff7ed;
  color: #9a3412;
  padding: 0.875rem 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 10px 26px rgba(154, 52, 18, 0.10);
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .p-10 { padding: 1.25rem !important; }
  .rounded-3xl { border-radius: 1rem !important; }
  table { min-width: 680px; }
}
.product-card-mini {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 0.875rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.875rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card-mini:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}
.stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.66rem;
  line-height: 1;
  font-weight: 700;
}
.stock-badge.is-stock { background: #dcfce7; color: #15803d; }
.stock-badge.is-out { background: #fee2e2; color: #b91c1c; }
.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
}
.modal-shell.is-open {
  display: flex;
  animation: modalFade .16s ease-out;
}
.modal-panel {
  width: min(100%, 42rem);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  animation: modalRise .18s ease-out;
}
.modal-close {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
}
.modal-close:hover { background: #fee2e2; color: #b91c1c; }
.product-title-tight {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
i[class^="fa-"], i[class*=" fa-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.balance-alert-shell {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(8px);
}
.balance-alert-shell.is-open { display: flex; }
.balance-alert-box {
  width: min(100%, 24rem);
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
  border: 1px solid #fed7aa;
}
/* Refined product ordering experience */
.service-grid-compact,
main > .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3.gap-3 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)) !important;
  gap: 14px !important;
  align-items: start !important;
}
.product-card-mini {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-height: 138px !important;
  padding: 13px !important;
  border: 1px solid #dbeafe !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07) !important;
  overflow: hidden !important;
}
.product-card-mini::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #22c55e);
}
.product-card-mini:hover {
  transform: translateY(-2px) !important;
  border-color: #93c5fd !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .14) !important;
}
.product-card-mini.bg-gray-900,
.product-card-mini.bg-slate-900 {
  background: linear-gradient(180deg, #101827 0%, #0f172a 100%) !important;
  border-color: rgba(147, 197, 253, .28) !important;
  color: #fff !important;
}
.product-card-mini.bg-gray-900::before,
.product-card-mini.bg-slate-900::before {
  background: linear-gradient(90deg, #38bdf8, #818cf8, #22c55e);
}
.product-title-tight {
  min-height: 34px !important;
  color: inherit;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
}
.product-card-mini .text-base.font-bold,
.product-card-mini .text-base.font-extrabold {
  font-size: 14px !important;
  line-height: 1.15 !important;
}
.stock-badge {
  flex: 0 0 auto;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.stock-badge.is-stock,
.stock-badge.in-stock {
  color: #047857 !important;
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
}
.stock-badge.is-out,
.stock-badge.out-stock {
  color: #b91c1c !important;
  background: #fee2e2 !important;
  border-color: #fecaca !important;
}
.demo-button,
.product-card-mini button[onclick^="openModal('demo_"],
.product-card-mini a[href*="wa.me"] {
  min-height: 34px;
  border-radius: 11px !important;
  font-weight: 900 !important;
}
.product-card-mini button[onclick^="openModal('demo_"] {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  padding: 7px 11px !important;
}
.product-card-mini button[onclick^="openModal('demo_"]:hover {
  background: #dbeafe !important;
}
.product-card-mini button[onclick^="openModal('order_"] {
  min-height: 38px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #0f172a, #1d4ed8) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(37, 99, 235, .16) !important;
}
.product-card-mini.bg-gray-900 button[onclick^="openModal('order_"] {
  background: #ffffff !important;
  color: #0f172a !important;
}
.product-card-mini button:disabled {
  background: #e5e7eb !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}
.modal-shell {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
  background: rgba(2, 6, 23, .68) !important;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  overflow-y: auto !important;
}
.modal-shell.is-open {
  display: flex !important;
  animation: modalFade .16s ease-out;
}
.modal-panel {
  width: min(100%, 46rem) !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  background: #fff !important;
  color: #0f172a !important;
  border-radius: 18px !important;
  border: 1px solid rgba(219, 234, 254, .95) !important;
  box-shadow: 0 30px 90px rgba(2, 6, 23, .38) !important;
  animation: modalRise .18s ease-out;
}
.modal-panel > .flex.items-center.justify-between.border-b.p-4 {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 14px 16px !important;
}
.modal-panel h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.25 !important;
}
.modal-close {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 auto;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-size: 22px !important;
  line-height: 1 !important;
}
.modal-close:hover {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}
.modal-panel .p-4 {
  padding: 16px !important;
}
.modal-panel img,
.demo-content img {
  max-width: 100% !important;
  max-height: 72vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: 14px !important;
}
.modal-panel input,
.modal-panel textarea,
.modal-panel select {
  width: 100% !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 13px !important;
  background: #fff !important;
  padding: 12px 14px !important;
  line-height: 1.45 !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02) !important;
}
.modal-panel input:focus,
.modal-panel textarea:focus,
.modal-panel select:focus {
  outline: none !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14) !important;
}
.modal-panel textarea {
  resize: none !important;
  min-height: 140px;
  max-height: 260px;
  overflow-y: auto;
  white-space: pre-wrap;
}
.modal-panel label {
  color: #334155 !important;
  letter-spacing: .02em !important;
}
.modal-panel .bg-yellow-50,
.modal-panel .bg-blue-50 {
  border-radius: 14px !important;
  border-width: 1px !important;
}
.modal-panel form > .flex.gap-2.pt-1 {
  position: sticky;
  bottom: -16px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), #fff 40%);
  padding-top: 12px !important;
  padding-bottom: 2px;
}
.modal-panel form > .flex.gap-2.pt-1 button {
  min-height: 42px;
  border-radius: 13px !important;
}
.order-alert {
  max-width: 100%;
  border-radius: 14px !important;
}
@media (max-width: 640px) {
  .service-grid-compact,
  main > .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3.gap-3 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .product-card-mini {
    min-height: 124px !important;
    padding: 12px !important;
  }
  .modal-shell {
    align-items: flex-start !important;
    padding: 10px !important;
  }
  .modal-panel {
    max-height: 92vh !important;
    border-radius: 16px !important;
  }
  .modal-panel > .flex.items-center.justify-between.border-b.p-4 {
    padding: 12px !important;
  }
}