/* ============================================================
   Vivid Theme — PayCard Frontend Rebuild
   Vibrant, animated, modern gaming-store aesthetic.
   Loads after wep3d.css and overrides it.
   ============================================================ */

:root {
  /* Vivid palette */
  --vivid-primary: #7c3aed;
  --vivid-primary-rgb: 124, 58, 237;
  --vivid-primary-dark: #6d28d9;
  --vivid-primary-light: #8b5cf6;
  --vivid-secondary: #ec4899;
  --vivid-secondary-rgb: 236, 72, 153;
  --vivid-accent: #06b6d4;
  --vivid-accent-rgb: 6, 182, 212;
  --vivid-gold: #f59e0b;
  --vivid-gold-rgb: 245, 158, 11;
  --vivid-success: #10b981;
  --vivid-info: #3b82f6;
  --vivid-warning: #f59e0b;
  --vivid-danger: #ef4444;

  /* Surfaces — light, airy, glassy */
  --vivid-bg: #f3f4ff;
  --vivid-bg-elevated: #ffffff;
  --vivid-bg-soft: #e9eafc;
  --vivid-bg-card: rgba(255, 255, 255, 0.85);

  /* Text */
  --vivid-text: #1e1b4b;
  --vivid-text-secondary: #4c4898;
  --vivid-text-muted: #7c7db0;

  /* Borders */
  --vivid-border: rgba(124, 58, 237, 0.12);
  --vivid-border-strong: rgba(124, 58, 237, 0.22);

  /* Override wep variables */
  --wep-primary: var(--vivid-primary);
  --wep-primary-rgb: var(--vivid-primary-rgb);
  --wep-primary-light: var(--vivid-primary-light);
  --wep-primary-dark: var(--vivid-primary-dark);
  --wep-primary-soft: rgba(124, 58, 237, 0.10);
  --wep-secondary: var(--vivid-secondary);
  --wep-secondary-rgb: var(--vivid-secondary-rgb);
  --wep-accent: var(--vivid-accent);
  --wep-gold: var(--vivid-gold);
  --wep-gold-rgb: var(--vivid-gold-rgb);
  --wep-gold-soft: rgba(245, 158, 11, 0.14);
  --wep-cyan: var(--vivid-accent);
  --wep-cyan-rgb: var(--vivid-accent-rgb);

  --wep-bg: var(--vivid-bg);
  --wep-bg-elevated: var(--vivid-bg-elevated);
  --wep-bg-card: var(--vivid-bg-card);
  --wep-bg-card-hover: #ffffff;
  --wep-bg-soft: var(--vivid-bg-soft);

  --wep-text: var(--vivid-text);
  --wep-text-secondary: var(--vivid-text-secondary);
  --wep-text-muted: var(--vivid-text-muted);

  --wep-border: var(--vivid-border);
  --wep-border-strong: var(--vivid-border-strong);

  --wep-shadow-xs: 0 2px 4px rgba(30, 27, 75, 0.04);
  --wep-shadow-sm: 0 4px 8px rgba(30, 27, 75, 0.06);
  --wep-shadow: 0 8px 24px rgba(30, 27, 75, 0.08);
  --wep-shadow-md: 0 16px 40px rgba(30, 27, 75, 0.10);
  --wep-shadow-colored: 0 12px 32px rgba(124, 58, 237, 0.18);

  /* Bootstrap overrides */
  --bs-primary: var(--vivid-primary);
  --bs-primary-rgb: var(--vivid-primary-rgb);
  --bs-body-bg: var(--vivid-bg);
  --bs-body-color: var(--vivid-text);
  --bs-border-color: var(--vivid-border);
  --bs-link-color: var(--vivid-primary);
  --bs-link-hover-color: var(--vivid-primary-dark);
}

/* ============================================================
   Global & typography
   ============================================================ */
.theme-vivid {
  background: var(--vivid-bg);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(124, 58, 237, 0.10) 0%, transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(236, 72, 153, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 35%);
  background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
  .theme-vivid *,
  .theme-vivid *::before,
  .theme-vivid *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .theme-vivid .fa-bolt,
  .theme-vivid .fa-key,
  .theme-vivid .fa-tv,
  .theme-vivid .fa-gamepad,
  .theme-vivid .fa-shield-alt,
  .theme-vivid .fa-headset,
  .theme-vivid .fa-gem {
    animation: none !important;
  }
}

