/*
   SKYLINE BLACK-OPS LUXE
   A total redesign of the website's visual language.
   Cohesive Ultra-Glassmorphism across all elements.
*/

:root {
  --op-red: #ff4058;
  --op-red-rgb: 255, 64, 88;
  --op-black: #050505;
  --op-border: rgba(255, 255, 255, 0.08);
  --op-glass: rgba(0, 0, 0, 0.75);
  --op-depth: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------ */
/* GLOBAL ENGINE: MONOCHROME GLASS                                    */
/* ------------------------------------------------------------------ */
.sa-product-card,
.sa-navbar-shell,
.sa-categories-item,
.sa-footer,
.discord-community-widget--hero,
.sa-navbar-link {
  backdrop-filter: blur(25px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(25px) saturate(1.2) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid var(--op-border) !important;
}

/* ------------------------------------------------------------------ */
/* PRODUCT CARDS: THE "STEALTH" LOOK                                  */
/* ------------------------------------------------------------------ */
.sa-product-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
  min-height: 280px !important;

  background: linear-gradient(
    180deg,
    rgba(16, 16, 16, 0.9) 0%,
    rgba(5, 5, 5, 0.97) 100%
  ) !important;
  box-shadow: var(--op-depth) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 20px !important;
  padding: 0 !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s ease, box-shadow 0.5s ease !important;
  position: relative;
  overflow: hidden !important;
  z-index: 1;
  will-change: transform;
}

/* FLUSH IMAGE — no inset box, no own border/bg, clipped by the card's radius */
.sa-product-card .sa-product-card-media {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

.sa-product-card .sa-product-card-media img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border: none !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  transform: scale(1.001) !important;
  filter: saturate(1.08) contrast(1.04) !important;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease !important;
}

/* Cinematic fade: image melts into the card body */
.sa-product-card .sa-product-card-media::after {
  content: '' !important;
  position: absolute !important;
  inset-inline: 0 !important;
  bottom: 0 !important;
  height: 46% !important;
  background: linear-gradient(to top,
    rgba(7, 7, 8, 0.95) 0%,
    rgba(7, 7, 8, 0.45) 45%,
    transparent 100%) !important;
  z-index: 1 !important;
  pointer-events: none;
}

/* Badge (NEW! etc.) sits above the fade */
.sa-product-card .sa-product-card-media span,
.sa-product-card .sa-product-card-media [class*="rounded-badge"] {
  z-index: 3 !important;
}

/* TOP ACCENT LINE — lights up on hover */
.sa-product-card .sa-product-card-media::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 12% !important;
  right: 12% !important;
  height: 2px !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(var(--op-red-rgb), 0.9) 50%,
    transparent 100%) !important;
  box-shadow: 0 0 14px rgba(var(--op-red-rgb), 0.8) !important;
  opacity: 0 !important;
  transform: scaleX(0.4) !important;
  transform-origin: center !important;
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 4 !important;
  pointer-events: none;
}
.sa-product-card:hover .sa-product-card-media::before {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

/*
   FULL-BLEED INNER GLOW:
   inset:0 + border-radius:inherit so the red wash fills the ENTIRE card
   (clipped to its rounded rect) instead of a fixed 220x120 square blob.
*/
.sa-product-card::after {
  content: '' !important;
  position: absolute;
  inset: 0 !important;
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  bottom: auto !important;
  background: radial-gradient(120% 78% at 50% 108%,
    rgba(var(--op-red-rgb), 0.16) 0%,
    rgba(var(--op-red-rgb), 0.06) 45%,
    transparent 72%) !important;
  border-radius: inherit !important;
  filter: blur(14px) !important;
  opacity: 0.85 !important;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease !important;
}

/*
   CONTENT AREA:
*/
.sa-product-card > div:last-child {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  flex-grow: 1 !important;
  height: auto !important;
  width: 100% !important;
  position: relative !important;
  z-index: 10 !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 1rem !important;

  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(var(--op-red-rgb), 0.03) 100%
  ) !important;
}

