/* ============================================================
   WPVaults Theme — Main CSS Design System
   Premium dark dashboard-style UI with glassmorphism
   ============================================================ */

/* ── CSS Design Tokens ──────────────────────────────────────── */
:root {
  --radius: 0.875rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);

  /* Premium Pure Black Night Theme — hex/rgba for cross-browser compatibility */
  --background:   #000000;
  --foreground:   #f4f4f8;

  --card:                #1a1a2a;
  --card-foreground:     #f4f4f8;

  --primary:             #3b82f6;   /* blue-500 */
  --primary-foreground:  #ffffff;
  --secondary:           #1e1e30;
  --secondary-foreground:#f4f4f8;

  --muted:               #141420;
  --muted-foreground:    #9ca3af;

  --accent:              #22d3ee;   /* cyan-400 */
  --accent-foreground:   #0f0f1e;

  --destructive:         #ef4444;

  --border:  rgba(255,255,255,0.08);
  --input:   rgba(255,255,255,0.12);
  --ring:    rgba(59,130,246,0.6);

  --sidebar-bg:   #0a0a0a;
  --topbar-bg:    rgba(0,0,0,0.85);
  --sidebar-w:    256px;
  --topbar-h:     64px;

  --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #22d3ee 100%);
  --gradient-card: linear-gradient(180deg, #141420 0%, #0d0d18 100%);
  --shadow-glow:   0 0 60px rgba(59,130,246,0.15);
  --shadow-card:   0 20px 60px -20px rgba(0,0,0,0.8);

  --transition-fast:   150ms ease;
  --transition-normal: 300ms ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #000000;
  color: var(--foreground);
  min-height: 100dvh;
  overscroll-behavior-y: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { letter-spacing: -0.02em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.9; }
img { max-width: 100%; display: block; }
svg { width: 1.25rem; height: 1.25rem; display: inline-block; vertical-align: middle; flex-shrink: 0; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Utility Classes ────────────────────────────────────────── */
.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}
.shadow-glow  { box-shadow: var(--shadow-glow); }
.shadow-card  { box-shadow: var(--shadow-card); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ── Layout: Sidebar + Main ─────────────────────────────────── */
.wpv-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform var(--transition-normal);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.sidebar-overlay.active { display: block; }

.wpv-layout {
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Site-wide Announcement Bar ─────────────────────────────── */
.wpv-announcement-bar {
  width: 100%;
  padding: 0.6rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 60;
}
.wpv-announcement-inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  max-width: 88rem;
  width: 100%;
  justify-content: center;
}
.wpv-announcement-bar.info {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
  border-bottom: 1px solid rgba(59,130,246,0.25);
}
.wpv-announcement-bar.maintenance {
  background: rgba(245,158,11,0.15);
  color: #fbbf24;
  border-bottom: 1px solid rgba(245,158,11,0.25);
}
.wpv-announcement-bar.degraded {
  background: rgba(249,115,22,0.15);
  color: #fb923c;
  border-bottom: 1px solid rgba(249,115,22,0.25);
}
.wpv-announcement-bar.outage {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border-bottom: 1px solid rgba(239,68,68,0.25);
}
.wpv-announcement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wpv-announcement-icon svg { width: 1rem; height: 1rem; }
.wpv-announcement-text { flex: 1; text-align: center; }
.wpv-announcement-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 0.25rem;
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}
.wpv-announcement-close:hover { opacity: 1; }
.wpv-announcement-close svg { width: 0.875rem; height: 0.875rem; }

.wpv-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-h);
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left { display: flex; align-items: center; gap: 0.75rem; }

.sidebar-toggle {
  display: none;
  padding: 0.5rem;
  border-radius: 0.75rem;
  color: #fff;
  transition: background var(--transition-fast);
}
.sidebar-toggle svg { width: 1.25rem; height: 1.25rem; display: block; }
.sidebar-toggle:hover { background: rgba(255,255,255,0.05); }
.sidebar-toggle:active { transform: scale(0.95); }

.topbar-breadcrumb {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.topbar-badge {
  font-size: 0.625rem;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  color: rgba(255,255,255,0.95);
}

.wpv-main {
  flex: 1;
  padding: 2rem 2rem;
  max-width: 88rem;
  margin: 0 auto;
  width: 100%;
}

/* ── Sidebar Logo ───────────────────────────────────────────── */
.sidebar-logo-wrap {
  height: 6rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sidebar-logo-link {
  display: flex;
  align-items: center;
  width: 160px;
  height: 40px;
}
.site-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}
.sidebar-logo-link img { width: 160px; height: 40px; object-fit: contain; }

/* ── Sidebar Navigation ─────────────────────────────────────── */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1rem;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-group { margin-bottom: 1.5rem; }
.nav-group-label {
  padding: 0 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin-bottom: 0.5rem;
}
.nav-list { display: flex; flex-direction: column; gap: 0.25rem; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-item.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.nav-icon { width: 1rem; height: 1rem; flex-shrink: 0; stroke-width: 1.5; }
.nav-bullet {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 2px;
}
.nav-chevron { width: 0.875rem; height: 0.875rem; margin-left: auto; opacity: 0.5; }

/* Site Status badge */
.nav-status {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.nav-status.operational {
  background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.1);
  color: #4ade80;
}
.nav-status.degraded {
  background: rgba(234,179,8,0.05);
  border: 1px solid rgba(234,179,8,0.1);
  color: #facc15;
}
.nav-status.down {
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.1);
  color: #f87171;
}
.status-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
  will-change: opacity;
}

/* Sidebar Footer */
.sidebar-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #070707;
  flex-shrink: 0;
  font-size: 0.625rem;
  color: #71717a;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-foot-credit { border-top: 1px solid var(--border); padding-top: 0.5rem; }
.sidebar-foot strong { color: rgba(255,255,255,0.8); font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────────── */
.wpv-footer {
  margin-top: 6rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: #000;
}
.footer-inner {
  max-width: 88rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {}
.footer-logo-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  width: 160px; height: 40px;
}
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.6; max-width: 24rem; }
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--primary); text-decoration: underline; }

