/*
Theme Name: NexusTheme
Theme URI: https://nexusoffers.org
Author: Nexus Offers
Author URI: https://nexusoffers.org
Description: Premium WordPress theme for affiliate review blogs. Dark/light mode, built-in SEO, affiliate review components, 6 color presets, full Customizer control. Zero dependencies, unlimited sites.
Version: 2.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexustheme
Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */
:root {
  --nx-primary: #c5a55a;
  --nx-primary-hover: #b8953f;
  --nx-primary-light: rgba(197,165,90,0.12);
  --nx-secondary: #2c3e50;
  --nx-accent: #e67e22;
  --nx-bg: #f0f2f5;
  --nx-bg-card: #ffffff;
  --nx-bg-card-hover: #fafafa;
  --nx-bg-header: #ffffff;
  --nx-bg-footer: #1a1a2e;
  --nx-bg-sidebar: #ffffff;
  --nx-bg-code: #f4f4f8;
  --nx-bg-input: #ffffff;
  --nx-text: #333333;
  --nx-text-secondary: #666666;
  --nx-text-muted: #999999;
  --nx-text-inverse: #ffffff;
  --nx-text-link: #c5a55a;
  --nx-text-link-hover: #b8953f;
  --nx-border: #e5e7eb;
  --nx-border-light: #f0f0f0;
  --nx-border-input: #d1d5db;
  --nx-border-focus: #c5a55a;
  --nx-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --nx-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --nx-shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --nx-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --nx-shadow-card: 0 1px 4px rgba(0,0,0,0.06);
  --nx-shadow-card-hover: 0 4px 20px rgba(0,0,0,0.1);
  --nx-font-primary: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nx-font-heading: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nx-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --nx-fs-xs: 0.75rem;
  --nx-fs-sm: 0.875rem;
  --nx-fs-base: 1rem;
  --nx-fs-md: 1.125rem;
  --nx-fs-lg: 1.25rem;
  --nx-fs-xl: 1.5rem;
  --nx-fs-2xl: 1.875rem;
  --nx-fs-3xl: 2.25rem;
  --nx-fs-4xl: 3rem;
  --nx-lh-tight: 1.25;
  --nx-lh-normal: 1.6;
  --nx-lh-relaxed: 1.8;
  --nx-fw-normal: 400;
  --nx-fw-medium: 500;
  --nx-fw-semibold: 600;
  --nx-fw-bold: 700;
  --nx-space-xs: 0.25rem;
  --nx-space-sm: 0.5rem;
  --nx-space-md: 1rem;
  --nx-space-lg: 1.5rem;
  --nx-space-xl: 2rem;
  --nx-space-2xl: 3rem;
  --nx-space-3xl: 4rem;
  --nx-container: 1200px;
  --nx-content-width: 780px;
  --nx-sidebar-width: 340px;
  --nx-gap: 30px;
  --nx-header-height: 70px;
  --nx-radius-sm: 4px;
  --nx-radius: 8px;
  --nx-radius-md: 12px;
  --nx-radius-lg: 16px;
  --nx-radius-xl: 24px;
  --nx-radius-full: 9999px;
  --nx-transition: 0.2s ease;
  --nx-transition-slow: 0.4s ease;
  --nx-z-dropdown: 100;
  --nx-z-sticky: 200;
  --nx-z-overlay: 300;
  --nx-z-modal: 400;
  --nx-z-toast: 500;
  --nx-success: #22c55e;
  --nx-warning: #f59e0b;
  --nx-error: #ef4444;
  --nx-info: #3b82f6;
}

/* ==========================================================================
   2. COLOR PRESETS
   ========================================================================== */
[data-color-preset="midnight"] {
  --nx-primary: #3b82f6; --nx-primary-hover: #2563eb;
  --nx-primary-light: rgba(59,130,246,0.12);
  --nx-secondary: #1e293b; --nx-accent: #06b6d4;
  --nx-bg: #0f172a; --nx-bg-card: #1e293b; --nx-bg-card-hover: #243044;
  --nx-bg-header: #1e293b; --nx-bg-footer: #0c1322;
  --nx-bg-sidebar: #1e293b; --nx-bg-code: #162032; --nx-bg-input: #1e293b;
  --nx-text: #e2e8f0; --nx-text-secondary: #94a3b8; --nx-text-muted: #64748b;
  --nx-text-inverse: #0f172a; --nx-text-link: #60a5fa; --nx-text-link-hover: #93c5fd;
  --nx-border: #334155; --nx-border-light: #1e293b; --nx-border-input: #475569;
  --nx-shadow-sm: 0 1px 3px rgba(0,0,0,0.3); --nx-shadow: 0 2px 8px rgba(0,0,0,0.35);
  --nx-shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --nx-shadow-card: 0 1px 4px rgba(0,0,0,0.3); --nx-shadow-card-hover: 0 4px 20px rgba(0,0,0,0.4);
}
[data-color-preset="forest"] {
  --nx-primary: #16a34a; --nx-primary-hover: #15803d;
  --nx-primary-light: rgba(22,163,74,0.12);
  --nx-secondary: #1a2e1a; --nx-accent: #ca8a04;
  --nx-bg: #f0f5f0; --nx-bg-card: #ffffff; --nx-bg-card-hover: #f7faf7;
  --nx-bg-header: #ffffff; --nx-bg-footer: #1a2e1a;
  --nx-text: #1a2e1a; --nx-text-secondary: #4a6741;
  --nx-text-link: #16a34a; --nx-text-link-hover: #15803d; --nx-border: #d4e7d4;
}
[data-color-preset="royal"] {
  --nx-primary: #7c3aed; --nx-primary-hover: #6d28d9;
  --nx-primary-light: rgba(124,58,237,0.12);
  --nx-secondary: #2e1065; --nx-accent: #a78bfa;
  --nx-bg: #f5f0ff; --nx-bg-card: #ffffff; --nx-bg-card-hover: #faf7ff;
  --nx-bg-header: #ffffff; --nx-bg-footer: #1e0a3c;
  --nx-text: #2e1065; --nx-text-secondary: #6b4c9a;
  --nx-text-link: #7c3aed; --nx-text-link-hover: #6d28d9; --nx-border: #e0d4f5;
}
[data-color-preset="ember"] {
  --nx-primary: #ea580c; --nx-primary-hover: #c2410c;
  --nx-primary-light: rgba(234,88,12,0.12);
  --nx-secondary: #292524; --nx-accent: #f59e0b;
  --nx-bg: #fafaf9; --nx-bg-card: #ffffff; --nx-bg-card-hover: #fffbf7;
  --nx-bg-header: #ffffff; --nx-bg-footer: #1c1917;
  --nx-text: #292524; --nx-text-secondary: #78716c;
  --nx-text-link: #ea580c; --nx-text-link-hover: #c2410c; --nx-border: #e7e5e4;
}
[data-color-preset="ocean"] {
  --nx-primary: #0891b2; --nx-primary-hover: #0e7490;
  --nx-primary-light: rgba(8,145,178,0.12);
  --nx-secondary: #164e63; --nx-accent: #06b6d4;
  --nx-bg: #f0f9ff; --nx-bg-card: #ffffff; --nx-bg-card-hover: #f5fbff;
  --nx-bg-header: #ffffff; --nx-bg-footer: #0c2d3e;
  --nx-text: #164e63; --nx-text-secondary: #4a8196;
  --nx-text-link: #0891b2; --nx-text-link-hover: #0e7490; --nx-border: #c4e5ef;
}

/* ==========================================================================
   3. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--nx-font-primary); font-size: var(--nx-fs-base);
  font-weight: var(--nx-fw-normal); line-height: var(--nx-lh-normal);
  color: var(--nx-text); background-color: var(--nx-bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--nx-font-heading); font-weight: var(--nx-fw-bold);
  line-height: var(--nx-lh-tight); color: var(--nx-text); margin-bottom: 0.5em;
}
h1 { font-size: var(--nx-fs-3xl); }
h2 { font-size: var(--nx-fs-2xl); }
h3 { font-size: var(--nx-fs-xl); }
h4 { font-size: var(--nx-fs-lg); }
h5 { font-size: var(--nx-fs-md); }
h6 { font-size: var(--nx-fs-base); }
p { margin-bottom: var(--nx-space-md); line-height: var(--nx-lh-relaxed); }
a { color: var(--nx-text-link); text-decoration: none; transition: color var(--nx-transition); }
a:hover, a:focus { color: var(--nx-text-link-hover); text-decoration: underline; }
strong, b { font-weight: var(--nx-fw-bold); }
em, i { font-style: italic; }
blockquote {
  border-left: 4px solid var(--nx-primary); padding: var(--nx-space-lg);
  margin: var(--nx-space-xl) 0; background: var(--nx-primary-light);
  border-radius: 0 var(--nx-radius) var(--nx-radius) 0;
  font-style: italic; color: var(--nx-text-secondary);
}
blockquote p:last-child { margin-bottom: 0; }
code, kbd, pre, samp { font-family: var(--nx-font-mono); font-size: var(--nx-fs-sm); }
code { background: var(--nx-bg-code); padding: 2px 6px; border-radius: var(--nx-radius-sm); color: var(--nx-primary); }
pre {
  background: var(--nx-bg-code); padding: var(--nx-space-lg);
  border-radius: var(--nx-radius); overflow-x: auto;
  margin: var(--nx-space-xl) 0; border: 1px solid var(--nx-border);
}
pre code { background: none; padding: 0; color: inherit; }
ul, ol { padding-left: var(--nx-space-xl); margin-bottom: var(--nx-space-md); }
li { margin-bottom: var(--nx-space-xs); }
hr { border: none; border-top: 1px solid var(--nx-border); margin: var(--nx-space-2xl) 0; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: var(--nx-space-xl) 0; }
figcaption { font-size: var(--nx-fs-sm); color: var(--nx-text-muted); text-align: center; margin-top: var(--nx-space-sm); }
table { width: 100%; border-collapse: collapse; margin: var(--nx-space-xl) 0; }
th, td { padding: var(--nx-space-sm) var(--nx-space-md); text-align: left; border-bottom: 1px solid var(--nx-border); }
th { font-weight: var(--nx-fw-semibold); background: var(--nx-bg-code); }

/* ==========================================================================
   5. LAYOUT
   ========================================================================== */
