/* ==========================================================================
   CyberShield — Main Design System Stylesheet
   Version: 1.0.0
   Architecture: CSS Custom Properties + BEM + Utility Classes
   Target: < 100KB | No framework dependency
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS — CSS Custom Properties
   ========================================================================== */

:root {
  /* ── Dark Mode (default) ─────────────────────────────────── */
  --color-bg:           #0a0e1a;
  --color-surface:      #111827;
  --color-surface-2:    #1a2235;
  --color-surface-3:    #243048;
  --color-border:       #1e2d47;
  --color-border-light: #2a3a56;

  --color-text-primary:   #e8eaf2;
  --color-text-secondary: #9aa5b8;
  --color-text-muted:     #5a6a84;
  --color-text-inverse:   #0a0e1a;

  --color-accent:       #00ff9d;
  --color-accent-dark:  #00cc7a;
  --color-accent-glow:  rgba(0, 255, 157, 0.12);
  --color-accent-glow2: rgba(0, 255, 157, 0.25);

  --color-blue:         #1a73e8;
  --color-blue-light:   #4da3ff;
  --color-blue-dark:    #1557b0;

  --color-red:          #ff4757;
  --color-red-soft:     rgba(255, 71, 87, 0.12);
  --color-yellow:       #ffd32a;
  --color-yellow-soft:  rgba(255, 211, 42, 0.12);
  --color-purple:       #a55eea;
  --color-orange:       #ff6b35;

  --color-card-bg:      #111827;
  --color-card-hover:   #162030;
  --color-code-bg:      #0d1117;
  --color-nav-bg:       #0d1220;
  --color-footer-bg:    #060910;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lg:    0 10px 40px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.4);
  --shadow-accent: 0 0 20px rgba(0, 255, 157, 0.2);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-card-hover: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,255,157,0.1);

  --overlay-dark: rgba(10, 14, 26, 0.75);
  --overlay-darker: rgba(10, 14, 26, 0.92);

  /* ── Typography ──────────────────────────────────────────── */
  --font-primary:   'Inter', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Source Sans Pro', 'Segoe UI', sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px — body default */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  1.875rem;   /* 30px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  3.75rem;    /* 60px */

  --line-height-tight:  1.25;
  --line-height-snug:   1.4;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
  --line-height-loose:  2;

  --font-weight-normal:    400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-extrabold: 800;

  /* ── Spacing ─────────────────────────────────────────────── */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* ── Layout ──────────────────────────────────────────────── */
  --container-width:      1240px;
  --content-width:        760px;
  --sidebar-width:        340px;
  --nav-height:           64px;
  --nav-height-mobile:    56px;
  --border-radius-sm:     6px;
  --border-radius:        10px;
  --border-radius-lg:     16px;
  --border-radius-xl:     24px;
  --border-radius-full:   9999px;

  /* ── Transitions ─────────────────────────────────────────── */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-Index ─────────────────────────────────────────────── */
  --z-below:    -1;
  --z-base:      0;
  --z-above:    10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-fixed:    300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ── Light Mode Override ─────────────────────────────────────── */
[data-theme="light"] {
  --color-bg:           #f4f6fb;
  --color-surface:      #ffffff;
  --color-surface-2:    #f0f2f8;
  --color-surface-3:    #e4e8f4;
  --color-border:       #dde3ee;
  --color-border-light: #eaecf5;

  --color-text-primary:   #0f172a;
  --color-text-secondary: #4a5568;
  --color-text-muted:     #8896b0;
  --color-text-inverse:   #ffffff;

  --color-accent:       #007a4a;
  --color-accent-dark:  #005c38;
  --color-accent-glow:  rgba(0, 122, 74, 0.10);
  --color-accent-glow2: rgba(0, 122, 74, 0.20);

  --color-card-bg:      #ffffff;
  --color-card-hover:   #f7f9ff;
  --color-code-bg:      #f1f3f8;
  --color-nav-bg:       #ffffff;
  --color-footer-bg:    #0f172a;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:    0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-accent: 0 0 20px rgba(0, 122, 74, 0.15);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 8px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,122,74,0.12);

  --overlay-dark: rgba(15, 23, 42, 0.65);
  --overlay-darker: rgba(15, 23, 42, 0.88);
}

/* ==========================================================================
   2. FONT FACE — Self-hosted (Core Web Vitals: no external DNS lookup)
   ========================================================================== */

/* Google Fonts fallback — loaded via inc/enqueue.php */

