/* ValSolution v4 — Modern Header & Footer Redesign (Light + Dark Mode) */

/* Keep sticky header flush at the very top (remove legacy fixed-header body padding) */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ===== HEADER ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: box-shadow 0.22s ease, background 0.22s ease;
}
#site-header::before {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 50%, #ec4899 100%);
}
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.16) !important;
}
html[data-theme="dark"] #site-header {
  background: rgba(15, 23, 42, 0.86) !important;
  border-bottom-color: rgba(148, 163, 184, 0.16) !important;
  box-shadow: none;
}
html[data-theme="dark"] #site-header.scrolled {
  background: rgba(15, 23, 42, 0.96) !important;
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.55) !important;
}

#site-header .h-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#site-header .h-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
#site-header .h-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.45);
  overflow: hidden;
}
#site-header .h-logo-mark img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  display: block;
}
#site-header .h-logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
}
#site-header .h-logo-name span {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] #site-header .h-logo-name {
  color: #f8fafc;
}
html[data-theme="dark"] #site-header .h-logo-name span {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Desktop Navigation */
#site-header .h-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
#site-header .h-nav > li {
  position: relative;
}
#site-header .h-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}
#site-header .h-nav > li > a:hover,
#site-header .h-nav > li > a.active {
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
}
html[data-theme="dark"] #site-header .h-nav > li > a {
  color: #cbd5e1;
}
html[data-theme="dark"] #site-header .h-nav > li > a:hover,
html[data-theme="dark"] #site-header .h-nav > li > a.active {
  background: rgba(99, 102, 241, 0.22);
  color: #ffffff;
}
#site-header .h-arrow {
  font-style: normal;
  font-size: 0.62rem;
  opacity: 0.65;
  transition: transform 0.18s ease;
}
#site-header .h-nav > li.has-sub:hover > a .h-arrow {
  transform: rotate(180deg);
}

/* Modern Elevated Dropdowns */
@media (min-width: 981px) {
  #site-header .h-nav > li.has-sub .h-sub {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    padding: 8px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    box-shadow: 0 20px 44px -14px rgba(15, 23, 42, 0.22);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1200;
  }
  #site-header .h-nav > li.has-sub.h-sub-wide .h-sub {
    display: grid;
    grid-template-columns: repeat(2, minmax(195px, 1fr));
    gap: 2px 6px;
    min-width: 420px;
  }
  #site-header .h-nav > li.has-sub:nth-last-child(-n+4) .h-sub {
    left: auto;
    right: 0;
  }
  #site-header .h-nav > li.has-sub:hover .h-sub,
  #site-header .h-nav > li.has-sub:focus-within .h-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  #site-header .h-sub li a {
    display: block;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
  }
  #site-header .h-sub li a:hover {
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateX(2px);
  }
  html[data-theme="dark"] #site-header .h-nav > li.has-sub .h-sub {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  }
  html[data-theme="dark"] #site-header .h-sub li a {
    color: #e2e8f0;
  }
  html[data-theme="dark"] #site-header .h-sub li a:hover {
    background: rgba(99, 102, 241, 0.22);
    color: #ffffff;
  }
}

/* Header Action Controls */
#site-header .h-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
#site-header .h-theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
#site-header .h-theme-btn:hover {
  transform: translateY(-1px);
  border-color: #6366f1;
  background: #eff6ff;
}
html[data-theme="dark"] #site-header .h-theme-btn {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(148, 163, 184, 0.24);
}
html[data-theme="dark"] #site-header .h-theme-btn:hover {
  border-color: #818cf8;
  background: rgba(51, 65, 85, 0.95);
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 58%, #312e81 100%) !important;
  color: #e2e8f0 !important;
  border-top: 3px solid #6366f1 !important;
  margin-top: 56px;
  padding: 48px 0 24px !important;
}
.site-footer .footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.vs-footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.32fr) repeat(4, minmax(140px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.vs-footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
}
.vs-footer-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  font-weight: 900;
  font-size: 1rem;
}
.vs-footer-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.vs-footer-brand-name span {
  color: #ffd777;
}
.vs-footer-desc {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 340px;
}
.vs-footer-col h2, .vs-footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffd777;
}
.vs-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vs-footer-links a {
  color: #e2e8f0 !important;
  text-decoration: none;
  font-size: 0.87rem;
  line-height: 1.45;
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
}
.vs-footer-links a:hover {
  color: #ffd777 !important;
  transform: translateX(3px);
}