.nx-container { width: 100%; max-width: var(--nx-container); margin: 0 auto; padding: 0 var(--nx-space-lg); }
.nx-site-content { display: flex; gap: var(--nx-gap); padding: var(--nx-space-2xl) 0; }
.nx-main { flex: 1; min-width: 0; }
.nx-sidebar { width: var(--nx-sidebar-width); flex-shrink: 0; }
.nx-full-width .nx-main { max-width: 100%; }
.nx-full-width .nx-sidebar { display: none; }
.nx-sidebar-left .nx-site-content { flex-direction: row-reverse; }

/* ==========================================================================
   6. HEADER
   ========================================================================== */
.nx-header {
  background: var(--nx-bg-header); border-bottom: 1px solid var(--nx-border);
  position: sticky; top: 0; z-index: var(--nx-z-sticky);
  transition: box-shadow var(--nx-transition);
}
.nx-header.scrolled { box-shadow: var(--nx-shadow-md); }
.admin-bar .nx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nx-header { top: 46px; } }
.nx-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nx-header-height);
}
.nx-logo {
  display: flex; align-items: center; gap: var(--nx-space-sm);
  text-decoration: none; font-size: var(--nx-fs-xl);
  font-weight: var(--nx-fw-bold); color: var(--nx-text);
}
.nx-logo:hover { color: var(--nx-text); text-decoration: none; }
.nx-logo img { max-height: 45px; width: auto; }
.nx-nav { display: flex; align-items: center; gap: var(--nx-space-lg); }
.nx-nav-menu { list-style: none; display: flex; align-items: center; gap: var(--nx-space-xs); padding: 0; margin: 0; }
.nx-nav-menu li { margin-bottom: 0; position: relative; }
.nx-nav-menu a {
  color: var(--nx-text); font-weight: var(--nx-fw-medium); font-size: var(--nx-fs-sm);
  padding: var(--nx-space-sm) var(--nx-space-md); border-radius: var(--nx-radius);
  transition: all var(--nx-transition); text-decoration: none;
}
.nx-nav-menu a:hover,
.nx-nav-menu .current-menu-item > a { color: var(--nx-primary); background: var(--nx-primary-light); text-decoration: none; }
.nx-nav-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--nx-bg-card); border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius); box-shadow: var(--nx-shadow-md);
  min-width: 200px; padding: var(--nx-space-sm) 0;
  z-index: var(--nx-z-dropdown); list-style: none;
}
.nx-nav-menu li:hover > .sub-menu { display: block; }
.nx-nav-menu .sub-menu a { display: block; padding: var(--nx-space-sm) var(--nx-space-lg); border-radius: 0; }
.nx-header-actions { display: flex; align-items: center; gap: var(--nx-space-sm); }
.nx-header-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; background: transparent;
  cursor: pointer; border-radius: var(--nx-radius-full);
  color: var(--nx-text); font-size: var(--nx-fs-lg); transition: all var(--nx-transition);
}
.nx-header-btn:hover { background: var(--nx-primary-light); color: var(--nx-primary); }
.nx-header-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.nx-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: var(--nx-space-sm);
}
.nx-mobile-toggle span {
  display: block; width: 24px; height: 2px; background: var(--nx-text);
  transition: all var(--nx-transition); border-radius: 2px;
}

/* ==========================================================================
   7. MOBILE MENU (Single definition — transform-based, animatable)
   ========================================================================== */
.nx-mobile-menu {
  position: fixed; top: var(--nx-header-height); left: 0; right: 0; bottom: 0;
  background: var(--nx-bg-card); z-index: var(--nx-z-overlay);
  transform: translateX(100%); transition: transform 0.3s ease;
  overflow-y: auto; padding: var(--nx-space-xl);
}
.admin-bar .nx-mobile-menu { top: calc(var(--nx-header-height) + 32px); }
@media (max-width: 782px) { .admin-bar .nx-mobile-menu { top: calc(var(--nx-header-height) + 46px); } }
.nx-mobile-menu.active { transform: translateX(0); }
.nx-mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.nx-mobile-nav-list li { margin-bottom: 0; border-bottom: 1px solid var(--nx-border-light); }
.nx-mobile-nav-list a {
  display: block; padding: var(--nx-space-md) 0; font-size: var(--nx-fs-lg);
  font-weight: var(--nx-fw-medium); color: var(--nx-text); text-decoration: none;
}
.nx-mobile-nav-list a:hover { color: var(--nx-primary); }

/* ==========================================================================
   8. SEARCH OVERLAY (Single definition — opacity-based, animatable)
   ========================================================================== */
.nx-search-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: var(--nx-z-modal); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--nx-transition);
  backdrop-filter: blur(8px);
}
.nx-search-overlay.active { opacity: 1; visibility: visible; }
.nx-search-overlay__inner {
  width: 90%; max-width: 600px;
  transform: translateY(-20px); transition: transform var(--nx-transition);
}
.nx-search-overlay.active .nx-search-overlay__inner { transform: translateY(0); }
.nx-search-overlay input {
  width: 100%; padding: 20px 24px; font-size: var(--nx-fs-xl);
  font-family: var(--nx-font-primary); border: none; border-radius: var(--nx-radius-lg);
  background: var(--nx-bg-card); color: var(--nx-text); outline: none; box-shadow: var(--nx-shadow-lg);
}
.nx-search-overlay__close {
  position: absolute; top: 30px; right: 30px; width: 44px; height: 44px;
  background: rgba(255,255,255,0.1); border: none; border-radius: var(--nx-radius-full);
  color: #fff; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   9. POST CARDS
   ========================================================================== */
.nx-post-card {
  background: var(--nx-bg-card); border-radius: var(--nx-radius-md);
  box-shadow: var(--nx-shadow-card); overflow: hidden;
  transition: all var(--nx-transition); margin-bottom: var(--nx-space-xl);
}
.nx-post-card:hover { box-shadow: var(--nx-shadow-card-hover); transform: translateY(-2px); }
.nx-post-card--list { display: flex; gap: 0; }
.nx-post-card--list .nx-post-card__thumb { width: 300px; min-height: 200px; flex-shrink: 0; }
.nx-post-card--list .nx-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nx-post-card__body { padding: var(--nx-space-xl); display: flex; flex-direction: column; justify-content: center; }
.nx-post-card__category {
  display: inline-flex; padding: 4px 12px; font-size: var(--nx-fs-xs);
  font-weight: var(--nx-fw-semibold); text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--nx-text-inverse); background: var(--nx-primary);
  border-radius: var(--nx-radius-sm); margin-bottom: var(--nx-space-sm);
  text-decoration: none; width: fit-content; transition: background var(--nx-transition);
}
.nx-post-card__category:hover { background: var(--nx-primary-hover); color: var(--nx-text-inverse); text-decoration: none; }
.nx-post-card__title { font-size: var(--nx-fs-xl); margin-bottom: var(--nx-space-sm); line-height: var(--nx-lh-tight); }
.nx-post-card__title a { color: var(--nx-text); text-decoration: none; }
.nx-post-card__title a:hover { color: var(--nx-primary); text-decoration: none; }
.nx-post-card__excerpt { color: var(--nx-text-secondary); font-size: var(--nx-fs-sm); line-height: var(--nx-lh-relaxed); margin-bottom: var(--nx-space-md); }
.nx-post-card__meta { display: flex; align-items: center; gap: var(--nx-space-md); font-size: var(--nx-fs-sm); color: var(--nx-text-muted); }
.nx-post-card__meta a { color: var(--nx-text-secondary); font-weight: var(--nx-fw-medium); }
.nx-post-card__meta a:hover { color: var(--nx-primary); text-decoration: none; }
.nx-post-card__meta-sep::before { content: "\00B7"; margin: 0 2px; }
.nx-read-more { display: inline-flex; align-items: center; gap: 4px; font-size: var(--nx-fs-sm); font-weight: var(--nx-fw-medium); color: var(--nx-primary); }
.nx-read-more:hover { gap: 8px; text-decoration: none; }
.nx-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--nx-space-xl); }
.nx-post-card--grid .nx-post-card__thumb img { width: 100%; height: 200px; object-fit: cover; }

/* ==========================================================================
   10. SINGLE POST
   ========================================================================== */