/* ==========================================================================
   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%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  transition: background-color var(--transition-slow), color var(--transition-slow);
  min-height: 100vh;
  padding-top: var(--nav-height);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h2 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
h3 { font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); font-weight: var(--font-weight-semibold); }

p { margin-bottom: var(--space-6); color: var(--color-text-secondary); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}
a:hover { opacity: 0.85; }
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

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

ul, ol { padding-left: var(--space-6); }
li { margin-bottom: var(--space-2); color: var(--color-text-secondary); }

blockquote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--color-accent-glow);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  color: var(--color-text-primary);
}

blockquote cite { font-size: var(--text-sm); color: var(--color-text-muted); font-style: normal; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-code-bg);
  color: var(--color-accent);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

pre {
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-6);
  overflow-x: auto;
  margin: var(--space-8) 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-sm);
  color: #a8b6c8;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-10) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-8) 0;
  font-size: var(--text-sm);
}

th, td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  text-align: left;
}

th {
  background: var(--color-surface-2);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

tr:nth-child(even) td { background: var(--color-surface-2); }

/* ==========================================================================
   4. LAYOUT — Container & Grid
   ========================================================================== */

.cs-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.cs-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-10);
  align-items: start;
}

.cs-layout--full { grid-template-columns: 1fr; }

.cs-main { min-width: 0; }
.cs-sidebar { position: sticky; top: calc(var(--nav-height) + var(--space-6)); }

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

.cs-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  height: var(--nav-height);
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-base);
}

.cs-nav.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--color-nav-bg);
}

[data-theme="light"] .cs-nav { box-shadow: 0 1px 0 var(--color-border); }

.cs-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

.cs-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
  max-height: calc(var(--nav-height) - 20px);
  overflow: hidden;
}

/* ── Fix WordPress custom logo image size ── */
.cs-nav__logo img,
.cs-nav__logo .custom-logo,
.cs-nav__logo .custom-logo-link img {
  height: 40px !important;
  width: auto !important;
  max-height: 40px !important;
  max-width: 200px !important;
  display: block;
  object-fit: contain;
}

.cs-nav__logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-blue));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-extrabold);
  color: #0a0e1a;
  letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
}

.cs-nav__logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15));
}

.cs-nav__logo-text {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cs-nav__logo-text span { color: var(--color-accent); }

.cs-nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-nav__menu > li { position: relative; }

.cs-nav__menu > li > a {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  border-radius: var(--border-radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.cs-nav__menu > li > a:hover,
.cs-nav__menu > li.current-menu-item > a {
  color: var(--color-text-primary);
  background: var(--color-surface-2);
}

/* Dropdown */
.cs-nav__dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  list-style: none;
  z-index: var(--z-dropdown);
}

.cs-nav__menu > li:hover .cs-nav__dropdown,
.cs-nav__menu > li:focus-within .cs-nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.cs-nav__dropdown li a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.cs-nav__dropdown li a:hover {
  color: var(--color-accent);
  background: var(--color-surface-2);
  padding-left: var(--space-4);
}

/* Nav Right Actions */
.cs-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cs-nav__search-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cs-nav__search-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ── Theme Toggle ──────────────────────────────────────────────── */
.cs-theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 3px;
}

.cs-theme-toggle:hover {
  border-color: var(--color-accent);
}

.cs-theme-toggle__track {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.cs-theme-toggle__thumb {
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-blue));
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

[data-theme="light"] .cs-theme-toggle__thumb {
  transform: translateX(28px);
}

.cs-theme-toggle__icon-dark,
.cs-theme-toggle__icon-light {
  position: absolute;
  font-size: 12px;
  transition: opacity var(--transition-base);
  line-height: 1;
}

.cs-theme-toggle__icon-dark  { left: 6px;  opacity: 1; }
.cs-theme-toggle__icon-light { right: 6px; opacity: 0.5; }

[data-theme="light"] .cs-theme-toggle__icon-dark  { opacity: 0.5; }
[data-theme="light"] .cs-theme-toggle__icon-light { opacity: 1; }

/* Mobile hamburger */
.cs-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.cs-nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.cs-nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.cs-nav__hamburger.active span:nth-child(2) { opacity: 0; }
.cs-nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav drawer — uses visibility (not display:none) so CSS
   transitions work. display:none prevents transition playback. */
.cs-nav__mobile-menu {
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  z-index: var(--z-fixed);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-6);
  transform: translateX(-100%);
  transition: transform var(--transition-slow), visibility var(--transition-slow);
}

