/*
 * VanMember Pro - Red Theme & High Contrast Clean UI/UX
 * Full Responsive Mobile Fit + Multi-Template Sales Page Engine 2026
 */

/* ========================================================
   1. BASE RESET & MOBILE OVERFLOW PROTECTION
   ======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  font-family: var(--vm-font, 'Plus Jakarta Sans', sans-serif);
  background-color: var(--vm-bg, #f8fafc);
  color: var(--vm-text, #0f172a);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--vm-transition, all 0.2s ease);
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--vm-text-heading, #020617);
  font-weight: 800;
  margin-top: 0;
  line-height: 1.25;
}

.vm-container {
  max-width: 1240px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .vm-container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ========================================================
   2. TOP PRODUCT MARQUEE TICKER (MERAH ELEGAN)
   ======================================================== */
.vm-top-marquee-wrapper {
  background: linear-gradient(90deg, #991b1b, #dc2626 50%, #991b1b);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  color: #ffffff;
  font-size: 13px;
  overflow: hidden;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(153, 27, 27, 0.2);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.vm-marquee-container {
  display: flex;
  align-items: center;
  position: relative;
  height: 38px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.vm-marquee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #dc2626;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  margin-right: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 2;
  white-space: nowrap;
}

.vm-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #dc2626;
  border-radius: 50%;
  animation: vm-pulse 1.5s infinite;
}

@keyframes vm-pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.vm-marquee-content-track {
  display: flex;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
  flex: 1 1 0px;
  min-width: 0;
  width: 0;
  max-width: 100%;
}

.vm-marquee-items {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: vm-marquee-scroll 32s linear infinite;
  padding-left: 10px;
  flex-shrink: 0;
}

.vm-marquee-content-track:hover .vm-marquee-items {
  animation-play-state: paused;
}

@keyframes vm-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.vm-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.vm-marquee-highlight {
  color: #fef08a;
  font-weight: 700;
}

.vm-marquee-link {
  color: #ffffff;
}

.vm-marquee-link:hover {
  text-decoration: underline;
}

.vm-marquee-price {
  color: #bbf7d0;
  font-weight: 800;
}

.vm-badge-mini {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.vm-marquee-close {
  background: transparent;
  border: none;
  color: #fca5a5;
  font-size: 18px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  z-index: 2;
  flex-shrink: 0;
}

.vm-marquee-close:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .vm-marquee-badge {
    font-size: 9.5px;
    padding: 2px 7px;
    margin-right: 6px;
  }
  .vm-marquee-item {
    font-size: 11.5px;
    gap: 6px;
  }
}

/* ========================================================
   3. NAVBAR MERAH ELEGAN & MOBILE DRAWER NAVIGATION
   ======================================================== */
.vm-navbar {
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(185, 28, 28, 0.25);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.vm-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.vm-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  min-width: 0;
  max-width: calc(100% - 90px);
  overflow: hidden;
}

.vm-logo-icon {
  width: 34px;
  height: 34px;
  background: #ffffff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-size: 17px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.vm-logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  min-width: 0;
}

.vm-nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vm-nav-link {
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff !important;
  padding: 7px 12px;
  border-radius: 8px;
  opacity: 0.9;
  white-space: nowrap;
}

.vm-nav-link:hover, .vm-nav-link.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
}

.vm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.vm-auth-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vm-btn-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: var(--vm-transition);
  flex-shrink: 0;
}

.vm-btn-cart:hover {
  background: rgba(255, 255, 255, 0.25);
}

.vm-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #facc15;
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #dc2626;
}

/* Mobile Hamburger Toggle */
.vm-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: var(--vm-transition);
  flex-shrink: 0;
}

.vm-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.vm-hamburger-line {
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.vm-mobile-toggle.is-active .vm-hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.vm-mobile-toggle.is-active .vm-hamburger-line:nth-child(2) {
  opacity: 0;
}

.vm-mobile-toggle.is-active .vm-hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer (Slide Down) */
.vm-mobile-drawer {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease-in-out, opacity 0.3s ease;
  opacity: 0;
  background: linear-gradient(180deg, #991b1b 0%, #7f1d1d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.vm-mobile-drawer.is-open {
  max-height: 520px;
  opacity: 1;
}

.vm-mobile-drawer-inner {
  padding: 12px 14px 18px;
}

.vm-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vm-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--vm-transition);
}

.vm-mobile-nav-link:hover, .vm-mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.22);
}

.vm-mobile-logout {
  background: rgba(0, 0, 0, 0.25);
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.2);
}

.vm-mobile-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 4px 0;
}

.vm-mobile-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  margin-top: 4px;
}

.vm-mobile-btn-login {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  padding: 9px;
  text-align: center;
  font-size: 13px;
}