.nx-single-header { margin-bottom: var(--nx-space-2xl); }
.nx-breadcrumbs {
  display: flex; align-items: center; gap: var(--nx-space-xs);
  font-size: var(--nx-fs-sm); color: var(--nx-text-muted);
  margin-bottom: var(--nx-space-lg); flex-wrap: wrap;
}
.nx-breadcrumbs a { color: var(--nx-text-link); }
.nx-breadcrumbs .nx-breadcrumb-sep { color: var(--nx-text-muted); margin: 0 2px; }
.nx-breadcrumbs .nx-breadcrumb-current { color: var(--nx-text-secondary); }
.nx-single-title { font-size: var(--nx-fs-3xl); margin-bottom: var(--nx-space-md); line-height: 1.2; }
.nx-single-meta { display: flex; align-items: center; gap: var(--nx-space-md); font-size: var(--nx-fs-sm); color: var(--nx-text-muted); flex-wrap: wrap; }
.nx-single-cats { display: flex; gap: var(--nx-space-sm); margin-bottom: var(--nx-space-sm); }
.nx-single-featured { margin: var(--nx-space-xl) 0; border-radius: var(--nx-radius-md); overflow: hidden; }
.nx-single-featured img { width: 100%; height: auto; border-radius: var(--nx-radius-md); }
.nx-verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; font-size: var(--nx-fs-xs); font-weight: var(--nx-fw-medium);
  color: var(--nx-success); background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2); border-radius: var(--nx-radius-sm);
}
.nx-entry-content { font-size: var(--nx-fs-md); line-height: var(--nx-lh-relaxed); }
.nx-entry-content h2 { margin-top: var(--nx-space-3xl); margin-bottom: var(--nx-space-lg); padding-bottom: var(--nx-space-sm); border-bottom: 2px solid var(--nx-primary-light); }
.nx-entry-content h3 { margin-top: var(--nx-space-2xl); margin-bottom: var(--nx-space-md); }
.nx-entry-content img { border-radius: var(--nx-radius); margin: var(--nx-space-lg) auto; }
.nx-entry-content a { text-decoration: underline; text-decoration-color: var(--nx-primary-light); text-underline-offset: 3px; }
.nx-entry-content a:hover { text-decoration-color: var(--nx-primary); }
.nx-page-links { display: flex; gap: var(--nx-space-sm); margin: var(--nx-space-xl) 0; padding: var(--nx-space-md) 0; border-top: 1px solid var(--nx-border); }
.nx-page-links .post-page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 var(--nx-space-sm); border-radius: var(--nx-radius); background: var(--nx-bg-card); box-shadow: var(--nx-shadow-sm); font-size: var(--nx-fs-sm); }
.nx-page-links .post-page-numbers.current { background: var(--nx-primary); color: var(--nx-text-inverse); }

/* ==========================================================================
   11. SIDEBAR & WIDGETS
   ========================================================================== */
.nx-widget {
  background: var(--nx-bg-sidebar); border-radius: var(--nx-radius-md);
  box-shadow: var(--nx-shadow-card); padding: var(--nx-space-xl); margin-bottom: var(--nx-space-xl);
}
.nx-widget-title {
  font-size: var(--nx-fs-lg); font-weight: var(--nx-fw-bold);
  margin-bottom: var(--nx-space-lg); padding-bottom: var(--nx-space-sm);
  border-bottom: 2px solid var(--nx-primary);
}
.nx-widget ul { list-style: none; padding: 0; }
.nx-widget ul li { padding: var(--nx-space-sm) 0; border-bottom: 1px solid var(--nx-border-light); }
.nx-widget ul li:last-child { border-bottom: none; }
.nx-widget ul li a { color: var(--nx-text); font-size: var(--nx-fs-sm); }
.nx-widget ul li a:hover { color: var(--nx-primary); text-decoration: none; }
.nx-search-form { display: flex; gap: 0; }
.nx-search-form input[type="search"] {
  flex: 1; padding: 10px 14px; border: 1px solid var(--nx-border-input);
  border-right: none; border-radius: var(--nx-radius) 0 0 var(--nx-radius);
  font-family: var(--nx-font-primary); font-size: var(--nx-fs-sm);
  background: var(--nx-bg-input); color: var(--nx-text); outline: none;
  transition: border-color var(--nx-transition);
}
.nx-search-form input[type="search"]:focus { border-color: var(--nx-border-focus); }
.nx-search-form button {
  padding: 10px 18px; background: var(--nx-primary); color: var(--nx-text-inverse);
  border: none; border-radius: 0 var(--nx-radius) var(--nx-radius) 0;
  cursor: pointer; font-weight: var(--nx-fw-semibold); font-size: var(--nx-fs-sm);
  transition: background var(--nx-transition);
}
.nx-search-form button:hover { background: var(--nx-primary-hover); }
.nx-sidebar--sticky { position: sticky; top: calc(var(--nx-header-height) + var(--nx-space-xl)); }
.admin-bar .nx-sidebar--sticky { top: calc(var(--nx-header-height) + 32px + var(--nx-space-xl)); }

/* ==========================================================================
   12. AUTHOR BOX
   ========================================================================== */
.nx-author-box {
  display: flex; gap: var(--nx-space-lg); background: var(--nx-bg-card);
  border-radius: var(--nx-radius-md); box-shadow: var(--nx-shadow-card);
  padding: var(--nx-space-xl); margin: var(--nx-space-2xl) 0;
  border-left: 4px solid var(--nx-primary);
}
.nx-author-box__avatar { flex-shrink: 0; }
.nx-author-box__avatar img { width: 80px; height: 80px; border-radius: var(--nx-radius-full); object-fit: cover; border: 3px solid var(--nx-primary-light); }
.nx-author-box__info h4 { margin-bottom: var(--nx-space-xs); }
.nx-author-box__label { font-size: var(--nx-fs-xs); color: var(--nx-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--nx-space-xs); }
.nx-author-box__bio { font-size: var(--nx-fs-sm); color: var(--nx-text-secondary); line-height: var(--nx-lh-relaxed); }

/* ==========================================================================
   13. RELATED POSTS
   ========================================================================== */
.nx-related-posts { margin: var(--nx-space-2xl) 0; }
.nx-related-posts__title { font-size: var(--nx-fs-xl); margin-bottom: var(--nx-space-lg); display: flex; align-items: center; gap: var(--nx-space-sm); }
.nx-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--nx-space-lg); }
.nx-related-card { background: var(--nx-bg-card); border-radius: var(--nx-radius); overflow: hidden; box-shadow: var(--nx-shadow-sm); transition: all var(--nx-transition); }
.nx-related-card:hover { box-shadow: var(--nx-shadow-md); transform: translateY(-2px); }
.nx-related-card img { width: 100%; height: 150px; object-fit: cover; }
.nx-related-card__body { padding: var(--nx-space-md); }
.nx-related-card__body h4 { font-size: var(--nx-fs-sm); line-height: var(--nx-lh-tight); }
.nx-related-card__body h4 a { color: var(--nx-text); text-decoration: none; }
.nx-related-card__body h4 a:hover { color: var(--nx-primary); }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.nx-footer { background: var(--nx-bg-footer); color: var(--nx-text-inverse); padding: var(--nx-space-3xl) 0 0; }
.nx-footer a { color: rgba(255,255,255,0.7); }
.nx-footer a:hover { color: var(--nx-primary); text-decoration: none; }
.nx-footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--nx-space-2xl); margin-bottom: var(--nx-space-2xl); }
.nx-footer-widget-title { font-size: var(--nx-fs-md); font-weight: var(--nx-fw-bold); color: #fff; margin-bottom: var(--nx-space-lg); }
.nx-footer-widget ul { list-style: none; padding: 0; }
.nx-footer-widget ul li { margin-bottom: var(--nx-space-sm); }
.nx-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: var(--nx-space-lg) 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--nx-fs-sm); color: rgba(255,255,255,0.5);
}
.nx-footer-nav { list-style: none; display: flex; gap: var(--nx-space-lg); padding: 0; margin: 0; }
.nx-footer-nav li { margin-bottom: 0; }
.nx-back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  background: var(--nx-primary); color: var(--nx-text-inverse); border: none;
  border-radius: var(--nx-radius-full); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--nx-shadow-md); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all var(--nx-transition);
  z-index: var(--nx-z-sticky); font-size: 18px;
}
.nx-back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.nx-back-to-top:hover { background: var(--nx-primary-hover); transform: translateY(-2px); }

/* ==========================================================================
   15. PAGINATION
   ========================================================================== */
.nx-pagination { display: flex; align-items: center; justify-content: center; gap: var(--nx-space-xs); margin: var(--nx-space-2xl) 0; }
.nx-pagination a, .nx-pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 var(--nx-space-md);
  border-radius: var(--nx-radius); font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-medium); transition: all var(--nx-transition); text-decoration: none;
}
.nx-pagination a { background: var(--nx-bg-card); color: var(--nx-text); box-shadow: var(--nx-shadow-sm); }
.nx-pagination a:hover { background: var(--nx-primary-light); color: var(--nx-primary); text-decoration: none; }
.nx-pagination .current { background: var(--nx-primary); color: var(--nx-text-inverse); box-shadow: var(--nx-shadow-sm); }

/* ==========================================================================
   16. COMMENTS
   ========================================================================== */