.cs-nav__mobile-menu.open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* Scrim backdrop */
.cs-mobile-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: rgba(0, 0, 0, 0.6);
  z-index: calc(var(--z-fixed) - 1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cs-mobile-backdrop.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile menu close button */
.cs-mobile-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.cs-mobile-close__btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.cs-mobile-close__btn:hover {
  background: var(--color-surface-3);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Sub-menu chevron toggle button */
.cs-submenu-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all 0.15s ease;
  flex-shrink: 0;
  margin-left: auto;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.cs-submenu-toggle svg {
  transition: transform 0.2s ease;
}

.cs-submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.cs-submenu-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Breaking/Latest News Ticker */
.cs-ticker {
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
  position: sticky;
  top: var(--nav-height);
  z-index: 290;
  margin: 0;
}

.cs-ticker__label {
  padding: 0 var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  background: var(--color-accent-glow2);
  color: var(--color-accent);
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-right: 1px solid var(--color-border);
}

.cs-ticker__track {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.cs-ticker__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 var(--space-5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
}

.cs-ticker__item.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cs-ticker__item.exit {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
}

.cs-ticker__item a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.cs-ticker__item a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.cs-hero {
  margin-top: var(--nav-height);
  padding: var(--space-10) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="light"] .cs-hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 100%);
}

.cs-hero__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-8);
  align-items: stretch;
}

/* Featured hero post */
.cs-hero__featured {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--color-surface-2);
}

.cs-hero__featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.cs-hero__featured:hover .cs-hero__featured-img { transform: scale(1.03); }

.cs-hero__featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--overlay-darker) 0%, rgba(10,14,26,0.4) 50%, transparent 100%);
}

.cs-hero__featured-content {
  position: relative;
  padding: var(--space-8);
}

.cs-hero__featured-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.cs-hero__featured-title {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  color: #ffffff;
  margin-bottom: var(--space-3);
  line-height: var(--line-height-snug);
}

.cs-hero__featured-title a { color: inherit; }
.cs-hero__featured-title a:hover { color: var(--color-accent); }

.cs-hero__featured-excerpt {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-base);
  line-height: var(--line-height-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero sidebar posts */
.cs-hero__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cs-hero__sidebar-post {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  text-decoration: none;
}

.cs-hero__sidebar-post:hover {
  border-color: var(--color-accent);
  background: var(--color-card-hover);
  box-shadow: var(--shadow-accent);
  transform: translateX(3px);
}

.cs-hero__sidebar-img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
}

.cs-hero__sidebar-content { flex: 1; min-width: 0; }

.cs-hero__sidebar-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--line-height-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-1);
}

/* ==========================================================================
   7. BADGE / TAG / META COMPONENTS
   ========================================================================== */

.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-2);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--border-radius-sm);
  line-height: 1;
}

.cs-badge--accent   { background: var(--color-accent-glow2); color: var(--color-accent); }
.cs-badge--red      { background: var(--color-red-soft); color: var(--color-red); }
.cs-badge--blue     { background: rgba(26,115,232,0.15); color: var(--color-blue-light); }
.cs-badge--yellow   { background: var(--color-yellow-soft); color: var(--color-yellow); }
.cs-badge--purple   { background: rgba(165,94,234,0.15); color: var(--color-purple); }
.cs-badge--breaking { background: var(--color-red); color: #fff; animation: pulse-badge 2s infinite; }

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

.cs-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cs-meta a { color: var(--color-text-muted); }
.cs-meta a:hover { color: var(--color-accent); }

.cs-meta__sep { opacity: 0.3; }

.cs-read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ==========================================================================
   8. POST CARD
   ========================================================================== */

.cs-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-border-light);
}

.cs-card__thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-surface-2);
}

.cs-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.cs-card:hover .cs-card__img { transform: scale(1.05); }

.cs-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--z-above);
}

.cs-card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cs-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.cs-card__title a { color: inherit; }
.cs-card:hover .cs-card__title a { color: var(--color-accent); }

.cs-card__excerpt {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: var(--space-4);
}

.cs-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.cs-card__read-more {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition-fast);
}

.cs-card:hover .cs-card__read-more { gap: var(--space-2); }

/* Card Grid Layouts */
.cs-grid {
  display: grid;
  gap: var(--space-6);
}

.cs-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cs-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cs-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Featured card (spans 2 cols) */
.cs-grid--featured {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
}

.cs-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  flex-direction: row;
  min-height: 360px;
}

.cs-card--featured .cs-card__thumbnail {
  width: 55%;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.cs-card--featured .cs-card__body { padding: var(--space-8); }
.cs-card--featured .cs-card__title { font-size: var(--text-2xl); }
.cs-card--featured .cs-card__excerpt { -webkit-line-clamp: 5; }

/* List card (horizontal compact) */
.cs-card--list {
  flex-direction: row;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--border-radius);
}

.cs-card--list .cs-card__thumbnail {
  width: 120px;
  height: 90px;
  aspect-ratio: auto;
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
}

.cs-card--list .cs-card__body { padding: 0; }
.cs-card--list .cs-card__title { font-size: var(--text-base); margin-bottom: var(--space-1); }
.cs-card--list .cs-card__footer { border: none; padding: 0; margin-top: var(--space-2); }

/* ==========================================================================
   9. SECTION HEADERS
   ========================================================================== */

