/* =========================================================
   CODE VAULT — Premium Redesign
   Brand: Red (#ff1f2e) + Charcoal Black + Smoke
   ========================================================= */

:root {
  --cv-red: #ff1f2e;
  --cv-red-rgb: 255, 31, 46;
  --cv-red-soft: #ff4a55;
  --cv-red-deep: #c8121f;
  --cv-red-glow: rgba(255, 31, 46, 0.45);
  --cv-red-glow-soft: rgba(255, 31, 46, 0.18);

  --cv-black: #050608;
  --cv-night: #0a0c10;
  --cv-charcoal: #11141a;
  --cv-smoke: #181c24;
  --cv-fog: #1f242d;
  --cv-line: rgba(255, 255, 255, 0.06);
  --cv-line-strong: rgba(255, 255, 255, 0.12);
  --cv-text: #e7e9ee;
  --cv-text-dim: #9aa0ac;
  --cv-text-mute: #6b7280;

  --cv-radius-sm: 0.5rem;
  --cv-radius: 0.9rem;
  --cv-radius-lg: 1.5rem;
  --cv-shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--cv-line);
  --cv-shadow-glow: 0 10px 40px -10px var(--cv-red-glow), 0 0 0 1px rgba(255, 31, 46, 0.35);
  --cv-shadow-hover: 0 30px 60px -20px rgba(255, 31, 46, 0.35), 0 0 0 1px rgba(255, 31, 46, 0.4);

  --cv-grad-primary: linear-gradient(135deg, #ff1f2e 0%, #c8121f 100%);
  --cv-grad-soft: linear-gradient(135deg, rgba(255, 31, 46, 0.18), rgba(255, 31, 46, 0));
  --cv-grad-page: radial-gradient(circle at 20% -10%, rgba(255, 31, 46, 0.15), transparent 45%),
                  radial-gradient(circle at 90% 10%, rgba(255, 31, 46, 0.08), transparent 40%),
                  linear-gradient(180deg, #06080c 0%, #0a0c10 100%);
}

/* ---------- Overrides for SellAuth core vars ---------- */
/* high specificity (html + attr) so we beat the inline :root theme block */
html[data-bs-theme="dark"],
html[data-bs-theme="dark"]:root {
  --cl-accent: #ff1f2e;
  --cl-accent-rgb: 255, 31, 46;
  --cl-background-primary: #050608;
  --cl-background-primary-rgb: 5, 6, 8;
  --cl-background-secondary: #11141a;
  --cl-background-secondary-rgb: 17, 20, 26;
  --cl-border: rgba(255, 255, 255, 0.06);
  --cl-border-rgb: 255, 255, 255;
  --bs-primary: #ff1f2e;
  --bs-primary-rgb: 255, 31, 46;
  --bs-body-bg: #050608;
  --bs-body-bg-rgb: 5, 6, 8;
  --bs-body-color: #e7e9ee;
  --bs-gray-bg: #11141a;
  --bs-gray-bg-rgb: 17, 20, 26;
  --bs-border-color: rgba(255, 255, 255, 0.06);
  --bs-border-color-rgb: 255, 255, 255;
  --bs-border-radius: 0.9rem;
  --bs-border-radius-sm: 0.5rem;
  --bs-border-radius-lg: 1.5rem;
  --bs-link-color: #ff4a55;
  --bs-link-hover-color: #ff1f2e;
}

/* ============ GLOBAL ============ */
html {
  scroll-behavior: auto;
  /* Reserve scrollbar space so it can't flicker the layout in/out */
  scrollbar-gutter: stable;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  background: var(--cv-black);
  color: var(--cv-text);
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
}

/*
  Red glow overlay — FIXED (zero layout impact, never affects scroll height).
  Its intensity is driven by --cv-glow (set by JS on scroll): full red near the
  top, smoothly fading toward black as you scroll down.
*/
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 55% at 50% -8%, rgba(255, 31, 46, 0.24), transparent 60%),
    radial-gradient(ellipse 55% 45% at 0% 6%, rgba(255, 31, 46, 0.13), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 12%, rgba(255, 31, 46, 0.11), transparent 55%);
  opacity: var(--cv-glow, 1);
  z-index: -2;
  pointer-events: none;
  transition: opacity 0.15s linear;
}

/* Subtle fixed grid mesh — same everywhere so we don't add to the section transition */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
}

::selection {
  background: var(--cv-red);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--cv-black);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cv-red-deep), var(--cv-red));
  border-radius: 10px;
  border: 2px solid var(--cv-black);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cv-red);
}

/* Scroll progress bar */
.cv-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cv-red-deep), var(--cv-red), var(--cv-red-soft));
  box-shadow: 0 0 10px var(--cv-red-glow), 0 0 20px var(--cv-red-glow-soft);
  z-index: 2000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}

.cv-gradient-text {
  background: linear-gradient(135deg, #fff 0%, #ff1f2e 50%, #fff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 31, 46, 0.08);
  border: 1px solid rgba(255, 31, 46, 0.25);
  color: var(--cv-red-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.cv-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cv-red);
  box-shadow: 0 0 10px var(--cv-red);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ============ BUTTONS ============ */
.btn {
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.7rem 1.4rem;
  border-radius: var(--cv-radius-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border-width: 1px;
}

.btn-primary {
  background: var(--cv-grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px -10px var(--cv-red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s;
}

.btn-primary:hover {
  background: var(--cv-grad-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px var(--cv-red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline-primary {
  background: rgba(255, 31, 46, 0.05);
  border-color: rgba(255, 31, 46, 0.4);
  color: var(--cv-red-soft);
  backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
  background: rgba(255, 31, 46, 0.12);
  border-color: var(--cv-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px var(--cv-red-glow);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* Ripple effect */
.cv-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============ FORM CONTROLS ============ */
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cv-line);
  color: var(--cv-text);
  border-radius: var(--cv-radius-sm);
  padding: 0.7rem 1rem;
  transition: all 0.25s ease;
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 31, 46, 0.04);
  border-color: var(--cv-red);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 31, 46, 0.12);
}

.form-control::placeholder {
  color: var(--cv-text-mute);
}

/* ============ NAVBAR ============ */
header.sticky-top {
  z-index: 1030;
}

.navbar {
  background: rgba(8, 9, 13, 0.65);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--cv-line);
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.navbar.cv-scrolled {
  background: rgba(5, 6, 8, 0.85);
  border-bottom-color: rgba(255, 31, 46, 0.2);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8);
}

.navbar .container {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  position: relative;
  padding-right: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar .navbar-brand:hover {
  transform: scale(1.04);
}

.navbar .navbar-brand img {
  width: 2.5rem;
  height: 2.5rem;
  max-height: 2.5rem;
  object-fit: cover;
  border-radius: 50%;
  padding: 2px;
  background:
    linear-gradient(var(--cv-charcoal), var(--cv-charcoal)) padding-box,
    linear-gradient(135deg, var(--cv-red), rgba(255, 31, 46, 0.2)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 18px var(--cv-red-glow-soft);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.navbar .navbar-brand:hover img {
  transform: rotate(8deg) scale(1.05);
  box-shadow: 0 0 28px var(--cv-red-glow);
}

.navbar .navbar-brand span {
  background: linear-gradient(90deg, #fff 0%, #ff1f2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar .nav-link {
  position: relative;
  padding: 0.5rem 0.25rem !important;
  color: var(--cv-text-dim) !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cv-grad-primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--cv-red-glow);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

.navbar .navbar-toggler {
  border: 1px solid var(--cv-line);
  border-radius: var(--cv-radius-sm);
  padding: 0.5rem;
}
.navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 31, 46, 0.2);
}

@media (min-width: 992px) {
  .navbar .navbar-collapse .navbar-nav {
    gap: 0.5rem;
  }
}

/* Navbar cart & user buttons */
.navbar .cart .btn,
.navbar .user .btn {
  border-radius: var(--cv-radius-sm);
  padding: 0.55rem 1rem;
}

.navbar .cart .btn .count {
  background: var(--cv-grad-primary);
  box-shadow: 0 0 12px var(--cv-red-glow);
  border: 2px solid var(--cv-black);
  top: -0.6rem;
  right: -0.6rem;
  width: 1.3rem;
  height: 1.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  animation: pulse-cart 2s ease-in-out infinite;
}

@keyframes pulse-cart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ============ ANNOUNCEMENT ============ */
.announcement {
  background: var(--cv-grad-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 0;
  position: relative;
  overflow: hidden;
}

.announcement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-100%);
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 90vh;
  background-image: none !important;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}

/* Soft red glows that fade out before the hero's bottom edge */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(255, 31, 46, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 31, 46, 0.08) 0%, transparent 50%);
  /* fade lower portion so we blend into the body's scrolling gradient */
  mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 31, 46, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 31, 46, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image:
    radial-gradient(ellipse at center, black 0%, transparent 70%),
    linear-gradient(180deg, black 0%, transparent 90%);
  mask-composite: intersect;
  -webkit-mask-image:
    radial-gradient(ellipse at center, black 0%, transparent 70%),
    linear-gradient(180deg, black 0%, transparent 90%);
  -webkit-mask-composite: source-in;
  z-index: -1;
  opacity: 0.7;
}

.hero .bg-overlay { display: none; }

.hero .container {
  padding: 7rem 1.5rem 5rem;
  position: relative;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}
.hero-orb-1 {
  width: 400px; height: 400px;
  top: 10%; left: -100px;
  background: var(--cv-red);
  opacity: 0.25;
  animation: orbFloat1 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  top: 25%; right: -150px;
  background: var(--cv-red-deep);
  opacity: 0.16;
  animation: orbFloat2 22s ease-in-out infinite;
}
.hero-orb-3 {
  width: 280px; height: 280px;
  top: 30%; right: 22%;
  background: #ff6b3d;
  opacity: 0.10;
  animation: orbFloat1 25s ease-in-out infinite reverse;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, -60px) scale(1.1); }
  66% { transform: translate(-50px, 40px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -80px) scale(1.15); }
}

.hero .content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero .content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .content h1::selection,
.hero .content h1 *::selection {
  -webkit-text-fill-color: #fff;
}

.hero .content p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--cv-text-dim);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Fake searchbar */
.hero .fake-searchbar {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  position: relative;
  cursor: pointer;
}

.hero .fake-searchbar::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--cv-red), transparent, var(--cv-red));
  border-radius: calc(var(--cv-radius) + 2px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.hero .fake-searchbar:hover::before {
  opacity: 0.6;
}

.hero .fake-searchbar input {
  background: rgba(15, 17, 22, 0.85) !important;
  border: 1px solid var(--cv-line-strong);
  padding: 1.1rem 1.5rem 1.1rem 3.5rem !important;
  font-size: 1rem;
  color: var(--cv-text);
  border-radius: var(--cv-radius);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero .fake-searchbar:hover input {
  border-color: rgba(255, 31, 46, 0.45);
  background: rgba(20, 22, 28, 0.9) !important;
}

.hero .fake-searchbar svg {
  position: absolute;
  left: 1.25rem;
  top: 0; bottom: 0;
  margin: auto;
  width: 1.4rem;
  height: 1.4rem;
  fill: var(--cv-text-dim);
}

.hero .fake-searchbar:hover svg {
  fill: var(--cv-red);
}

/* Stats card */
.hero .content .stats {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: rgba(15, 17, 22, 0.7);
  border: 1px solid var(--cv-line-strong);
  border-radius: var(--cv-radius);
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  max-width: 100%;
}

.hero .content .stats div {
  padding: 1.2rem 1.8rem;
  border-right: 1px solid var(--cv-line);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.3s ease;
}

.hero .content .stats div:last-child {
  border-right: 0;
}

.hero .content .stats div:hover {
  background: rgba(255, 31, 46, 0.06);
}

.hero .content .stats div .value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fff, var(--cv-red-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}

.hero .content .stats div .value svg {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--cv-red);
  -webkit-text-fill-color: var(--cv-red);
  stroke: var(--cv-red);
  filter: drop-shadow(0 0 6px var(--cv-red-glow));
}

.hero .content .stats div .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cv-text-mute);
  font-weight: 500;
}