.theme-vivid main {
  position: relative;
}

.theme-vivid h1,
.theme-vivid h2,
.theme-vivid h3,
.theme-vivid h4,
.theme-vivid h5,
.theme-vivid h6 {
  color: var(--vivid-text);
  font-weight: 800;
}

.theme-vivid .font-gaming {
  background: linear-gradient(90deg, var(--vivid-primary) 0%, var(--vivid-secondary) 50%, var(--vivid-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.theme-vivid .btn-primary {
  background: linear-gradient(135deg, var(--vivid-primary) 0%, var(--vivid-primary-light) 100%);
  border: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-vivid .btn-primary:hover,
.theme-vivid .btn-primary:focus {
  background: linear-gradient(135deg, var(--vivid-primary-dark) 0%, var(--vivid-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
}

.theme-vivid .btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--vivid-primary);
  border: none;
  box-shadow: 0 4px 14px rgba(30, 27, 75, 0.10);
  font-weight: 700;
}

.theme-vivid .btn-light:hover {
  background: #fff;
  color: var(--vivid-primary-dark);
  transform: translateY(-2px);
}

.theme-vivid .btn-outline-primary {
  color: var(--vivid-primary);
  border-color: var(--vivid-primary);
  font-weight: 700;
}

.theme-vivid .btn-outline-primary:hover {
  background: var(--vivid-primary);
  color: #fff;
}

/* ============================================================
   Navbar
   ============================================================ */
.theme-vivid .navbar {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--vivid-border);
  box-shadow: 0 4px 20px rgba(30, 27, 75, 0.05);
}

.theme-vivid .navbar-brand {
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--vivid-text) !important;
}

.theme-vivid .nav-link {
  color: var(--vivid-text-secondary) !important;
  font-weight: 600;
  position: relative;
}

.theme-vivid .nav-link:hover,
.theme-vivid .nav-link.active {
  color: var(--vivid-primary) !important;
}

.theme-vivid .nav-link::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--vivid-primary), var(--vivid-secondary));
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

/* ============================================================
   Hero carousel
   ============================================================ */
.theme-vivid .wep-hero-carousel {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--wep-shadow-colored);
  border: 1px solid var(--vivid-border);
}

.theme-vivid .wep-hero-carousel .carousel-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%);
}

@media (min-width: 576px) {
  .theme-vivid .wep-hero-carousel .carousel-item {
    aspect-ratio: 21 / 9;
    min-height: 220px;
  }
}

@media (min-width: 992px) {
  .theme-vivid .wep-hero-carousel .carousel-item {
    aspect-ratio: 21 / 8;
    min-height: 280px;
  }
}

.theme-vivid .wep-hero-carousel.single-banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--wep-shadow-colored);
  border: 1px solid var(--vivid-border);
  aspect-ratio: 16 / 9;
  min-height: 180px;
}

@media (min-width: 576px) {
  .theme-vivid .wep-hero-carousel.single-banner {
    aspect-ratio: 21 / 9;
    min-height: 220px;
  }
}

@media (min-width: 992px) {
  .theme-vivid .wep-hero-carousel.single-banner {
    aspect-ratio: 21 / 8;
    min-height: 280px;
  }
}

.theme-vivid .wep-hero-carousel.single-banner .carousel-image-only,
.theme-vivid .wep-hero-carousel.single-banner .carousel-image-only img,
.theme-vivid .wep-hero-carousel .carousel-image-only,
.theme-vivid .wep-hero-carousel .carousel-image-only img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.theme-vivid .wep-hero-carousel.single-banner .carousel-image-only,
.theme-vivid .wep-hero-carousel .carousel-image-only {
  position: absolute;
  inset: 0;
}

.theme-vivid .wep-hero-carousel .carousel-caption {
  position: relative;
}

.theme-vivid .wep-hero-carousel .carousel-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--vivid-text);
}

