/* Stock status styles for product cards */
.product-stock.stock-in {
  color: #4caf50;
}

.product-stock.stock-out {
  color: #f44336;
  font-weight: bold;
}

.product-stock.stock-unlimited {
  color: #2196f3;
}

/* Move product page content down below navbar */
.product-wrapper {
  margin-top: 40px;
}

body.customer-bg {
  background: var(--bs-body-bg) !important;
}

.product-image-wrapper {
  position: relative;
}

.product-glass-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.product-image-wrapper>img,
.product-image-wrapper>.product-img-placeholder {
  position: relative;
  z-index: 1;
  top: -1%;
}

.glassmorphism.product-glass-bg {
  padding: 0 !important;
  border-radius: 16px;
}

.glassmorphism {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  transition: box-shadow 0.3s;
  overflow: hidden;
}

.glassmorphism img,
.glassmorphism .product-img-placeholder {
  border-radius: 12px;
  width: 100%;
  height: auto;
  display: block;
}

.glassmorphism:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* =====================
   Glassmorphism Card Effect
   ===================== */
.glassmorphism {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  transition: box-shadow 0.3s;
}

.glassmorphism:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.section-title {
  width: 100% !important;
  display: flex !important;
  justify-content: flex-start !important;
  margin-bottom: 10px !important;
}

.section-title h2 {
  color: #FFFFFF !important;
  font-size: clamp(28px, 6vw, 42px) !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  text-align: left !important;
  width: 100% !important;
}

.section-subtitle {
  text-align: left !important;
  margin-bottom: 1rem !important;
}

.section-subtitle p {
  color: #a0a0a0 !important;
  font-size: clamp(14px, 3.5vw, 16px) !important;
  line-height: 1.6 !important;
  text-align: left !important;
  max-width: 800px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  /* Prevent horizontal scrolling without causing nested vertical scrollbars */
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar:horizontal {
  height: 0 !important;
  display: none !important;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0.05) 100%);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.3);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.hero-badge {
  margin-top: 56px;
  /* Move badge down below navbar/announcement */
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  margin-bottom: 1rem !important;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: none !important;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

/* =====================
   Maintenance Page
   ===================== */

.maintenance {
  background: #030303;
}

.maintenance-bottom-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #030303, transparent 50%, rgba(3, 3, 3, 0.8));
  pointer-events: none;
  z-index: 1;
}

/* Logo */
.maintenance-logo {
  opacity: 0;
  animation: maintenanceFadeUp 0.8s ease 0.1s forwards;
}

.maintenance-logo img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.15));
}

/* Status badge */
.maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  animation: maintenanceFadeUp 0.8s ease 0.1s forwards;
}

.maintenance-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  flex-shrink: 0;
  animation: maintenancePulse 1.6s ease-in-out infinite;
}

@keyframes maintenancePulse {

  0%,
  100% {
    box-shadow: 0 0 6px #f59e0b;
  }

  50% {
    box-shadow: 0 0 18px #f59e0b, 0 0 30px rgba(245, 158, 11, 0.4);
  }
}

/* Icon wrapper */
.maintenance-icon-wrapper {
  width: 104px;
  height: 104px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.18), rgba(0, 212, 255, 0.1));
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: 50%;
  color: #8b83ff;
  box-shadow: 0 0 45px rgba(108, 99, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  animation: maintenanceFadeUp 0.8s ease 0.3s forwards;
}