@media (max-width: 575px) {
  .hero .content .stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero .content .stats div {
    flex: 1 1 33%;
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid var(--cv-line);
  }
  .hero .content .stats div .value {
    font-size: 1.25rem;
  }
}

/* ============ MODALS (z-index hierarchy) ============ */
/*
  Bumps ALL Bootstrap modals + their backdrop above our sticky navbar
  (z-index 1030) and scroll progress bar (2000). Crucially the modal must
  always be ABOVE the backdrop, otherwise clicks get eaten by the backdrop
  and the modal appears "stuck" — which was breaking the login modal.
*/
.modal              { z-index: 2060 !important; }
.modal-backdrop,
.modal-backdrop.show { z-index: 2050 !important; opacity: 0.7 !important; }

/* ============ LOGIN MODAL ============ */
.cv-login-modal .modal-dialog {
  --bs-modal-width: 440px;
  margin: 1.75rem auto;
}

.cv-login-modal .modal-content {
  background: rgba(13, 15, 20, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--cv-line-strong);
  border-radius: var(--cv-radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 31, 46, 0.18);
  overflow: hidden;
  position: relative;
}
.cv-login-modal .modal-content::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cv-red), transparent);
  transform: translateX(-50%);
  box-shadow: 0 0 18px var(--cv-red-glow);
}

.cv-login-modal .modal-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--cv-line);
  padding: 1.25rem 1.5rem;
}

.cv-login-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 31, 46, 0.18), rgba(255, 31, 46, 0.06));
  border: 1px solid rgba(255, 31, 46, 0.35);
  color: var(--cv-red-soft);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--cv-red-glow-soft), inset 0 0 8px rgba(255, 31, 46, 0.15);
  font-size: 0.9rem;
}

.cv-login-modal .modal-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}

.cv-login-modal .btn-close {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cv-line-strong);
  opacity: 0.85;
  background-size: 0.85rem;
  margin: 0;
  padding: 0;
  transition: all 0.25s ease;
}
.cv-login-modal .btn-close:hover {
  opacity: 1;
  background-color: rgba(255, 31, 46, 0.15);
  border-color: rgba(255, 31, 46, 0.5);
  transform: rotate(90deg);
}

.cv-login-modal .modal-body {
  padding: 1.5rem;
}

.cv-login-modal .form-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cv-text-mute);
  margin-bottom: 0;
}

.cv-login-modal .form-text {
  color: var(--cv-text-dim);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.cv-login-modal .form-control {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--cv-line-strong) !important;
  color: #fff !important;
  font-size: 0.95rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--cv-radius);
  transition: all 0.25s ease;
}
.cv-login-modal .form-control:focus {
  background: rgba(255, 31, 46, 0.04) !important;
  border-color: var(--cv-red) !important;
  box-shadow: 0 0 0 3px rgba(255, 31, 46, 0.15) !important;
}

/* OTP digit inputs */
.cv-login-modal .modal-body .d-flex.gap-2 input.form-control {
  text-align: center;
  font-weight: 800;
  font-size: 1.25rem !important;
  padding: 0;
  font-family: 'Courier New', monospace;
}

.cv-login-modal .btn-primary {
  height: 3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--cv-red), var(--cv-red-deep));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--cv-radius);
  box-shadow: 0 10px 24px var(--cv-red-glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.cv-login-modal .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.7s;
  pointer-events: none;
}
.cv-login-modal .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px var(--cv-red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.cv-login-modal .btn-primary:hover:not(:disabled)::before { left: 100%; }
.cv-login-modal .btn-primary svg { width: 1.1rem; height: 1.1rem; }

/* ============ SEARCH MODAL ============ */
.search-modal { z-index: 2060 !important; }

.search-modal .modal-dialog {
  --bs-modal-width: 700px;
  margin: 1.75rem auto;
}

.search-modal .modal-content {
  background: rgba(13, 15, 20, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--cv-line-strong);
  border-radius: var(--cv-radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 31, 46, 0.18);
  overflow: hidden;
}

.search-modal .modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--cv-line);
  padding: 1.25rem 1.25rem;
}

.search-modal .searchbar {
  flex: 1;
  position: relative;
}

.search-modal .searchbar input {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--cv-line-strong) !important;
  padding: 0.95rem 1rem 0.95rem 3.25rem !important;
  border-radius: var(--cv-radius);
  color: #fff !important;
  font-size: 0.95rem;
}

.search-modal .searchbar svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  color: var(--cv-text-dim);
  pointer-events: none;
}

.search-modal .search-modal-close {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cv-line-strong);
  opacity: 0.85;
  transition: all 0.25s ease;
  background-size: 0.9rem;
  margin: 0;
  padding: 0;
}

.search-modal .search-modal-close:hover {
  opacity: 1;
  background-color: rgba(255, 31, 46, 0.15);
  border-color: rgba(255, 31, 46, 0.5);
  transform: rotate(90deg);
}

.search-modal .modal-body {
  padding: 0.75rem 0.75rem 1.25rem;
  max-height: 70vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-modal .products {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ---- Horizontal product card (rendered inside search modal) ---- */
.search-modal .product {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--cv-line);
  border-radius: var(--cv-radius);
  text-decoration: none;
  color: var(--cv-text);
  transition: all 0.25s ease;
}

.search-modal .product:hover {
  background: rgba(255, 31, 46, 0.06);
  border-color: rgba(255, 31, 46, 0.35);
  transform: translateX(2px);
}

.search-modal .product .left {
  display: contents;
}

.search-modal .product .image {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #0a0c10;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0;
}

.search-modal .product .image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0.6rem;
  aspect-ratio: 1 / 1 !important;
}