.theme-vivid .wep-hero-carousel .carousel-caption h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--vivid-primary), var(--vivid-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: vividFadeInUp 0.8s ease both;
}

.theme-vivid .wep-hero-carousel .carousel-caption p {
  font-size: 1.15rem;
  color: var(--vivid-text-secondary);
  max-width: 560px;
  animation: vividFadeInUp 0.8s 0.15s ease both;
}

.theme-vivid .wep-hero-carousel .carousel-caption .btn {
  animation: vividFadeInUp 0.8s 0.3s ease both;
}

.theme-vivid .wep-hero-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--vivid-primary);
  opacity: 0.35;
  transition: all 0.3s ease;
}

.theme-vivid .wep-hero-carousel .carousel-indicators button.active {
  width: 28px;
  border-radius: 6px;
  opacity: 1;
}

/* ============================================================
   Category banners
   ============================================================ */
.theme-vivid .wep-cat-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  background: var(--vivid-bg-card);
  border: 1px solid var(--vivid-border);
  box-shadow: var(--wep-shadow-sm);
  text-decoration: none;
  color: var(--vivid-text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(8px);
}

.theme-vivid .wep-cat-banner:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--wep-shadow-colored);
  border-color: var(--vivid-border-strong);
}

.theme-vivid .wep-cat-banner .icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--vivid-primary) 0%, var(--vivid-secondary) 100%);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
}

.theme-vivid .wep-cat-banner .title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.theme-vivid .wep-cat-banner .desc {
  color: var(--vivid-text-muted);
  margin: 0;
  font-size: 0.9rem;
}

.theme-vivid .wep-cat-banner.vertical {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
}

.theme-vivid .wep-cat-banner.vertical .icon {
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
}

.theme-vivid .wep-cat-banner.vertical .title {
  margin-bottom: 0;
  font-size: 1.1rem;
}

@media (max-width: 575.98px) {
  .theme-vivid .wep-cat-banner.vertical {
    padding: 1rem 0.35rem;
    gap: 0.5rem;
    border-radius: 16px;
  }

  .theme-vivid .wep-cat-banner.vertical .icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    border-radius: 12px;
  }

  .theme-vivid .wep-cat-banner.vertical .title {
    font-size: 0.78rem;
    line-height: 1.25;
  }
}

/* ============================================================
   Section headers
   ============================================================ */
.theme-vivid .wep-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.theme-vivid .wep-section-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--vivid-text);
  margin: 0;
}

.theme-vivid .wep-section-title::before {
  content: '';
  width: 6px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--vivid-primary), var(--vivid-secondary));
}

.theme-vivid .wep-section-link {
  color: var(--vivid-primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.theme-vivid .wep-section-link:hover {
  gap: 0.7rem;
  color: var(--vivid-primary-dark);
}

/* ============================================================
   Product grid
   ============================================================ */
.theme-vivid .wep-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .theme-vivid .wep-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }
}

.theme-vivid .wep-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.35rem;
  border-radius: 18px;
  background: var(--vivid-bg-card);
  border: 1px solid var(--vivid-border);
  box-shadow: var(--wep-shadow-sm);
  text-decoration: none;
  color: var(--vivid-text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 576px) {
  .theme-vivid .wep-grid-item {
    padding: 1.25rem 0.75rem;
    border-radius: 22px;
  }
}

.theme-vivid .wep-grid-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--wep-shadow-colored);
  border-color: var(--vivid-border-strong);
}

.theme-vivid .wep-grid-item .img-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--vivid-bg-soft) 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--vivid-border);
}

@media (min-width: 576px) {
  .theme-vivid .wep-grid-item .img-wrap {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 0.75rem;
  }
}

.theme-vivid .wep-grid-item .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-vivid .wep-grid-item .img-wrap i {
  color: var(--vivid-primary);
  font-size: 1.3rem;
}

@media (min-width: 576px) {
  .theme-vivid .wep-grid-item .img-wrap i {
    font-size: 1.6rem;
  }
}

.theme-vivid .wep-grid-item .name {
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.3;
}