.cs-section {
  padding: var(--space-16) 0;
}

.cs-section--sm { padding: var(--space-10) 0; }

.cs-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
}

.cs-section-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cs-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 28px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-blue));
  border-radius: 2px;
}

.cs-section-link {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  white-space: nowrap;
}

/* ==========================================================================
   10. SINGLE POST — Article Layout
   ========================================================================== */

.cs-article {
  margin-top: calc(var(--nav-height) + var(--space-8));
}

.cs-article__header { margin-bottom: var(--space-8); }

.cs-article__category-badge {
  display: inline-flex;
  margin-bottom: var(--space-4);
}

.cs-article__title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  line-height: var(--line-height-snug);
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
  letter-spacing: -0.025em;
}

.cs-article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.cs-article__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cs-article__author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
}

.cs-article__author-name {
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
}

.cs-article__author-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.cs-article__featured-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-8);
}

/* Article content typography */
.cs-article__content {
  font-family: var(--font-secondary);
  font-size: var(--text-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  max-width: var(--content-width);
}

.cs-article__content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.cs-article__content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.cs-article__content h4 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.cs-article__content p { margin-bottom: var(--space-6); }

.cs-article__content ul, .cs-article__content ol {
  margin-bottom: var(--space-6);
}

.cs-article__content li { margin-bottom: var(--space-2); }

.cs-article__content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cs-article__content strong { color: var(--color-text-primary); font-weight: var(--font-weight-semibold); }

.cs-toc {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 2rem 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cs-toc:hover {
  border-color: rgba(0, 255, 157, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cs-toc__title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  outline: none;
}

.cs-toc__title:focus-visible {
  color: var(--color-accent);
}

.cs-toc__toggle {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.cs-toc.is-collapsed .cs-toc__toggle {
  transform: rotate(180deg);
}

.cs-toc__list {
  list-style: none;
  padding: 0;
  counter-reset: toc-counter;
  max-height: 1500px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.cs-toc.is-collapsed .cs-toc__list {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.cs-toc__list > li {
  counter-increment: toc-counter;
  margin-bottom: var(--space-2);
}

.cs-toc__list a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  transition: color var(--transition-fast);
  line-height: var(--line-height-snug);
  text-decoration: none;
}

.cs-toc__list > li > a::before {
  content: counter(toc-counter, decimal-leading-zero) ".";
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-xs);
  flex-shrink: 0;
  padding-top: 2px;
}

.cs-toc__list a:hover { color: var(--color-accent); }
.cs-toc__list a.active { color: var(--color-accent); font-weight: var(--font-weight-semibold); }

.cs-toc__sublist {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: 0.375rem;
  border-left: 1px solid var(--color-border);
  margin-left: 6px;
}

.cs-toc__sublist li {
  margin-bottom: 0.375rem;
}

.cs-toc__sublist a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.cs-toc__sublist a::before {
  content: "—";
  color: var(--color-border);
  font-size: 0.75rem;
  margin-right: 6px;
  flex-shrink: 0;
}

/* Fallback server-rendered subitems */
.cs-toc__subitem {
  margin-bottom: var(--space-2);
  padding-left: 1.25rem;
}

.cs-toc__subitem a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.cs-toc__subitem a::before {
  content: "—" !important;
  color: var(--color-border) !important;
  font-size: 0.75rem !important;
  margin-right: 6px;
}

/* ==========================================================================
   11. BREADCRUMB
   ========================================================================== */

.cs-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.cs-breadcrumb a { color: var(--color-text-muted); }
.cs-breadcrumb a:hover { color: var(--color-accent); }

.cs-breadcrumb__sep { opacity: 0.4; }
.cs-breadcrumb__current { color: var(--color-text-secondary); }

/* ==========================================================================
   12. AUTHOR BOX
   ========================================================================== */

.cs-author-box {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  margin: var(--space-10) 0;
}

.cs-author-box__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent);
  flex-shrink: 0;
}

.cs-author-box__name {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-1);
}

.cs-author-box__role {
  font-size: var(--text-sm);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  font-weight: var(--font-weight-semibold);
}

.cs-author-box__bio {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

.cs-author-box__social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.cs-author-box__social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.cs-author-box__social a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ==========================================================================
   13. RELATED POSTS
   ========================================================================== */

.cs-related { margin: var(--space-10) 0; }

.cs-related__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
}

/* ==========================================================================
   14. FAQ SECTION
   ========================================================================== */

.cs-faq { margin: var(--space-10) 0; }

.cs-faq__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-6);
}

.cs-faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.cs-faq__question {
  width: 100%;
  background: var(--color-surface-2);
  border: none;
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  transition: background var(--transition-fast);
}

.cs-faq__question:hover { background: var(--color-surface-3); }