/* Hide admin badges inside the search modal — they overlap the small image */
.search-modal .product .image .badges {
  display: none !important;
}

.search-modal .product .text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.search-modal .product .text h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-modal .product .text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cv-text-dim);
  font-weight: 600;
}

.search-modal .product .text .stock { display: none; }

.search-modal .product .right {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.search-modal .product .right p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cv-red-soft) !important;
}

.search-modal .product .right p .stock-unlimited {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.search-modal .product .right p .stock-unlimited svg {
  width: 0.9rem;
  height: 0.9rem;
}

/* Out-of-stock highlight */
.search-modal .product[data-title]:has(.right p:not(.stock-unlimited)) .right p {
  /* Default stays green; show red when text is Out of Stock — handled by content */
}

/* Mobile tweaks */
@media (max-width: 575px) {
  .search-modal .modal-dialog {
    margin: 0.75rem;
  }
  .search-modal .modal-header { padding: 1rem; }
  .search-modal .product { grid-template-columns: 52px 1fr auto; gap: 0.7rem; padding: 0.5rem; }
  .search-modal .product .image { width: 52px; height: 52px; }
  .search-modal .product .text h3 { font-size: 0.88rem; }
}

/* ============ SECTION TITLES ============ */
.section-title {
  margin: 0 0 3rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.section-title h1,
.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title h1::before,
.section-title h2::before {
  content: '';
  width: 4px;
  height: 1.5rem;
  background: var(--cv-grad-primary);
  border-radius: 4px;
  box-shadow: 0 0 12px var(--cv-red-glow);
}

.section-title p {
  font-size: 0.95rem;
  color: var(--cv-text-dim);
  margin: 0;
  padding: 0;
  border: 0;
}

.section-subtitle {
  margin: -2rem 0 2.5rem;
}
.section-subtitle p {
  color: var(--cv-text-dim);
  font-size: 1rem;
}

/* ============ WHY CHOOSE US — BENTO ============ */
.cv-why {
  position: relative;
}

.cv-why-head {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.cv-why-head .cv-eyebrow {
  margin-bottom: 1.25rem;
}

.cv-why-title {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cv-why-sub {
  font-size: 1rem;
  color: var(--cv-text-dim);
  line-height: 1.6;
  margin: 0;
}

.cv-why-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.cv-why-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, var(--cv-charcoal) 0%, var(--cv-night) 100%);
  border: 1px solid var(--cv-line);
  border-radius: var(--cv-radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
  min-height: 230px;
}

.cv-why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at top right, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at top right, black 0%, transparent 65%);
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

.cv-why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 31, 46, 0.5) 0%, transparent 40%, transparent 60%, rgba(255, 31, 46, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.cv-why-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 30px 60px -20px rgba(255, 31, 46, 0.25), 0 0 0 1px rgba(255, 31, 46, 0.25);
}

.cv-why-card:hover::after {
  opacity: 1;
}

.cv-why-card > * { position: relative; z-index: 2; }

/* Uniform 2×3 layout — every card spans 4 columns */
.cv-why-card { grid-column: span 4; }

@media (max-width: 991px) {
  .cv-why-card { grid-column: span 6; }
}
@media (max-width: 575px) {
  .cv-why-card { grid-column: span 12; min-height: 210px; }
}

.cv-why-visual {
  position: relative;
  height: 140px;
  border-radius: var(--cv-radius-sm);
  background:
    radial-gradient(circle at 50% 60%, rgba(255, 31, 46, 0.07), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 31, 46, 0.02) 100%);
  border: 1px solid var(--cv-line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cv-why-body {
  flex: 1;
}

.cv-why-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.cv-why-body p {
  font-size: 0.82rem;
  color: var(--cv-text-dim);
  line-height: 1.5;
  margin: 0;
}

/* ---- VISUAL 1: Cursor → REDEEM button (Triple-Checked Codes) ---- */
.cv-redeem-window {
  position: relative;
  width: 84%;
  max-width: 220px;
  background: linear-gradient(160deg, #14171e, #0a0c10);
  border: 1px solid var(--cv-line-strong);
  border-radius: 0.6rem;
  padding: 1.1rem 0.7rem 0.7rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.cv-window-bar {
  position: absolute;
  top: 0.4rem; left: 0.55rem;
  display: flex; gap: 4px;
}
.cv-window-bar span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.cv-window-bar span:first-child { background: #ff5f57; }
.cv-redeem-field {
  position: relative;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--cv-text-dim);
  padding: 0.35rem 0;
  margin-bottom: 0.4rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed var(--cv-line-strong);
  border-radius: 0.3rem;
  overflow: hidden;
  /* React to the cursor "click" on this field — gain a red focus ring during typing */
  animation: cv-field-focus 9s ease-in-out infinite;
}
@keyframes cv-field-focus {
  0%, 14%       { border-color: var(--cv-line-strong); box-shadow: none; background: rgba(255, 255, 255, 0.025); }
  18%, 50%      { border-color: rgba(255, 31, 46, 0.45); border-style: solid; box-shadow: 0 0 0 2px rgba(255, 31, 46, 0.12); background: rgba(255, 31, 46, 0.04); }
  56%, 100%     { border-color: var(--cv-line-strong); box-shadow: none; background: rgba(255, 255, 255, 0.025); }
}

/* Placeholder XXXX-XXXX-XXXX — visible until the cursor "clicks" the input */
.cv-redeem-placeholder {
  display: block;
  animation: cv-placeholder-fade 9s ease-in-out infinite;
}
@keyframes cv-placeholder-fade {
  0%, 14%   { opacity: 1; }
  18%, 92%  { opacity: 0; }
  96%, 100% { opacity: 1; }
}

/* Typed-text overlay — a real width-based typewriter. */
.cv-redeem-typed {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  z-index: 2;
}
.cv-redeem-typed-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(255, 31, 46, 0.5);
  /* CRITICAL: flex items default to min-width:auto which refuses to shrink
     below content size — that's why width:0 had no effect. Force min-width:0. */
  min-width: 0;
  width: 0;
  animation: cv-redeem-type 9s steps(15, end) infinite;
}
/* "CODE-FROM-VAULT" full width ≈ 9rem at this font/letter-spacing.
   NOTE: unique name — a different `cv-typing` (chat dots) exists below and
   would otherwise override this since same-named keyframes: last one wins. */
@keyframes cv-redeem-type {
  0%, 18%   { width: 0; }
  44%, 92%  { width: 9rem; }
  93%, 100% { width: 0; }
}

/* Blinking caret — trails the text during typing, then sits at the end */
.cv-redeem-caret {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.5px;
  height: 0.9em;
  margin-left: 2px;
  background: var(--cv-red);
  box-shadow: 0 0 4px var(--cv-red);
  opacity: 0;
  animation: cv-caret-show 9s ease-in-out infinite, cv-caret-blink 0.7s steps(2) infinite;
}
@keyframes cv-caret-show {
  0%, 16%   { opacity: 0; }
  18%, 52%  { opacity: 1; }
  54%, 100% { opacity: 0; }
}
@keyframes cv-caret-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.cv-redeem-btn {
  display: block;
  width: 100%;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, var(--cv-red), var(--cv-red-deep));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.3rem;
  padding: 0.4rem 0.5rem;
  box-shadow: 0 6px 14px var(--cv-red-glow-soft);
  cursor: default;
  pointer-events: none;
  animation: cv-redeem-press 9s ease-in-out infinite;
}

/*
  Triple-checked timeline (9s total):
   0–4%    cursor off-screen
   4–14%   cursor flies to the input field
   14–17%  cursor clicks input (small press)
   18–22%  placeholder fades, caret appears, field gets red focus
   18–44%  CODE-FROM-VAULT types out
   44–50%  cursor pauses on input showing full code
   50–58%  cursor moves down to REDEEM button
   58–63%  REDEEM button press
   65–72%  success checkmark pops in
   72–88%  hold (~1.4s of stable view)
   90–96%  fade out
   96–100% reset
*/
@keyframes cv-redeem-press {
  0%, 56%    { transform: scale(1);    box-shadow: 0 6px 14px var(--cv-red-glow-soft); filter: brightness(1);    }
  60%, 63%   { transform: scale(0.92); box-shadow: 0 2px 6px var(--cv-red-glow-soft);  filter: brightness(1.3);  }
  68%, 100%  { transform: scale(1);    box-shadow: 0 6px 14px var(--cv-red-glow-soft); filter: brightness(1);    }
}

.cv-cursor {
  position: absolute;
  width: 18px; height: 18px;
  z-index: 5;
  pointer-events: none;
  top: -20px;
  left: calc(100% - 30px);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  animation: cv-cursor-fly 9s ease-in-out infinite;
}
@keyframes cv-cursor-fly {
  /* off-screen top-right */
  0%       { top: -22px; left: calc(100% - 18px); opacity: 0; transform: scale(1); }
  4%       { opacity: 1; }
  /* approach input — input sits around 38% from top of the window */
  14%      { top: 36%; left: calc(50% + 6px); transform: scale(1); }
  /* click input */
  17%, 19% { top: 38%; left: calc(50% + 8px); transform: scale(0.85); }
  22%      { top: 36%; left: calc(50% + 6px); transform: scale(1); }
  /* hover on input while text types */
  44%      { top: 36%; left: calc(50% + 6px); transform: scale(1); }
  /* glide down to REDEEM button (near bottom) */
  56%      { top: calc(100% - 36px); left: calc(50% - 4px); transform: scale(1); }
  /* press button */
  60%, 63% { top: calc(100% - 30px); left: calc(50% - 2px); transform: scale(0.85); }
  68%      { top: calc(100% - 36px); left: calc(50% - 4px); transform: scale(1); }
  /* stay visible on button */
  88%      { top: calc(100% - 36px); left: calc(50% - 4px); opacity: 1; }
  /* leave */
  96%      { top: -22px; left: calc(100% + 8px); opacity: 0; }
  100%     { top: -22px; left: calc(100% + 8px); opacity: 0; }
}

.cv-redeem-success {
  position: absolute;
  top: 50%; left: 50%;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.55);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation: cv-success-pop 9s ease-in-out infinite;
  z-index: 6;
  pointer-events: none;
}
.cv-redeem-success svg { width: 18px; height: 18px; }
@keyframes cv-success-pop {
  0%, 65%   { transform: translate(-50%, -50%) scale(0);     opacity: 0; }
  70%       { transform: translate(-50%, -50%) scale(1.15);  opacity: 1; }
  76%, 88%  { transform: translate(-50%, -50%) scale(1);     opacity: 1; }
  94%, 100% { transform: translate(-50%, -50%) scale(0.8);   opacity: 0; }
}

/* ---- VISUAL 2: Lightning bolt + trailing path ---- */
.cv-bolt-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.cv-bolt-wrap::before {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 206, 58, 0.4), transparent);
}
.cv-bolt {
  position: relative;
  width: 44px;
  height: 44px;
  color: #ffce3a;
  filter: drop-shadow(0 0 14px rgba(255, 206, 58, 0.6))
          drop-shadow(0 0 4px var(--cv-red-glow));
  animation: cv-bolt-flicker 2.4s ease-in-out infinite;
  z-index: 2;
}
@keyframes cv-bolt-flicker {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 14px rgba(255, 206, 58, 0.6)); }
  45%      { transform: scale(1.1) rotate(-3deg); }
  50%      { filter: drop-shadow(0 0 22px rgba(255, 206, 58, 0.9)); }
  55%      { transform: scale(1.1) rotate(2deg); }
}
.cv-bolt-spark {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ffce3a;
  box-shadow: 0 0 8px #ffce3a;
  opacity: 0;
  z-index: 1;
}
.cv-bolt-spark-1 { top: 22%;  left: 22%; animation: cv-spark 2.2s ease-out infinite 0.2s; }
.cv-bolt-spark-2 { top: 68%;  left: 78%; animation: cv-spark 2.2s ease-out infinite 0.7s; }
.cv-bolt-spark-3 { top: 28%;  left: 75%; animation: cv-spark 2.2s ease-out infinite 1.2s; }
@keyframes cv-spark {
  0% { opacity: 0; transform: scale(0.4); }
  30% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0; transform: scale(2.4) translate(8px, -8px); }
}