@media (min-width: 576px) {
  .theme-vivid .wep-grid-item .name {
    font-size: 0.95rem;
  }
}

/* ============================================================
   Cards & feature blocks
   ============================================================ */
.theme-vivid .wep-card-action {
  background: var(--vivid-bg-card);
  border: 1px solid var(--vivid-border);
  border-radius: 24px;
  box-shadow: var(--wep-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
}

.theme-vivid .wep-card-action:hover {
  transform: translateY(-6px);
  box-shadow: var(--wep-shadow-colored);
}

.theme-vivid .wep-card-action i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(124, 58, 237, 0.10);
  color: var(--vivid-primary);
}

.theme-vivid .card {
  background: var(--vivid-bg-card);
  border: 1px solid var(--vivid-border);
  border-radius: 24px;
  box-shadow: var(--wep-shadow-sm);
}

.theme-vivid .card-header {
  background: transparent;
  border-bottom: 1px solid var(--vivid-border);
  font-weight: 800;
}

/* ============================================================
   Footer
   ============================================================ */
.theme-vivid footer {
  background: linear-gradient(180deg, var(--vivid-bg-elevated) 0%, var(--vivid-bg-soft) 100%);
  border-top: 1px solid var(--vivid-border);
  margin-top: auto;
}

/* ============================================================
   Forms
   ============================================================ */
.theme-vivid .form-control,
.theme-vivid .form-select {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--vivid-border-strong);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-vivid .form-control:focus,
.theme-vivid .form-select:focus {
  border-color: var(--vivid-primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
  background: #fff;
}

.theme-vivid .input-group-text {
  background: var(--vivid-bg-soft);
  border-color: var(--vivid-border-strong);
  color: var(--vivid-primary);
}

/* ============================================================
   Auth pages split design
   ============================================================ */
.theme-vivid .auth-split {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: stretch;
}

.theme-vivid .auth-visual {
  flex: 1;
  display: none;
  background: linear-gradient(135deg, var(--vivid-primary) 0%, var(--vivid-secondary) 100%);
  color: #fff;
  padding: 3rem;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.theme-vivid .auth-visual::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  animation: vividRotate 18s linear infinite;
}

@media (min-width: 992px) {
  .theme-vivid .auth-visual {
    display: flex;
  }
}

.theme-vivid .auth-form-card {
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 2.5rem;
  border-radius: 28px;
  background: var(--vivid-bg-card);
  border: 1px solid var(--vivid-border);
  box-shadow: var(--wep-shadow-md);
  backdrop-filter: blur(12px);
}

/* ============================================================
   Animated icons (FontAwesome + CSS)
   ============================================================ */
.theme-vivid .fa-bolt,
.theme-vivid .fa-bolt ~ i {
  animation: vividPulse 1.6s ease-in-out infinite;
}

.theme-vivid .fa-key {
  animation: vividWiggle 2.2s ease-in-out infinite;
}

.theme-vivid .fa-tv {
  animation: vividGlow 2s ease-in-out infinite alternate;
}

.theme-vivid .fa-gamepad {
  animation: vividBounce 2s ease-in-out infinite;
}

.theme-vivid .fa-shield-alt {
  animation: vividPulse 2s ease-in-out infinite;
}

.theme-vivid .fa-headset {
  animation: vividWiggle 2.4s ease-in-out infinite;
}

.theme-vivid .fa-gem {
  animation: vividGlow 1.8s ease-in-out infinite alternate;
}

/* ============================================================
   Utility / misc
   ============================================================ */
.theme-vivid #wepBackToTop {
  background: linear-gradient(135deg, var(--vivid-primary), var(--vivid-secondary));
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.theme-vivid .alert {
  border-radius: 16px;
  border: none;
}

.theme-vivid .border-y.border-wep {
  border-color: var(--vivid-border) !important;
}

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes vividFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vividPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

@keyframes vividBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes vividWiggle {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  45% { transform: rotate(-6deg); }
  60% { transform: rotate(4deg); }
  75% { transform: rotate(-2deg); }
}

@keyframes vividGlow {
  from { filter: drop-shadow(0 0 2px rgba(124, 58, 237, 0.4)); }
  to { filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.6)); }
}