.cs-faq__question[aria-expanded="true"] { color: var(--color-accent); }

.cs-faq__icon {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  transition: transform var(--transition-base);
}

.cs-faq__question[aria-expanded="true"] .cs-faq__icon { transform: rotate(45deg); }

.cs-faq__answer {
  padding: 0 var(--space-5);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-base);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.cs-faq__answer.open {
  max-height: 400px;
  padding: var(--space-4) var(--space-5);
}

/* ==========================================================================
   15. AD CONTAINERS (CLS-safe reserved spaces)
   ========================================================================== */

.cs-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

/* Label */
.cs-ad::before {
  content: 'Advertisement';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.6;
  pointer-events: none;
}

/* Slot sizes — prevent CLS */
.cs-ad--leaderboard { min-height: 90px; width: 100%; }
.cs-ad--rectangle   { min-height: 250px; max-width: 336px; width: 100%; }
.cs-ad--halfpage    { min-height: 600px; max-width: 300px; width: 100%; }
.cs-ad--banner      { min-height: 50px; width: 100%; }
.cs-ad--in-content  { min-height: 250px; width: 100%; margin: var(--space-8) auto; max-width: 336px; }

.cs-ad--below-title    { margin: 0 0 var(--space-8); }
.cs-ad--after-content  { margin: var(--space-8) 0 0; }

/* Sticky sidebar ad */
.cs-ad--sidebar-sticky {
  position: relative;
  min-height: 600px;
  max-width: 300px;
  width: 100%;
}

/* Mobile sticky bottom */
.cs-ad--mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  min-height: 50px;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

/* Ad blocker resilience styling */
.cs-ad:empty {
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cs-ad:empty::after {
  content: 'Sponsored Link';
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* ── Ad wrapper: label + slot ────────────────────────────────*/
.cs-ad-wrap {
  margin: var(--space-6) 0;
}

/* Visible "Advertisement" label — AdSense policy compliance */
.cs-ad-label {
  display: block;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.55;
  margin-bottom: 3px;
  user-select: none;
  pointer-events: none;
}

/* Prevent duplicate advertisement labels when both HTML label and CSS pseudo-element exist */
.cs-ad-label + .cs-ad::before,
.cs-ad[data-activated="1"]::before {
  content: none !important;
}

/* Close button on sticky ad */
.cs-ad-close-btn {
  position: absolute;
  top: 4px;
  right: 8px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.2);
  color: #ccc;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 0;
}
.cs-ad-close-btn:hover { background: rgba(0,0,0,.8); color: #fff; }

/* Wrapper for sticky bottom ad */
.cs-ad-wrap[data-scroll-gate] {
  display: none;
  margin: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  flex-direction: column;
  align-items: center;
  padding: 4px 0 0;
}

@media (max-width: 768px) {
  .cs-ad-wrap[data-scroll-gate] {
    display: flex;
  }
}


/* ==========================================================================
   16. SIDEBAR WIDGETS
   ========================================================================== */

.cs-sidebar { width: var(--sidebar-width); flex-shrink: 0; }

.cs-widget {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.cs-widget__title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Search widget */
.cs-widget-search { display: flex; gap: var(--space-2); }

.cs-input {
  flex: 1;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  transition: border-color var(--transition-fast);
  outline: none;
}

.cs-input:focus { border-color: var(--color-accent); }
.cs-input::placeholder { color: var(--color-text-muted); }

/* Popular posts widget */
.cs-widget-posts__item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}

.cs-widget-posts__item:last-child { border-bottom: none; }

.cs-widget-posts__num {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-border);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  font-variant-numeric: tabular-nums;
}

.cs-widget-posts__title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--line-height-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.cs-widget-posts__item:hover .cs-widget-posts__title { color: var(--color-accent); }

/* Categories widget */
.cs-widget-cats__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
  margin-bottom: var(--space-1);
}

.cs-widget-cats__item:hover {
  background: var(--color-surface-2);
  color: var(--color-accent);
}

.cs-widget-cats__count {
  background: var(--color-surface-2);
  border-radius: var(--border-radius-full);
  padding: 1px 8px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Newsletter widget */
.cs-widget-newsletter { text-align: center; }

.cs-widget-newsletter__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}

.cs-widget-newsletter p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.cs-widget-newsletter form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ==========================================================================
   17. BUTTONS
   ========================================================================== */

.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.cs-btn--primary {
  background: var(--color-accent);
  color: #0a0e1a;
}

.cs-btn--primary:hover {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
  opacity: 1;
}

.cs-btn--secondary {
  background: var(--color-surface-2);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.cs-btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cs-btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.cs-btn--ghost:hover { color: var(--color-accent); border-color: var(--color-accent); }

.cs-btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.cs-btn--outline:hover {
  background: rgba(0, 255, 157, 0.08);
  color: var(--color-accent);
  border-color: var(--color-accent-dark);
}

.cs-btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.cs-btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.cs-btn--full { width: 100%; }

/* ==========================================================================
   18. SEARCH OVERLAY
   ========================================================================== */

.cs-search-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-darker);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(8px);
}

