/*
Theme Name: Nvidia Ultra
Theme URI: https://nvidiaprofileinspector.com
Description: High-performance, zero-dependency modern WordPress theme tailored for Nvidia Profile Inspector. Engineered with sleek NVIDIA tech aesthetic, responsive mobile drawer navigation, zero jQuery, perfect Core Web Vitals, native Schema breadcrumbs, and zero-CLS AdSense containers.
Author: NvidiaAntigravity
Author URI: https://nvidiaprofileinspector.com
Version: 1.3.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nvidia-ultra
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ==========================================================================
   1. Design System Tokens & CSS Variables
   ========================================================================== */
:root {
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Signature NVIDIA Green Palette */
  --color-primary: #76b900;
  --color-primary-hover: #84ce00;
  --color-primary-dark: #5a8f00;
  --color-primary-glow: rgba(118, 185, 0, 0.35);
  --color-primary-subtle: rgba(118, 185, 0, 0.08);

  /* Deep Dark Tech Surfaces */
  --color-dark: #0f172a;
  --color-dark-header: #0d1217;
  --color-dark-card: #131920;
  --color-dark-footer: #080c0f;

  /* Light Theme Surfaces & Text */
  --color-bg: #f8fafc;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-text: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;

  /* Layout & Sizing */
  --container-max: 1240px;
  --header-height: 68px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   2. Reset & Base Typography
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-system);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

body {
  margin: 0;
  padding: 0;
  color: var(--color-text-secondary);
  background-color: var(--color-bg);
  overflow-x: hidden;
  font-size: 1rem;
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main-wrap,
.site-main,
#content.site-main {
  flex: 1 0 auto;
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .site-main-wrap,
  .site-main,
  #content.site-main {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }
}

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

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   3. Global Layout Grid & Containers
   ========================================================================== */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 768px) {
  .site-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.layout-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .layout-wrapper.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2.25rem;
    align-items: start;
  }
}

.page-layout .page-content-wrap {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   4. Site Header & Modern Navigation
   ========================================================================== */
.site-header {
  background: var(--color-dark-header);
  border-top: 2px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: top 0.2s ease;
}

/* Admin Bar Collision Offset */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Site Branding */
.site-branding {
  display: flex;
  align-items: center;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
}

.site-logo-icon,
.site-logo-claw {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(118, 185, 0, 0.4));
  transition: transform 0.25s ease;
}

.site-logo-link:hover .site-logo-icon,
.site-logo-link:hover .site-logo-claw {
  transform: scale(1.05);
}

.site-title-wrap,
.site-logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-title-brand,
.site-logo-main {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-title-sub,
.site-logo-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 1px;
}

/* ==========================================================================
   Desktop Navigation Menu
   ========================================================================== */
.nav-toggle,
.mobile-nav-toggle {
  display: none;
}