/* Gradient accent text */
.maintenance-accent {
  background: linear-gradient(135deg, #8b83ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.maintenance-title-badge .maintenance-accent {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffffff;
  background-clip: unset;
  color: #ffffff;
}

/* Maintenance title badge */
.maintenance-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 3.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  animation: maintenanceFadeUp 0.8s ease 0.5s forwards, maintenanceTitlePulse 3s ease-in-out 1.3s infinite;
  box-shadow: 0 0 0 1px rgba(139, 131, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Staggered fade-up animations */
.maintenance-title-glow {
  color: #ffffff;
  opacity: 0;
  animation: maintenanceFadeUp 0.8s ease 0.5s forwards, maintenanceTitlePulse 3s ease-in-out 1.3s infinite;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

@keyframes maintenanceTitlePulse {

  0%,
  100% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1), 0 0 40px rgba(139, 131, 255, 0.1);
  }

  50% {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 0 60px rgba(139, 131, 255, 0.35), 0 0 90px rgba(0, 212, 255, 0.15);
  }
}

.maintenance h1 {
  opacity: 0;
  animation: maintenanceFadeUp 0.8s ease 0.5s forwards;
}

.maintenance-lead {
  opacity: 0;
  color: rgba(255, 255, 255, 0.6) !important;
  animation: maintenanceFadeUp 0.8s ease 0.7s forwards !important;
}

@keyframes maintenanceFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   End Maintenance Page
   ===================== */

.hero-badge span {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

/* =====================
   Page Transitions
   ===================== */

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}




.customer-invoices-enhanced {
  margin-top: 60px;
  /* Moves Order History and content down below navbar. Adjust as needed. */
}

.tickets-page {
  margin-top: 40px;
  /* Move tickets content up, closer to navbar. */
}

.ticket-create-modal-enhanced {
  z-index: 11000 !important;
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
}

.ticket-create-modal-enhanced .modal-dialog {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.ticket-create-modal-enhanced .modal-content {
  max-height: 96vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.55), 0 1.5px 8px 0 rgba(0, 0, 0, 0.18);
  background: #11181f;
  border-radius: 1rem;
  border: 1.5px solid #222831;
  position: relative;
}

body.modal-open,
html:has(body.modal-open) {
  overflow: hidden !important;
}


/* =====================
   Glinting Buy Now Button
   ===================== */
.btn-glint {
  position: relative;
  overflow: hidden;
}

.btn-glint::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 30%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0.2) 70%,
      transparent 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  animation: button-glint 4s infinite ease-in-out;
}

@keyframes button-glint {
  0% {
    left: -150%;
  }

  25% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

/* =====================
   Hero Subtitle Glass & Typing
   ===================== */
.hero-subtitle-wrapper {
  margin: 0.5rem 0 2rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* =====================
   Hero HUD Visuals
   ===================== */
.hero-hud-connector {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.hero-subtitle-glass {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  /* Sharper for tactical look */
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 90%;
  margin: 0;
  color: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}

/* Tactical HUD Brackets - Static Accents */
.hud-brackets::before,
.hud-brackets::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.hud-brackets::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.hud-brackets::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

@keyframes glass-shimmer {
  0% {
    left: -150%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  40% {
    left: 150%;
    opacity: 1;
  }

  50% {
    left: 150%;
    opacity: 0;
  }

  100% {
    left: 150%;
    opacity: 0;
  }
}

.typing-cursor {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  background: #ffffff;
  margin-left: 4px;
  animation: cursor-blink 0.6s infinite alternate;
  box-shadow:
    0 0 10px #ffffff,
    0 0 20px rgba(255, 255, 255, 0.4);
}

@keyframes cursor-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* =====================
   Hero Stats Glass Cards
   ===================== */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
  justify-content: center;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 240px;
  flex: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.stat-icon-wrapper {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.stat-icon-wrapper svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    width: 100%;
    max-width: 320px;
  }
}

/* SEARCH ENHANCEMENTS */
.search-modal .modal-content {
  background: rgba(10, 10, 10, 0.6) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  overflow: hidden;
}

.search-modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.02);
}

.search-modal .searchbar input {
  background: transparent !important;
  border: none !important;
  padding: 1.5rem 1.5rem 1.5rem 4rem !important;
  font-size: 1.15rem !important;
  color: #fff !important;
  box-shadow: none !important;
}

.search-modal .searchbar input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.search-modal .searchbar svg {
  left: 1.5rem !important;
  width: 24px !important;
  height: 24px !important;
  fill: rgba(255, 255, 255, 0.5) !important;
}

.search-modal .modal-body {
  padding: 1.5rem !important;
}

.search-modal .product {
  padding: 1rem !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s ease !important;
  margin-bottom: 0.75rem !important;
}

.search-modal.modal {
  overflow-y: hidden !important;
}

.search-modal .product:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px) !important;
}