.cs-search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cs-search-overlay__box {
  width: 100%;
  max-width: 640px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(-16px) scale(0.97);
  transition: transform var(--transition-bounce);
}

.cs-search-overlay.open .cs-search-overlay__box {
  transform: translateY(0) scale(1);
}

.cs-search-overlay__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  outline: none;
}

/* ==========================================================================
   19. PAGINATION
   ========================================================================== */

.cs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-8) 0;
}

.cs-pagination a,
.cs-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.cs-pagination a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cs-pagination .current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #0a0e1a;
}

/* ==========================================================================
   20. FOOTER
   ========================================================================== */

.cs-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
}

.cs-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.cs-footer__brand { max-width: 320px; }

.cs-footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.cs-footer__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-5);
}

.cs-footer__social {
  display: flex;
  gap: var(--space-2);
}

.cs-footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.cs-footer__social a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
}

.cs-footer__col-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.cs-footer__links {
  list-style: none;
  padding: 0;
}

.cs-footer__links li { margin-bottom: var(--space-2); }

.cs-footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.cs-footer__links a:hover { color: var(--color-accent); }

.cs-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cs-footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cs-footer__bottom-links {
  display: flex;
  gap: var(--space-4);
}

.cs-footer__bottom-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   21. THREAT LEVEL INDICATOR
   ========================================================================== */

.cs-threat {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-6);
}

.cs-threat__level {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cs-threat__bar {
  flex: 1;
  height: 6px;
  background: var(--color-surface-3);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.cs-threat__fill {
  height: 100%;
  border-radius: var(--border-radius-full);
  transition: width 1s ease;
}

.cs-threat--critical .cs-threat__fill { width: 95%; background: var(--color-red); }
.cs-threat--high     .cs-threat__fill { width: 72%; background: var(--color-orange); }
.cs-threat--medium   .cs-threat__fill { width: 50%; background: var(--color-yellow); }
.cs-threat--low      .cs-threat__fill { width: 25%; background: var(--color-accent); }

/* ==========================================================================
   22. UTILITY CLASSES
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-accent   { color: var(--color-accent); }
.text-muted    { color: var(--color-text-muted); }
.text-primary  { color: var(--color-text-primary); }

.mt-0  { margin-top: 0; }
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }

.flex        { display: flex; }
.items-center { align-items: center; }
.gap-3       { gap: var(--space-3); }
.gap-4       { gap: var(--space-4); }

/* ==========================================================================
   23. RESPONSIVE — Mobile First
   ========================================================================== */

@media (max-width: 1200px) {
  :root { --sidebar-width: 300px; }
  .cs-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .cs-hero__grid         { grid-template-columns: 1fr; }
  .cs-hero__sidebar      { grid-template-columns: repeat(2, 1fr); display: grid; gap: var(--space-3); }
  .cs-footer__grid       { grid-template-columns: repeat(2, 1fr); }
  .cs-layout             { grid-template-columns: 1fr; }
  .cs-sidebar            { position: static; width: 100%; }
  .cs-ad--sidebar-sticky { position: static; max-width: 100%; min-height: 90px; }
  .cs-card--featured     { flex-direction: column; }
  .cs-card--featured .cs-card__thumbnail { width: 100%; aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  :root {
    --nav-height: var(--nav-height-mobile);
  }

  .cs-nav__menu,
  .cs-nav__menu-wrap  { display: none; }
  .cs-nav__hamburger  { display: flex !important; }

  .cs-nav__mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .cs-nav__mobile-list > li {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .cs-nav__mobile-list > li > a {
    flex: 1;
    display: block;
    padding: var(--space-4) var(--space-2);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .cs-nav__mobile-list > li > a:hover { color: var(--color-accent); }

  .cs-nav__mobile-list .sub-menu {
    display: none;
    width: 100%;
    list-style: none;
    padding: 0 0 0 var(--space-4);
    margin: 0;
    border-left: 2px solid var(--color-accent);
    background: var(--color-surface-2);
  }

  .cs-nav__mobile-list .sub-menu.open {
    display: block;
  }

  .cs-nav__mobile-list .sub-menu li a {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-3);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-normal);
    border-bottom: 1px solid var(--color-border);
  }

  .cs-grid--3,
  .cs-grid--featured { grid-template-columns: repeat(2, 1fr); }

  .cs-card--featured { grid-column: span 2; }

  .cs-hero__sidebar { grid-template-columns: 1fr; }

  .cs-footer__grid { grid-template-columns: 1fr; }

  .cs-author-box { flex-direction: column; text-align: center; }
  .cs-author-box__social { justify-content: center; }

  .cs-ad--mobile-sticky { display: flex; }

  .cs-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* Forum layout */
  .cs-forum-layout {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  /* Topic card */
  .cs-topic-card {
    grid-template-columns: auto 1fr;
    padding: 1rem;
  }

  /* Forum header */
  .cs-forum-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .cs-forum-header__nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    width: 100%;
  }

  .cs-forum-header__nav::-webkit-scrollbar {
    display: none;
  }

  .cs-forum-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .cs-forum-header__actions > *:last-child {
    margin-left: auto;
  }

  .cs-forum-tab {
    padding: .35rem .6rem;
    font-size: .8125rem;
  }
}

@media (max-width: 640px) {
  .cs-grid--3,
  .cs-grid--2,
  .cs-grid--featured { grid-template-columns: 1fr; }

  .cs-card--featured { grid-column: span 1; }

  .cs-container { padding: 0 var(--space-4); }

  .cs-hero { padding: var(--space-6) 0; }
  .cs-hero__featured { min-height: 320px; }

  .cs-article__meta { gap: var(--space-2); }

  .cs-section { padding: var(--space-10) 0; }

  .cs-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .cs-theme-toggle { width: 52px; height: 26px; }
}

@media (max-width: 480px) {
  :root {
    --nav-height: var(--nav-height-mobile); /* 56px on mobile */
  }

  .cs-nav__actions {
    gap: var(--space-2);
  }

  /* Hide search button text on tiny screens */
  .cs-nav__search-btn { width: 32px; height: 32px; }

  /* Theme toggle smaller */
  .cs-theme-toggle {
    width: 50px;
    height: 26px;
  }

  [data-theme="light"] .cs-theme-toggle__thumb {
    transform: translateX(22px);
  }

  /* Profile hero stacks */
  .cs-profile-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
  }

  /* New topic form grid */
  .cs-new-topic-form > .cs-form-group > div[style*="grid"] {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   24. PRINT STYLES
   ========================================================================== */

@media print {
  .cs-nav,
  .cs-ticker,
  .cs-sidebar,
  .cs-ad,
  .cs-footer,
  .cs-related,
  .cs-nav__hamburger,
  .cs-forum-header,
  .cs-forum-sidebar,
  #cs-back-to-top,
  .cs-theme-toggle { display: none !important; }

  body {
    background: white;
    color: black;
    font-size: 12pt;
    padding-top: 0;
  }
  .cs-article__content { max-width: 100%; }
  a { color: black; text-decoration: underline; }
  .cs-article__title { font-size: 24pt; }
}

/* ==========================================================================
   25. SCROLL PROGRESS BAR
   ========================================================================== */

.cs-progress-bar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: var(--z-fixed);
  pointer-events: none;
}

.cs-progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-blue));
  width: 0%;
  transition: width 100ms linear;
}

