.product-stock.stock-in {
  color: #4caf50;
}

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

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

.product-wrapper {
  margin-top: 40px;
}

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

.global-bg-grid {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
  background-size: 50px 50px !important;
  background-position: center center !important;
  mask-image: radial-gradient(circle at 50% 30%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 10%, transparent 80%);
  z-index: 9999;
  pointer-events: none;
}

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

.product-glass-bg {
  display: none !important;
}

.product-image-wrapper>img,
.product-image-wrapper>.product-img-placeholder {
  position: relative;
  z-index: 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: center !important;
  margin-bottom: 10px !important;
  flex-direction: column;
  align-items: center;
}

.section-title h2 {
  font-size: clamp(28px, 6vw, 42px) !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  text-align: center !important;
  width: 100% !important;
  background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent !important;
}

.section-subtitle {
  text-align: center !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: center !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

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

body {
  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;
  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;
}

@media (max-width: 768px) {
  .hero-badge {
    margin-top: 1.5rem;
    padding: 0.4rem 1rem;
    gap: 0.5rem;
    font-size: 0.65rem;
  }
}

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


.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));
}

.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);
  }
}

.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;
}

.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 {
  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);
}

.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);
  }
}


.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;
}

.tickets-page {
  margin-top: 40px;
}

.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;
}


.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-wrapper {
  margin: 0.5rem 0 2rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.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.8rem 1.8rem;
  border-radius: 50px;
  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;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.hero-subtitle-glass:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Global Badge Enhancement */
.hero-badge {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 12px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .hero-subtitle-glass {
    font-size: 0.85rem !important;
    padding: 0.65rem 1.25rem !important;
    letter-spacing: 0.03em;
    max-width: 95%;
    text-align: center;
    justify-content: center;
  }

  .hero-subtitle-wrapper {
    margin: 0.25rem 0 1.25rem;
  }

  .hero-hud-connector {
    height: 24px;
  }
}



@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 {
  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-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;
}


@media (min-width: 1600px) {

  .container,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1540px !important;
  }

  html {
    font-size: 17px;
  }

  .hero-title {
    font-size: 5rem !important;
  }

  .hero-subtitle-text {
    font-size: 1.3rem !important;
  }

  .description,
  .group-desc-short {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .faq-wrapper {
    max-width: 1250px !important;
  }

  .groups-grid {
    max-width: 1400px !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .group-item {
    width: calc(25% - 1.875rem) !important;
  }



  .feedbacks .col-xl-3 {
    flex: 0 0 auto !important;
    width: 20% !important;
  }

  /* Scale products to 4 per row on massive screens */
  .products>* {
    flex: 0 0 auto !important;
    width: 25% !important;
  }

  /* Center the product rows so incomplete rows look balanced */
  .row.products {
    justify-content: center;
  }

  /* Protect products inside modals (like Groups) so they don't get squished */
  .modal .products>* {
    width: 25% !important;
    /* 4 per row inside modals */
  }

  .product-wrapper .thumbnails {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

@media (min-width: 1900px) {

  .container,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1750px !important;
  }

  html {
    font-size: 18px;
  }

  .hero-title {
    font-size: 6rem !important;
  }

  .faq-wrapper {
    max-width: 1400px !important;
  }

  .groups-grid {
    max-width: 1700px !important;
  }

  .group-item {
    width: calc(20% - 2rem) !important;
  }



  .feedbacks .col-xl-3 {
    width: 16.666% !important;
  }


}

::selection {
  background-color: var(--cl-accent, #8b83ff);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--cl-accent, #8b83ff);
  color: #ffffff;
}