.vm-mobile-btn-register {
  background: #ffffff;
  color: #dc2626 !important;
  font-weight: 800;
  padding: 9px;
  text-align: center;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .vm-nav-desktop, .vm-auth-desktop {
    display: none !important;
  }
  .vm-mobile-toggle {
    display: flex;
  }
  .vm-mobile-drawer {
    display: block;
  }
  .vm-logo-link {
    font-size: 17px;
  }
  .vm-logo-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
}

/* ========================================================
   4. BUTTONS & UI UTILITIES
   ======================================================== */
.vm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--vm-radius-sm, 8px);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--vm-transition, all 0.2s ease);
  border: none;
  text-decoration: none;
  box-sizing: border-box;
}

.vm-btn-primary {
  background: #dc2626;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.vm-btn-primary:hover {
  background: #b91c1c;
  color: #ffffff !important;
}

.vm-btn-accent {
  background: #16a34a;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.vm-btn-accent:hover {
  background: #15803d;
  color: #ffffff !important;
}

.vm-btn-outline {
  background: #ffffff;
  border: 1px solid var(--vm-border-dark, #cbd5e1);
  color: var(--vm-text, #0f172a);
}

.vm-btn-outline:hover {
  background: var(--vm-surface-2, #f1f5f9);
  border-color: #dc2626;
  color: #dc2626;
}

/* Member Sub-Nav Pills */
.vm-subnav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--vm-border, #e2e8f0);
  padding: 8px 0;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vm-subnav-pills {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.vm-subnav-link {
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--vm-text-muted, #475569);
  border: 1px solid var(--vm-border, #e2e8f0);
  background: #ffffff;
  white-space: nowrap;
}

.vm-subnav-link:hover {
  color: #dc2626;
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.vm-subnav-link.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

/* ========================================================
   5. PRODUCT GRID & CARDS (RESPONSIVE 100% FIT)
   ======================================================== */
.vm-layout-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 20px 0 50px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .vm-layout-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }
}

.vm-main-content {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.vm-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 10px;
  min-width: 0;
}

.vm-section-title {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 2px;
  color: var(--vm-text-heading, #020617);
}

.vm-section-subtitle {
  color: var(--vm-text-dim, #64748b);
  font-size: 13px;
  margin: 0;
}

.vm-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* PRODUCT CARD */
.product-card {
  background: #ffffff;
  border: 1px solid var(--vm-border, #e2e8f0);
  border-radius: 14px;
  box-shadow: var(--vm-shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: var(--vm-shadow-md, 0 4px 16px rgba(0,0,0,0.08));
}

.media-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
}

.media-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.product-card:hover .media-wrap img {
  transform: scale(1.04);
}

.card-badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #dc2626;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 2;
}

.price-chip {
  display: inline-block;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  font-weight: 800;
  font-size: .92rem;
  padding: 4px 9px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 8px;
}

.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}

.product-title {
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--vm-text-heading, #020617);
  word-break: break-word;
  overflow-wrap: break-word;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  color: var(--vm-text-dim, #64748b);
  font-size: 11.5px;
}

.btn-wrap {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding-top: 10px;
  width: 100%;
  min-width: 0;
}

.btn-wrap .btn, .btn-wrap .vm-btn {
  border-radius: 8px;
  flex: 1;
  font-size: 12.5px;
  padding: 6px 8px;
  text-align: center;
}

/* ========================================================
   Mobile Breakpoint: 2 Compact Symmetrical Columns (100% Fit & No Overflow)
   ======================================================== */
@media (max-width: 768px) {
  .vm-container {
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .vm-layout-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0 35px;
    width: 100%;
    max-width: 100%;
  }
  .vm-section-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }
  .vm-section-title {
    font-size: 18px;
  }
  .vm-section-subtitle {
    font-size: 12px;
  }
  .vm-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .product-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    border-radius: 12px;
    box-shadow: var(--vm-shadow-sm);
  }
  .media-wrap {
    aspect-ratio: 4 / 3;
    max-height: 130px;
  }
  .card-body {
    padding: 10px 8px 12px;
  }
  .price-row {
    margin-bottom: 4px;
  }
  .price-chip {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 6px;
  }
  .card-badge-top {
    font-size: 8px;
    padding: 2px 5px;
    top: 6px;
    left: 6px;
  }
  .product-title {
    font-size: 12.5px;
    line-height: 1.3;
    margin: 0 0 4px;
    min-height: 32px;
  }
  .meta {
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
  }
  .btn-wrap {
    display: flex;
    flex-direction: row;
    gap: 4px;
    padding-top: 6px;
    margin-top: 2px;
  }
  .btn-wrap .btn, .btn-wrap .vm-btn {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 3px;
    border-radius: 6px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }
}

/* ========================================================
   6. SIDEBAR WIDGETS (TERLARIS, TERBARU, ACAK)
   ======================================================== */
.vm-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.vm-sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--vm-border, #e2e8f0);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--vm-shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
  box-sizing: border-box;
}

.vm-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--vm-border, #e2e8f0);
}

.vm-widget-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.vm-widget-title {
  font-size: 14.5px;
  font-weight: 800;
  margin: 0;
  color: var(--vm-text-heading, #020617);
}

.vm-widget-subtitle {
  font-size: 11px;
  color: var(--vm-text-dim, #64748b);
}

.vm-widget-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vm-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 8px;
  transition: var(--vm-transition);
}

.vm-sidebar-item:hover {
  background: var(--vm-surface-2, #f1f5f9);
}

.vm-rank-badge {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--vm-surface-2, #f1f5f9);
  border: 1px solid var(--vm-border, #e2e8f0);
  color: var(--vm-text-muted, #475569);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vm-rank-badge.rank-1 { background: #dc2626; color: #fff; border: none; }
.vm-rank-badge.rank-2 { background: #ea580c; color: #fff; border: none; }
.vm-rank-badge.rank-3 { background: #d97706; color: #fff; border: none; }

.vm-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
  border: 1px solid var(--vm-border, #e2e8f0);
}

.vm-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vm-item-info {
  flex-grow: 1;
  min-width: 0;
}

.vm-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--vm-text-heading, #020617);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.vm-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vm-item-price {
  font-size: 12px;
  font-weight: 800;
  color: #dc2626;
}

/* ========================================================
   7. MULTI-TEMPLATE SALES PAGE LAYOUTS & RESPONSIVE GRIDS
   ======================================================== */
.vm-layout-full {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 60px;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive Grid Classes for Sales Pages */
.vm-grid-hero-responsive {
  display: grid;
  grid-template-columns: clamp(170px, 24vw, 260px) 1fr;
  gap: 36px;
  align-items: center;
}

.vm-grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.vm-grid-pricing-responsive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.vm-grid-features-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.vm-grid-gallery-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .vm-grid-hero-responsive {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .vm-hero-thumb-center {
    max-width: 220px;
    margin: 0 auto;
  }
  .vm-grid-2col-responsive {
    grid-template-columns: 1fr;
  }
  .vm-grid-pricing-responsive {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .vm-grid-features-responsive {
    grid-template-columns: 1fr;
  }
  .vm-grid-gallery-responsive {
    grid-template-columns: 1fr;
  }
  .vm-sales-hero {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }
  .vm-card-panel {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }
}

/* Hero Section Base */
.vm-sales-hero {
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 24px;
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.vm-glowing-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 1. TEMPLATE SAAS & AI PLUGIN */
.vm-template-saas .vm-tech-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 2. TEMPLATE WP THEMES & UI TEMPLATES */
.vm-template-theme .vm-theme-preview-bar {
  background: #0f172a;
  color: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.vm-theme-mockup-frame {
  background: #1e293b;
  border-radius: 14px;
  border: 1px solid #334155;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.vm-theme-mockup-top {
  background: #0f172a;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vm-mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.vm-theme-badge-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vm-theme-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

/* 3. TEMPLATE E-COURSE, E-BOOK & ARTIKEL SEO */
.vm-template-course .vm-module-accordion {
  border: 1px solid var(--vm-border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 10px;
}

.vm-module-header {
  padding: 14px 18px;
  background: var(--vm-surface-2, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
}

.vm-module-body {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--vm-text-muted, #475569);
  line-height: 1.6;
  border-top: 1px solid var(--vm-border, #e2e8f0);
}

/* 4. TEMPLATE JASA / AGENCY & FREELANCE */
.vm-template-service .vm-service-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vm-service-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--vm-border, #e2e8f0);
  border-radius: 12px;
}

.vm-step-number {
  width: 34px;
  height: 34px;
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

/* 5. TEMPLATE MINIMAL DEAL / FLASH SALE */
.vm-template-minimal .vm-minimal-card {
  border: 2px solid #dc2626;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.12);
}

.vm-flash-timer-badge {
  background: #dc2626;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

/* ========================================================
   8. PANELS, FORMS & TABLES (RESPONSIVE & TOUCH FRIENDLY)
   ======================================================== */
.vm-card-panel {
  background: #ffffff;
  border: 1px solid var(--vm-border, #e2e8f0);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--vm-shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
  margin-bottom: 20px;
  box-sizing: border-box;
  width: 100%;
}

.vm-form-group {
  margin-bottom: 15px;
}

.vm-form-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--vm-text-heading, #020617);
}

.vm-input {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--vm-border-dark, #cbd5e1);
  border-radius: var(--vm-radius-sm, 8px);
  color: var(--vm-text-heading, #020617);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--vm-transition);
  box-sizing: border-box;
}

.vm-input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Responsive Table */
.vm-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 15px;
}

.vm-table-modern {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  background: #ffffff;
}

.vm-table-modern th, .vm-table-modern td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--vm-border, #e2e8f0);
  color: var(--vm-text, #0f172a);
  font-size: 13.5px;
}

.vm-table-modern th {
  background: var(--vm-surface-2, #f1f5f9);
  color: var(--vm-text-heading, #020617);
  font-size: 12.5px;
  font-weight: 800;
}

/* Payment Radios (Checkout) */
.vm-payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.vm-payment-radio-label {
  border: 1px solid var(--vm-border, #e2e8f0);
  border-radius: var(--vm-radius-sm, 8px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  background: #ffffff;
  transition: var(--vm-transition);
}

.vm-payment-radio-label:hover {
  border-color: #dc2626;
}

.vm-payment-radio-input {
  display: none;
}

.vm-payment-radio-input:checked + .vm-payment-radio-label {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  box-shadow: 0 0 0 2px #dc2626;
}

/* QRIS Container */
.vm-qris-box {
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #dc2626;
  border-radius: var(--vm-radius-md, 14px);
  padding: 20px;
  text-align: center;
  box-shadow: var(--vm-shadow-md, 0 4px 16px rgba(0,0,0,0.08));
  max-width: 360px;
  margin: 0 auto 20px;
  width: 100%;
  box-sizing: border-box;
}

.vm-qris-qr-img {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 10px;
  border: 1px solid var(--vm-border, #e2e8f0);
  border-radius: 8px;
  padding: 4px;
}

.vm-amount-highlight {
  font-size: 24px;
  font-weight: 800;
  color: #dc2626;
}

.vm-unique-badge {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

/* Toast Alert */
.vm-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  border-left: 4px solid #dc2626;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: var(--vm-shadow-lg, 0 12px 28px rgba(0,0,0,0.12));
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s ease;
  max-width: 90vw;
}

.vm-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.vm-footer {
  background: #ffffff;
  border-top: 1px solid var(--vm-border, #e2e8f0);
  padding: 35px 0 25px;
  color: var(--vm-text-dim, #64748b);
  font-size: 13px;
  width: 100%;
}

/* Member Nav Tabs */
.vm-member-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--vm-border, #e2e8f0);
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.vm-member-nav::-webkit-scrollbar {
  display: none;
}

.vm-tab-btn {
  background: transparent;
  border: none;
  color: var(--vm-text-muted, #475569);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
  font-family: inherit;
}

.vm-tab-btn:hover {
  background: rgba(220,38,38,0.08);
  color: #dc2626;
}

.vm-tab-btn.active {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}

/* ========================================================
   MODERN PREMIUM PAGINATION (RED THEME & HIGH CONTRAST)
   ======================================================== */
.vm-pagination-wrapper,
.navigation.pagination {
  margin-top: 36px;
  margin-bottom: 24px;
  text-align: center;
  width: 100%;
  clear: both;
}

.navigation.pagination .screen-reader-text,
.vm-pagination .screen-reader-text {
  display: none !important;
}

.vm-pagination-wrapper .nav-links,
.navigation.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid var(--vm-border, #e2e8f0);
  border-radius: 14px;
  box-shadow: var(--vm-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--vm-text, #0f172a);
  background: var(--vm-surface-2, #f1f5f9);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.nav-links a.page-numbers:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.25);
  transform: translateY(-2px);
}

.nav-links .page-numbers.current {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff !important;
  font-weight: 800;
  border-color: #dc2626;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.35);
  pointer-events: none;
  cursor: default;
}

.nav-links .page-numbers.dots {
  background: transparent;
  color: var(--vm-text-dim, #64748b);
  font-weight: 800;
  min-width: 24px;
  padding: 0 4px;
  pointer-events: none;
  cursor: default;
}

.nav-links .prev.page-numbers,
.nav-links .next.page-numbers {
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid var(--vm-border-dark, #cbd5e1);
  color: var(--vm-text-heading, #020617);
  font-weight: 700;
}

.nav-links .prev.page-numbers:hover,
.nav-links .next.page-numbers:hover {
  background: #dc2626;
  color: #ffffff !important;
  border-color: #dc2626;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
}

@media (max-width: 768px) {
  .vm-pagination-wrapper,
  .navigation.pagination {
    margin-top: 24px;
    margin-bottom: 16px;
  }
  .vm-pagination-wrapper .nav-links,
  .navigation.pagination .nav-links {
    gap: 5px;
    padding: 4px 6px;
    border-radius: 10px;
  }
  .nav-links .page-numbers {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 7px;
  }
  .nav-links .prev.page-numbers,
  .nav-links .next.page-numbers {
    padding: 0 10px;
    font-size: 11.5px;
  }
}