.nx-comments { margin-top: var(--nx-space-2xl); }
.nx-comments-title { font-size: var(--nx-fs-xl); margin-bottom: var(--nx-space-xl); }
.nx-comment-list { list-style: none; padding: 0; }
.nx-comment { display: flex; gap: var(--nx-space-md); padding: var(--nx-space-lg) 0; border-bottom: 1px solid var(--nx-border-light); }
.nx-comment-avatar img { width: 50px; height: 50px; border-radius: var(--nx-radius-full); }
.nx-comment-author { font-weight: var(--nx-fw-semibold); font-size: var(--nx-fs-sm); }
.nx-comment-date { font-size: var(--nx-fs-xs); color: var(--nx-text-muted); }
.nx-comment-content { font-size: var(--nx-fs-sm); color: var(--nx-text-secondary); margin-top: var(--nx-space-sm); }
.nx-comment-form textarea,
.nx-comment-form input[type="text"],
.nx-comment-form input[type="email"],
.nx-comment-form input[type="url"] {
  width: 100%; padding: 12px 16px; border: 1px solid var(--nx-border-input);
  border-radius: var(--nx-radius); font-family: var(--nx-font-primary);
  font-size: var(--nx-fs-sm); background: var(--nx-bg-input); color: var(--nx-text);
  transition: border-color var(--nx-transition); margin-bottom: var(--nx-space-md);
}
.nx-comment-form textarea:focus, .nx-comment-form input:focus { outline: none; border-color: var(--nx-border-focus); box-shadow: 0 0 0 3px var(--nx-primary-light); }
.nx-comment-form textarea { min-height: 150px; resize: vertical; }

/* ==========================================================================
   17. BUTTONS
   ========================================================================== */
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--nx-space-sm);
  padding: 12px 24px; font-family: var(--nx-font-primary); font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-semibold); border-radius: var(--nx-radius); border: none;
  cursor: pointer; transition: all var(--nx-transition); text-decoration: none;
}
.nx-btn--primary { background: var(--nx-primary); color: var(--nx-text-inverse); }
.nx-btn--primary:hover { background: var(--nx-primary-hover); transform: translateY(-1px); box-shadow: var(--nx-shadow-md); }

/* ==========================================================================
   18. TABLE OF CONTENTS
   ========================================================================== */
.nx-toc { background: var(--nx-bg-card); border: 1px solid var(--nx-border); border-left: 4px solid var(--nx-primary); border-radius: var(--nx-radius); padding: var(--nx-space-lg); margin: var(--nx-space-xl) 0; }
.nx-toc__title { display: flex; align-items: center; justify-content: space-between; font-size: var(--nx-fs-md); font-weight: var(--nx-fw-bold); cursor: pointer; user-select: none; }
.nx-toc__toggle { font-size: var(--nx-fs-xs); color: var(--nx-text-muted); background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: var(--nx-radius-sm); }
.nx-toc__toggle:hover { background: var(--nx-primary-light); }
.nx-toc__list { list-style: none; padding: 0; margin-top: var(--nx-space-md); }
.nx-toc__list li { padding: var(--nx-space-xs) 0; border-bottom: none; margin-bottom: 0; }
.nx-toc__list a { color: var(--nx-text-secondary); font-size: var(--nx-fs-sm); text-decoration: none; padding: 4px 0; display: block; transition: color var(--nx-transition); }
.nx-toc__list a:hover { color: var(--nx-primary); }
.nx-toc__list .toc-h3 { padding-left: var(--nx-space-lg); }
.nx-toc__list .toc-h4 { padding-left: var(--nx-space-2xl); }

/* ==========================================================================
   19. SOCIAL SHARING
   ========================================================================== */
.nx-share { display: flex; align-items: center; gap: var(--nx-space-sm); margin: var(--nx-space-xl) 0; flex-wrap: wrap; }
.nx-share__label { font-size: var(--nx-fs-sm); font-weight: var(--nx-fw-semibold); color: var(--nx-text-secondary); }
.nx-share__btn {
  display: flex; align-items: center; justify-content: center; gap: var(--nx-space-xs);
  padding: 8px 14px; border-radius: var(--nx-radius-full); font-size: var(--nx-fs-xs);
  font-weight: var(--nx-fw-medium); color: #fff; text-decoration: none; transition: all var(--nx-transition);
}
.nx-share__btn:hover { transform: translateY(-2px); box-shadow: var(--nx-shadow-md); color: #fff; text-decoration: none; }
.nx-share__btn--facebook { background: #1877f2; }
.nx-share__btn--twitter { background: #1da1f2; }
.nx-share__btn--linkedin { background: #0a66c2; }
.nx-share__btn--pinterest { background: #e60023; }
.nx-share__btn--whatsapp { background: #25d366; }
.nx-share__btn--copy { background: var(--nx-text-secondary); }

/* ==========================================================================
   20. POST NAVIGATION
   ========================================================================== */
.nx-post-nav { display: flex; gap: var(--nx-space-lg); margin: var(--nx-space-2xl) 0; border-top: 1px solid var(--nx-border); padding-top: var(--nx-space-xl); }
.nx-post-nav__item { flex: 1; padding: var(--nx-space-md); border-radius: var(--nx-radius); transition: background var(--nx-transition); }
.nx-post-nav__item:hover { background: var(--nx-primary-light); }
.nx-post-nav__label { font-size: var(--nx-fs-xs); color: var(--nx-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--nx-space-xs); }
.nx-post-nav__title { font-size: var(--nx-fs-sm); font-weight: var(--nx-fw-semibold); }
.nx-post-nav__title a { color: var(--nx-text); text-decoration: none; }
.nx-post-nav__title a:hover { color: var(--nx-primary); }
.nx-post-nav__item--next { text-align: right; }

/* ==========================================================================
   21. 404 PAGE
   ========================================================================== */
.nx-404 { text-align: center; padding: var(--nx-space-3xl) 0; }
.nx-404__code { font-size: 8rem; font-weight: var(--nx-fw-bold); color: var(--nx-primary); opacity: 0.2; line-height: 1; }
.nx-404__title { font-size: var(--nx-fs-2xl); margin-bottom: var(--nx-space-md); }
.nx-404__desc { color: var(--nx-text-secondary); margin-bottom: var(--nx-space-xl); }

/* ==========================================================================
   22. ARCHIVE HEADER
   ========================================================================== */
.nx-archive-header { margin-bottom: var(--nx-space-2xl); }
.nx-archive-title { font-size: var(--nx-fs-2xl); margin-bottom: var(--nx-space-sm); }
.nx-archive-desc { color: var(--nx-text-secondary); font-size: var(--nx-fs-md); }

/* ==========================================================================
   23. TAGS
   ========================================================================== */
.nx-single-tags { display: flex; flex-wrap: wrap; gap: var(--nx-space-sm); margin: var(--nx-space-xl) 0; }
.nx-tag {
  display: inline-block; padding: 4px 12px; background: var(--nx-bg-code);
  color: var(--nx-text-secondary); border-radius: var(--nx-radius-full);
  font-size: var(--nx-fs-xs); text-decoration: none; transition: all var(--nx-transition);
}
.nx-tag:hover { background: var(--nx-primary-light); color: var(--nx-primary); text-decoration: none; }

/* ==========================================================================
   24. AD ZONES
   ========================================================================== */
.nx-ad-zone { margin: var(--nx-space-lg) 0; text-align: center; }

/* ==========================================================================
   25. HERO SECTION (front-page)
   ========================================================================== */
.nx-hero {
  background: linear-gradient(135deg, var(--nx-secondary), var(--nx-bg-footer));
  color: var(--nx-text-inverse); padding: var(--nx-space-3xl) 0;
  text-align: center; margin-bottom: var(--nx-space-2xl);
  border-radius: var(--nx-radius-lg);
}
.nx-hero__title { font-size: var(--nx-fs-4xl); margin-bottom: var(--nx-space-md); color: #fff; }
.nx-hero__desc { font-size: var(--nx-fs-lg); color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto var(--nx-space-xl); }
.nx-hero .nx-btn { font-size: var(--nx-fs-md); padding: 16px 32px; }

/* ==========================================================================
   26. ANIMATIONS
   ========================================================================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.nx-animate-fade { animation: fadeIn 0.4s ease forwards; }
.nx-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.nx-reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   27. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .nx-site-content { flex-direction: column; }
  .nx-sidebar-left .nx-site-content { flex-direction: column; }
  .nx-sidebar { width: 100%; }
  .nx-post-card--list { flex-direction: column; }
  .nx-post-card--list .nx-post-card__thumb { width: 100%; min-height: 200px; }
}
@media (max-width: 768px) {
  :root { --nx-fs-3xl: 1.75rem; --nx-fs-2xl: 1.5rem; --nx-fs-xl: 1.25rem; --nx-header-height: 60px; }
  .nx-nav-menu { display: none; }
  .nx-mobile-toggle { display: flex; }
  .nx-header-inner { padding: 0 var(--nx-space-md); }
  .nx-post-nav { flex-direction: column; }
  .nx-author-box { flex-direction: column; text-align: center; }
  .nx-footer-bottom { flex-direction: column; gap: var(--nx-space-md); text-align: center; }
  .nx-footer-nav { flex-wrap: wrap; justify-content: center; }
  .nx-related-grid { grid-template-columns: 1fr; }
  .nx-hero__title { font-size: var(--nx-fs-2xl); }
}

/* ==========================================================================
   28. PRINT STYLES
   ========================================================================== */
@media print {
  .nx-header, .nx-footer, .nx-sidebar, .nx-share, .nx-related-posts,
  .nx-post-nav, .nx-back-to-top, .nx-search-overlay, .nx-toc,
  .nx-comments, .nx-breadcrumbs, .nx-mobile-menu, .nx-ad-zone { display: none !important; }
  body { color: #000; background: #fff; font-size: 12pt; }
  .nx-main { max-width: 100%; }
  a { text-decoration: underline; color: #000; }
  .nx-single-title { font-size: 24pt; }
}

/* ==========================================================================
   29. ACCESSIBILITY
   ========================================================================== */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--nx-bg-card); clip: auto !important; clip-path: none;
  color: var(--nx-primary); display: block; font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-bold); height: auto; left: 5px;
  line-height: normal; padding: 15px 23px 14px; text-decoration: none;
  top: 5px; width: auto; z-index: 100000;
}
:focus-visible { outline: 2px solid var(--nx-primary); outline-offset: 2px; }
.skip-link {
  position: fixed; top: -100%; left: 0; background: var(--nx-primary);
  color: var(--nx-text-inverse); padding: var(--nx-space-md) var(--nx-space-lg);
  z-index: 9999; transition: top var(--nx-transition); font-weight: var(--nx-fw-semibold);
}
.skip-link:focus { top: 0; outline: none; }

/* ==========================================================================
   30. READING PROGRESS BAR
   ========================================================================== */
.nx-progress-bar {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--nx-primary), var(--nx-accent, var(--nx-primary-hover)));
  z-index: 9999; transition: width 0.1s linear; pointer-events: none;
}
.admin-bar .nx-progress-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .nx-progress-bar { top: 46px; } }

/* ==========================================================================
   31. FLOATING TOC (sticky sidebar-style on single posts)
   ========================================================================== */
.nx-floating-toc {
  position: fixed; top: 50%; right: 20px; transform: translateY(-50%);
  background: var(--nx-bg-card); border: 1px solid var(--nx-border); border-radius: var(--nx-radius-md);
  box-shadow: var(--nx-shadow-md); padding: var(--nx-space-md); max-width: 240px; max-height: 60vh;
  overflow-y: auto; z-index: var(--nx-z-sticky); opacity: 0; visibility: hidden;
  transition: opacity var(--nx-transition), visibility var(--nx-transition);
  font-size: var(--nx-fs-xs);
}
.nx-floating-toc.visible { opacity: 1; visibility: visible; }
.nx-floating-toc__title { font-size: var(--nx-fs-xs); font-weight: var(--nx-fw-bold); text-transform: uppercase; letter-spacing: 0.5px; color: var(--nx-text-muted); margin-bottom: var(--nx-space-sm); }
.nx-floating-toc ul { list-style: none; padding: 0; margin: 0; }
.nx-floating-toc li { margin-bottom: 2px; }
.nx-floating-toc a { display: block; padding: 3px 8px; color: var(--nx-text-secondary); text-decoration: none; border-left: 2px solid transparent; border-radius: 0 var(--nx-radius-sm) var(--nx-radius-sm) 0; transition: all var(--nx-transition); font-size: var(--nx-fs-xs); line-height: 1.4; }
.nx-floating-toc a:hover, .nx-floating-toc a.active { color: var(--nx-primary); border-left-color: var(--nx-primary); background: var(--nx-primary-light); }
.nx-floating-toc .toc-h3 a { padding-left: 16px; }
.nx-floating-toc .toc-h4 a { padding-left: 28px; }
@media (max-width: 1400px) { .nx-floating-toc { display: none; } }

/* ==========================================================================
   32. IMAGE LIGHTBOX
   ========================================================================== */
.nx-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: var(--nx-z-modal);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s ease; cursor: zoom-out;
  backdrop-filter: blur(4px);
}
.nx-lightbox.active { opacity: 1; visibility: visible; }
.nx-lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: var(--nx-radius); box-shadow: 0 8px 40px rgba(0,0,0,0.5); transform: scale(0.9); transition: transform 0.3s ease; }
.nx-lightbox.active img { transform: scale(1); }
.nx-lightbox__close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
  background: rgba(255,255,255,0.1); border: none; border-radius: var(--nx-radius-full);
  color: #fff; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--nx-transition);
}
.nx-lightbox__close:hover { background: rgba(255,255,255,0.2); }
.nx-lightbox__caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: var(--nx-fs-sm); text-align: center; max-width: 80%; }
.nx-entry-content img { cursor: zoom-in; }

