/* Premium Vault — Software Details modal (additive UI enhancement only) */
.vd-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  overflow: hidden;
  background: rgba(15, 15, 30, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: vd-fade-in 0.18s ease-out;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  /* Ensure the normal mouse cursor always renders over the modal — no
     invisible layer or CSS should ever hide/override it. */
  cursor: default;
  pointer-events: auto;
}

.vd-modal,
.vd-hero,
.vd-body {
  cursor: default;
  pointer-events: auto;
}

@keyframes vd-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vd-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(76, 29, 149, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
  animation: vd-pop-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes vd-pop-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vd-hero {
  position: relative;
  flex-shrink: 0;
  padding: 36px 40px 28px;
  background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 60%, #f8faff 100%);
  border-bottom: 1px solid #eef2f7;
}

.vd-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.vd-close:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #ef4444;
}

.vd-hero-image-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f0ff 100%);
  box-shadow: 0 1px 0 rgba(226, 232, 240, 0.9) inset, 0 16px 32px -18px rgba(76, 29, 149, 0.28);
  overflow: hidden;
  margin-bottom: 22px;
}

.vd-hero-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.vd-hero-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.vd-title-wrap {
  min-width: 0;
  text-align: center;
}

.vd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  margin-bottom: 12px;
}

.vd-title {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  word-break: break-word;
}

.vd-body {
  padding: 32px 24px 36px 40px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  /* Firefox */
  scrollbar-width: auto;
  scrollbar-color: #a78bfa #f1f5f9;
}

/* Independent, themed scrollbar for the Product Details modal (WebKit) */
.vd-body::-webkit-scrollbar {
  width: 14px;
}
.vd-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
  margin: 4px 0;
}
.vd-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
  border-radius: 10px;
  border: 3px solid #f1f5f9;
  min-height: 40px;
}
.vd-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
}

.vd-section {
  margin-bottom: 28px;
}
.vd-section:last-child {
  margin-bottom: 0;
}

.vd-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c3aed;
  margin: 0 0 10px;
}

.vd-description {
  font-size: 17px;
  line-height: 1.75;
  color: #334155;
  white-space: pre-wrap;
  margin: 0;
}

.vd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.vd-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(109, 40, 217, 0.5);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.vd-btn-download:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.vd-btn-disabled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: #94a3b8;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .vd-hero { padding: 28px 22px 22px; }
  .vd-body { padding: 24px 18px 28px 22px; }
  .vd-title { font-size: 22px; }
  .vd-description { font-size: 16px; }
}

/* ── Main page scrollbar (UI polish only — wider, always-visible, on-theme) ── */
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  /* Firefox */
  scrollbar-width: auto;
  scrollbar-color: #8b5cf6 #f1f5f9;
}

html::-webkit-scrollbar {
  width: 14px;
}
html::-webkit-scrollbar-track {
  background: #f1f5f9;
}
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b5cf6, #6366f1);
  border-radius: 10px;
  border: 3px solid #f1f5f9;
  min-height: 40px;
}
html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7c3aed, #4f46e5);
}

/* While the Product Details modal is open, the page scrollbar is hidden and
   the modal's own independent scrollbar (.vd-body) takes over — this keeps
   the two scrollbars from ever appearing stacked next to each other. */
body.vd-lock-scroll {
  overflow: hidden !important;
}

/* Premium Vault cards open the Software Details modal — show a normal
   pointer cursor so the cursor is always visible and clearly indicates the
   card is clickable (purely a hover hint, no click behavior is defined here). */
.group.bg-white.border.border-slate-200.rounded-2xl.p-5 {
  cursor: pointer;
}

/* Independent Premium Vault search filter (additive UI fix only) — hides
   non-matching item cards; the "No results found" empty state below spans
   the full grid width regardless of the 1- or 2-column layout. */
.vd-search-hidden {
  display: none !important;
}

.vd-search-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.vd-search-empty-icon {
  font-size: 40px;
  margin-bottom: 14px;
  opacity: 0.5;
}

.vd-search-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #94a3b8;
  margin: 0 0 4px;
}

.vd-search-empty-text {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}

@media (max-width: 560px) {
  .vd-hero-image-wrap { height: 180px; }
  .vd-hero-image-fallback { font-size: 44px; }
}