@keyframes vividRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   Scroll reveal helper
   ============================================================ */
.vivid-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Hide empty breadcrumb section so :nth-child counting matches real page sections */
main > section:has(> .container:empty),
main > section:has(> .container > *:empty:not([class])) {
  display: none;
}

/* ============================================================
   Divider section header
   ============================================================ */
.theme-vivid .vivid-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.theme-vivid .vivid-divider .divider-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.theme-vivid .vivid-divider .divider-icon .img-container {
  width: 100%;
  height: 100%;
}

.theme-vivid .vivid-divider .divider-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.theme-vivid .vivid-divider .divider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.theme-vivid .vivid-divider .divider-wrapper::before,
.theme-vivid .vivid-divider .divider-wrapper::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--vivid-border-strong), transparent);
  max-width: 120px;
}

.theme-vivid .vivid-divider .divider-item {
  padding: 0 1rem;
}

.theme-vivid .vivid-divider .divider-title .wep-section-title {
  margin-bottom: 0;
  white-space: nowrap;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
}

.theme-vivid .navbar .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.5rem;
}

.theme-vivid .navbar .navbar-toggler {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  padding: 0.25rem 0.5rem;
}

.theme-vivid .navbar .navbar-brand-centered {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.theme-vivid .navbar .navbar-collapse {
  grid-column: 1 / -1;
  grid-row: 2;
}

@media (min-width: 992px) {
  .theme-vivid .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .theme-vivid .navbar .navbar-brand-centered {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }

  .theme-vivid .navbar .navbar-collapse {
    flex-basis: 0;
    flex-grow: 1;
    grid-column: auto;
    grid-row: auto;
  }

  .theme-vivid .navbar .navbar-collapse > ul {
    margin-inline-end: auto;
  }

  .theme-vivid .navbar .navbar-collapse > .d-flex {
    margin-inline-start: auto;
  }
}

@media (min-width: 768px) {
  .theme-vivid .vivid-divider {
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .theme-vivid .vivid-divider .divider-icon {
    width: 64px;
    height: 64px;
  }

  .theme-vivid .vivid-divider .divider-wrapper::before,
  .theme-vivid .vivid-divider .divider-wrapper::after {
    max-width: 200px;
  }
}



/* ============================================================
   Store statistics
   ============================================================ */
.theme-vivid .store-stats {
  background: var(--wep-bg-elevated);
  border-top: 1px solid var(--wep-border);
  border-bottom: 1px solid var(--wep-border);
}

.theme-vivid .store-stats .stat-card {
  padding: 1.25rem 0.5rem;
  border-radius: 22px;
  background: var(--vivid-bg-card);
  border: 1px solid var(--vivid-border);
  box-shadow: var(--wep-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-vivid .store-stats .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--wep-shadow-colored);
}

.theme-vivid .store-stats .stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--vivid-bg-soft) 0%, #fff 100%);
}

.theme-vivid .store-stats .stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-vivid .store-stats .stat-number {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--vivid-primary);
  margin-bottom: 0.25rem;
}

.theme-vivid .store-stats .stat-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--vivid-text);
  margin-bottom: 0.25rem;
}

.theme-vivid .store-stats .stat-desc {
  font-size: 0.78rem;
  color: var(--vivid-text-muted);
  line-height: 1.35;
}

@media (min-width: 576px) {
  .theme-vivid .store-stats .stat-card {
    padding: 1.5rem 1rem;
  }

  .theme-vivid .store-stats .stat-icon {
    width: 84px;
    height: 84px;
  }

  .theme-vivid .store-stats .stat-number {
    font-size: 1.5rem;
  }

  .theme-vivid .store-stats .stat-label {
    font-size: 1rem;
  }

  .theme-vivid .store-stats .stat-desc {
    font-size: 0.85rem;
  }
}

/* ============================================================
   Footer contacts
   ============================================================ */
.theme-vivid .footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.theme-vivid .footer-contacts-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wep-text);
  margin-bottom: 0;
}

.theme-vivid .footer-contacts-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.theme-vivid .footer-contacts-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wep-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.theme-vivid .footer-contacts-item:hover {
  color: var(--vivid-primary);
}