/* ---- VISUAL 3: Handshake + floating coins (Resellers) ---- */
.cv-deal {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv-deal-icon {
  position: relative;
  z-index: 2;
  font-size: 3.6rem;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 4px 14px var(--cv-red-glow),
    0 0 24px rgba(255, 31, 46, 0.35);
  animation: cv-deal-pulse 2.6s ease-in-out infinite;
}
@keyframes cv-deal-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  35%      { transform: scale(1.08) rotate(-3deg); }
  65%      { transform: scale(1.08) rotate(3deg); }
}

.cv-coin-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cv-coin {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd75e, #b8841a);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #5b3e08;
  box-shadow: 0 4px 10px rgba(255, 206, 58, 0.45), inset 0 -1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0;
  bottom: 40%;
  left: 50%;
  margin-left: -9px;
}
.cv-coin-1 { animation: cv-coin-fly 2.6s ease-out infinite 0.1s; }
.cv-coin-2 { animation: cv-coin-fly 2.6s ease-out infinite 0.6s; }
.cv-coin-3 { animation: cv-coin-fly 2.6s ease-out infinite 1.1s; }
.cv-coin-4 { animation: cv-coin-fly 2.6s ease-out infinite 1.6s; }
@keyframes cv-coin-fly {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.5) rotate(0deg); }
  20%  { opacity: 1; }
  60%  { opacity: 1; transform: translate(var(--x, -22px), -34px) scale(1) rotate(180deg); }
  100% { opacity: 0; transform: translate(var(--x, -22px), -56px) scale(0.8) rotate(360deg); }
}
.cv-coin-1 { --x: -28px; }
.cv-coin-2 { --x: -10px; }
.cv-coin-3 { --x: 14px; }
.cv-coin-4 { --x: 28px; }

.cv-deal-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 31, 46, 0.12);
  color: var(--cv-red-soft);
  border: 1px solid rgba(255, 31, 46, 0.35);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}

/* ---- VISUAL 4: PLAY button with concentric pulse rings ---- */
.cv-play {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv-play-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255, 31, 46, 0.35);
  border-radius: 50%;
  animation: cv-play-pulse 2.4s ease-out infinite;
}
.cv-play-ring-2 { animation-delay: 0.6s; }
.cv-play-ring-3 { animation-delay: 1.2s; }
@keyframes cv-play-pulse {
  0%   { transform: scale(0.55); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.cv-play-btn {
  position: relative;
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--cv-red), var(--cv-red-deep));
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px var(--cv-red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: default;
  pointer-events: none;
  z-index: 3;
  animation: cv-play-breathe 2.4s ease-in-out infinite;
}
@keyframes cv-play-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); box-shadow: 0 16px 28px var(--cv-red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}
.cv-play-btn svg {
  width: 22px; height: 22px;
  color: #fff;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
  transform: translateX(2px);
}
.cv-play-status {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #22c55e;
  background: rgba(8, 9, 13, 0.85);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  backdrop-filter: blur(8px);
  z-index: 4;
}
.cv-play-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: cv-play-dot 1.4s ease-in-out infinite;
}
@keyframes cv-play-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