/* Product Title - Tightened */
.sa-product-card .sa-product-card-title {
  margin-bottom: 1rem !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 20 !important;
  font-size: 1.1rem !important;
  padding-top: 0.25rem !important;
}

/*
   The Bottom Row:
*/
.sa-product-card .flex.items-end,
.sa-product-card .flex.items-center.justify-between {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
  margin-top: auto !important;
  padding-top: 0.75rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/*
   THE BUY BUTTON (legacy markup: an <a> styled as a red cart tile)
*/
.sa-product-card a[href*="/product/"] {
  background: var(--op-red) !important;
  color: white !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 0 12px rgba(var(--op-red-rgb), 0.3) !important;
  text-decoration: none !important;
  position: relative !important;
  z-index: 30 !important;
}

.sa-product-card a[href*="/product/"]:hover {
  transform: scale(1.1) !important;
  filter: brightness(1.2) !important;
  box-shadow: 0 0 18px rgba(var(--op-red-rgb), 0.5) !important;
}

.sa-product-card a[href*="/product/"]::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293a1 1 0 00.707 1.707L8 17h8l2-2'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Price and Stock arrangement */
.sa-product-card .sa-product-card-price {
  color: var(--op-red) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 800 !important;
  text-shadow: 0 0 8px rgba(var(--op-red-rgb), 0.3) !important;
  font-size: 1rem !important;
  background: transparent !important;
}

/* Remove backgrounds from stock counter */
.sa-product-card-stock,
.sa-product-card-stock span,
.sa-product-card-stock *,
.sa-product-card-stock div {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 0.7rem !important;
  opacity: 0.6 !important;
}

/* Subtle top glow sweep on hover */
.sa-product-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: radial-gradient(130% 90% at 50% -12%,
    rgba(var(--op-red-rgb), 0.14) 0%,
    rgba(var(--op-red-rgb), 0.04) 42%,
    transparent 68%) !important;
  border-radius: inherit !important;
  filter: blur(14px) !important;
  transition: opacity 0.5s ease !important;
  pointer-events: none;
  z-index: 0;
}

.sa-product-card:hover::before {
  opacity: 1 !important;
}

.sa-product-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(var(--op-red-rgb), 0.42) !important;
  box-shadow:
    0 0 36px rgba(var(--op-red-rgb), 0.18),
    0 18px 44px rgba(0, 0, 0, 0.5),
    var(--op-depth) !important;
}