.theme-vivid .footer-contacts-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vivid-primary-soft);
  color: var(--vivid-primary);
  font-size: 0.95rem;
}

.theme-vivid .footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.theme-vivid .footer-links-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wep-text);
  margin-bottom: 0;
}

.theme-vivid .footer-links-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.theme-vivid .footer-links-item {
  color: var(--wep-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.theme-vivid .footer-links-item:hover {
  color: var(--vivid-primary);
}

/* Search modal trigger */
.theme-vivid .search-btn.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--vivid-bg-card);
  border: 1px solid var(--vivid-border);
  color: var(--vivid-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-vivid .search-btn.header-btn:hover {
  background: var(--vivid-primary-soft);
  border-color: var(--vivid-primary);
}

#searchModal .list-group-item:hover {
  background: var(--wep-bg-elevated) !important;
  border-radius: 12px;
}

/* ============================================================
   Payment methods grid (product page)
   ============================================================ */
.theme-vivid .payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .theme-vivid .payment-methods-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .theme-vivid .payment-methods-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.theme-vivid .payment-method-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-radius: 16px;
  background: var(--vivid-bg-card);
  border: 2px solid var(--vivid-border);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.theme-vivid .payment-method-card:hover {
  border-color: var(--vivid-border-strong);
  box-shadow: var(--wep-shadow-sm);
  transform: translateY(-2px);
}

.theme-vivid .payment-method-card.selected {
  border-color: var(--vivid-primary);
  box-shadow: 0 0 0 3px var(--vivid-primary-soft);
}

.theme-vivid .payment-method-logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.theme-vivid .payment-method-logo img {
  height: 36px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}

.theme-vivid .payment-method-logo figcaption {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wep-text);
}

.theme-vivid .payment-method-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--vivid-primary);
}

.theme-vivid .payment-method-check {
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--vivid-border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.theme-vivid .payment-method-card.selected .payment-method-check {
  opacity: 1;
  transform: scale(1);
  background: var(--vivid-primary);
}

.theme-vivid .payment-method-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ============================================================
   Orders list cards
   ============================================================ */
.theme-vivid .order-card {
  background: var(--vivid-bg-card);
  border: 1px solid var(--vivid-border);
  border-radius: 22px;
  box-shadow: var(--wep-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.theme-vivid .order-card:hover {
  box-shadow: var(--wep-shadow-colored);
  transform: translateY(-3px);
}

.theme-vivid .order-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--wep-bg-elevated);
  border-bottom: 1px solid var(--vivid-border);
}

.theme-vivid .order-card__id {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--wep-text);
}

.theme-vivid .order-card__date {
  font-size: 0.85rem;
  color: var(--wep-text-secondary);
}

.theme-vivid .order-card__status {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.theme-vivid .order-card__status.status-pending {
  background: #fff7ed;
  color: #d97706;
}

.theme-vivid .order-card__status.status-info {
  background: #eff6ff;
  color: #2563eb;
}

.theme-vivid .order-card__status.status-success {
  background: #f0fdf4;
  color: #16a34a;
}

.theme-vivid .order-card__status.status-danger {
  background: #fef2f2;
  color: #dc2626;
}

.theme-vivid .order-card__status.status-secondary {
  background: var(--vivid-bg-soft);
  color: var(--wep-text-secondary);
}

.theme-vivid .order-card__total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--vivid-primary);
}

.theme-vivid .order-card__body {
  padding: 1.25rem;
}

.theme-vivid .order-card__item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  background: var(--wep-bg-elevated);
  border: 1px solid var(--vivid-border);
  border-radius: 14px;
}

.theme-vivid .order-card__item img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.theme-vivid .order-card__item-info {
  display: flex;
  flex-direction: column;
}

.theme-vivid .order-card__item-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--wep-text);
}

.theme-vivid .order-card__item-qty {
  font-size: 0.8rem;
  color: var(--wep-text-secondary);
}

@media (max-width: 767.98px) {
  .theme-vivid .order-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-vivid .order-card__total {
    width: 100%;
    text-align: start;
  }
}