/* ---- VISUAL 5: Loading progress ring (Straight From The Source) ---- */
.cv-progress-ring {
  position: relative;
  width: 110px;
  height: 110px;
}
.cv-progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.cv-progress-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}
.cv-progress-bar {
  fill: none;
  stroke: var(--cv-red);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 263.9;
  stroke-dashoffset: 263.9;
  filter: drop-shadow(0 0 6px var(--cv-red-glow));
  animation: cv-progress-fill 10s linear infinite;
}
/*
  Source loading timeline (10s total) — 4 stages of ~2s each
   0-2%    fade in
   2-22%   stage 1: 0 → 25%
   22-44%  stage 2: 25 → 55%
   44-66%  stage 3: 55 → 85%
   66-86%  stage 4: 85 → 100% (turns green)
   86-95%  hold complete
   95-100% fade and reset
*/
@keyframes cv-progress-fill {
  0%   { stroke-dashoffset: 263.9; opacity: 0; }
  2%   { stroke-dashoffset: 263.9; opacity: 1; }
  22%  { stroke-dashoffset: 198; }
  44%  { stroke-dashoffset: 119; }
  66%  { stroke-dashoffset: 40; }
  82%  { stroke-dashoffset: 0; opacity: 1; stroke: #22c55e; filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.6)); }
  92%  { stroke-dashoffset: 0; opacity: 1; stroke: #22c55e; }
  98%  { stroke-dashoffset: 0; opacity: 0; stroke: #22c55e; }
  100% { stroke-dashoffset: 263.9; opacity: 0; stroke: var(--cv-red); }
}
.cv-progress-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
  line-height: 1;
}
.cv-progress-labels,
.cv-progress-percents {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv-progress-labels { height: 12px; }
.cv-progress-percents { height: 22px; margin-top: 2px; }
.cv-progress-label,
.cv-progress-percent {
  position: absolute;
  opacity: 0;
}
.cv-progress-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cv-text-dim);
  white-space: nowrap;
}
.cv-progress-percent {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.cv-progress-percent small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cv-text-dim);
  margin-left: 1px;
}
.cv-progress-label-1, .cv-progress-percent-1 { animation: cv-stage     10s linear infinite 0s; }
.cv-progress-label-2, .cv-progress-percent-2 { animation: cv-stage     10s linear infinite 2.2s; }
.cv-progress-label-3, .cv-progress-percent-3 { animation: cv-stage     10s linear infinite 4.4s; }
.cv-progress-label-4, .cv-progress-percent-4 { animation: cv-stage-final 10s linear infinite 6.6s; }
@keyframes cv-stage {
  0%, 1%   { opacity: 0; transform: translateY(4px); }
  3%, 20%  { opacity: 1; transform: translateY(0); }
  23%, 100%{ opacity: 0; transform: translateY(-4px); }
}
@keyframes cv-stage-final {
  0%, 1%   { opacity: 0; transform: translateY(4px); }
  3%, 28%  { opacity: 1; transform: translateY(0); }
  31%, 100%{ opacity: 0; transform: translateY(-4px); }
}
.cv-progress-label-4,
.cv-progress-percent-4 { color: #22c55e; }
.cv-progress-percent-4 small { color: rgba(34, 197, 94, 0.7); }

/* ---- VISUAL 6: Realistic conversation (Support) ---- */
.cv-conversation {
  position: relative;
  width: 90%;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem 0.2rem;
}
.cv-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  opacity: 0;
  animation: cv-msg-in 4.5s ease-out infinite;
}
.cv-msg-1 { animation-delay: 0s; }
.cv-msg-2 { animation-delay: 1s; justify-content: flex-end; }
.cv-msg-3 { animation-delay: 2.2s; }
@keyframes cv-msg-in {
  0%, 5%   { opacity: 0; transform: translateY(6px) scale(0.96); }
  10%, 88% { opacity: 1; transform: translateY(0) scale(1); }
  95%, 100%{ opacity: 0; transform: translateY(-4px) scale(0.98); }
}
.cv-msg-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865F2, #3a45c4);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(88, 101, 242, 0.45);
}
.cv-msg-bubble {
  background: linear-gradient(160deg, var(--cv-smoke), var(--cv-charcoal));
  border: 1px solid var(--cv-line-strong);
  border-radius: 0.65rem;
  border-bottom-left-radius: 0.2rem;
  padding: 0.4rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 70%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.cv-msg-bubble-you {
  background: linear-gradient(135deg, var(--cv-red), var(--cv-red-deep));
  border-color: rgba(255, 255, 255, 0.15);
  border-bottom-right-radius: 0.2rem;
  border-bottom-left-radius: 0.65rem;
  box-shadow: 0 4px 12px var(--cv-red-glow-soft);
}
.cv-msg-line {
  display: block;
  height: 4px;
  width: 56px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
}
.cv-msg-line.short { width: 34px; }
.cv-msg-bubble:not(.cv-msg-bubble-you) .cv-msg-line { background: rgba(255, 255, 255, 0.22); }
.cv-msg-typing {
  flex-direction: row !important;
  align-items: center;
  gap: 4px !important;
  padding: 0.5rem 0.6rem !important;
  min-height: 22px;
}
.cv-msg-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cv-text-dim);
  animation: cv-typing 1.4s ease-in-out infinite;
}
.cv-msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.cv-msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes cv-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-3px); opacity: 1; }
}
.cv-status-pulse {
  position: absolute;
  top: -2px; right: 2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: cv-status-pulse 1.8s ease-out infinite;
  border: 2px solid var(--cv-charcoal);
  z-index: 4;
}
@keyframes cv-status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ============ CATEGORIES (legacy) ============ */
.categories .card {
  background: linear-gradient(160deg, var(--cv-charcoal) 0%, var(--cv-smoke) 100%);
  border: 1px solid var(--cv-line);
  border-radius: var(--cv-radius);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  isolation: isolate;
}

.categories .card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cv-grad-soft);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.categories .card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 31, 46, 0.4);
  box-shadow: var(--cv-shadow-hover);
}

.categories .card:hover::before {
  opacity: 1;
}

.categories .card-img-top {
  background: linear-gradient(135deg, var(--cv-night), var(--cv-charcoal));
  position: relative;
}
.categories .card-img-top img {
  border-radius: var(--cv-radius) var(--cv-radius) 0 0;
  transition: transform 0.6s ease;
}
.categories .card:hover .card-img-top img {
  transform: scale(1.06);
}
.categories .card .card-img-top svg {
  color: var(--cv-red);
  opacity: 0.55 !important;
  filter: drop-shadow(0 0 16px var(--cv-red-glow-soft));
}

.categories .card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.categories .card-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.categories .card-text {
  color: var(--cv-text-dim);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ============ PRODUCT CARDS ============ */
/* ============ PRODUCT CARD — Code Vault edition ============ */
.cv-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #14171e 0%, #0a0c10 100%);
  border: 1px solid var(--cv-line);
  border-radius: var(--cv-radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: var(--cv-text);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
  height: 100%;
}

/* Animated red gradient border on hover */
.cv-product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--cv-red) 0%, transparent 35%, transparent 65%, var(--cv-red) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 3;
}

.cv-product-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 28px 50px -20px rgba(255, 31, 46, 0.35),
              0 0 0 1px rgba(255, 31, 46, 0.18);
}

.cv-product-card:hover::before { opacity: 1; }

/* ----- Media: square edge-to-edge image ----- */
.cv-product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0a0c10;
  overflow: hidden;
  border-bottom: 1px solid var(--cv-line);
}

/* Red glow that rises from below on hover (sits in front of the image) */
.cv-product-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 31, 46, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}
.cv-product-card:hover .cv-product-media::after { opacity: 1; }

/* Subtle top-down vignette so the stock pill / badges stay readable */
.cv-product-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 22%, transparent 78%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.cv-product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.cv-product-card:hover .cv-product-img { transform: scale(1.07); }

/* Placeholder (only shown when product has no image) */
.cv-product-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 31, 46, 0.14), transparent 65%),
    linear-gradient(135deg, #0a0c10 0%, #14171e 100%);
  z-index: 0;
}
.cv-product-placeholder::before {
  content: '';
  position: absolute;
  inset: 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);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 78%);
}
.cv-product-placeholder svg { width: 80px; height: 80px; opacity: 0.5; }

/* Stock pill — top-right over the image */
.cv-stock-pill {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--cv-line-strong);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--cv-text);
}
.cv-stock-pill.is-out { color: #ff8a92; border-color: rgba(255, 31, 46, 0.4); }
.cv-stock-pill i { font-size: 0.7rem; color: var(--cv-red-soft); }
.cv-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.cv-dot-green {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: cv-stock-pulse 2s infinite;
}
.cv-dot-red { background: var(--cv-red); box-shadow: 0 0 8px var(--cv-red); }
@keyframes cv-stock-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.3); }
}

/* Admin-defined badges rendered as a chip below the title (matches category chip) */
.cv-cat-chip-badge {
  color: #fff !important;
  /* background-color set inline from admin */
}
.cv-cat-chip-badge i {
  color: #fff;
}

/* ----- Body ----- */
.cv-product-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  position: relative;
  z-index: 2;
}

.cv-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cv-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-red-soft);
  background: rgba(255, 31, 46, 0.08);
  border: 1px solid rgba(255, 31, 46, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.cv-cat-chip-default {
  color: var(--cv-text-dim);
  border-color: var(--cv-line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.cv-cat-chip i { font-size: 0.65rem; }

.cv-product-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cv-product-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}
.cv-product-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--cv-text-dim);
}
.cv-product-features li i {
  width: 14px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--cv-red);
}

/* Foot row — price + action button */
.cv-product-foot {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--cv-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cv-product-price {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1;
}
.cv-price-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cv-text-mute);
  font-weight: 600;
}
.cv-price-value {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.cv-price-slash {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cv-text-mute);
  opacity: 0.7;
}