/*
   ARROW / BUY CONTROL (new markup: span.rounded-btn with arrow):
   ghost circle at rest → solid red with glow + nudge on hover
*/
.sa-product-card .rounded-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cfcfcf !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 10px !important;
  position: relative !important;
  z-index: 30 !important;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.3s ease,
    box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  backdrop-filter: blur(6px) !important;
}
.sa-product-card .rounded-btn svg {
  stroke: currentColor !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.sa-product-card:hover .rounded-btn {
  background: var(--op-red) !important;
  border-color: rgba(var(--op-red-rgb), 0.9) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(var(--op-red-rgb), 0.5) !important;
  transform: scale(1.08) !important;
}
.sa-product-card:hover .rounded-btn svg {
  transform: translateX(2px) !important;
}

/* HOVER CHOREOGRAPHY — image slow zoom + extra punch */
.sa-product-card:hover .sa-product-card-media img {
  transform: scale(1.07) !important;
  filter: saturate(1.18) contrast(1.08) brightness(1.05) !important;
}

/* Price pulses its glow on hover */
.sa-product-card:hover .sa-product-card-price {
  text-shadow: 0 0 14px rgba(var(--op-red-rgb), 0.6) !important;
}

/* Fix for status chips */
.sa-product-card-status {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  z-index: 30 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ------------------------------------------------------------------ */
/* NAVBAR: PREMIUM BLACK-OPS COMMAND BAR                              */
/* ------------------------------------------------------------------ */
/* Floating pill: shell shrinks to its content (logo → cart) and is
   centered; edges dissolve smoothly via a soft horizontal mask. */
nav[class*="sa-navbar"] .sa-navbar-shell,
div[class*="sa-navbar-shell"] {
  width: fit-content !important;
  margin: 0 auto !important;
  background:
    radial-gradient(80% 220% at 50% 135%,
      rgba(var(--op-red-rgb), 0.16) 0%,
      rgba(var(--op-red-rgb), 0) 55%),
    linear-gradient(180deg, rgba(7, 7, 8, 0.95) 0%, rgba(5, 5, 5, 0.88) 100%) !important;
  backdrop-filter: blur(28px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.4) !important;
  border-radius: 999px !important;
  padding: 0.6rem 1.6rem !important;
  border: none !important;
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.55),
    0 4px 30px rgba(var(--op-red-rgb), 0.14) !important;
  position: relative !important;
  overflow: hidden !important;
/* Fixed-size edge fade (px) so content near the ends never dims */
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%) !important;
  mask-image: linear-gradient(90deg,
    transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Red hairline strip along the top edge of the shell */
nav[class*="sa-navbar"] .sa-navbar-shell::before,
div[class*="sa-navbar-shell"]::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 12% !important;
  right: 12% !important;
  height: 1.5px !important;
  background: linear-gradient(90deg,
    rgba(var(--op-red-rgb), 0) 0%,
    rgba(var(--op-red-rgb), 0.85) 50%,
    rgba(var(--op-red-rgb), 0) 100%) !important;
  pointer-events: none !important;
  opacity: 0.75 !important;
  transition: opacity 0.4s ease !important;
  border-radius: 2px !important;
}
nav[class*="sa-navbar"]:hover .sa-navbar-shell::before,
div[class*="sa-navbar-shell"]:hover::before {
  opacity: 1 !important;
}

nav[class*="sa-navbar"]:hover .sa-navbar-shell,
div[class*="sa-navbar-shell"]:hover {
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.7),
    0 6px 36px rgba(var(--op-red-rgb), 0.22) !important;
}

/* ----- Brand ----- */
.sa-navbar-logo .font-heading,
.sa-navbar-logo span {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  color: #fff !important;
  font-size: 15px !important;
}
.sa-navbar-logo img {
  height: 30px !important;
  border-radius: 8px !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)) !important;
}

/* ----- Navigation Links ----- */
a[class*="sa-navbar-link"] {
  background: transparent !important;
  color: #b8b8b8 !important;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif !important;
  text-transform: uppercase !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  border-radius: 10px !important;
  padding: 0.55rem 0.95rem !important;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease !important;
  border: 1px solid transparent !important;
}