/* ==========================================================================
   33. NOTICE / ALERT BOXES (shortcode)
   ========================================================================== */
.nx-notice {
  display: flex; gap: var(--nx-space-md); padding: var(--nx-space-lg); margin: var(--nx-space-lg) 0;
  border-radius: var(--nx-radius); border-left: 4px solid; font-size: var(--nx-fs-sm); line-height: var(--nx-lh-relaxed);
}
.nx-notice__icon { font-size: var(--nx-fs-xl); flex-shrink: 0; line-height: 1; }
.nx-notice__content { flex: 1; }
.nx-notice__content p:last-child { margin-bottom: 0; }
.nx-notice--info { background: rgba(59,130,246,0.08); border-color: var(--nx-info); color: #1e40af; }
.nx-notice--info .nx-notice__icon { color: var(--nx-info); }
.nx-notice--success { background: rgba(34,197,94,0.08); border-color: var(--nx-success); color: #166534; }
.nx-notice--success .nx-notice__icon { color: var(--nx-success); }
.nx-notice--warning { background: rgba(245,158,11,0.08); border-color: var(--nx-warning); color: #92400e; }
.nx-notice--warning .nx-notice__icon { color: var(--nx-warning); }
.nx-notice--error { background: rgba(239,68,68,0.08); border-color: var(--nx-error); color: #991b1b; }
.nx-notice--error .nx-notice__icon { color: var(--nx-error); }
.nx-notice--tip { background: rgba(124,58,237,0.08); border-color: #7c3aed; color: #5b21b6; }
.nx-notice--tip .nx-notice__icon { color: #7c3aed; }
.nx-dark .nx-notice--info { color: #93c5fd; } .nx-dark .nx-notice--success { color: #86efac; }
.nx-dark .nx-notice--warning { color: #fcd34d; } .nx-dark .nx-notice--error { color: #fca5a5; }
.nx-dark .nx-notice--tip { color: #c4b5fd; }

/* ==========================================================================
   34. ACCORDION / FAQ
   ========================================================================== */
.nx-accordion { margin: var(--nx-space-lg) 0; border: 1px solid var(--nx-border); border-radius: var(--nx-radius-md); overflow: hidden; }
.nx-accordion__item { border-bottom: 1px solid var(--nx-border); }
.nx-accordion__item:last-child { border-bottom: none; }
.nx-accordion__trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: var(--nx-space-lg); background: var(--nx-bg-card); border: none; cursor: pointer;
  font-family: var(--nx-font-primary); font-size: var(--nx-fs-base); font-weight: var(--nx-fw-semibold);
  color: var(--nx-text); text-align: left; transition: background var(--nx-transition);
}
.nx-accordion__trigger:hover { background: var(--nx-primary-light); }
.nx-accordion__trigger[aria-expanded="true"] { background: var(--nx-primary-light); }
.nx-accordion__icon {
  width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.3s ease;
  stroke: var(--nx-text-muted); fill: none; stroke-width: 2;
}
.nx-accordion__trigger[aria-expanded="true"] .nx-accordion__icon { transform: rotate(180deg); }
.nx-accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.nx-accordion__panel[aria-hidden="false"] { max-height: 2000px; }
.nx-accordion__content { padding: var(--nx-space-lg); font-size: var(--nx-fs-sm); color: var(--nx-text-secondary); line-height: var(--nx-lh-relaxed); }
.nx-accordion__content p:last-child { margin-bottom: 0; }

/* ==========================================================================
   35. COOKIE CONSENT BANNER
   ========================================================================== */
.nx-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--nx-bg-footer);
  color: var(--nx-text-inverse); padding: var(--nx-space-lg) var(--nx-space-xl);
  z-index: var(--nx-z-toast); display: flex; align-items: center; justify-content: space-between;
  gap: var(--nx-space-lg); flex-wrap: wrap; box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(100%); transition: transform 0.4s ease;
}
.nx-cookie-banner.visible { transform: translateY(0); }
.nx-cookie-banner__text { flex: 1; min-width: 280px; font-size: var(--nx-fs-sm); line-height: var(--nx-lh-relaxed); }
.nx-cookie-banner__text a { color: var(--nx-primary); text-decoration: underline; }
.nx-cookie-banner__actions { display: flex; gap: var(--nx-space-sm); flex-shrink: 0; }
.nx-cookie-banner__btn {
  padding: 8px 20px; border-radius: var(--nx-radius); font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-semibold); cursor: pointer; border: none; transition: all var(--nx-transition);
}
.nx-cookie-banner__btn--accept { background: var(--nx-primary); color: var(--nx-text-inverse); }
.nx-cookie-banner__btn--accept:hover { background: var(--nx-primary-hover); }
.nx-cookie-banner__btn--decline { background: rgba(255,255,255,0.1); color: var(--nx-text-inverse); }
.nx-cookie-banner__btn--decline:hover { background: rgba(255,255,255,0.2); }

/* ==========================================================================
   36. NOTIFICATION / ANNOUNCEMENT BAR
   ========================================================================== */
.nx-announcement-bar {
  background: linear-gradient(90deg, var(--nx-primary), var(--nx-primary-hover));
  color: var(--nx-text-inverse); text-align: center; padding: 10px var(--nx-space-lg);
  font-size: var(--nx-fs-sm); font-weight: var(--nx-fw-medium); position: relative;
}
.nx-announcement-bar a { color: var(--nx-text-inverse); text-decoration: underline; font-weight: var(--nx-fw-bold); }
.nx-announcement-bar__close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2); border: none; color: var(--nx-text-inverse);
  width: 24px; height: 24px; border-radius: var(--nx-radius-full); cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: background var(--nx-transition);
}
.nx-announcement-bar__close:hover { background: rgba(255,255,255,0.35); }

/* ==========================================================================
   37. TAB CONTENT (shortcode)
   ========================================================================== */
.nx-tabs { margin: var(--nx-space-lg) 0; }
.nx-tabs__nav { display: flex; border-bottom: 2px solid var(--nx-border); gap: 0; overflow-x: auto; }
.nx-tabs__btn {
  padding: var(--nx-space-sm) var(--nx-space-lg); background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  font-family: var(--nx-font-primary); font-size: var(--nx-fs-sm); font-weight: var(--nx-fw-medium);
  color: var(--nx-text-muted); cursor: pointer; white-space: nowrap; transition: all var(--nx-transition);
}
.nx-tabs__btn:hover { color: var(--nx-text); }
.nx-tabs__btn.active { color: var(--nx-primary); border-bottom-color: var(--nx-primary); }
.nx-tabs__panel { display: none; padding: var(--nx-space-lg) 0; animation: fadeIn 0.3s ease; }
.nx-tabs__panel.active { display: block; }

/* ==========================================================================
   38. CUSTOM 404 — POPULAR POSTS
   ========================================================================== */
.nx-404-popular { margin-top: var(--nx-space-2xl); text-align: left; }
.nx-404-popular__title { font-size: var(--nx-fs-xl); margin-bottom: var(--nx-space-lg); text-align: center; }
.nx-404-popular__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--nx-space-lg); }

/* ==========================================================================
   39. POST VIEWS COUNTER
   ========================================================================== */
.nx-views-count { display: inline-flex; align-items: center; gap: 4px; }
.nx-views-count svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ==========================================================================
   40. FLOATING SOCIAL SHARE BAR
   ========================================================================== */
.nx-floating-share {
  position: fixed; left: 20px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: var(--nx-space-xs);
  z-index: var(--nx-z-sticky); opacity: 0; visibility: hidden;
  transition: opacity var(--nx-transition), visibility var(--nx-transition);
}
.nx-floating-share.visible { opacity: 1; visibility: visible; }
.nx-floating-share .nx-share__btn { width: 40px; height: 40px; padding: 0; border-radius: var(--nx-radius); font-size: 0; }
.nx-floating-share .nx-share__btn svg { width: 18px; height: 18px; }
@media (max-width: 1200px) { .nx-floating-share { display: none; } }

/* ==========================================================================
   41. COPY CODE BUTTON
   ========================================================================== */
.nx-code-wrapper { position: relative; }
.nx-copy-code {
  position: absolute; top: 8px; right: 8px; padding: 4px 10px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--nx-radius-sm); color: var(--nx-text-muted); font-size: var(--nx-fs-xs);
  font-family: var(--nx-font-primary); cursor: pointer; transition: all var(--nx-transition);
  opacity: 0; z-index: 2;
}
.nx-code-wrapper:hover .nx-copy-code { opacity: 1; }
.nx-copy-code:hover { background: var(--nx-primary); color: var(--nx-text-inverse); border-color: var(--nx-primary); }
.nx-copy-code.copied { background: var(--nx-success); color: #fff; border-color: var(--nx-success); }

/* ==========================================================================
   42. EXTERNAL LINK ICON
   ========================================================================== */
.nx-entry-content a[target="_blank"]::after,
.nx-entry-content a[rel*="external"]::after {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; vertical-align: middle; opacity: 0.5;
}

/* ==========================================================================
   43. PAGE TRANSITIONS
   ========================================================================== */
.nx-page-transition {
  position: fixed; inset: 0; background: var(--nx-bg); z-index: 99999;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease;
}
.nx-page-transition.active { opacity: 1; visibility: visible; }

/* ==========================================================================
   44. SPOILER / TOGGLE (shortcode)
   ========================================================================== */
.nx-spoiler { margin: var(--nx-space-md) 0; border: 1px dashed var(--nx-border); border-radius: var(--nx-radius); overflow: hidden; }
.nx-spoiler__trigger {
  display: flex; align-items: center; gap: var(--nx-space-sm); width: 100%;
  padding: var(--nx-space-md) var(--nx-space-lg); background: var(--nx-bg-code); border: none; cursor: pointer;
  font-family: var(--nx-font-primary); font-size: var(--nx-fs-sm); font-weight: var(--nx-fw-medium);
  color: var(--nx-text-secondary); text-align: left; transition: background var(--nx-transition);
}
.nx-spoiler__trigger:hover { background: var(--nx-primary-light); }
.nx-spoiler__trigger svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.3s ease; }
.nx-spoiler__trigger[aria-expanded="true"] svg { transform: rotate(90deg); }
.nx-spoiler__content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.nx-spoiler__content[aria-hidden="false"] { max-height: 5000px; }
.nx-spoiler__inner { padding: var(--nx-space-lg); font-size: var(--nx-fs-sm); line-height: var(--nx-lh-relaxed); }
.nx-spoiler__inner p:last-child { margin-bottom: 0; }