.cv-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--cv-red), var(--cv-red-deep));
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px var(--cv-red-glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  white-space: nowrap;
}
.cv-buy-btn i {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.7rem;
}
.cv-product-card:hover .cv-buy-btn {
  box-shadow: 0 12px 24px var(--cv-red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.cv-product-card:hover .cv-buy-btn i { transform: translateX(3px); }

@media (max-width: 575px) {
  .cv-product-body { padding: 1rem 1rem 1.1rem; }
  .cv-product-title { font-size: 1.05rem; }
  .cv-price-value { font-size: 1.15rem; }
  .cv-buy-btn { font-size: 0.72rem; padding: 0.5rem 0.8rem; }
  .cv-product-features li { font-size: 0.74rem; }
}

/* ============ FEATURES ============ */
.features .feature {
  background: linear-gradient(160deg, var(--cv-charcoal) 0%, var(--cv-smoke) 100%);
  border: 1px solid var(--cv-line);
  border-radius: var(--cv-radius);
  padding: 2.5rem 1.75rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.features .feature::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cv-red), transparent);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.features .feature:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 31, 46, 0.4);
  box-shadow: 0 20px 40px -20px var(--cv-red-glow);
}

.features .feature:hover::before {
  opacity: 1;
}

.features .feature i {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--cv-red);
  background: rgba(255, 31, 46, 0.1);
  width: 4.5rem;
  height: 4.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cv-radius);
  border: 1px solid rgba(255, 31, 46, 0.25);
  transition: all 0.3s ease;
}

.features .feature:hover i {
  background: var(--cv-red);
  color: #fff;
  box-shadow: 0 0 30px var(--cv-red-glow);
  transform: scale(1.08);
}

.features .feature .title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.features .feature .description {
  font-size: 0.9rem;
  color: var(--cv-text-dim);
  padding: 0;
  line-height: 1.6;
}

/* ============ TESTIMONIALS / FEEDBACKS ============ */
.testimonial {
  background: linear-gradient(160deg, var(--cv-charcoal) 0%, var(--cv-smoke) 100%);
  border: 1px solid var(--cv-line);
  border-radius: var(--cv-radius);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.testimonial::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--cv-grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 31, 46, 0.3);
  box-shadow: 0 16px 32px -16px rgba(255, 31, 46, 0.2);
}

.testimonial:hover::after {
  opacity: 1;
}

.testimonial .header {
  padding: 1.25rem 1.5rem 0;
}

.testimonial .header svg {
  color: rgba(255, 31, 46, 0.18);
  width: 2.5rem;
  height: 2.5rem;
}

.testimonial .stars svg {
  color: #facc15;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.5));
}

.testimonial .content .reply {
  background: rgba(255, 31, 46, 0.06);
  border: 1px solid rgba(255, 31, 46, 0.15);
  border-radius: var(--cv-radius-sm);
}

.testimonial .content .reply .text {
  border-left-color: var(--cv-red);
}

.testimonial .footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--cv-line);
}

/* ============ FOOTER ============ */
footer.footer {
  background: linear-gradient(180deg, transparent 0%, var(--cv-night) 100%);
  border-top: 1px solid var(--cv-line);
  margin-top: 4rem;
  padding-top: 2rem;
  position: relative;
}

footer.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cv-red), transparent);
  transform: translateX(-50%);
  box-shadow: 0 0 20px var(--cv-red-glow);
}

.footer .logo {
  margin-bottom: 1.5rem;
}

.footer .logo img {
  max-height: 3.2rem;
  filter: drop-shadow(0 0 20px var(--cv-red-glow-soft));
}

.footer h5 {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
  color: var(--cv-text-mute);
  font-weight: 600;
}

.footer .nav li {
  margin-bottom: 0.5rem;
}

.footer .nav li a {
  color: var(--cv-text-dim);
  padding: 0;
  font-size: 0.92rem;
  position: relative;
  transition: all 0.25s ease;
  display: inline-block;
}

.footer .nav li a:hover {
  color: var(--cv-red);
  transform: translateX(4px);
}

/* ============ CART & MISC ============ */
.cart .product,
.cart .form {
  background: var(--cv-charcoal);
  border: 1px solid var(--cv-line);
  border-radius: var(--cv-radius);
}

.cart-item-bg {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: var(--cv-line) !important;
}

.cart-qty-btn {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--cv-radius-sm);
}
.cart-qty-btn:hover:not(:disabled) {
  background: var(--cv-red);
}

/* ============================================================
   PRODUCT DETAIL PAGE — Code Vault edition
   ============================================================ */
.cv-product-page { padding-top: 0; }

.cv-pp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 992px) {
  .cv-pp {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }
}

/* ===== GALLERY ===== */
.cv-pp-gallery {
  position: relative;
}
@media (min-width: 992px) {
  .cv-pp-gallery {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.cv-gallery-card {
  background: linear-gradient(165deg, #14171e 0%, #0a0c10 100%);
  border: 1px solid var(--cv-line);
  border-radius: var(--cv-radius-lg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.cv-gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 31, 46, 0.5), transparent 40%, transparent 60%, rgba(255, 31, 46, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.cv-gallery-carousel,
.cv-gallery-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0a0c10;
  overflow: hidden;
}

.cv-gallery-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-gallery-card:hover .cv-gallery-img { transform: scale(1.08); }

/* Mesh + glow overlay so badges/buttons read against any image */
.cv-gallery-carousel::after,
.cv-gallery-frame:not(.cv-gallery-placeholder)::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.3), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 31, 46, 0.15), transparent 50%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.5;
  z-index: 1;
}

.cv-gallery-placeholder svg {
  width: 35%;
  height: 35%;
  opacity: 0.35;
}

.cv-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 13, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--cv-line-strong);
  border-radius: 50%;
  color: #fff;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cv-gallery-prev { left: 0.75rem; }
.cv-gallery-next { right: 0.75rem; }
.cv-gallery-card:hover .cv-gallery-nav { opacity: 1; }
.cv-gallery-nav:hover {
  background: var(--cv-red);
  border-color: var(--cv-red);
  box-shadow: 0 0 18px var(--cv-red-glow);
  transform: translateY(-50%) scale(1.08);
}

/* Thumbnails strip */
.cv-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.cv-thumb {
  position: relative;
  background: var(--cv-charcoal);
  border: 1.5px solid var(--cv-line);
  border-radius: 0.6rem;
  padding: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.55;
}
.cv-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cv-thumb:hover { opacity: 0.85; border-color: rgba(255, 31, 46, 0.5); }
.cv-thumb.active {
  opacity: 1;
  border-color: var(--cv-red);
  box-shadow: 0 0 0 2px rgba(255, 31, 46, 0.3), 0 6px 14px var(--cv-red-glow-soft);
}

/* Trust strip under gallery */
.cv-pp-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.cv-pp-trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(160deg, var(--cv-charcoal), var(--cv-night));
  border: 1px solid var(--cv-line);
  border-radius: var(--cv-radius);
  transition: all 0.3s ease;
}
.cv-pp-trust-item:hover {
  border-color: rgba(255, 31, 46, 0.4);
  transform: translateY(-2px);
}
.cv-pp-trust-item i {
  font-size: 1.1rem;
  color: var(--cv-red);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--cv-red-glow-soft));
}
.cv-pp-trust-item div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.cv-pp-trust-item span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}
.cv-pp-trust-item small {
  font-size: 0.65rem;
  color: var(--cv-text-mute);
  margin-top: 2px;
}
@media (max-width: 575px) {
  .cv-pp-trust { grid-template-columns: 1fr; }
}

/* ===== INFO / BUY ===== */
.cv-pp-info { min-width: 0; }

.cv-pp-buy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cv-pp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.cv-cat-chip-link {
  text-decoration: none;
  transition: all 0.25s ease;
}
.cv-cat-chip-link:hover {
  background: rgba(255, 31, 46, 0.15);
  color: var(--cv-red);
}
.cv-pp-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cv-line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.cv-pp-status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cv-pp-status-dot .pulsating {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  animation: pulsating 1.5s linear infinite;
}

.cv-pp-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cv-pp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cv-pp-badges div {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 31, 46, 0.12);
  color: var(--cv-red-soft);
  border: 1px solid rgba(255, 31, 46, 0.3);
  border-radius: 0.5rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Price + stock row */
.cv-pp-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 31, 46, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--cv-line-strong);
  border-radius: var(--cv-radius);
}
.cv-pp-price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cv-pp-price-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cv-text-mute);
}
.cv-pp-price-value {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--cv-red-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cv-pp-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: rgba(8, 9, 13, 0.7);
  border: 1px solid var(--cv-line-strong);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.cv-pp-stock-pill.is-out { color: #ff8a92; border-color: rgba(255, 31, 46, 0.4); }

/* Live stats */
.cv-pp-live {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 31, 46, 0.04);
  border: 1px solid rgba(255, 31, 46, 0.15);
  border-radius: var(--cv-radius);
}
.cv-pp-live-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--cv-text-dim);
}
.cv-pp-live-item i {
  width: 16px;
  text-align: center;
  color: var(--cv-red);
  font-size: 0.85rem;
}
.cv-pp-live-item strong { color: #fff; font-weight: 700; }

/* ===== FORM (form snippet rendered inside .cv-pp-buy) ===== */
.cv-pp-buy form .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  margin: 0;
}