a[class*="sa-navbar-link"]:hover {
  color: #fff !important;
  background: rgba(var(--op-red-rgb), 0.10) !important;
  border-color: rgba(var(--op-red-rgb), 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

a[class*="sa-navbar-link"][data-active='true'],
a[class*="sa-navbar-link"][aria-current="page"] {
  color: #fff !important;
  background: rgba(var(--op-red-rgb), 0.16) !important;
  border-color: rgba(var(--op-red-rgb), 0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 18px rgba(var(--op-red-rgb), 0.22) !important;
  text-shadow: 0 0 10px rgba(var(--op-red-rgb), 0.35) !important;
}

/* ----- Action Buttons (Cart, Account, Currency, Search, Scheme) ----- */
.sa-navbar .rounded-btn,
.sa-navbar-cart {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #d5d5d5 !important;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.sa-navbar .rounded-btn:hover,
.sa-navbar-cart:hover {
  background: rgba(var(--op-red-rgb), 0.10) !important;
  border-color: rgba(var(--op-red-rgb), 0.35) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  transform: none !important;
}

/* Cart icon gets a slightly stronger hit since it's the main CTA */
.sa-navbar-cart {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}
.sa-navbar-cart:hover {
  background: linear-gradient(180deg, rgba(var(--op-red-rgb), 0.22) 0%, rgba(var(--op-red-rgb), 0.10) 100%) !important;
  border-color: rgba(var(--op-red-rgb), 0.55) !important;
  box-shadow: 0 4px 16px rgba(var(--op-red-rgb), 0.22) !important;
}
.sa-navbar-cart svg {
  stroke: #fff !important;
}

/* Cart badge */
.sa-navbar-cart .rounded-badge,
.sa-navbar-cart span[class*="rounded-badge"] {
  background: var(--op-red) !important;
  border: 1.5px solid #0a0a0a !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(var(--op-red-rgb), 0.5) !important;
}

/* Currency selector pill */
.sa-navbar .currency-selector > button {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #e5e5e5 !important;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}
.sa-navbar .currency-selector > button:hover {
  background: rgba(var(--op-red-rgb), 0.10) !important;
  border-color: rgba(var(--op-red-rgb), 0.35) !important;
  color: #fff !important;
}

/* Hamburger on mobile */
.sa-navbar button[aria-label="Menu"] {
  border-radius: 10px !important;
}

/* Mobile dropdown */
nav[class*="sa-navbar"] [x-ref="mobileMenu"] {
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.96) 0%, rgba(10, 10, 10, 0.96) 100%) !important;
  border-color: rgba(var(--op-red-rgb), 0.28) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 28px rgba(var(--op-red-rgb), 0.12) !important;
}

/* ------------------------------------------------------------------ */
/* DISCORD COMMUNITY WIDGET: CLEAN STEALTH CARD                       */
/* ------------------------------------------------------------------ */
/* Root card. Only the exact .discord-community-widget--hero class is
   targeted here (no [class*=]substring selectors), so the label and
   helper divs never get their own background plates. */
.discord-community-widget--hero {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 400px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 22px 10px 10px !important;
  background:
    linear-gradient(180deg,
      rgba(var(--op-red-rgb), 0.22) 0%,
      rgba(38, 9, 13, 0.55) 110px,
      rgba(5, 5, 6, 0.4) 220px,
      rgba(5, 5, 6, 0) 100%) !important;
  border: 1px solid rgba(var(--op-red-rgb), 0.35) !important;
  border-radius: 22px !important;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.7),
    0 0 45px rgba(var(--op-red-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 40px rgba(var(--op-red-rgb), 0.07) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

/* Ambient red glow bleeding out BEHIND the card */
.discord-community-widget--hero::before {
  content: '' !important;
  position: absolute !important;
  inset: -18% -14% !important;
  background: radial-gradient(closest-side, rgba(var(--op-red-rgb), 0.28) 0%, rgba(var(--op-red-rgb), 0.1) 45%, transparent 75%) !important;
  filter: blur(34px) !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Kill any leftover decorative pseudo-plates on the card and label */
.discord-community-widget--hero::after,
.discord-community-widget-label::before {
  content: none !important;
}

/* Header row: status dot + wordmark + fading hairline, top-left */
.discord-community-widget-label {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 2px 2px 16px 2px !important;
  margin: 0 !important;
  align-self: stretch !important;
  width: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-family: 'JetBrains Mono', monospace, ui-monospace, monospace !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.28em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 16px rgba(var(--op-red-rgb), 0.4) !important;
  z-index: auto !important;
}

/* Hairline after the text, fading out to the right edge */
.discord-community-widget-label::after {
  content: '' !important;
  flex: 1 1 auto !important;
  height: 1px !important;
  min-width: 24px !important;
  margin-left: 4px !important;
  background: linear-gradient(
    90deg,
    rgba(var(--op-red-rgb), 0.55) 0%,
    rgba(var(--op-red-rgb), 0.15) 60%,
    transparent 100%
  ) !important;
}

/* Green "online" dot — optically centered on the text baseline */
.discord-community-widget-label span {
  width: 8px !important;
  height: 8px !important;
  flex: none !important;
  margin: 0 0 1px 2px !important;
  border-radius: 50% !important;
  background-color: #22c55e !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9) !important;
  display: inline-block !important;
  animation: pulse-green 2s infinite !important;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Hide the old helper element from the previous layout */
.discord-community-widget-glow {
  display: none !important;
}

/* Discord iframe: snug inside the card, matching its corner radius */
.discord-community-widget--hero iframe {
  width: calc(100% - 30px) !important;
  max-width: 370px !important;
  height: 500px !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #1e1f22 !important;
}