.site-footer .footer-widgets {
  margin: 0 0 28px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer .footer-widget h2, .site-footer .footer-widget h4 {
  color: #ffd777 !important;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.site-footer .footer-widget,
.site-footer .footer-widget p,
.site-footer .footer-widget a {
  color: #e2e8f0 !important;
}
.site-footer .footer-widget a:hover {
  color: #ffd777 !important;
}

.site-footer .footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0 0 18px;
}
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 4px;
}
.site-footer .footer-bottom p {
  margin: 0;
  font-size: 0.84rem;
  color: #cbd5e1 !important;
}
.site-footer .footer-bottom p span {
  color: #ffffff;
  font-weight: 700;
}
.site-footer .social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.site-footer .social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.site-footer .social-links a:hover {
  background: rgba(255, 215, 119, 0.22);
  border-color: #ffd777;
  color: #ffd777 !important;
  transform: translateY(-2px);
}
.site-footer .social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.site-footer .social-links .social-rss-svg,
.site-footer .social-links .social-sitemap-svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-footer .social-links img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

@media (max-width: 1080px) {
  .vs-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
  .vs-footer-brand-col {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .vs-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== HOMEPAGE SEO HERO + TOOL DIRECTORY ===== */
main.vs-home-main {
  display: block !important;
  min-height: auto !important;
  padding-top: 0 !important;
}
.vs-home-hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 54px 20px 30px !important;
  text-align: center;
}
.vs-home-subtitle {
  margin: 10px auto 24px;
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.55;
  color: #475569;
}
html[data-theme="dark"] .vs-home-subtitle {
  color: #94a3b8;
}

.vs-dir-wrap {
  max-width: 1240px;
  margin: 8px auto 12px;
  padding: 0 20px 24px;
}
.vs-dir-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.vs-dir-tab {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}
.vs-dir-tab:hover {
  border-color: #6366f1;
  color: #1d4ed8;
  transform: translateY(-1px);
}
.vs-dir-tab.active {
  background: linear-gradient(135deg, #2563eb, #6366f1);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.45);
}
html[data-theme="dark"] .vs-dir-tab {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}
html[data-theme="dark"] .vs-dir-tab:hover {
  border-color: #818cf8;
  color: #ffffff;
}
html[data-theme="dark"] .vs-dir-tab.active {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  border-color: transparent;
  color: #ffffff;
}

.vs-dir-section {
  margin-bottom: 34px;
}
.vs-dir-section[hidden] {
  display: none !important;
}
.vs-dir-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
html[data-theme="dark"] .vs-dir-head {
  border-bottom-color: rgba(148, 163, 184, 0.14);
}
.vs-dir-head h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
}
.vs-dir-head p {
  margin: 0;
  font-size: 0.86rem;
  color: #64748b;
}
html[data-theme="dark"] .vs-dir-head h2 {
  color: #f8fafc;
}
html[data-theme="dark"] .vs-dir-head p {
  color: #94a3b8;
}

.vs-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 12px;
}
.vs-tool-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.vs-tool-card:hover {
  transform: translateY(-2px);
  border-color: #6366f1;
  box-shadow: 0 12px 24px -10px rgba(37, 99, 235, 0.22);
}
html[data-theme="dark"] .vs-tool-card {
  background: rgba(30, 41, 59, 0.62);
  border-color: rgba(148, 163, 184, 0.15);
}
html[data-theme="dark"] .vs-tool-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #818cf8;
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.55);
}

.vs-tool-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}
html[data-theme="dark"] .vs-tool-ico {
  background: rgba(99, 102, 241, 0.2);
  color: #93c5fd;
}
.vs-tool-ico svg {
  width: 20px;
  height: 20px;
}
.vs-tool-ico em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
}