/* ==========================================================================
   45. AFFILIATE DISCLOSURE BOX
   ========================================================================== */
.nx-affiliate-disclosure {
  padding: var(--nx-space-md) var(--nx-space-lg); margin: 0 0 var(--nx-space-lg);
  background: var(--nx-bg-code); border-left: 3px solid var(--nx-warning);
  border-radius: var(--nx-radius); font-size: var(--nx-fs-xs); color: var(--nx-text-muted);
  line-height: var(--nx-lh-relaxed);
}
.nx-affiliate-disclosure strong { color: var(--nx-text-secondary); }
.nx-affiliate-disclosure a { color: var(--nx-primary); }

/* ==========================================================================
   46. HEADER LAYOUT VARIANTS (Customizer TIER 5)
   ========================================================================== */
.nx-header--centered .nx-header-inner { flex-direction: column; align-items: center; gap: var(--nx-space-md); padding: var(--nx-space-md) 0; }
.nx-header--centered .nx-logo-area { order: 0; }
.nx-header--centered .nx-nav { order: 1; width: 100%; justify-content: center; }
.nx-header--centered .nx-nav-menu { justify-content: center; }
.nx-header--centered .nx-header-actions { position: absolute; top: var(--nx-space-md); right: var(--nx-space-lg); }

.nx-header--minimal .nx-header-inner { gap: var(--nx-space-sm); }
.nx-header--minimal .nx-nav-menu > li > a { padding: 4px 10px; font-size: var(--nx-fs-sm); }

/* ==========================================================================
   47. FOOTER COLUMN VARIANTS
   ========================================================================== */
.nx-footer-cols-1 .nx-footer-widgets { grid-template-columns: 1fr; }
.nx-footer-cols-2 .nx-footer-widgets { grid-template-columns: repeat(2, 1fr); }
.nx-footer-cols-3 .nx-footer-widgets { grid-template-columns: repeat(3, 1fr); }
/* 4 cols is the default */

/* ==========================================================================
   48. COMPARISON TABLE
   ========================================================================== */