.cv-pp-buy .form-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cv-text-mute);
  margin-bottom: 0.5rem;
  display: block;
}

/* ----- Variants ----- */
.cv-pp-buy .variants {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cv-pp-buy .variants .variant {
  width: 100%;
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem !important;
  background: rgba(255, 255, 255, 0.025);
  border: 1.5px solid var(--cv-line-strong);
  border-radius: var(--cv-radius);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-pp-buy .variants .variant::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 60%;
  background: var(--cv-red);
  border-radius: 0 4px 4px 0;
  transform: translateY(-50%) scaleY(0);
  transition: transform 0.3s ease;
}
.cv-pp-buy .variants .variant:hover {
  border-color: rgba(255, 31, 46, 0.5);
  background: rgba(255, 31, 46, 0.05);
  transform: translateX(2px);
}
.cv-pp-buy .variants .variant.active {
  border-color: var(--cv-red);
  background: rgba(255, 31, 46, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 31, 46, 0.15), 0 8px 20px var(--cv-red-glow-soft);
}
.cv-pp-buy .variants .variant.active::before { transform: translateY(-50%) scaleY(1); }
.cv-pp-buy .variants .variant .name-stock { text-align: left; }
.cv-pp-buy .variants .variant .name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.cv-pp-buy .variants .variant .description {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--cv-text-dim);
}
.cv-pp-buy .variants .variant .stock {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  color: var(--cv-text-mute);
}
.cv-pp-buy .variants .variant .price {
  background: rgba(255, 31, 46, 0.15);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 31, 46, 0.3);
}
.cv-pp-buy .variants .variant .active-indicator {
  position: absolute;
  top: -8px;
  right: -6px;
  background: var(--cv-charcoal);
  border-radius: 50%;
}
.cv-pp-buy .variants .variant .active-indicator svg {
  width: 22px;
  height: 22px;
  color: var(--cv-red) !important;
  filter: drop-shadow(0 0 8px var(--cv-red-glow));
}
.cv-pp-buy .variants .variant:disabled,
.cv-pp-buy .variants .variant[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.cv-pp-buy .variants .variant:disabled:hover {
  transform: none;
  border-color: var(--cv-line-strong);
  background: rgba(255, 255, 255, 0.025);
}

/* ----- Quantity stepper ----- */
.cv-pp-buy .input-group {
  background: rgba(255, 255, 255, 0.025);
  border: 1.5px solid var(--cv-line-strong);
  border-radius: var(--cv-radius);
  padding: 0.3rem;
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 200px;
  transition: border-color 0.3s ease;
}
.cv-pp-buy .input-group:focus-within {
  border-color: var(--cv-red);
  box-shadow: 0 0 0 3px rgba(255, 31, 46, 0.12);
}
.cv-pp-buy .input-group .input-group-btn {
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 31, 46, 0.1);
  border: 1px solid rgba(255, 31, 46, 0.25);
  color: var(--cv-red-soft);
  border-radius: 0.5rem;
  transition: all 0.25s ease;
}
.cv-pp-buy .input-group .input-group-btn:hover:not(:disabled) {
  background: var(--cv-red);
  border-color: var(--cv-red);
  color: #fff;
  transform: scale(1.05);
}
.cv-pp-buy .input-group .input-group-btn:active:not(:disabled) {
  transform: scale(0.95);
}
.cv-pp-buy .input-group .input-group-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.cv-pp-buy .input-group .input-group-btn svg {
  width: 1rem;
  height: 1rem;
}
.cv-pp-buy .input-group input[type="number"] {
  flex: 1;
  width: 5rem;
  height: 2.2rem;
  background: transparent !important;
  border: none !important;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  outline: none;
  box-shadow: none !important;
}

/* Volume / quantity prompts */
.cv-pp-buy [x-show*="nextVolumeDiscount"] .form-control {
  background: rgba(34, 197, 94, 0.08) !important;
  border: 1px dashed rgba(34, 197, 94, 0.4);
  color: #86efac;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--cv-radius);
  padding: 0.55rem 0.75rem;
}

/* ----- Addons ----- */
.cv-pp-buy .addon-item {
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid var(--cv-line-strong) !important;
  border-radius: var(--cv-radius) !important;
  padding: 0.85rem !important;
  transition: all 0.25s ease;
}
.cv-pp-buy .addon-item:hover {
  background: rgba(255, 31, 46, 0.04) !important;
  border-color: rgba(255, 31, 46, 0.3) !important;
}
.cv-pp-buy .addon-image {
  width: 44px !important;
  height: 44px !important;
  border-radius: 0.5rem !important;
  object-fit: cover;
}
.cv-pp-buy .btn-addon-add {
  background: rgba(255, 31, 46, 0.1) !important;
  border: 1px solid rgba(255, 31, 46, 0.3) !important;
  color: var(--cv-red-soft) !important;
  border-radius: 0.5rem;
}
.cv-pp-buy .btn-addon-add:hover:not(:disabled) {
  background: var(--cv-red) !important;
  color: #fff !important;
}
.cv-pp-buy .btn-addon-remove {
  background: rgba(220, 38, 38, 0.1) !important;
  border: 1px solid rgba(220, 38, 38, 0.3) !important;
  color: #f87171 !important;
}

/* ----- Buy buttons ----- */
.cv-pp-buy .buy-buttons {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.75rem !important;
  margin-top: 1.25rem !important;
}
@media (min-width: 768px) {
  .cv-pp-buy .buy-buttons {
    grid-template-columns: 1fr 1fr;
  }
}
.cv-pp-buy .buy-buttons .col {
  padding: 0;
  flex: 1;
}
.cv-pp-buy .buy-buttons .btn {
  width: 100%;
  height: 3.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--cv-radius);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-pp-buy .buy-buttons .btn svg {
  width: 1.1rem !important;
  height: 1.1rem !important;
}

/* Add to Cart — primary red gradient */
.cv-pp-buy .buy-buttons .btn-primary {
  background: linear-gradient(135deg, var(--cv-red), var(--cv-red-deep));
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 10px 24px var(--cv-red-glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.cv-pp-buy .buy-buttons .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.7s;
  pointer-events: none;
}
.cv-pp-buy .buy-buttons .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px var(--cv-red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.cv-pp-buy .buy-buttons .btn-primary:hover:not(:disabled)::before { left: 100%; }
.cv-pp-buy .buy-buttons .btn-primary:disabled { opacity: 0.55; }

/* Buy Now — outline variant */
.cv-pp-buy .buy-buttons .btn-outline-primary {
  background: rgba(255, 31, 46, 0.04);
  border: 1.5px solid rgba(255, 31, 46, 0.45);
  color: #fff;
  backdrop-filter: blur(10px);
}
.cv-pp-buy .buy-buttons .btn-outline-primary:hover:not(:disabled) {
  background: rgba(255, 31, 46, 0.12);
  border-color: var(--cv-red);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px var(--cv-red-glow-soft);
}

/* ----- Inline trust badges below buy buttons ----- */
.cv-pp-trust-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--cv-line-strong);
  border-radius: var(--cv-radius);
}
.cv-pp-trust-inline span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cv-text-dim);
}
.cv-pp-trust-inline span i {
  font-size: 0.82rem;
  color: var(--cv-red);
}

/* ===== TABS / DESCRIPTION / REVIEWS ===== */
.cv-pp-details {
  margin-top: 1rem;
  background: linear-gradient(165deg, var(--cv-charcoal) 0%, var(--cv-night) 100%);
  border: 1px solid var(--cv-line);
  border-radius: var(--cv-radius-lg);
  padding: 0;
  overflow: hidden;
}

.cv-pp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--cv-line);
  background: rgba(0, 0, 0, 0.2);
}
.cv-pp-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--cv-text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cv-pp-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.cv-pp-tab.is-active {
  color: #fff;
  background: rgba(255, 31, 46, 0.12);
  border-color: rgba(255, 31, 46, 0.35);
  box-shadow: 0 4px 12px var(--cv-red-glow-soft);
}
.cv-pp-tab i { font-size: 0.85rem; }
.cv-pp-tab-count {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  background: rgba(255, 31, 46, 0.2);
  color: var(--cv-red-soft);
  border-radius: 999px;
  font-weight: 800;
  margin-left: 2px;
}

.cv-pp-tab-content {
  padding: 1.75rem 1.75rem;
  min-height: 120px;
}