@media (min-width: 992px) {
  .nav-toggle,
  .mobile-nav-toggle {
    display: none !important;
  }

  .main-nav,
  .main-navigation {
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-menu-list,
  .nav-menu-desktop {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-menu-list > li,
  .nav-menu-desktop > li {
    position: relative;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-menu-list li::marker,
  .nav-menu-desktop li::marker {
    display: none !important;
    content: "" !important;
  }

  .nav-menu-list a,
  .nav-menu-desktop a {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.925rem;
    text-decoration: none !important;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s ease;
    white-space: nowrap;
  }

  .nav-menu-list a:hover,
  .nav-menu-desktop a:hover,
  .nav-menu-list .current-menu-item > a,
  .nav-menu-desktop .current-menu-item > a {
    color: var(--color-primary);
  }

  .nav-menu-list .current-menu-item > a::after,
  .nav-menu-desktop .current-menu-item > a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
  }

  .header-nav-cta {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
  }

  .btn-header-download,
  .btn-header-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #76b900 0%, #5a8f00 100%);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(118, 185, 0, 0.35);
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .btn-header-download:hover,
  .btn-header-cta:hover {
    background: linear-gradient(135deg, #84ce00 0%, #68a500 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(118, 185, 0, 0.5);
  }
}

/* ==========================================================================
   Mobile Header & Off-Canvas Drawer Navigation
   ========================================================================== */
@media (max-width: 991px) {
  .nav-toggle,
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2000;
    transition: all 0.2s ease;
  }

  .nav-toggle:hover,
  .mobile-nav-toggle:hover {
    background: rgba(118, 185, 0, 0.15);
    border-color: var(--color-primary);
  }

  .hamburger-box {
    width: 22px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
  }

  .hamburger-inner,
  .hamburger-box::before,
  .hamburger-box::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  }

  /* Hamburger to X morph */
  .nav-toggle.is-active .hamburger-inner,
  .mobile-nav-toggle.is-active .hamburger-inner {
    opacity: 0;
  }

  .nav-toggle.is-active .hamburger-box::before,
  .mobile-nav-toggle.is-active .hamburger-box::before {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.is-active .hamburger-box::after,
  .mobile-nav-toggle.is-active .hamburger-box::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Off-canvas slide-out drawer */
  .main-nav,
  .main-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: #0f172a;
    z-index: 1999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    padding: 5.5rem 1.75rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.is-active,
  .main-navigation.is-active {
    transform: translateX(0);
  }

  .nav-menu-list,
  .nav-menu-desktop {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .nav-menu-list li,
  .nav-menu-desktop li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-menu-list li::marker,
  .nav-menu-desktop li::marker {
    display: none !important;
    content: "" !important;
  }

  .nav-menu-list a,
  .nav-menu-desktop a {
    display: flex !important;
    align-items: center;
    color: #e2e8f0;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  .nav-menu-list a:hover,
  .nav-menu-desktop a:hover,
  .nav-menu-list .current-menu-item > a,
  .nav-menu-desktop .current-menu-item > a {
    background: rgba(118, 185, 0, 0.15);
    color: var(--color-primary);
    border-color: rgba(118, 185, 0, 0.3);
  }

  .header-nav-cta {
    margin-top: auto;
    padding-top: 2rem;
  }

  .btn-header-download,
  .btn-header-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    background: var(--color-primary);
    color: #0d1217 !important;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.95rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(118, 185, 0, 0.4);
    transition: all 0.2s ease;
  }

  .btn-header-download:hover,
  .btn-header-cta:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
  }
}

/* Backdrop Overlay */
.nav-overlay,
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-overlay.is-active,
.mobile-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   6. Content Area, Cards & Single Article Typography
   ========================================================================== */
.content-area {
  background: var(--color-card);
  padding: 2.5rem 2.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .content-area {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-md);
  }
}

/* Schema Breadcrumbs */
.site-breadcrumbs,
.breadcrumbs-wrap {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.site-breadcrumbs ol,
.breadcrumbs-trail {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.5rem !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-breadcrumbs ol li,
.breadcrumbs-trail li {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.site-breadcrumbs ol li::marker,
.breadcrumbs-trail li::marker {
  display: none !important;
  content: "" !important;
  font-size: 0 !important;
}

.site-breadcrumbs ol li:not(:last-child)::after {
  content: "›" !important;
  color: #94a3b8 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  display: inline-block !important;
}

.site-breadcrumbs a,
.breadcrumbs-trail a {
  color: var(--color-primary-dark);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.site-breadcrumbs a:hover,
.breadcrumbs-trail a:hover {
  color: var(--color-primary);
}

.site-breadcrumbs .breadcrumb-home-icon {
  width: 14px;
  height: 14px;
  stroke: var(--color-primary-dark);
  display: inline-block;
  vertical-align: middle;
}

.site-breadcrumbs li.current span,
.breadcrumb-current {
  color: var(--color-dark);
  font-weight: 700;
}

/* Category Badge */
.entry-category-badge {
  display: inline-block;
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
  border: 1px solid rgba(118, 185, 0, 0.2);
}

/* Article Title */
.entry-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

@media (max-width: 768px) {
  .entry-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }
}

/* Article Meta */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-divider {
  color: #cbd5e1;
}

/* Article Body Typography */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
  word-wrap: break-word;
}

.entry-content p {
  margin: 0 0 1.5rem;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

.entry-content strong,
.entry-content b {
  color: var(--color-dark);
  font-weight: 700;
}

.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  border-left: 4px solid var(--color-primary);
  padding-left: 0.85rem;
}

.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 2rem 0 0.85rem;
}

.entry-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 1.5rem 0 0.65rem;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #475569;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content code {
  background: #0f172a;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.entry-content pre {
  background: #0d1217;
  color: #f8fafc;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.75rem 0;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
}

/* ==========================================================================
   7. Buttons & Gutenberg Styles Override
   ========================================================================== */
.btn-download-primary,
.wp-block-button__link,
.wp-element-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  background: linear-gradient(135deg, #76b900 0%, #5a8f00 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  padding: 0.85rem 1.85rem !important;
  border-radius: var(--radius-md) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(118, 185, 0, 0.4) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: none !important;
  cursor: pointer;
}

.btn-download-primary:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
  background: linear-gradient(135deg, #84ce00 0%, #68a500 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(118, 185, 0, 0.55) !important;
  color: #ffffff !important;
}

.has-vivid-cyan-blue-background-color {
  background: linear-gradient(135deg, #76b900 0%, #5a8f00 100%) !important;
}

/* ==========================================================================
   8. Download Card Hero Component ([nvidia_download_card])
   ========================================================================== */
.download-card-hero {
  background: linear-gradient(145deg, #131920 0%, #0c1014 100%);
  color: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  border: 1px solid rgba(118, 185, 0, 0.35);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .download-card-hero {
    padding: 1.5rem 1.25rem;
  }
}

.card-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.version-badge {
  background: var(--color-primary);
  color: #0d1217;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(118, 185, 0, 0.15);
  color: #84ce00;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}

.download-card-title {
  color: #ffffff !important;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.download-card-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.download-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-item .label {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.spec-item .val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.spec-item .security-clean a {
  color: #84ce00;
  text-decoration: underline;
}

.download-actions-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-download-mirror {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn-download-mirror:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.sha256-box {
  margin-top: 1.25rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sha-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.sha-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #cbd5e1;
  word-break: break-all;
  background: transparent;
  border: none;
  padding: 0;
}

.copy-btn {
  background: #334155;
  border: none;
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.copy-btn:hover {
  background: var(--color-primary-dark);
}

/* ==========================================================================
   9. Tables & TablePress Styling
   ========================================================================== */
.wp-block-table,
.tablepress-table,
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

th, td {
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.95rem;
}

th {
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
}

tr:nth-child(even) td {
  background: #f8fafc;
}

tr:hover td {
  background: #f1f5f9;
}

/* ==========================================================================
   10. Easy Table of Contents (TOC) Custom Styling
   ========================================================================== */
#ez-toc-container {
  background: #f8fafc !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.25rem 1.5rem !important;
  margin: 1.75rem 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-shadow: var(--shadow-sm) !important;
}

#ez-toc-container .ez-toc-title {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: var(--color-dark) !important;
}

#ez-toc-container a {
  color: #334155 !important;
  font-size: 0.925rem !important;
  transition: color 0.15s ease;
}

#ez-toc-container a:hover {
  color: var(--color-primary-dark) !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   11. Zero-CLS Clean Ad Placements
   ========================================================================== */
.adsense-placement,
.nvidi-entity-placement {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  border: none !important;
  background: transparent !important;
}

.adsense-placement::before {
  display: none !important;
}

.adsense-header-banner {
  min-height: 90px;
  max-width: 728px;
  margin: 1.5rem auto 0;
  clear: both;
}

.adsense-before-content {
  margin: 1.25rem 0 1.5rem;
  clear: both;
}

.adsense-before-first-paragraph {
  margin: 0.5rem 0 1.5rem;
  clear: both;
}

.adsense-in-content {
  margin: 2rem 0;
  clear: both;
}

.adsense-after-content {
  margin: 2rem 0 1rem;
  clear: both;
}

/* ==========================================================================
   12. Sidebar & Widgets Styling
   ========================================================================== */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

.widget {
  background: var(--color-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

/* Sidebar Quick Download Card */
.widget-download-card {
  background: linear-gradient(145deg, #131920 0%, #0d1217 100%);
  color: #ffffff;
  border: 1px solid rgba(118, 185, 0, 0.4);
}

.widget-download-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.widget-version-pill {
  background: var(--color-primary);
  color: #0d1217;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  text-transform: uppercase;
}

.widget-os-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

.widget-download-title {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.widget-download-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.btn-sidebar-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--color-primary);
  color: #0d1217 !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(118, 185, 0, 0.35);
  transition: all 0.2s ease;
}

.btn-sidebar-download:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(118, 185, 0, 0.5);
}

/* Modern Search Form Styling */
.modern-search-form,
.wp-block-search {
  margin: 0;
}

.wp-block-search__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.search-input-wrap,
.wp-block-search__inside-wrapper {
  position: relative;
  display: flex !important;
  align-items: center;
  width: 100% !important;
  box-sizing: border-box !important;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
}

.search-field,
.wp-block-search__input {
  width: 100% !important;
  flex: 1 1 auto !important;
  padding: 0.65rem 4.5rem 0.65rem 0.85rem !important;
  background: #ffffff !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.875rem !important;
  color: var(--color-dark) !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  height: 42px !important;
  box-sizing: border-box !important;
}

.modern-search-form .search-field {
  padding-left: 2.25rem !important;
}

.search-field:focus,
.wp-block-search__input:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px var(--color-primary-glow) !important;
}

.search-submit,
.wp-block-search__button {
  position: absolute !important;
  right: 4px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: var(--color-dark) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 0.45rem 0.85rem !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  transition: background 0.15s ease !important;
  z-index: 2 !important;
}

.search-submit:hover,
.wp-block-search__button:hover {
  background: var(--color-primary) !important;
  color: #0d1217 !important;
}

/* Sidebar Recent Posts List */
.wp-block-latest-posts__list,
.widget_recent_entries ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wp-block-latest-posts__list li,
.widget_recent_entries li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.wp-block-latest-posts__list li:last-child,
.widget_recent_entries li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wp-block-latest-posts__featured-image {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0f172a;
}

.wp-block-latest-posts__featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: var(--radius-sm);
  display: block;
}

.wp-block-latest-posts__post-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.wp-block-latest-posts__post-title:hover {
  color: var(--color-primary-dark);
}

.wp-block-latest-posts__post-date {
  display: block;
  font-size: 0.775rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer {
  background: var(--color-dark-footer);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
  font-size: 0.9rem;
  border-top: 2px solid var(--color-primary);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2.5fr 1fr;
  }
}

.footer-branding {
  margin-bottom: 0.75rem;
}

.footer-disclaimer {
  font-size: 0.825rem;
  line-height: 1.65;
  color: #64748b;
}

.footer-nav-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-links-list,
.footer-nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.footer-nav a,
.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-nav a:hover,
.footer-links-list a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.825rem;
  color: #64748b;
}

/* ==========================================================================
   14. Post Tags Pill Badges
   ========================================================================== */
.entry-footer {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.post-tags .tags-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-right: 0.25rem;
}

.post-tags .tags-label svg {
  color: var(--color-primary-dark);
}

.post-tags a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: #f8fafc;
  color: #334155;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.4;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-tags a:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(118, 185, 0, 0.2);
}