.nx-compare { margin: var(--nx-space-xl) 0; }
.nx-compare__title { font-size: var(--nx-fs-xl); margin-bottom: var(--nx-space-lg); text-align: center; }
.nx-compare__table { border: 1px solid var(--nx-border); border-radius: var(--nx-radius-md); overflow: hidden; }
.nx-compare__head, .nx-compare__row { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.nx-compare__head { background: var(--nx-secondary); color: var(--nx-text-inverse); font-weight: var(--nx-fw-bold); }
.nx-compare__row { border-top: 1px solid var(--nx-border); }
.nx-compare__row:nth-child(even) { background: var(--nx-bg-code); }
.nx-compare__cell { padding: 12px var(--nx-space-md); font-size: var(--nx-fs-sm); display: flex; align-items: center; gap: 6px; }
.nx-compare__cell--label { font-weight: var(--nx-fw-semibold); color: var(--nx-text-secondary); }
.nx-compare__cell--winner { color: var(--nx-success); font-weight: var(--nx-fw-semibold); }
.nx-compare__check { color: var(--nx-success); font-weight: bold; }
.nx-compare__badge { font-size: var(--nx-fs-xs); padding: 2px 8px; border-radius: var(--nx-radius-full); background: rgba(255,255,255,0.2); }
.nx-compare__badge--winner { background: var(--nx-success); color: #fff; }
@media (max-width: 600px) {
  .nx-compare__head, .nx-compare__row { grid-template-columns: 1fr 1fr 1fr; }
  .nx-compare__cell { font-size: var(--nx-fs-xs); padding: 10px 8px; }
}

/* ==========================================================================
   49. MULTI-CRITERIA RATING BOX
   ========================================================================== */
.nx-rating-box { display: flex; gap: var(--nx-space-xl); padding: var(--nx-space-xl); background: var(--nx-bg-card); border: 1px solid var(--nx-border); border-radius: var(--nx-radius-md); margin: var(--nx-space-xl) 0; box-shadow: var(--nx-shadow-md); }
.nx-rating-box__overall { text-align: center; min-width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--nx-space-xs); }
.nx-rating-box__score { font-size: 3.5rem; font-weight: var(--nx-fw-bold); line-height: 1; color: var(--nx-primary); }
.nx-rating-box__max { font-size: var(--nx-fs-xs); color: var(--nx-text-muted); }
.nx-rating-box__label { font-size: var(--nx-fs-sm); font-weight: var(--nx-fw-semibold); color: var(--nx-text-secondary); }
.nx-rating-box__criteria { flex: 1; display: flex; flex-direction: column; gap: var(--nx-space-sm); justify-content: center; }
.nx-rating-box__criterion { display: grid; grid-template-columns: 130px 1fr 36px; align-items: center; gap: var(--nx-space-sm); }
.nx-rating-box__crit-name { font-size: var(--nx-fs-sm); color: var(--nx-text-secondary); }
.nx-rating-bar { height: 8px; background: var(--nx-border); border-radius: var(--nx-radius-full); overflow: hidden; }
.nx-rating-bar__fill { height: 100%; background: linear-gradient(90deg, var(--nx-primary), var(--nx-accent, var(--nx-primary-hover))); border-radius: var(--nx-radius-full); transition: width 1s ease; }
.nx-rating-box__crit-score { font-size: var(--nx-fs-sm); font-weight: var(--nx-fw-bold); color: var(--nx-primary); text-align: right; }
@media (max-width: 600px) {
  .nx-rating-box { flex-direction: column; }
  .nx-rating-box__criterion { grid-template-columns: 100px 1fr 32px; }
}

/* Stars */
.nx-stars { display: inline-flex; gap: 1px; line-height: 1; }
.nx-star--full  { color: #f59e0b; }
.nx-star--half  { color: #f59e0b; opacity: 0.7; }
.nx-star--empty { color: var(--nx-border); }
.nx-stars-number { font-size: var(--nx-fs-xs); color: var(--nx-text-muted); margin-left: 2px; }

/* ==========================================================================
   50. CTA BUTTON
   ========================================================================== */
.nx-cta-wrap { text-align: center; margin: var(--nx-space-xl) 0; }
.nx-cta-btn { font-size: var(--nx-fs-md) !important; padding: 16px 40px !important; border-radius: var(--nx-radius-full) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.15); transition: all 0.25s ease !important; }
.nx-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important; }
.nx-cta-icon { margin-left: 4px; }
.nx-cta-subtext { margin-top: var(--nx-space-sm); font-size: var(--nx-fs-xs); color: var(--nx-text-muted); }
.nx-btn--block { display: block; width: 100%; text-align: center; }

/* ==========================================================================
   51. COUPON / DEAL BOX
   ========================================================================== */
.nx-coupon { display: flex; align-items: stretch; border: 2px dashed var(--nx-primary); border-radius: var(--nx-radius-md); overflow: hidden; margin: var(--nx-space-xl) 0; }
.nx-coupon__badge { background: var(--nx-primary); color: var(--nx-text-inverse); writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); padding: var(--nx-space-lg) var(--nx-space-sm); font-weight: var(--nx-fw-bold); font-size: var(--nx-fs-sm); white-space: nowrap; display: flex; align-items: center; min-width: 50px; text-align: center; }
.nx-coupon__body { flex: 1; padding: var(--nx-space-lg); display: flex; flex-direction: column; gap: var(--nx-space-sm); }
.nx-coupon__label { font-weight: var(--nx-fw-bold); font-size: var(--nx-fs-base); }
.nx-coupon__code-wrap { display: flex; align-items: center; gap: var(--nx-space-sm); }
.nx-coupon__code { font-family: var(--nx-font-mono); font-size: var(--nx-fs-lg); font-weight: var(--nx-fw-bold); letter-spacing: 2px; padding: 6px 16px; background: var(--nx-bg-code); border: 1px dashed var(--nx-primary); border-radius: var(--nx-radius); color: var(--nx-primary); }
.nx-coupon__copy { padding: 6px 14px; border: 1px solid var(--nx-primary); border-radius: var(--nx-radius); background: none; color: var(--nx-primary); font-size: var(--nx-fs-xs); cursor: pointer; font-weight: var(--nx-fw-semibold); transition: all var(--nx-transition); }
.nx-coupon__copy:hover, .nx-coupon__copy.copied { background: var(--nx-primary); color: var(--nx-text-inverse); }
.nx-coupon__expires { font-size: var(--nx-fs-xs); color: var(--nx-error); margin: 0; }

/* ==========================================================================
   52. VERDICT SUMMARY BOX
   ========================================================================== */
.nx-verdict { border: 2px solid var(--nx-border); border-radius: var(--nx-radius-lg); overflow: hidden; margin: var(--nx-space-xl) 0; background: var(--nx-bg-card); }
.nx-verdict--recommended { border-color: var(--nx-success); }
.nx-verdict--not-recommended { border-color: var(--nx-error); }
.nx-verdict__header { display: flex; align-items: flex-start; justify-content: space-between; padding: var(--nx-space-lg); background: var(--nx-bg-code); border-bottom: 1px solid var(--nx-border); gap: var(--nx-space-md); flex-wrap: wrap; }
.nx-verdict__label { font-size: var(--nx-fs-xs); text-transform: uppercase; letter-spacing: 1px; color: var(--nx-text-muted); font-weight: var(--nx-fw-bold); margin-bottom: 4px; }
.nx-verdict__product { font-size: var(--nx-fs-xl); font-weight: var(--nx-fw-bold); margin: 4px 0; color: var(--nx-text); }
.nx-verdict__stars { font-size: 1.3rem; }
.nx-verdict__score { font-size: var(--nx-fs-sm); color: var(--nx-text-muted); }
.nx-verdict__rec-badge { padding: var(--nx-space-sm) var(--nx-space-md); border-radius: var(--nx-radius); font-weight: var(--nx-fw-bold); font-size: var(--nx-fs-sm); align-self: flex-start; white-space: nowrap; }
.nx-verdict--recommended .nx-verdict__rec-badge { background: rgba(34,197,94,0.12); color: var(--nx-success); }
.nx-verdict--not-recommended .nx-verdict__rec-badge { background: rgba(239,68,68,0.12); color: var(--nx-error); }
.nx-verdict__summary { padding: var(--nx-space-lg); margin: 0; font-size: var(--nx-fs-sm); line-height: var(--nx-lh-relaxed); border-bottom: 1px solid var(--nx-border); }
.nx-verdict__pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--nx-border); }
.nx-verdict__pros { padding: var(--nx-space-md) var(--nx-space-lg); border-right: 1px solid var(--nx-border); }
.nx-verdict__cons { padding: var(--nx-space-md) var(--nx-space-lg); }
.nx-verdict__col-title { display: block; font-size: var(--nx-fs-sm); margin-bottom: var(--nx-space-sm); }
.nx-verdict__pros .nx-verdict__col-title { color: var(--nx-success); }
.nx-verdict__cons .nx-verdict__col-title { color: var(--nx-error); }
.nx-verdict__pros ul, .nx-verdict__cons ul { margin: 0; padding: 0 0 0 var(--nx-space-lg); font-size: var(--nx-fs-sm); }
.nx-verdict__pros li { color: var(--nx-text-secondary); margin-bottom: 4px; }
.nx-verdict__cons li { color: var(--nx-text-secondary); margin-bottom: 4px; }
.nx-verdict__footer { display: flex; align-items: center; justify-content: space-between; padding: var(--nx-space-lg); gap: var(--nx-space-md); flex-wrap: wrap; }
.nx-verdict__price { font-size: var(--nx-fs-base); color: var(--nx-text-secondary); }
.nx-verdict__price strong { color: var(--nx-primary); font-size: var(--nx-fs-xl); }
@media (max-width: 600px) { .nx-verdict__pros-cons { grid-template-columns: 1fr; } .nx-verdict__pros { border-right: none; border-bottom: 1px solid var(--nx-border); } }

/* ==========================================================================
   53. PRICE BOX
   ========================================================================== */
.nx-price-box { border: 1px solid var(--nx-border); border-radius: var(--nx-radius-md); overflow: hidden; text-align: center; position: relative; transition: all var(--nx-transition); }
.nx-price-box:hover { box-shadow: var(--nx-shadow-lg); transform: translateY(-3px); }
.nx-price-box--featured { border: 2px solid var(--nx-primary); transform: scale(1.03); }
.nx-price-box--featured:hover { transform: scale(1.03) translateY(-3px); }
.nx-price-box__tag { background: var(--nx-primary); color: var(--nx-text-inverse); font-size: var(--nx-fs-xs); font-weight: var(--nx-fw-bold); padding: 6px; text-transform: uppercase; letter-spacing: 1px; }
.nx-price-box__body { padding: var(--nx-space-xl); }
.nx-price-box__name { font-size: var(--nx-fs-lg); font-weight: var(--nx-fw-bold); margin-bottom: var(--nx-space-sm); }
.nx-price-box__price { font-size: 2.5rem; font-weight: var(--nx-fw-bold); color: var(--nx-primary); margin-bottom: var(--nx-space-md); line-height: 1; }
.nx-price-box__original { font-size: var(--nx-fs-base); color: var(--nx-text-muted); font-weight: normal; }
.nx-price-box__features { list-style: none; padding: 0; margin: 0 0 var(--nx-space-lg); text-align: left; font-size: var(--nx-fs-sm); color: var(--nx-text-secondary); }
.nx-price-box__features li { padding: 4px 0; }