/* ==========================================================================
   26. ANIMATIONS
   ========================================================================== */

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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



.cs-animate-in {
  animation: fade-in-up 0.5s ease forwards;
}



/* ==========================================================================
   27. DARK MODE SPECIFIC ACCENTS
   ========================================================================== */

[data-theme="dark"] .cs-nav {
  background: rgba(13, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .cs-card {
  background: var(--color-surface);
}

[data-theme="dark"] .cs-widget {
  background: var(--color-surface);
}

/* ==========================================================================
   28. LIGHT MODE SPECIFIC
   ========================================================================== */

[data-theme="light"] .cs-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: #e4e8f4;
}

[data-theme="light"] .cs-article__content {
  color: #374151;
}

[data-theme="light"] pre {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

[data-theme="light"] pre code { color: #374151; }

[data-theme="light"] .cs-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
}

[data-theme="light"] .cs-badge--accent {
  background: rgba(0, 122, 74, 0.12);
  color: #007a4a;
}

/* ==========================================================================
   29. SKIP LINK (Accessibility)
   ========================================================================== */

.cs-skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-accent);
  color: #0a0e1a;
  padding: var(--space-2) var(--space-4);
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  z-index: var(--z-toast);
  transition: top var(--transition-fast);
}

.cs-skip-link:focus { top: 0; }

/* ==========================================================================
   30. NAV MENU WRAP — missing rules (required for layout)
   ========================================================================== */

.cs-nav__menu-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}



/* Forum pages and content areas need space below fixed nav */
.cs-forum-wrap,
.cs-hero,
.cs-article,
.cs-site-content > *:first-child {
  padding-top: 0; /* nav padding handled by body */
}

/* ==========================================================================
   31. THEME CLASS ALIASES (html.dark / html.light)
   Mirrors [data-theme] attribute selectors so both mechanisms work.
   The inline no-flash script sets BOTH data-theme attr AND the class.
   ========================================================================== */