/* Animated white sweep line under footer downloader links */
.footer-tools-links a {
  position: relative;
  display: inline-block;
}
.footer-tools-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #ffffff 50%, rgba(255,255,255,0) 100%);
  background-size: 220% 100%;
  will-change: transform;
}
.footer-tools-links a:hover::after {
  animation: wpvFooterSweep 2.4s linear infinite;
}
@keyframes wpvFooterSweep {
  0%   { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: #a1a1aa;
  flex-wrap: wrap;
}
.footer-legal-links { display: flex; gap: 1rem; }
.footer-legal-links a { color: #a1a1aa; transition: color var(--transition-fast); }
.footer-legal-links a:hover { color: #d4d4d8; }

/* ── Homepage — Tool Grid ────────────────────────────────────── */
.hero-section { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 40rem;
  margin: 0 auto;
}

.tools-section { margin-bottom: 2rem; }
.tools-heading-row { border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.tools-heading-row h2 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.9); }
.tools-heading-row p  { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: oklch(1 0 0 / 4%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-left-width: 4px;
  box-shadow: var(--shadow-card);
  transition: background var(--transition-normal), transform var(--transition-fast);
  cursor: pointer;
}
.tool-card:hover { background: rgba(255,255,255,0.1); }
.tool-card:active { transform: scale(0.98); }

.tool-icon-wrap {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.tool-card:hover .tool-icon-wrap { transform: scale(1.05); }
.tool-icon-wrap svg, .tool-icon-wrap img { width: 1.25rem; height: 1.25rem; }
.tool-badge { font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #71717a; }
.tool-card:hover .tool-badge { color: #a1a1aa; }
.tool-name { font-size: 0.875rem; font-weight: 600; color: #fff; margin-top: 0.125rem; }

/* ── Blog / News Archive Cards ──────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  position: relative;
  border-radius: 1.5rem;
  background: #100B22;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
  overflow: hidden;
}
.blog-card-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, oklch(0.6 0.2 260 / 20%), oklch(0.65 0.15 240 / 20%));
  border-radius: 1.5rem;
  z-index: 0;
}
.blog-card-inner {
  position: relative;
  z-index: 1;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  justify-content: space-between;
  transition: filter var(--transition-normal);
}
.blog-card:hover { transform: scale(1.02); }
.blog-card:hover .blog-card-inner { filter: brightness(1.1); }

.blog-card-image {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-normal); }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-tag {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  background: linear-gradient(to right, var(--primary), #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blog-card-title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.blog-card-excerpt { font-size: 0.875rem; color: #d1d5db; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.blog-card-meta {
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.blog-card-date { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: #9ca3af; }
.blog-card-date svg { width: 0.875rem; height: 0.875rem; }
.blog-card-read { font-size: 0.75rem; font-weight: 600; color: var(--primary); }

/* ── Page Header ─────────────────────────────────────────────── */
.page-hero { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.page-hero-icon { width: 3rem; height: 3rem; color: var(--primary); margin: 0 auto 0.5rem; animation: pulse 2s ease-in-out infinite; will-change: opacity; }
.page-hero-title { font-size: clamp(2rem, 4vw, 3.125rem); font-weight: 800; margin-bottom: 1rem; }
.page-hero-desc { font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7; opacity: 0.8; }

/* ── Search Bar ──────────────────────────────────────────────── */
.search-wrap { max-width: 40rem; margin: 0 auto 3rem; position: relative; }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.25rem; height: 1.25rem; color: var(--muted-foreground); }
.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-input::placeholder { color: var(--muted-foreground); }
.search-input:focus { border-color: oklch(0.6 0.2 260 / 50%); box-shadow: 0 0 0 3px oklch(0.6 0.2 260 / 15%); }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination-btn {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.875rem;
  transition: background var(--transition-fast);
}
.pagination-btn:hover:not(:disabled) { background: rgba(255,255,255,0.1); }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-btn svg { width: 1rem; height: 1rem; }
.pagination-pages { display: flex; gap: 0.25rem; }
.pagination-page {
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  transition: background var(--transition-fast);
}
.pagination-page:hover { background: rgba(255,255,255,0.1); }
.pagination-page.active { background: linear-gradient(to right, var(--primary), #a855f7); border-color: transparent; }

/* ── Single Post ─────────────────────────────────────────────── */
.post-header-card {
  position: relative;
  border-radius: 1.5rem;
  background: #100B22;
  padding: 2rem;
  margin-bottom: 2rem;
  overflow: hidden;
}
.post-header-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, oklch(0.6 0.2 260 / 20%), #a855f7 / 20%);
  border-radius: 1.5rem;
  z-index: 0;
}
.post-header-inner { position: relative; z-index: 1; }
.post-tag { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; background: linear-gradient(to right, var(--primary), #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.post-title { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 800; color: #fff; margin: 1.5rem 0; line-height: 1.2; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.875rem; }
.post-author { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.post-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #a855f7); display: flex; align-items: center; justify-content: center; }
.post-avatar svg { width: 1.25rem; height: 1.25rem; color: #fff; }
.post-date { opacity: 0.5; font-weight: 400; margin-left: 0.5rem; }
.post-readtime { display: flex; align-items: center; gap: 0.25rem; color: #9ca3af; }
.post-readtime svg { width: 1.25rem; height: 1.25rem; }

.post-featured-img { border-radius: 1rem; overflow: hidden; margin-bottom: 2rem; max-width: 56rem; margin-left: auto; margin-right: auto; }
.post-featured-img img { width: 100%; height: auto; }

.post-layout { display: flex; gap: 3rem; }
.post-content-col { flex: 1; min-width: 0; }
.post-toc-col { width: 16rem; flex-shrink: 0; display: none; }

.post-article {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.8;
}
.post-article h1, .post-article h2, .post-article h3, .post-article h4 { color: #fff; margin: 1.5rem 0 0.75rem; line-height: 1.3; }
.post-article h1 { font-size: 1.75rem; }
.post-article h2 { font-size: 1.5rem; }
.post-article h3 { font-size: 1.25rem; }
.post-article p { margin-bottom: 1.25rem; }
.post-article ul, .post-article ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-article li { margin-bottom: 0.5rem; color: #d1d5db; }
.post-article a { color: var(--primary); }
.post-article a:hover { opacity: 0.8; text-decoration: underline; }
.post-article img { border-radius: 1rem; border: 1px solid var(--border); box-shadow: var(--shadow-card); margin: 1.5rem 0; }
.post-article strong { color: #fff; }
.post-article blockquote { border-left: 4px solid var(--primary); padding-left: 1rem; color: var(--muted-foreground); font-style: italic; margin: 1.5rem 0; }
.post-article code { background: rgba(255,255,255,0.08); padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875em; }
.post-article pre { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; }
.post-article pre code { background: none; padding: 0; }
.post-article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.post-article th, .post-article td { padding: 0.75rem 1rem; border: 1px solid var(--border); text-align: left; }
.post-article th { background: rgba(255,255,255,0.05); color: #fff; }
.post-article hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.post-footer-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(to right, var(--primary), #a855f7);
  color: #fff;
  font-size: 0.875rem; font-weight: 600;
  transition: opacity var(--transition-fast);
}
.btn-primary:hover { opacity: 0.9; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.875rem; font-weight: 600;
  transition: background var(--transition-fast);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-sm {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.5rem; padding: 0 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem; font-weight: 700;
  transition: all var(--transition-fast);
}

/* TOC sidebar */
.toc-card {
  position: sticky;
  top: 5rem;
  background: #100B22;
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 1rem;
  overflow: hidden;
  isolation: isolate;
}
.toc-gradient { position: absolute; inset: 0; background: linear-gradient(135deg, oklch(0.6 0.2 260 / 10%), #a855f7 / 10%); border-radius: 1rem; z-index: -1; }
.toc-title { font-size: 0.875rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.toc-link { display: block; font-size: 0.875rem; color: #d1d5db; margin-bottom: 0.5rem; transition: color var(--transition-fast); }
.toc-link:hover { color: var(--primary); }

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  transition: color var(--transition-fast);
}
.back-link:hover { color: #fff; }
.back-link svg { width: 1rem; height: 1rem; }

/* ── Updates List ────────────────────────────────────────────── */
.update-list { display: flex; flex-direction: column; gap: 1rem; }
.update-entry {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: oklch(1 0 0 / 4%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}
.update-entry:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.update-entry-info { display: flex; flex-direction: column; gap: 0.5rem; }
.update-entry-date { display: flex; align-items: center; gap: 0.5rem; }
.update-entry-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #22c55e; animation: pulse 2s ease-in-out infinite; will-change: opacity; }
.update-entry-date-text { font-size: 0.75rem; color: rgba(255,255,255,0.4); font-weight: 600; }
.update-entry-title { font-size: 1.125rem; font-weight: 700; color: #fff; line-height: 1.3; }
.update-entry-excerpt { font-size: 0.875rem; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.update-entry-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.5rem; padding: 0 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 0.75rem; font-weight: 700;
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}
.update-entry-btn:hover { background: rgba(255,255,255,0.1); }
.update-entry-btn:active { transform: scale(0.95); }

/* Deployed badge */
.deployed-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  font-size: 0.75rem; font-weight: 600;
  color: #4ade80;
  margin-bottom: 1.5rem;
}
.deployed-badge svg { width: 0.875rem; height: 0.875rem; }

/* ── Homepage ────────────────────────────────────────────────── */
.home-page { max-width: 72rem; margin: 0 auto; }
.hero-section { text-align: center; padding: 3rem 1rem 2rem; max-width: 48rem; margin: 0 auto; }
.hero-title {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-desc { font-size: 1rem; color: var(--muted-foreground); line-height: 1.7; max-width: 38rem; margin: 0 auto; }

.tools-section { margin-top: 3rem; }
.tools-section-header { margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.tools-section-label { font-size: 0.6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.9); }
.tools-section-sub { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.25rem; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1.125rem;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid var(--border);
  border-left-width: 3px;
}
.tool-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.tool-card:active { transform: scale(0.98); }
.tool-card-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.tool-card:hover .tool-card-icon { transform: scale(1.07); }
.tool-card-dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; }
.tool-card-body { flex: 1; min-width: 0; }
.tool-card-label { display: block; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-foreground); }
.tool-card-name { font-size: 0.875rem; font-weight: 600; color: #fff; margin-top: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-card-arrow { width: 1rem; height: 1rem; color: var(--muted-foreground); flex-shrink: 0; }

.home-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: center;
  margin-top: 3.5rem;
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 1rem;
}
.home-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.home-feature-item svg { width: 1.125rem !important; height: 1.125rem !important; color: var(--primary); display: inline-block; flex-shrink: 0; }

/* ── Downloader Tool Pages ───────────────────────────────────── */
.tool-page { max-width: 48rem; margin: 0 auto; }
.tool-hero { text-align: center; margin-bottom: 2.5rem; }

.tool-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}
.tool-platform-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.tool-hero-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 900; color: #fff; margin: 0.75rem 0; }
.tool-hero-desc { font-size: 1rem; color: var(--muted-foreground); line-height: 1.6; }

.download-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.download-input-row { display: flex; gap: 0.75rem; }
.download-url-input {
  flex: 1;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.download-url-input::placeholder { color: var(--muted-foreground); }
.download-url-input:focus { border-color: rgba(59,130,246,0.6); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.download-submit-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: #fff;
  border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 700;
  font-family: inherit;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}
.download-submit-btn:hover { opacity: 0.9; }
.download-submit-btn:active { transform: scale(0.97); }
.download-submit-btn svg { width: 1rem; height: 1rem; }
.download-submit-btn.loading { opacity: 0.7; pointer-events: none; }

.download-result { margin-top: 1.5rem; display: none; }
.download-result.visible { display: block; }
.download-result-inner {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  overflow: hidden;
}
.download-thumb-wrap { aspect-ratio: 16/9; overflow: hidden; background: rgba(255,255,255,0.05); }
.download-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.download-info { padding: 1.25rem; }
.download-title { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.download-formats { display: flex; flex-direction: column; gap: 0.5rem; }
.download-format-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: #3b82f6;
  border: 1px solid #3b82f6;
  border-radius: 0.625rem;
  color: #fff;
  font-size: 0.9375rem; font-weight: 600;
  font-family: inherit;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform 0.15s;
  text-decoration: none;
}
.download-format-btn:hover { background: #2563eb; border-color: #2563eb; transform: translateY(-1px); }
.download-format-btn .dl-quality { font-weight: 700; color: #fff; }
.download-format-btn .dl-size { font-size: 0.8125rem; color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.2); padding: 0.15rem 0.5rem; border-radius: 0.375rem; }
.download-format-btn .dl-arrow { font-size: 1rem; color: #fff; }

.download-result-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
}
.download-result-row .download-thumb-wrap {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.download-result-row .download-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.download-actions {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.download-actions .download-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.download-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0 0 0.375rem;
}
.tiktok-dl-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.125rem;
  border-radius: 0.625rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  border: none;
  gap: 0.625rem;
  cursor: pointer;
}
.tiktok-dl-btn:hover { transform: translateY(-2px); opacity: 0.93; box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.tiktok-dl-btn:active { transform: scale(0.98); }
.tiktok-dl-btn-mp4 {
  background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
  box-shadow: 0 2px 12px rgba(56,189,248,0.25);
}
.tiktok-dl-btn-mp4:hover { background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%); }
.tiktok-dl-btn-mp3 {
  background: linear-gradient(90deg, #67e8f9 0%, #22d3ee 100%);
  box-shadow: 0 2px 12px rgba(34,211,238,0.25);
}
.tiktok-dl-btn-mp3:hover { background: linear-gradient(90deg, #22d3ee 0%, #06b6d4 100%); }
.tiktok-dl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(0,0,0,0.15);
  border-radius: 0.375rem;
  flex-shrink: 0;
}
.tiktok-dl-icon svg { width: 1rem; height: 1rem; }
.tiktok-dl-label { flex: 1; text-align: left; color: #fff; }
.tiktok-dl-badge {
  font-size: 0.75rem;
  font-weight: 900;
  background: rgba(0,0,0,0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.05em;
}

.download-error {
  padding: 1rem 1.25rem;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 0.75rem;
  color: #f87171;
  font-size: 0.875rem;
  margin-top: 1rem;
  display: none;
}
.download-error.visible { display: block; }

/* ── Static Pages ────────────────────────────────────────────── */
.static-page { max-width: 48rem; margin: 0 auto; }
.static-page h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; margin-bottom: 1rem; }
.static-page .page-meta { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 2.5rem; }
.static-page-content { color: rgba(255,255,255,0.85); line-height: 1.8; }
.static-page-content h2 { font-size: 1.5rem; color: #fff; margin: 2rem 0 0.75rem; }
.static-page-content h3 { font-size: 1.25rem; color: #fff; margin: 1.5rem 0 0.5rem; }
.static-page-content p { margin-bottom: 1.25rem; }
.static-page-content ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.static-page-content li { margin-bottom: 0.5rem; color: #d1d5db; }
.static-page-content a { color: var(--primary); }

/* ── 404 ─────────────────────────────────────────────────────── */
.page-404 {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; text-align: center; padding: 2rem;
}
.page-404 h1 { font-size: 7rem; font-weight: 900; color: #fff; line-height: 1; }
.page-404 h2 { font-size: 1.25rem; font-weight: 600; color: #fff; margin-top: 1rem; }
.page-404 p  { margin-top: 0.5rem; color: var(--muted-foreground); font-size: 0.875rem; }

/* ── FAQ Accordion ───────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 48rem; margin: 0 auto; }
.faq-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  color: #fff;
  font-size: 0.9375rem; font-weight: 600;
  font-family: inherit;
  background: none;
  gap: 1rem;
  transition: background var(--transition-fast);
}
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-chevron { width: 1.25rem; height: 1.25rem; flex-shrink: 0; transition: transform var(--transition-normal); color: var(--muted-foreground); }
.faq-item.open .faq-chevron,
.faq-item[open] .faq-chevron,
.faq-item[open] .faq-toggle { transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-answer,
.faq-item[open] .faq-answer { max-height: 600px; padding-bottom: 1.25rem; }
.faq-answer p { font-size: 0.9375rem; color: var(--muted-foreground); line-height: 1.7; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* ── No results ──────────────────────────────────────────────── */
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted-foreground);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.no-results svg { width: 3rem; height: 3rem; opacity: 0.4; }
.pagination-info { text-align: center; font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.5rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .post-toc-col { display: block; }
  .update-entry { flex-direction: row; }
}

@media (max-width: 1023px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 767px) {
  .wpv-sidebar { transform: translateX(-100%); }
  .wpv-sidebar.open { transform: translateX(0); }
  .wpv-layout { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .wpv-main { padding: 1.25rem 1rem; }
  .glass {
    background: rgba(26,26,42,0.92);
    backdrop-filter: blur(8px);
  }
  .download-input-row { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .update-entry { flex-direction: column; align-items: flex-start; }
  .post-layout { flex-direction: column; }
}

@media (max-width: 639px) {
  .tool-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── Static Page Improvements ────────────────────────────────── */
.static-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 0;
}
.static-page .glass {
  padding: 2rem 2.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
}
.static-page h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}
.static-page .page-meta {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.static-page-content { color: rgba(255,255,255,0.8); line-height: 1.8; }
.static-page-content h2 { font-size: 1.375rem; color: #fff; margin: 1.75rem 0 0.5rem; }
.static-page-content h3 { font-size: 1.125rem; color: #fff; margin: 1.25rem 0 0.4rem; }
.static-page-content p { margin-bottom: 1rem; }
.static-page-content ul, .static-page-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.static-page-content li { margin-bottom: 0.4rem; color: #d1d5db; }
.static-page-content a { color: var(--primary); }
.static-page-content a:hover { text-decoration: underline; }

/* ── Status Page ─────────────────────────────────────────────── */
.status-page { max-width: 56rem; margin: 0 auto; }

.status-hero {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}
.status-hero-icon {
  font-size: 3rem;
  color: var(--status-color, #10b981);
  line-height: 1;
  margin-bottom: 1rem;
}
.status-hero-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}
.status-hero-sub {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}
.status-indicator-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.status-indicator-bar.operational { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.25); box-shadow: 0 0 15px rgba(16,185,129,0.1); }
.status-indicator-bar.maintenance { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.25); box-shadow: 0 0 15px rgba(245,158,11,0.1); }
.status-indicator-bar.degraded    { background: rgba(249,115,22,0.12); border-color: rgba(249,115,22,0.25); box-shadow: 0 0 15px rgba(249,115,22,0.1); }

/* Live API status (pulled from /api/status) */
.status-live {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.status-live-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  color: #fff;
}
.status-live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 10px rgba(16,185,129,0.8);
}
.status-live-ms {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6ee7b7;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}
.status-live-services {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1.25rem;
}
.status-live-services li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
}
.status-live-online {
  margin-left: auto;
  font-size: 0.75rem;
  color: #6ee7b7;
}
.status-indicator-bar.outage      { background: rgba(239,68,68,0.12);  border-color: rgba(239,68,68,0.25);  box-shadow: 0 0 15px rgba(239,68,68,0.1); }

.status-dot-lg {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--muted-foreground);
  flex-shrink: 0;
}
.status-dot-lg.operational { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,0.6); animation: pulse 2s ease infinite; will-change: opacity; }
.status-dot-lg.maintenance { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.6); }
.status-dot-lg.degraded    { background: #f97316; box-shadow: 0 0 6px rgba(249,115,22,0.6); }
.status-dot-lg.outage      { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.6); }
.status-label-lg { font-size: 0.8125rem; font-weight: 600; color: #fff; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.status-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.status-card-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.status-card-title svg { width: 1.125rem; height: 1.125rem; color: var(--muted-foreground); }

.status-service-list { display: flex; flex-direction: column; gap: 0.75rem; }
.status-service-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
}
.service-platform-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.service-name { flex: 1; color: rgba(255,255,255,0.8); }
.service-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(16,185,129,0.12);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.2);
}
.service-badge.maintenance { background: rgba(245,158,11,0.12); color: #f59e0b; border-color: rgba(245,158,11,0.2); }
.service-badge.degraded    { background: rgba(249,115,22,0.12); color: #f97316; border-color: rgba(249,115,22,0.2); }
.service-badge.outage      { background: rgba(239,68,68,0.12);  color: #ef4444; border-color: rgba(239,68,68,0.2); }

.status-footer-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 0.875rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.status-footer-note svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; margin-top: 0.1rem; color: #3b82f6; }
.status-footer-note a { color: #3b82f6; }
.status-footer-note a:hover { text-decoration: underline; }

/* ── 404 Page ────────────────────────────────────────────────── */
.page-404 { max-width: 42rem; margin: 4rem auto; text-align: center; }
.page-404-icon { display: inline-flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; border-radius: 1rem; background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); margin-bottom: 1rem; }
.page-404-icon svg { width: 2.5rem; height: 2.5rem; }
.page-404 h1 { font-size: 4rem; font-weight: 900; color: #fff; line-height: 1; }
.page-404 h2 { font-size: 2rem; font-weight: 700; color: rgba(255,255,255,0.9); margin-top: 0.5rem; }
.page-404 p { color: var(--muted-foreground); margin: 1rem auto 2rem; font-size: 1rem; line-height: 1.6; max-width: 28rem; }
.page-404-actions { display: flex; gap: 1rem; justify-content: center; }

/* ── FAQ Page ────────────────────────────────────────────────── */
.faq-page { max-width: 48rem; margin: 2rem auto; }
.faq-header { text-align: center; margin-bottom: 3rem; }
.faq-header-icon { width: 3rem; height: 3rem; margin: 0 auto 1rem; border-radius: 1rem; background: rgba(59,130,246,0.1); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.faq-header-icon svg { width: 1.5rem; height: 1.5rem; }
.faq-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.faq-header p { font-size: 1.125rem; color: var(--muted-foreground); margin-top: 1rem; max-width: 32rem; margin-inline: auto; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; transition: all var(--transition-fast); }
.faq-item:hover { border-color: rgba(255,255,255,0.15); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: transparent; border: none; color: #fff; font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer; transition: background var(--transition-fast); }
.faq-question:hover { background: rgba(255,255,255,0.05); }
.faq-chevron { width: 1.25rem; height: 1.25rem; color: var(--muted-foreground); transition: transform var(--transition-fast); flex-shrink: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; }
.faq-answer p { padding: 0 1.5rem 1.5rem; color: var(--muted-foreground); line-height: 1.6; font-size: 0.9375rem; border-top: 1px solid transparent; margin-top: -0.25rem; }
.faq-item.open .faq-chevron,
.faq-item[open] .faq-chevron,
.faq-item[open] .faq-toggle { transform: rotate(180deg); }
.faq-item.open .faq-answer,
.faq-item[open] .faq-answer { max-height: 20rem; }
.faq-item.open .faq-answer p,
.faq-item[open] .faq-answer p { border-top-color: rgba(255,255,255,0.05); margin-top: 0; padding-top: 1rem; }

/* ── Archive Layouts (Blog, News, Updates) ───────────────────── */
.archive-page { max-width: 72rem; margin: 2rem auto; }
.archive-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.archive-header h1 { font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.archive-header p { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.5rem; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); background: rgba(255,255,255,0.03); }
.blog-card-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-thumb-empty { display: flex; align-items: center; justify-content: center; }
.blog-card-thumb-empty svg { width: 3rem; height: 3rem; color: rgba(255,255,255,0.1); }
.blog-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.blog-card-content { flex: 1; }
.blog-card-title { font-size: 1.125rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.5rem; }
.blog-card-title a { color: #fff; text-decoration: none; transition: color var(--transition-fast); }
.blog-card:hover .blog-card-title a { color: var(--primary); }
.blog-card-excerpt { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-footer { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.blog-card-author { font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.8); }
.blog-card-link { font-size: 0.75rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 0.25rem; }
.blog-card-link svg { width: 0.875rem; height: 0.875rem; }
.blog-card-link:hover { text-decoration: underline; }

.archive-pagination { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: center; }
.pagination-list { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.pagination-list li a, .pagination-list li span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; transition: background var(--transition-fast); }
.pagination-list li a:hover { background: rgba(255,255,255,0.1); }
.pagination-list li span.current { background: var(--primary); color: #fff; font-weight: 700; }

.no-results { text-align: center; padding: 4rem 1rem; color: var(--muted-foreground); }
.no-results svg { width: 3rem; height: 3rem; margin: 0 auto 1rem; opacity: 0.5; }
.no-results p { margin-bottom: 1.5rem; font-size: 1rem; }

/* ── Single Posts (Blog, News, Updates) ──────────────────────── */
.single-post-page { max-width: 48rem; margin: 2rem auto; }
.single-post-page.news-single { max-width: 48rem; }
.single-post-page.update-single { max-width: 42rem; }

.single-post-back { margin-bottom: 2rem; }
.single-post-back a { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--muted-foreground); text-decoration: none; transition: color var(--transition-fast); }
.single-post-back a:hover { color: #fff; }
.single-post-back a svg { width: 1rem; height: 1rem; }

.single-post-header { margin-bottom: 2rem; }
.single-post-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8125rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.meta-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: rgba(255,255,255,0.2); }
.meta-highlight { color: var(--primary); font-weight: 600; }
.single-post-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1.5rem; }

.single-post-author { display: flex; align-items: center; gap: 0.75rem; }
.single-post-author-avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 600; color: #fff; }
.single-post-author-info .author-name { font-size: 0.875rem; font-weight: 600; color: #fff; }
.single-post-author-info .author-role { font-size: 0.75rem; color: var(--muted-foreground); }
.single-post-author-simple { font-size: 0.875rem; color: var(--muted-foreground); }
.single-post-author-simple strong { color: #fff; }

.single-post-thumbnail { border-radius: 1rem; overflow: hidden; margin-bottom: 2.5rem; border: 1px solid var(--border); }
.single-post-thumbnail img { width: 100%; height: auto; display: block; }

.single-post-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) {
  .single-post-layout { grid-template-columns: 1fr 300px; align-items: start; }
}

.single-post-content { padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--border); font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.85); }
@media (min-width: 640px) {
  .single-post-content { padding: 2rem; }
}
.single-post-content h2, .single-post-content h3 { color: #fff; margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; line-height: 1.3; }
.single-post-content h2 { font-size: 1.5rem; }
.single-post-content h3 { font-size: 1.25rem; }
.single-post-content p { margin-bottom: 1.25rem; }
.single-post-content ul, .single-post-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.single-post-content li { margin-bottom: 0.5rem; }
.single-post-content a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(59,130,246,0.4); text-underline-offset: 4px; }
.single-post-content a:hover { text-decoration-color: var(--primary); }

.single-post-sidebar { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--border); }
.widget-title { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 1rem; }
.widget-text { font-size: 0.8125rem; color: var(--muted-foreground); margin-bottom: 1.25rem; line-height: 1.6; }

.share-buttons { display: flex; gap: 0.5rem; }
.btn-share { flex: 1; text-align: center; padding: 0.5rem; border-radius: 0.5rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); font-size: 0.75rem; color: #fff; text-decoration: none; transition: background var(--transition-fast); }
.btn-share:hover { background: rgba(255,255,255,0.1); }

/* ── News Archive & Update Archive specific ──────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; }
.news-card { display: flex; flex-direction: column; justify-content: space-between; border-radius: 1rem; border: 1px solid var(--border); padding: 1.5rem; transition: background var(--transition-fast); }
.news-card:hover { background: rgba(255,255,255,0.04); }
.badge-news { background: rgba(59,130,246,0.1); color: #3b82f6; padding: 0.125rem 0.5rem; border-radius: 0.25rem; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; }
.news-card-title { font-size: 1.25rem; font-weight: 600; margin: 0.75rem 0; line-height: 1.4; }
.news-card-title a { color: #fff; text-decoration: none; }
.news-card-title a:hover { color: var(--primary); }
.news-card-excerpt { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1.5rem; }
.news-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 1rem; }
.news-card-author { font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.8); }
.news-card-link { font-size: 0.75rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 0.25rem; text-decoration: none; }
.news-card-link svg { width: 0.875rem; height: 0.875rem; }
.news-card-link:hover { text-decoration: underline; }

.update-list { display: flex; flex-direction: column; gap: 1.5rem; }
.update-card { display: flex; flex-direction: column; border-radius: 1rem; border: 1px solid var(--border); padding: 1.5rem; transition: background var(--transition-fast); gap: 1.5rem; }
@media (min-width: 768px) { .update-card { flex-direction: row; } }
.update-card:hover { background: rgba(255,255,255,0.04); }
.update-card-left { flex-shrink: 0; width: 12rem; display: flex; flex-direction: column; gap: 0.5rem; }
.update-version { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 999px; background: rgba(59,130,246,0.1); color: #3b82f6; border: 1px solid rgba(59,130,246,0.2); align-self: flex-start; }
.update-time { font-size: 0.75rem; color: var(--muted-foreground); }
.status-badge { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; margin-top: 0.5rem; }
.status-badge.deployed { color: #34d399; }
.status-badge.pending { color: #fbbf24; }
.status-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; }
.status-badge.deployed .status-dot { background: #34d399; }
.status-badge.pending .status-dot { background: #fbbf24; }
.update-card-body { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.update-title { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.update-title a { color: #fff; text-decoration: none; }
.update-title a:hover { color: var(--primary); }
.update-excerpt { font-size: 0.875rem; color: rgba(255,255,255,0.8); line-height: 1.6; }
.update-link { font-size: 0.75rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 0.25rem; text-decoration: none; }
.update-link svg { width: 0.875rem; height: 0.875rem; }
.update-link:hover { text-decoration: underline; }

.update-single-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--muted-foreground); }
.update-version-badge { font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 999px; background: rgba(59,130,246,0.1); color: #3b82f6; border: 1px solid rgba(59,130,246,0.2); }
.update-single-status { margin-top: 0.5rem; }

/* Sidebar Status Badges */
.nav-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  margin: 0 24px;
  background: rgba(255, 255, 255, 0.05);
}
.nav-status .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.nav-status.operational {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
}
.nav-status.operational .status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}
.nav-status.degraded {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: #fb923c;
}
.nav-status.degraded .status-dot {
  background: #f97316;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.5);
}
.nav-status.outage {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}
.nav-status.outage .status-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.nav-status.maintenance {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}
.nav-status.maintenance .status-dot {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* ── Tool How-To Steps ───────────────────────────────────────── */
.tool-how-to {
  margin-top: 4rem;
  padding: 2.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}
.tool-how-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
  text-align: center;
}
.tool-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.tool-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.tool-step-num {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid;
  background: rgba(255,255,255,0.05);
  margin-bottom: 0.5rem;
}
.tool-step h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}
.tool-step p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}


/* ============================================================
   WPVaults v2 — Enhanced UI Components
   Homepage, Tool Pages, How-To Steps, Features, Status
   ============================================================ */

/* ── Hero Pill Badge ─────────────────────────────────────────── */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
}
.hero-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
  will-change: opacity;
  flex-shrink: 0;
}

/* ── Hero Stats ──────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
  margin-top: 0.2rem;
}

/* ── Tools Section Header with count ────────────────────────── */
.tools-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.tools-count-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
}

/* ── "Why WPVaults" Section ──────────────────────────────────── */
.why-section { margin-top: 4rem; }
.section-heading { text-align: center; margin-bottom: 2rem; }
.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.section-heading p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.6;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.why-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.why-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.why-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-icon svg { width: 1.25rem; height: 1.25rem; }
.why-card h3 { font-size: 0.875rem; font-weight: 700; color: #fff; margin: 0; }
.why-card p { font-size: 0.8125rem; color: var(--muted-foreground); line-height: 1.5; margin: 0; }

/* ── SEO Text Block ──────────────────────────────────────────── */
.seo-block {
  margin-top: 4rem;
  padding: 2rem 2.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}
.seo-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.seo-block-content {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 60rem;
}
.seo-block-content strong { color: rgba(255,255,255,0.8); }

/* ── Tool Page Section Tag ───────────────────────────────────── */
.tool-section-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  border: 1px solid transparent;
  margin-bottom: 0.875rem;
}

/* ── Improved How-To Steps ───────────────────────────────────── */
.tool-how-to {
  margin-top: 3.5rem;
}
.tool-how-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.tool-how-sub {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.tool-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.tool-step {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.tool-step:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.tool-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tool-step-num {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.625rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(254,44,85,0.25);
}
.tool-step-icon {
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.tool-step:hover .tool-step-icon { transform: scale(1.1); }
.tool-step h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.tool-step p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}
.tool-step p strong { color: rgba(255,255,255,0.75); }

/* ── Download Paste Button ───────────────────────────────────── */
.download-paste-btn {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.875rem 1rem;
  min-height: 3rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.download-paste-btn:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.2); }
.download-paste-btn:active { transform: scale(0.97); }
.download-paste-btn svg { width: 0.875rem; height: 0.875rem; }

/* ── Tool Features Grid ──────────────────────────────────────── */
.tool-features { margin-top: 3.5rem; }
.tool-features-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.tool-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.875rem;
}
.tool-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.tool-feature-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.tool-feature-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.625rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tool-feature-icon svg { width: 1.125rem; height: 1.125rem; }
.tool-feature-card div strong { display: block; font-size: 0.875rem; font-weight: 700; color: #fff; }
.tool-feature-card div p { font-size: 0.8125rem; color: var(--muted-foreground); margin: 0.2rem 0 0; line-height: 1.4; }

/* ── FAQ Section ──────────────────────────────────────────────── */
.faq-section { margin-top: 5rem; padding-top: 1rem; }
.why-section + .faq-section { margin-top: 6.5rem; }
.why-section + .faq-section,
.faq-section { position: relative; }

/* ── Minecraft Promo Section ──────────────────────────────────── */
.minecraft-promo-section {
  margin-top: 5rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(34,197,94,0.1) 0%, rgba(22,163,74,0.05) 100%);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 1.25rem;
}
.minecraft-promo-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}
.minecraft-promo-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: #86efac;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.minecraft-promo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.minecraft-promo-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(34,197,94,0.15);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
}
.minecraft-promo-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}
.minecraft-promo-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.minecraft-promo-code {
  display: inline-block;
  background: rgba(34,197,94,0.2);
  color: #22c55e;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}
.minecraft-promo-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.minecraft-promo-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  background: rgba(255,255,255,0.03);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}
.minecraft-promo-check {
  color: #22c55e;
  font-weight: 700;
}
.minecraft-promo-btn {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 0.625rem;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}
.minecraft-promo-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
}

/* ── FAQ with <details> ──────────────────────────────────────── */
details.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
details.faq-item[open] { border-color: rgba(255,255,255,0.12); }
details.faq-item summary.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  list-style: none;
  user-select: none;
  transition: background var(--transition-fast);
}
details.faq-item summary.faq-question::-webkit-details-marker { display: none; }
details.faq-item summary.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-toggle {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
details.faq-item[open] .faq-toggle { transform: rotate(45deg); border-color: rgba(255,255,255,0.25); color: #fff; }
details.faq-item[open] .faq-toggle::before { content: '\00d7'; }
details.faq-item:not([open]) .faq-toggle::before { content: '+'; }
.faq-toggle {
  width: 1.5rem; height: 1.5rem;
  font-size: 0; /* hide any text inside, use ::before */
}
details.faq-item .faq-answer {
  padding: 0 1.5rem 1.25rem;
}
details.faq-item .faq-answer p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ── Tool FAQ & Others ───────────────────────────────────────── */
.tool-faq { margin-top: 3.5rem; }
.tool-faq-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.tool-others { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.tool-others h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
  text-align: center;
}
.tool-others-list { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.tool-other-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.tool-other-pill:hover { background: rgba(255,255,255,0.09); color: #fff; border-color: rgba(255,255,255,0.15); }
.tool-other-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ── Sidebar Status improvements ────────────────────────────── */
.nav-status.down {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.18);
  color: #f87171;
}

/* ── Download Spinner ────────────────────────────────────────── */
.download-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 2rem;
  text-align: center;
}
.download-loading p { font-size: 0.875rem; color: var(--muted-foreground); }
.download-spinner {
  width: 2.5rem; height: 2.5rem;
  border: 3px solid rgba(255,255,255,0.06);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  will-change: transform;
}

/* ── Theme Builder Live-Preview Pane ─────────────────────────── */
.builder-preview-pane {
  background: #000;
  border-radius: 0.75rem;
  border: 1px solid #2a2a3e;
  overflow: hidden;
  position: relative;
}
.builder-preview-topbar {
  height: 40px;
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a2a;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}
.preview-traffic-light {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.preview-traffic-light.red   { background: #ef4444; }
.preview-traffic-light.amber { background: #f59e0b; }
.preview-traffic-light.green { background: #22c55e; }
.builder-preview-url {
  flex: 1;
  height: 22px;
  background: #1a1a2e;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  color: #71717a;
  margin-left: 8px;
  overflow: hidden;
  white-space: nowrap;
}
.builder-preview-iframe {
  width: 100%;
  min-height: 540px;
  border: none;
  display: block;
  background: #000;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-stats { gap: 1.5rem; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .tool-steps { grid-template-columns: 1fr; }
  .tool-features-grid { grid-template-columns: 1fr; }
  .seo-block { padding: 1.5rem; }
  .download-input-row { flex-wrap: wrap; }
  .download-url-input { width: 100%; }
  .download-paste-btn { width: 100%; justify-content: center; padding: 0.75rem; }
  .download-submit-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   WPVaults v2 — Blog / News Archive & Single Post
   WiseHosting-style layout
   ============================================================ */

/* ── Archive Hero ────────────────────────────────────────────── */
.archive-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 2rem 3rem;
  max-width: 72rem;
  margin: 0 auto 0;
  background: var(--background);
  position: relative;
  overflow: hidden;
}
/* faint glow behind hero */
.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 75% 50%, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.archive-hero-left { position: relative; z-index: 1; }

.archive-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.archive-hero-desc {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

/* Search bar */
.archive-search-wrap {
  position: relative;
  max-width: 26rem;
}
.archive-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem; height: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}
.archive-search-input {
  width: 100%;
  padding: 0.8125rem 1rem 0.8125rem 2.625rem;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(59,130,246,0.35);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.archive-search-input::placeholder { color: var(--muted-foreground); }
.archive-search-input:focus {
  border-color: rgba(59,130,246,0.65);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* Featured card (right side of hero) */
.archive-hero-featured {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.archive-hero-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.featured-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.featured-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.archive-hero-featured:hover .featured-thumb img { transform: scale(1.04); }
.featured-thumb-empty {
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.04);
}
.featured-meta { padding: 1rem 1.125rem 1.125rem; }
.featured-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.625rem;
}
.featured-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.featured-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  font-weight: 500;
}
.featured-read {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.featured-read svg { flex-shrink: 0; }

/* Author avatar small */
.author-avatar-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem; height: 1.625rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  font-size: 0.6875rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

/* ── Archive Grid Header ─────────────────────────────────────── */
.archive-page { max-width: 72rem; margin: 0 auto; padding: 0 1rem 4rem; }
.archive-grid-header { padding: 2rem 0 1.25rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.archive-grid-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

/* ── Category Tabs ───────────────────────────────────────────── */
.archive-category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.archive-cat-tab {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.archive-cat-tab:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.archive-cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── 3-column Article Grid ───────────────────────────────────── */
.wpv-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.wpv-article-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.875rem;
  overflow: hidden;
  background: rgba(17,17,32,0.9);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.25s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wpv-article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

/* Thumbnail */
.wpv-article-thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
  position: relative;
}
.wpv-article-type-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}
.wpv-article-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.wpv-article-card:hover .wpv-article-thumb img { transform: scale(1.04); }
.wpv-article-thumb-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.1);
}

/* Body */
.wpv-article-body {
  padding: 0.875rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.625rem;
}
.wpv-article-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}
.wpv-article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.wpv-article-card:hover .wpv-article-title a { color: #60a5fa; }

.wpv-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.wpv-article-author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  font-weight: 500;
}
.wpv-article-read {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* ── Archive Pagination ──────────────────────────────────────── */
.wpv-archive-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.wpv-pagination-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.wpv-per-page-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-weight: 600;
  color: #fff;
}
/* Override WordPress pagination list */
.wpv-archive-pagination .page-numbers {
  display: flex;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.wpv-archive-pagination .page-numbers li a,
.wpv-archive-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
}
.wpv-archive-pagination .page-numbers li a:hover {
  background: rgba(255,255,255,0.1);
}
.wpv-archive-pagination .page-numbers li span.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.wpv-archive-pagination .page-numbers li .prev,
.wpv-archive-pagination .page-numbers li .next {
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* ── Single Post: Hero Card ──────────────────────────────────── */
.wpv-single-blog,
.wpv-single-news {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.wpv-post-hero-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 0;
  background: rgba(14,12,34,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.wpv-post-hero-thumb {
  overflow: hidden;
}
.wpv-post-hero-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.wpv-post-hero-info {
  padding: 2rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.wpv-post-type-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  text-transform: uppercase;
}
.wpv-post-hero-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.wpv-post-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.wpv-post-hero-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.wpv-post-hero-date {
  font-weight: 400;
  margin-left: 0.25rem;
  color: rgba(255,255,255,0.35);
}
.wpv-post-hero-read {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* ── Single Post: Two-column layout ─────────────────────────── */
.wpv-post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* Article content */
.wpv-post-content {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 2.25rem;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.8;
}
.wpv-post-content h1,
.wpv-post-content h2,
.wpv-post-content h3,
.wpv-post-content h4 { color: #fff; margin: 1.75rem 0 0.75rem; line-height: 1.25; letter-spacing: -0.01em; }
.wpv-post-content h2 { font-size: 1.375rem; font-weight: 800; }
.wpv-post-content h3 { font-size: 1.125rem; font-weight: 700; }
.wpv-post-content p  { margin-bottom: 1.25rem; }
.wpv-post-content ul,
.wpv-post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.wpv-post-content li  { margin-bottom: 0.5rem; color: #d1d5db; }
.wpv-post-content a   { color: #60a5fa; }
.wpv-post-content a:hover { text-decoration: underline; }
.wpv-post-content img {
  border-radius: 0.75rem;
  max-width: 100%;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}
.wpv-post-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin: 1.5rem 0;
}
.wpv-post-content code {
  background: rgba(255,255,255,0.08);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}
.wpv-post-content pre {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.wpv-post-content pre code { background: none; padding: 0; }
.wpv-post-content strong { color: #fff; }
.wpv-post-content iframe {
  width: 100%;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
}

/* ── Single Post Sidebar ─────────────────────────────────────── */
.wpv-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--topbar-h) + 1rem);
}

/* ── Table of Contents Widget ────────────────────────────────── */
.wpv-toc-widget {
  background: rgba(14,12,34,0.92);
  border: 1.5px solid rgba(59,130,246,0.3);
  border-radius: 0.875rem;
  overflow: hidden;
}
.wpv-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.125rem;
  cursor: pointer;
  user-select: none;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.wpv-toc-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}
.wpv-toc-chevron {
  width: 1rem; height: 1rem;
  color: var(--muted-foreground);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.wpv-toc-list {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.875rem 0.875rem;
  gap: 0.125rem;
}
.wpv-toc-link {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.wpv-toc-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.wpv-toc-link.active {
  background: linear-gradient(90deg, rgba(34,211,238,0.18), rgba(59,130,246,0.18));
  color: #fff;
  font-weight: 600;
}
.wpv-toc-h3 {
  padding-left: 1.25rem;
  font-size: 0.8125rem;
}

/* ── Minecraft Hosting Promo Widget ──────────────────────────── */
.wpv-mc-promo {
  background: linear-gradient(160deg, #0a0a1a 0%, #0d1225 60%, #0a1a2e 100%);
  border: 1.5px solid rgba(34,211,238,0.2);
  border-radius: 0.875rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
/* subtle glow */
.wpv-mc-promo::before {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(34,211,238,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.wpv-mc-promo-label {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #22d3ee;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.wpv-mc-promo-heading {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.wpv-mc-promo-sub {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.wpv-mc-code {
  font-family: monospace;
  font-size: 0.875em;
  font-weight: 700;
  color: #22d3ee;
  background: rgba(34,211,238,0.1);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  border: none;
}
.wpv-mc-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  list-style: none;
  padding: 0;
}
.wpv-mc-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.wpv-mc-check {
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: #22d3ee;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wpv-mc-check svg { color: #000; width: 0.625rem; height: 0.625rem; }
.wpv-mc-btn {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  color: #000;
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.wpv-mc-btn:hover { opacity: 0.9; transform: scale(1.02); }

/* ── TikTok / YouTube Tools Promo ────────────────────────────── */
.wpv-tools-promo {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.25rem;
}
.wpv-tools-promo-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.375rem;
}
.wpv-tools-promo-sub {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.wpv-tools-promo-cards {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.wpv-tool-promo-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-left: 3px solid var(--tool-color, transparent);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.wpv-tool-promo-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateX(2px);
}
.wpv-tool-tiktok:hover { border-color: rgba(254,44,85,0.35); }
.wpv-tool-youtube:hover { border-color: rgba(255,0,0,0.35); }
.wpv-tool-promo-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wpv-tool-promo-info {
  flex: 1;
  min-width: 0;
}
.wpv-tool-promo-info strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}
.wpv-tool-promo-info span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.1rem;
}
.wpv-tool-promo-arrow {
  color: var(--muted-foreground);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.wpv-tool-promo-card:hover .wpv-tool-promo-arrow { transform: translateX(2px); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .wpv-article-grid { grid-template-columns: repeat(2, 1fr); }
  .wpv-post-layout  { grid-template-columns: 1fr; }
  .wpv-post-sidebar { position: static; }
  .wpv-post-hero-card { grid-template-columns: 1fr; }
  .wpv-post-hero-thumb { aspect-ratio: 16/9; max-height: 260px; }
}

@media (max-width: 860px) {
  .archive-hero { grid-template-columns: 1fr; }
  .archive-hero-featured { max-width: 420px; }
  .wpv-article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .archive-hero { padding: 2rem 1rem; }
  .wpv-article-grid { grid-template-columns: 1fr; }
  .wpv-post-content { padding: 1.25rem; }
  .wpv-archive-pagination { flex-direction: column; align-items: flex-start; }
}

/* ── Contact Form ──────────────────────────────────────────────── */
.wpv-contact-block { margin-top: 2.5rem; }
.wpv-contact-form-wrap { max-width: 42rem; }
.wpv-contact-alert {
  padding: 0.875rem 1.125rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.wpv-contact-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.wpv-contact-error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.wpv-contact-form { display: flex; flex-direction: column; gap: 1.125rem; }
.wpv-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }
.wpv-contact-field { display: flex; flex-direction: column; gap: 0.4rem; }
.wpv-contact-field > span { font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.wpv-contact-field input,
.wpv-contact-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 0.75rem 0.875rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.wpv-contact-field input::placeholder,
.wpv-contact-field textarea::placeholder { color: var(--muted-foreground); }
.wpv-contact-field input:focus,
.wpv-contact-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
  background: rgba(255,255,255,0.06);
}
.wpv-contact-field textarea { resize: vertical; min-height: 8rem; }
.wpv-contact-submit { align-self: flex-start; cursor: pointer; }

@media (max-width: 600px) {
  .wpv-contact-row { grid-template-columns: 1fr; }
}

/* Footer Social Links */
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--border); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.footer-social a:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.2); }