/* ==========================================================================
   54. E-E-A-T AUTHOR EXPERT BADGE
   ========================================================================== */
.nx-author-expert-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--nx-primary-light); color: var(--nx-primary); font-size: var(--nx-fs-xs); font-weight: var(--nx-fw-bold); padding: 3px 10px; border-radius: var(--nx-radius-full); border: 1px solid var(--nx-primary); margin-top: 4px; }
.nx-author-credentials { font-size: var(--nx-fs-xs); color: var(--nx-text-muted); margin-top: 4px; font-style: italic; }
.nx-author-stats { display: flex; gap: var(--nx-space-md); margin-top: var(--nx-space-sm); font-size: var(--nx-fs-xs); color: var(--nx-text-muted); }
.nx-author-stats span { display: flex; align-items: center; gap: 3px; }
.nx-author-social-links { display: flex; gap: var(--nx-space-sm); margin-top: var(--nx-space-sm); }
.nx-author-social-link { color: var(--nx-text-muted); font-size: var(--nx-fs-xs); text-decoration: none; padding: 3px 8px; border: 1px solid var(--nx-border); border-radius: var(--nx-radius-sm); transition: all var(--nx-transition); }
.nx-author-social-link:hover { color: var(--nx-primary); border-color: var(--nx-primary); }

/* ==========================================================================
   55. COUNTDOWN TIMER
   ========================================================================== */
.nx-countdown { text-align: center; margin: var(--nx-space-xl) 0; padding: var(--nx-space-xl); background: var(--nx-bg-footer); color: var(--nx-text-inverse); border-radius: var(--nx-radius-lg); }
.nx-countdown__label { font-size: var(--nx-fs-sm); text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--nx-space-md); opacity: 0.85; }
.nx-countdown__timer { display: flex; align-items: center; justify-content: center; gap: var(--nx-space-xs); margin-bottom: var(--nx-space-lg); }
.nx-countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 70px; }
.nx-countdown__num { font-size: 3rem; font-weight: var(--nx-fw-bold); line-height: 1; background: rgba(255,255,255,0.1); border-radius: var(--nx-radius); padding: 8px 12px; min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; }
.nx-countdown__unit-label { font-size: var(--nx-fs-xs); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; opacity: 0.7; }
.nx-countdown__sep { font-size: 2rem; font-weight: bold; margin-top: -16px; opacity: 0.5; }
.nx-countdown__cta { margin-top: var(--nx-space-md); font-size: var(--nx-fs-md) !important; padding: 14px 36px !important; }
.nx-countdown__expired { color: rgba(255,255,255,0.8); font-size: var(--nx-fs-sm); }
@media (max-width: 480px) { .nx-countdown__num { font-size: 2rem; min-width: 52px; } }

/* ==========================================================================
   56. TRUST BADGES
   ========================================================================== */
.nx-trust-badges { display: flex; flex-wrap: wrap; gap: var(--nx-space-md); margin: var(--nx-space-lg) 0; }
.nx-trust-badges--center { justify-content: center; }
.nx-trust-badges--left { justify-content: flex-start; }
.nx-trust-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--nx-space-sm) var(--nx-space-md); background: var(--nx-bg-card); border: 1px solid var(--nx-border); border-radius: var(--nx-radius-md); min-width: 90px; text-align: center; transition: all var(--nx-transition); }
.nx-trust-badge:hover { border-color: var(--nx-primary); box-shadow: var(--nx-shadow); }
.nx-trust-badge__icon { font-size: 1.5rem; line-height: 1; }
.nx-trust-badge__text { font-size: var(--nx-fs-xs); font-weight: var(--nx-fw-semibold); color: var(--nx-text-secondary); line-height: 1.3; }

/* ==========================================================================
   57. STICKY CTA BAR
   ========================================================================== */
.nx-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--nx-z-toast);
  background: linear-gradient(90deg, var(--nx-secondary), #1a2535);
  color: var(--nx-text-inverse); padding: 12px var(--nx-space-lg);
  transform: translateY(100%); transition: transform 0.35s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
.nx-sticky-cta.visible { transform: translateY(0); }
.nx-sticky-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--nx-space-md); max-width: var(--nx-container); margin: 0 auto; flex-wrap: wrap; }
.nx-sticky-cta__text { flex: 1; min-width: 200px; }
.nx-sticky-cta__text strong { display: block; font-size: var(--nx-fs-sm); margin-bottom: 2px; }
.nx-sticky-cta__sub { font-size: var(--nx-fs-xs); opacity: 0.8; color: #f59e0b; font-weight: var(--nx-fw-semibold); }
.nx-sticky-cta__btn { white-space: nowrap; font-size: var(--nx-fs-sm) !important; padding: 10px 24px !important; flex-shrink: 0; }
.nx-sticky-cta__close { background: rgba(255,255,255,0.1); border: none; color: var(--nx-text-inverse); width: 28px; height: 28px; border-radius: var(--nx-radius-full); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background var(--nx-transition); }
.nx-sticky-cta__close:hover { background: rgba(255,255,255,0.25); }
@media (max-width: 600px) { .nx-sticky-cta__text { min-width: 0; } .nx-sticky-cta__text strong { font-size: var(--nx-fs-xs); } }

/* ==========================================================================
   58. READING LIST / BOOKMARKS
   ========================================================================== */
.nx-bookmark-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border: 1px solid var(--nx-border); border-radius: var(--nx-radius-full); background: none; cursor: pointer; font-size: var(--nx-fs-xs); font-family: var(--nx-font-primary); color: var(--nx-text-muted); transition: all var(--nx-transition); }
.nx-bookmark-btn:hover { border-color: var(--nx-primary); color: var(--nx-primary); }
.nx-bookmark-btn.saved { background: var(--nx-primary-light); border-color: var(--nx-primary); color: var(--nx-primary); }
.nx-bookmark-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.nx-bookmark-btn.saved svg { fill: var(--nx-primary); }

/* ==========================================================================
   59. POPULAR POSTS WIDGET
   ========================================================================== */
.nx-popular-widget { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--nx-space-sm); }
.nx-popular-widget__item { display: flex; align-items: flex-start; gap: var(--nx-space-sm); }
.nx-popular-widget__thumb { flex-shrink: 0; width: 60px; height: 60px; border-radius: var(--nx-radius-sm); overflow: hidden; display: block; }
.nx-popular-widget__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nx-popular-widget__info { flex: 1; }
.nx-popular-widget__title { display: block; font-size: var(--nx-fs-sm); font-weight: var(--nx-fw-semibold); color: var(--nx-text); text-decoration: none; line-height: 1.4; margin-bottom: 3px; }
.nx-popular-widget__title:hover { color: var(--nx-primary); }
.nx-popular-widget__views { font-size: var(--nx-fs-xs); color: var(--nx-text-muted); }

/* ==========================================================================
   60. LEGAL PAGE TEMPLATE
   ========================================================================== */
.nx-legal-page__header { margin-bottom: var(--nx-space-xl); padding-bottom: var(--nx-space-lg); border-bottom: 1px solid var(--nx-border); }
.nx-legal-page__title { font-size: var(--nx-fs-3xl); margin-bottom: var(--nx-space-sm); }
.nx-legal-page__meta { font-size: var(--nx-fs-sm); color: var(--nx-text-muted); margin: 0; }
.nx-legal-page__content { max-width: var(--nx-content-width); }
.nx-legal-page__content h2 { font-size: var(--nx-fs-xl); margin-top: var(--nx-space-2xl); border-bottom: 1px solid var(--nx-border); padding-bottom: var(--nx-space-sm); }
.nx-legal-page__content h3 { font-size: var(--nx-fs-lg); margin-top: var(--nx-space-xl); }

/* ==========================================================================
   56. CONTACT PAGE FORM
   ========================================================================== */
.nx-contact-wrap { max-width: 680px; }
.nx-contact-form { display: flex; flex-direction: column; gap: var(--nx-space-lg); }
.nx-contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--nx-space-lg); }
.nx-contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.nx-contact-form__field label { font-size: var(--nx-fs-sm); font-weight: var(--nx-fw-semibold); color: var(--nx-text); }
.nx-contact-form__field label span { color: var(--nx-error); }
.nx-contact-form__field input,
.nx-contact-form__field textarea {
  width: 100%; padding: 12px var(--nx-space-md);
  border: 1px solid var(--nx-border-input); border-radius: var(--nx-radius);
  background: var(--nx-bg-input); color: var(--nx-text);
  font-family: var(--nx-font-primary); font-size: var(--nx-fs-base);
  transition: border-color var(--nx-transition), box-shadow var(--nx-transition);
}
.nx-contact-form__field input:focus,
.nx-contact-form__field textarea:focus {
  outline: none; border-color: var(--nx-border-focus);
  box-shadow: 0 0 0 3px var(--nx-primary-light);
}
.nx-contact-form__field textarea { resize: vertical; min-height: 160px; line-height: var(--nx-lh-relaxed); }
.nx-contact-form__submit { display: flex; align-items: center; gap: var(--nx-space-md); }
@media (max-width: 600px) { .nx-contact-form__row { grid-template-columns: 1fr; } }