.cv-pp-desc {
  color: var(--cv-text);
  font-size: 0.95rem;
  line-height: 1.7;
}
.cv-pp-desc h1, .cv-pp-desc h2, .cv-pp-desc h3 { color: #fff; }
.cv-pp-desc img { max-width: 100%; border-radius: var(--cv-radius); }
.cv-pp-desc a { color: var(--cv-red-soft); }
.cv-pp-desc a:hover { color: var(--cv-red); }

/* Reviews tab */
.cv-pp-reviews {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cv-pp-reviews-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 31, 46, 0.04);
  border: 1px solid rgba(255, 31, 46, 0.15);
  border-radius: var(--cv-radius);
}
.cv-pp-reviews-score { display: flex; flex-direction: column; gap: 0.4rem; }
.cv-pp-reviews-score-num {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.cv-pp-reviews-stars { display: flex; gap: 0.2rem; }
.cv-pp-reviews-stars i {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}
.cv-pp-reviews-stars i.is-full {
  color: #facc15;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.4));
}
.cv-pp-reviews-count {
  font-size: 0.75rem;
  color: var(--cv-text-mute);
}
.cv-pp-reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .cv-pp-reviews-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Upsells ===== */
.cv-pp-upsells {
  margin-top: 3rem;
}

@media (max-width: 991px) {
  .cv-pp-tab-content { padding: 1.25rem; }
  .cv-pp-reviews-summary { padding: 1rem; gap: 1.25rem; flex-wrap: wrap; }
  .cv-pp-reviews-score-num { font-size: 2.2rem; }
}

/* ===== Legacy live-stats container (no longer used but kept for safety) ===== */
.live-stats {
  background: rgba(255, 31, 46, 0.04);
  border: 1px solid rgba(255, 31, 46, 0.12);
  border-radius: var(--cv-radius);
  padding: 1rem;
}
.live-stats svg { color: var(--cv-red); }

/* ============ FAQ ============ */
.faq .accordion {
  --bs-accordion-btn-bg: var(--cv-charcoal);
  --bs-accordion-active-bg: var(--cv-charcoal);
  --bs-accordion-border-color: var(--cv-line);
  --bs-accordion-active-color: var(--cv-red);
}

.faq .accordion-item {
  background: var(--cv-charcoal);
  border: 1px solid var(--cv-line);
  border-radius: var(--cv-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq .accordion-item:hover {
  border-color: rgba(255, 31, 46, 0.3);
}

.faq .accordion-button {
  font-weight: 600;
  padding: 1.25rem 1.5rem;
}

/* ============ STATUS ============ */
.status-card {
  background: var(--cv-charcoal);
  border: 1px solid var(--cv-line);
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.status-card:hover {
  border-color: rgba(255, 31, 46, 0.3);
  transform: translateX(4px);
}

/* ============ MODALS ============ */
.modal-content {
  background: rgba(13, 15, 20, 0.96);
  backdrop-filter: blur(40px);
  border: 1px solid var(--cv-line-strong);
  border-radius: var(--cv-radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}

.modal-header {
  border-bottom: 1px solid var(--cv-line);
}

.modal-footer {
  border-top: 1px solid var(--cv-line);
}

/* ============ CURRENCY SELECTOR ============ */
.currency-selector .choices__inner {
  background-color: rgba(255, 31, 46, 0.05) !important;
  border: 1px solid rgba(255, 31, 46, 0.4) !important;
  border-radius: var(--cv-radius-sm) !important;
  transition: all 0.3s ease;
}

.currency-selector .choices__inner:hover {
  background-color: rgba(255, 31, 46, 0.1) !important;
  border-color: var(--cv-red) !important;
}

.currency-selector .symbol {
  color: var(--cv-red) !important;
}

/* ============ SCROLL REVEAL ============ */
.cv-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-reveal.cv-visible {
  opacity: 1;
  transform: translateY(0);
}

.cv-reveal-delay-1 { transition-delay: 0.1s; }
.cv-reveal-delay-2 { transition-delay: 0.2s; }
.cv-reveal-delay-3 { transition-delay: 0.3s; }
.cv-reveal-delay-4 { transition-delay: 0.4s; }

/* Stagger for product grids */
.products .row > [class*="col-"] {
  opacity: 0;
  transform: translateY(30px);
  animation: cardFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.products .row > [class*="col-"]:nth-child(1)  { animation-delay: 0.05s; }
.products .row > [class*="col-"]:nth-child(2)  { animation-delay: 0.10s; }
.products .row > [class*="col-"]:nth-child(3)  { animation-delay: 0.15s; }
.products .row > [class*="col-"]:nth-child(4)  { animation-delay: 0.20s; }
.products .row > [class*="col-"]:nth-child(5)  { animation-delay: 0.25s; }
.products .row > [class*="col-"]:nth-child(6)  { animation-delay: 0.30s; }
.products .row > [class*="col-"]:nth-child(7)  { animation-delay: 0.35s; }
.products .row > [class*="col-"]:nth-child(8)  { animation-delay: 0.40s; }

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

/* ============ TRUST PILLS (under hero stats) ============ */
.cv-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
}

.cv-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cv-line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cv-text-dim);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cv-trust-pill i {
  color: var(--cv-red);
  font-size: 0.8rem;
}

.cv-trust-pill:hover {
  background: rgba(255, 31, 46, 0.06);
  border-color: rgba(255, 31, 46, 0.35);
  color: #fff;
  transform: translateY(-2px);
}

/* ============ TRUST STRIP ============ */
.cv-trust-strip {
  background: linear-gradient(90deg, rgba(255, 31, 46, 0.03), rgba(255, 31, 46, 0.06), rgba(255, 31, 46, 0.03));
  border-top: 1px solid var(--cv-line);
  border-bottom: 1px solid var(--cv-line);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.cv-trust-strip .trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--cv-text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  justify-content: center;
}

.cv-trust-strip .trust-item .icon {
  width: 2.5rem; height: 2.5rem;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(255, 31, 46, 0.1);
  color: var(--cv-red);
  border: 1px solid rgba(255, 31, 46, 0.25);
  border-radius: 50%;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.cv-trust-strip .trust-item:hover .icon {
  background: var(--cv-red);
  color: #fff;
  box-shadow: 0 0 20px var(--cv-red-glow);
  transform: scale(1.1);
}

/* ============ MOBILE ============ */
@media (max-width: 991px) {
  .navbar {
    padding: 0.4rem 0;
  }

  .navbar .navbar-brand {
    font-size: 1.1rem;
    padding-right: 0.5rem;
  }

  .navbar .navbar-brand img {
    max-height: 2.2rem;
  }

  .navbar .navbar-collapse {
    padding: 1rem 0;
    background: rgba(8, 9, 13, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--cv-radius);
    border: 1px solid var(--cv-line);
    margin-top: 0.75rem;
  }

  .navbar .navbar-nav {
    padding: 0 1rem;
    gap: 0 !important;
  }

  .navbar .navbar-nav .gap-3 {
    padding-top: 0.5rem;
    padding-bottom: 0;
  }

  .navbar .nav-link::after {
    display: none;
  }

  .navbar .nav-link {
    padding: 0.75rem 0.5rem !important;
    border-bottom: 1px solid var(--cv-line);
    transition: padding 0.25s ease, color 0.25s ease;
  }

  .navbar .nav-link:hover {
    color: var(--cv-red) !important;
    padding-left: 1rem !important;
  }

  .navbar .user .btn,
  .navbar .cart .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .hero .container {
    padding: 4.5rem 1.25rem 3rem;
  }

  .hero .content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero .content p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .hero .content .stats {
    width: 100%;
    display: flex;
  }

  .hero-orb-1, .hero-orb-2 {
    width: 280px;
    height: 280px;
    filter: blur(60px);
  }
  .hero-orb-3 { display: none; }

  .section-title h1,
  .section-title h2 {
    font-size: 1.6rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .features .feature {
    padding: 2rem 1.5rem;
  }

  .footer {
    text-align: left;
  }

  .footer .row > [class*="col-"] {
    margin-bottom: 1.5rem;
  }

  .product-wrapper h1 {
    font-size: 1.8rem;
  }

  .cv-trust-row {
    gap: 0.4rem;
  }

  .cv-trust-pill {
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
  }
}

@media (max-width: 575px) {
  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .hero .fake-searchbar input {
    padding: 0.95rem 1.25rem 0.95rem 3.25rem !important;
    font-size: 0.92rem;
  }
  .navbar .navbar-brand span {
    font-size: 1rem;
  }
  .modal-content {
    border-radius: var(--cv-radius);
  }
  .cv-trust-row {
    margin-bottom: 1rem;
  }
}

/* Touch device tweaks */
@media (hover: none) {
  .products .card:hover,
  .categories .card:hover,
  .features .feature:hover,
  .testimonial:hover {
    transform: none;
    box-shadow: var(--cv-shadow-card);
  }
  .products .card .card-img-top .overlay {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cv-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Bottom area page padding so footer doesn't crowd */
.flex-wrapper {
  background: transparent;
}