.vs-tool-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.vs-tool-meta strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.vs-tool-meta small {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[data-theme="dark"] .vs-tool-meta strong {
  color: #f8fafc;
}
html[data-theme="dark"] .vs-tool-meta small {
  color: #94a3b8;
}

/* ===== STUDIO HUB LANDING PAGES (Cartoon Movie Maker & Text to Speech) ===== */
.vs-hub-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 42px 20px 28px;
}
.vs-hub-hero {
  text-align: center;
  padding: 36px 28px;
  border-radius: 20px;
  background: linear-gradient(150deg, #eff6ff 0%, #eef2ff 55%, #fdf2f8 100%);
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 16px 36px -18px rgba(37, 99, 235, 0.22);
  margin-bottom: 28px;
}
html[data-theme="dark"] .vs-hub-hero {
  background: linear-gradient(150deg, rgba(30, 41, 59, 0.92) 0%, rgba(30, 27, 75, 0.9) 58%, rgba(49, 46, 129, 0.78) 100%);
  border-color: rgba(129, 140, 248, 0.28);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.6);
}
.vs-hub-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
html[data-theme="dark"] .vs-hub-badge {
  background: rgba(255, 215, 119, 0.16);
  color: #ffd777;
}
.vs-hub-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
}
.vs-hub-hero p {
  margin: 0 auto 24px;
  max-width: 680px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #475569;
}
html[data-theme="dark"] .vs-hub-hero h1 {
  color: #ffffff;
}
html[data-theme="dark"] .vs-hub-hero p {
  color: #cbd5e1;
}
.vs-hub-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 12px 26px -8px rgba(37, 99, 235, 0.55);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}
.vs-hub-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 16px 32px -8px rgba(79, 70, 229, 0.6);
}
.vs-hub-cta.gold {
  background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
  color: #1e1b4b !important;
  box-shadow: 0 12px 24px -8px rgba(245, 158, 11, 0.5);
}

.vs-hub-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.vs-hub-feat {
  padding: 16px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.vs-hub-feat strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.94rem;
  color: #0f172a;
}
.vs-hub-feat p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #64748b;
}
html[data-theme="dark"] .vs-hub-feat {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(148, 163, 184, 0.16);
}
html[data-theme="dark"] .vs-hub-feat strong {
  color: #f8fafc;
}
html[data-theme="dark"] .vs-hub-feat p {
  color: #94a3b8;
}

.vs-hub-faq-section h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}
html[data-theme="dark"] .vs-hub-faq-section h2 {
  color: #f8fafc;
}
.vs-hub-faq {
  margin-bottom: 12px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  padding: 14px 18px;
}
.vs-hub-faq summary {
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vs-hub-faq summary::-webkit-details-marker { display: none; }
.vs-hub-faq summary::after { content: "+"; font-size: 1.2rem; color: #4f46e5; font-weight: 700; }
.vs-hub-faq[open] summary::after { content: "−"; }
.vs-hub-faq p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
}
html[data-theme="dark"] .vs-hub-faq {
  background: rgba(30, 41, 59, 0.68);
  border-color: rgba(148, 163, 184, 0.16);
}
html[data-theme="dark"] .vs-hub-faq summary {
  color: #f8fafc;
}
html[data-theme="dark"] .vs-hub-faq summary::after {
  color: #ffd777;
}
html[data-theme="dark"] .vs-hub-faq p {
  color: #cbd5e1;
}
.vs-hub-mid-cta {
  margin: 22px 0;
  padding: 22px 20px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.24);
}
.vs-hub-mid-cta p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}
html[data-theme="dark"] .vs-hub-mid-cta {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(99, 102, 241, 0.22));
  border-color: rgba(129, 140, 248, 0.3);
}
html[data-theme="dark"] .vs-hub-mid-cta p {
  color: #f1f5f9;
}