/* ==========================================================================
   15. Unified Modern Discussion System & Comments
   ========================================================================== */
.comments-area {
  margin-top: 2.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.75rem;
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .comments-area {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-md);
  }
}

.comments-area-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-border-light);
}

.comments-area-title,
.comments-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.01em;
}

.comments-area-title svg,
.comments-title svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.btn-jump-to-reply {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-primary-subtle);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(118, 185, 0, 0.25);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-jump-to-reply:hover {
  background: var(--color-primary);
  color: #0d1217;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

/* Comment Lists - Full Reset of default lists */
.comments-area ol,
.comments-area ul,
ol.comment-list,
ol.commentlist,
ul.children,
ol.children {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.comment-list > li,
.commentlist > li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 0 1.25rem 0 !important;
  padding: 0 !important;
  position: relative;
}

.comment-list li::marker,
.commentlist li::marker,
.children li::marker {
  display: none !important;
  content: "" !important;
  font-size: 0 !important;
}

/* Comment Card Architecture */
.comment-card-inner,
.comment-body {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.comment-card-inner:hover,
.comment-body:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Post Author Highlight */
.is-author-comment,
.bypostauthor > .comment-body {
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(180deg, #fbfdf9 0%, #ffffff 100%);
}

/* Header Row inside comment card */
.comment-header-row,
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.comment-author-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-user-avatar,
.comment-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid #f1f5f9;
  flex-shrink: 0;
}

.is-author-comment .comment-user-avatar,
.bypostauthor > .comment-body .comment-author .avatar {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(118, 185, 0, 0.25);
}

.comment-author-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.comment-author-topline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-author-name,
.comment-author .fn {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
  font-style: normal;
}

.comment-author-name a,
.comment-author .fn a {
  color: var(--color-dark);
  text-decoration: none;
}

.comment-author-name a:hover,
.comment-author .fn a:hover {
  color: var(--color-primary-dark);
}

.comment-author .says {
  display: none !important;
}

/* Author Pill Badge */
.comment-badge-author,
.bypostauthor > .comment-body .comment-author .fn::after {
  content: "Author";
  display: inline-block;
  background: var(--color-primary);
  color: #0d1217;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

/* Timestamp Line */
.comment-timestamp-line,
.comment-metadata {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.comment-timestamp-line a,
.comment-metadata a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.comment-timestamp-line a:hover,
.comment-metadata a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.comment-dot-sep {
  color: #cbd5e1;
}

.comment-edit-btn a,
.comment-metadata .edit-link a {
  color: #ef4444;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  background: #fef2f2;
  border-radius: 4px;
}

/* Reply Action Button */
.comment-header-actions,
.reply {
  flex-shrink: 0;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.comment-reply-link:hover {
  background: var(--color-primary);
  color: #0d1217;
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(118, 185, 0, 0.25);
}

/* Comment Content Typography */
.comment-card-body-content,
.comment-content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
  margin-top: 0.5rem;
  word-break: break-word;
}

.comment-text-wrap p,
.comment-content p {
  margin: 0 0 0.85rem 0;
}

.comment-text-wrap p:last-child,
.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-text-wrap a,
.comment-content a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  word-break: break-all;
}

/* Threaded Child Comments */
.children {
  list-style: none !important;
  margin: 1rem 0 0 0 !important;
  padding-left: 1.75rem !important;
  border-left: 2px solid var(--color-border);
}

.children .comment-card-inner,
.children .comment-body {
  background: #f8fafc;
  border-color: #e2e8f0;
}

@media (max-width: 640px) {
  .children {
    padding-left: 0.75rem !important;
  }

  .comment-card-inner,
  .comment-body {
    padding: 1.15rem 1rem;
  }

  .comment-header-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

.comment-awaiting-moderation {
  font-size: 0.8125rem;
  font-style: italic;
  color: #d97706;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   16. Leave a Reply Comment Form (#respond)
   ========================================================================== */
#respond,
.comment-respond {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border-light);
}

#reply-title,
.comment-reply-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-dark);
  margin-top: 0;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

#cancel-comment-reply-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ef4444;
  text-decoration: underline;
}

.comment-notes,
.logged-in-as {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.logged-in-as a {
  color: var(--color-primary-dark);
  font-weight: 600;
}

#commentform {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#commentform p {
  margin: 0;
}

#commentform label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.4rem;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

#commentform textarea {
  min-height: 140px;
  resize: vertical;
}

@media (min-width: 768px) {
  #commentform:not(.logged-in) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "comment comment comment"
      "author email url"
      "cookies cookies cookies"
      "submit submit submit";
    gap: 1.25rem;
  }

  .comment-form-comment { grid-area: comment; }
  .comment-form-author { grid-area: author; }
  .comment-form-email { grid-area: email; }
  .comment-form-url { grid-area: url; }
  .comment-form-cookies-consent { grid-area: cookies; }
  .form-submit { grid-area: submit; }
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
}

.comment-form-cookies-consent label {
  font-size: 0.8125rem !important;
  font-weight: normal !important;
  color: var(--color-text-muted) !important;
  margin-bottom: 0 !important;
  cursor: pointer;
}

/* Submit Button */
.form-submit {
  margin-top: 0.5rem;
}

#commentform #submit,
.form-submit input[type="submit"],
.btn-submit-comment {
  background: linear-gradient(135deg, #76b900 0%, #5a8f00 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.03em !important;
  padding: 0.85rem 2.25rem !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 14px rgba(118, 185, 0, 0.4) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#commentform #submit:hover,
.form-submit input[type="submit"]:hover,
.btn-submit-comment:hover {
  background: linear-gradient(135deg, #84ce00 0%, #68a500 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(118, 185, 0, 0.55) !important;
}

/* Pagination */
.comments-pagination,
.comment-navigation,
.comments-nav-top,
.comments-nav-bottom {
  margin: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.no-comments-notice {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-style: italic;
  padding: 1.5rem 0;
}