/* ── Light mode aliases ── */
html.light { --color-bg:#f4f6fb;--color-surface:#ffffff;--color-surface-2:#f0f2f8;--color-surface-3:#e4e8f4;--color-border:#dde3ee;--color-border-light:#eaecf5;--color-text-primary:#0f172a;--color-text-secondary:#4a5568;--color-text-muted:#8896b0;--color-text-inverse:#ffffff;--color-accent:#007a4a;--color-accent-dark:#005c38;--color-accent-glow:rgba(0,122,74,.10);--color-accent-glow2:rgba(0,122,74,.20);--color-card-bg:#ffffff;--color-card-hover:#f7f9ff;--color-code-bg:#f1f3f8;--color-nav-bg:#ffffff;--color-footer-bg:#0f172a;--shadow-sm:0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.05);--shadow-md:0 4px 16px rgba(0,0,0,.10),0 2px 6px rgba(0,0,0,.06);--shadow-lg:0 10px 40px rgba(0,0,0,.12),0 4px 12px rgba(0,0,0,.06);--shadow-accent:0 0 20px rgba(0,122,74,.15);--shadow-card:0 4px 24px rgba(0,0,0,.08);--shadow-card-hover:0 8px 40px rgba(0,0,0,.12),0 0 0 1px rgba(0,122,74,.12);--overlay-dark:rgba(15,23,42,.65);--overlay-darker:rgba(15,23,42,.88); }
html.light .cs-nav { box-shadow: 0 1px 0 var(--color-border); }
html.light .cs-theme-toggle__thumb { transform: translateX(28px); }
html.light .cs-theme-toggle__icon-dark  { opacity: 0.5; }
html.light .cs-theme-toggle__icon-light { opacity: 1; }
html.light .cs-hero { background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 100%); }
html.light .cs-article__content { color: var(--color-text-primary); }
html.light pre { background: #f1f3f8; border-color: #dde3ee; }
html.light pre code { color: #374151; }
html.light .cs-footer { background: #0f172a; }
html.light .cs-badge--accent { background: rgba(0, 122, 74, 0.12); color: #007a4a; }
html.light .cs-nav { background: #ffffff; }

/* ── Dark mode aliases ── */
html.dark .cs-nav { background: rgba(13,18,32,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html.dark .cs-card { background: var(--color-surface); }
html.dark .cs-widget { background: var(--color-surface); }

/* ==========================================================================
   32. ANTI-ADBLOCK MODAL
   ========================================================================== */
.cs-ab-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important; /* Above everything */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem !important;
}

.cs-ab-modal__backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(10, 14, 26, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.cs-ab-modal__card {
  position: relative !important;
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--color-border) !important;
  border-radius: var(--border-radius-lg) !important;
  width: 100% !important;
  max-width: 480px !important;
  padding: var(--space-8) !important;
  text-align: center !important;
  z-index: 1 !important;
  animation: cs-ab-fade-in 0.4s var(--transition-bounce) !important;
}

[data-theme="light"] .cs-ab-modal__card {
  background: #ffffff !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15), 0 0 0 1px var(--color-border) !important;
}

.cs-ab-modal__icon {
  margin: 0 auto var(--space-5) !important;
  width: 80px !important;
  height: 80px !important;
  background: rgba(255, 71, 87, 0.1) !important;
  color: var(--color-red) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 71, 87, 0.2) !important;
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.15) !important;
}

.cs-ab-modal__title {
  font-size: var(--text-xl) !important;
  font-weight: var(--font-weight-extrabold) !important;
  color: var(--color-text-primary) !important;
  margin-bottom: 0.25rem !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
}

.cs-ab-modal__subtitle {
  font-size: var(--text-sm) !important;
  font-weight: var(--font-weight-bold) !important;
  color: var(--color-red) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4) !important;
}

.cs-ab-modal__desc {
  font-size: var(--text-sm) !important;
  line-height: var(--line-height-normal) !important;
  color: var(--color-text-secondary) !important;
  margin-bottom: var(--space-6) !important;
}

.cs-ab-modal__btn {
  width: 100% !important;
  padding: 0.875rem var(--space-6) !important;
  font-size: var(--text-sm) !important;
  border-radius: var(--border-radius) !important;
  background: var(--color-accent) !important;
  color: #0a0e1a !important;
  font-weight: var(--font-weight-bold) !important;
  border: none !important;
  cursor: pointer !important;
  transition: all var(--transition-base) !important;
}

.cs-ab-modal__btn:hover {
  background: var(--color-accent-dark) !important;
  box-shadow: var(--shadow-accent) !important;
  transform: translateY(-1px) !important;
}

@keyframes cs-ab-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