/* ===== v17: Dynamic Mapping to Admin > Settings > Colors (Light & Dark) ===== */
:root {
  --header-bg-rgb: var(--vs-light-header-bg-rgb, 255,255,255);
  --page-bg: var(--vs-light-page-bg, #f8fafc);
  --panel: var(--vs-light-panel, #ffffff);
  --panel-soft: var(--vs-light-panel-soft, #f1f5f9);
  --panel-hover: var(--vs-light-panel-hover, #e2e8f0);
  --text-strong: var(--vs-light-text-strong, #0f172a);
  --text-soft: var(--vs-light-text-soft, #334155);
  --text-muted: var(--vs-light-text-muted, #64748b);
  --accent: var(--vs-light-accent, #2563eb);
  --accent-strong: var(--vs-light-accent-strong, #1d4ed8);
}
html[data-theme="dark"] {
  --header-bg-rgb: var(--vs-dark-header-bg-rgb, 15,23,42);
  --page-bg: var(--vs-dark-page-bg, #0f172a);
  --panel: var(--vs-dark-panel, #1e293b);
  --panel-soft: var(--vs-dark-panel-soft, #162033);
  --panel-hover: var(--vs-dark-panel-hover, #334155);
  --text-strong: var(--vs-dark-text-strong, #f8fafc);
  --text-soft: var(--vs-dark-text-soft, #cbd5e1);
  --text-muted: var(--vs-dark-text-muted, #94a3b8);
  --accent: var(--vs-dark-accent, #3b82f6);
  --accent-strong: var(--vs-dark-accent-strong, #60a5fa);
}

body {
  background-color: var(--page-bg) !important;
  color: var(--text-soft) !important;
}

/* Header mapped to Admin Settings */
#site-header {
  background: rgba(var(--header-bg-rgb), 0.90) !important;
}
#site-header.scrolled {
  background: rgba(var(--header-bg-rgb), 0.97) !important;
}
#site-header::before {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%) !important;
}
#site-header .h-logo-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)) !important;
}
#site-header .h-logo-name {
  color: var(--text-strong) !important;
}
#site-header .h-logo-name span {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: var(--accent) !important;
}
#site-header .h-nav > li > a {
  color: var(--text-soft) !important;
}
#site-header .h-nav > li > a:hover,
#site-header .h-nav > li > a.active {
  background: color-mix(in srgb, var(--accent) 14%, transparent) !important;
  color: var(--accent) !important;
}
@media (min-width: 981px) {
  #site-header .h-nav > li.has-sub .h-sub {
    background: var(--panel) !important;
  }
  #site-header .h-sub li a {
    color: var(--text-soft) !important;
  }
  #site-header .h-sub li a:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent) !important;
    color: var(--accent) !important;
  }
}
#site-header .h-theme-btn {
  background: var(--panel-soft) !important;
}
#site-header .h-theme-btn:hover {
  border-color: var(--accent) !important;
}

/* Homepage Directory & Studio Hubs mapped to Admin Settings */
.vs-home-hero h1,
.vs-dir-head h2,
.vs-tool-meta strong,
.vs-hub-hero h1,
.vs-hub-feat strong,
.vs-hub-faq-section h2,
.vs-hub-faq summary {
  color: var(--text-strong) !important;
}
.vs-home-subtitle,
.vs-dir-head p,
.vs-tool-meta small,
.vs-hub-hero p,
.vs-hub-feat p,
.vs-hub-faq p {
  color: var(--text-muted) !important;
}
.vs-dir-tab,
.vs-tool-card,
.vs-hub-feat,
.vs-hub-faq {
  background: var(--panel) !important;
}
.vs-dir-tab {
  color: var(--text-soft) !important;
}
.vs-dir-tab:hover,
.vs-tool-card:hover {
  border-color: var(--accent) !important;
}
.vs-dir-tab.active,
.vs-hub-cta:not(.gold) {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)) !important;
  color: #ffffff !important;
}
.vs-tool-ico {
  background: color-mix(in srgb, var(--accent) 13%, transparent) !important;
  color: var(--accent) !important;
}
.tool-finder-form button[type="submit"] {
  background: var(--accent) !important;
  color: #ffffff !important;
}
.tool-finder-form button[type="submit"]:hover {
  background: var(--accent-strong) !important;
}

/* Footer mapped to Admin Settings Footer Theme */
.site-footer {
  background: linear-gradient(160deg, color-mix(in srgb, var(--vs-footer-bg, #1e1b4b) 88%, #000000) 0%, var(--vs-footer-bg, #1e1b4b) 60%, color-mix(in srgb, var(--vs-footer-bg, #1e1b4b) 82%, var(--accent)) 100%) !important;
  border-top-color: var(--accent) !important;
}
.vs-footer-brand-name span,
.vs-footer-col h2,
.vs-footer-col h4,
.site-footer .footer-widget h2,
.site-footer .footer-widget h4,
.vs-footer-links a:hover,
.site-footer .footer-widget a:hover,
.site-footer .social-links a:hover {
  color: var(--vs-footer-accent, #ffd777) !important;
}
.vs-footer-brand-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)) !important;
}
