/* Blog template shared CSS — extracted from blog-template.html
   to avoid duplicating ~19KB of CSS in every per-slug file. */


    /* Site design system — extracted from the existing site (matches the
       CSS variables used across the site so the blog inherits the same look). */
    :root {
      --primary: #6366f1;
      --primary-hover: #4f46e5;
      --accent: #a78bfa;
      --bg-page: #f3f4f6;
      --bg-panel: #ffffff;
      --text: #111827;
      --text-muted: #6b7280;
      --border: #e5e7eb;
      --header-h: 70px;
      --sidebar-w: 360px;
      --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
      --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
      --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
      --dm-bg-page: #0D1117;
      --dm-bg-panel: #1a202c;
      --dm-text: #E2E8F0;
      --dm-text-muted: #94a3b8;
      --dm-border: #334155;
    }
    [data-theme="dark"] {
      --bg-page: var(--dm-bg-page);
      --bg-panel: var(--dm-bg-panel);
      --text: var(--dm-text);
      --text-muted: var(--dm-text-muted);
      --border: var(--dm-border);
    }
    *, *::before, *::after { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }
    html { height: 100%; overflow-x: hidden; }
    body {
      margin: 0; padding: 0; height: 100vh;
      font-family: 'Poppins', sans-serif;
      background: var(--bg-page);
      color: var(--text);
      transition: background-color 0.3s, color 0.3s;
      display: flex; flex-direction: column;
      overflow: hidden;
    }
    a { text-decoration: none; color: inherit; transition: 0.2s; }
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background-color: var(--border); border-radius: 10px; }
    ::-webkit-scrollbar-thumb:hover { background-color: var(--primary); }

    /* ============================================================
       HEADER — 2026 MODERN TECH DESIGN
       Frosted glass header with animated gradient glow border,
       floating brand badge with 3D depth, pill nav with sliding
       indicator, micro-interaction buttons.
       ============================================================ */
    .app-header {
      height: var(--header-h);
      background: rgba(255,255,255,0.72);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      border-bottom: 1px solid rgba(99,102,241,0.08);
      display: flex; align-items: center;
      padding: 0 24px;
      z-index: 1000;
      position: relative;
      overflow: visible;
      flex-shrink: 0;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* Animated gradient glow line at bottom of header */
    .app-header::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(90deg,
        transparent 0%,
        rgba(99,102,241,0.4) 20%,
        rgba(14,165,233,0.4) 50%,
        rgba(139,92,246,0.4) 80%,
        transparent 100%);
      opacity: 0.6;
      transition: opacity 0.3s;
    }
    .app-header:hover::after { opacity: 1; }

    [data-theme="dark"] .app-header {
      background: rgba(13,17,23,0.72);
      border-bottom-color: rgba(99,102,241,0.15);
    }

    .header-inner {
      width: 100%; display: flex; align-items: center;
      justify-content: space-between; max-width: 1600px; margin: 0 auto;
      gap: 16px;
      overflow-x: clip;
      overflow-y: visible;
    }

    /* === BRAND: Floating 3D badge with gradient glow === */
    .brand-link {
      text-decoration: none;
      display: flex; align-items: center; gap: 11px;
      flex-shrink: 0;
      padding: 5px 16px 5px 5px;
      background: rgba(255,255,255,0.5);
      border: 1px solid rgba(99,102,241,0.10);
      border-radius: 50px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      position: relative;
    }
    [data-theme="dark"] .brand-link {
      background: rgba(26,32,44,0.5);
      border-color: rgba(99,102,241,0.20);
    }
    .brand-link:hover {
      background: rgba(255,255,255,0.7);
      border-color: rgba(99,102,241,0.30);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(99,102,241,0.12);
    }
    [data-theme="dark"] .brand-link:hover {
      background: rgba(26,32,44,0.7);
    }

    .brand-icon {
      width: 40px; height: 40px;
      background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #8b5cf6 100%);
      border-radius: 13px;
      display: flex; align-items: center; justify-content: center;
      color: #fff;
      box-shadow:
        0 4px 14px rgba(99,102,241,0.30),
        inset 0 1px 0 rgba(255,255,255,0.25);
      transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      flex-shrink: 0;
      position: relative;
    }
    /* Glow effect on brand icon */
    .brand-icon::before {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 15px;
      background: linear-gradient(135deg, #0ea5e9, #6366f1, #8b5cf6);
      z-index: -1;
      opacity: 0;
      filter: blur(8px);
      transition: opacity 0.3s;
    }
    .brand-link:hover .brand-icon {
      transform: rotate(-6deg) scale(1.08);
    }
    .brand-link:hover .brand-icon::before {
      opacity: 0.5;
    }

    .brand-text {
      font-family: 'Montserrat', sans-serif;
      font-size: 1.22rem; font-weight: 900;
      margin: 0;
      letter-spacing: -0.6px;
      white-space: nowrap;
      display: flex; align-items: baseline; gap: 4px;
    }
    .brand-text .bw-responsive {
      color: #0ea5e9;
      text-shadow: 0 0 20px rgba(14,165,233,0.15);
    }
    .brand-text .bw-testtool {
      color: #6366f1;
      opacity: 0.95;
      text-shadow: 0 0 20px rgba(99,102,241,0.15);
    }
    [data-theme="dark"] .brand-text .bw-responsive { color: #38bdf8; }
    [data-theme="dark"] .brand-text .bw-testtool  { color: #818cf8; }
    .brand-text-multiline { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
    .brand-subtitle { font-size: 0.9em; font-weight: 600; opacity: 0.9; }

    /* === NAV: Floating segmented control with sliding indicator === */
    .desktop-nav {
      margin: 0; position: relative; flex: 1;
      max-width: 640px;
    }
    #navCommandBar {
      display: flex; list-style: none; margin: 0; padding: 4px;
      background: rgba(99,102,241,0.04);
      border: 1px solid rgba(99,102,241,0.08);
      border-radius: 50px; gap: 2px;
      flex-wrap: nowrap; overflow-x: auto;
      scrollbar-width: none;
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      position: relative;
    }
    [data-theme="dark"] #navCommandBar {
      background: rgba(99,102,241,0.06);
      border-color: rgba(99,102,241,0.12);
    }
    #navCommandBar::-webkit-scrollbar { display: none; }
    #navCommandBar li { position: relative; z-index: 1; }

    #navCommandBar a {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 8px 16px; border-radius: 50px;
      font-size: 0.82rem; font-weight: 600;
      color: var(--text-muted); white-space: nowrap;
      transition: color 0.25s, background 0.25s;
      position: relative;
    }
    #navCommandBar a:hover {
      color: var(--primary);
      background: rgba(99,102,241,0.06);
    }
    #navCommandBar a.active {
      color: white;
      background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
      box-shadow:
        0 2px 12px rgba(99,102,241,0.30),
        inset 0 1px 0 rgba(255,255,255,0.15);
      font-weight: 700;
    }
    #navCommandBar a.active .nav-icon {
      color: white;
      animation: nav-icon-pulse 2s ease-in-out infinite;
    }
    @keyframes nav-icon-pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.15); }
    }
    .nav-icon { font-size: 0.85rem; transition: transform 0.2s; }
    #navCommandBar a:hover .nav-icon { transform: scale(1.1); }

    /* ===== BLOG-SPECIFIC BAR (hidden — removed per user request) ===== */
    .header-banner-slot { display: none; }
    .header-blog-bar { display: flex; }

    /* === HEADER ACTIONS === */
    .header-actions {
      display: flex; align-items: center; gap: 10px; flex-shrink: 0;
    }
    @media (max-width: 880px) {
      .desktop-nav { display: none; }
      .mobile-menu-btn { display: inline-flex; }
    }
    @media (max-width: 768px) {
      .lang-btn .lang-label,
      .lang-btn .lang-chevron { display: none; }
      .lang-btn { padding: 6px 8px; }
      .lang-btn .lang-flag { width: 22px; height: 16px; }
    }

    /* Shared glass button base — refined 2026 style */
    .glass-btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 8px 14px;
      background: rgba(99,102,241,0.05);
      border: 1px solid rgba(99,102,241,0.12);
      border-radius: 50px;
      color: var(--text); font-size: 0.82rem; font-weight: 600;
      cursor: pointer; font-family: inherit;
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      text-decoration: none;
    }
    .glass-btn:hover {
      background: rgba(99,102,241,0.10);
      border-color: rgba(99,102,241,0.25);
      transform: translateY(-1px);
      box-shadow: 0 4px 16px rgba(99,102,241,0.10);
    }
    .glass-btn i, .glass-btn svg { font-size: 0.85rem; color: var(--primary); }
    .glass-btn .label { font-weight: 600; letter-spacing: 0.2px; }

    /* === THEME SWITCH — modern glass toggle with glow === */
    .theme-switch {
      position: relative; display: inline-flex;
      align-items: center; gap: 0;
      padding: 4px;
      background: rgba(99,102,241,0.05);
      border: 1px solid rgba(99,102,241,0.12);
      border-radius: 50px;
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      cursor: pointer;
      transition: all 0.25s;
    }
    .theme-switch:hover {
      border-color: rgba(99,102,241,0.25);
      box-shadow: 0 2px 12px rgba(99,102,241,0.08);
    }
    .theme-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
    .theme-switch .ts-thumb {
      position: absolute;
      width: 30px; height: 30px;
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      border-radius: 50%;
      box-shadow:
        0 2px 10px rgba(99,102,241,0.40),
        inset 0 1px 0 rgba(255,255,255,0.25);
      transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
      top: 4px; left: 4px;
      z-index: 1;
    }
    .theme-switch input:checked + .ts-thumb { transform: translateX(34px); }
    .theme-switch .ts-icon {
      width: 30px; height: 30px;
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 0.85rem;
      color: var(--text-muted);
      transition: all 0.3s;
      position: relative; z-index: 2;
    }
    .theme-switch .ts-icon.ts-moon { color: #a78bfa; }
    .theme-switch .ts-icon.ts-sun  { color: #fbbf24; }
    .theme-switch input:not(:checked) ~ .ts-icon.ts-sun  { color: var(--text-muted); opacity: 0.4; }
    .theme-switch input:checked ~ .ts-icon.ts-moon { color: var(--text-muted); opacity: 0.4; }

    /* Mobile menu button */
    .mobile-menu-btn {
      display: none;
      width: 38px; height: 38px;
      padding: 0; justify-content: center;
      background: rgba(99,102,241,0.05);
      border: 1px solid rgba(99,102,241,0.12);
      border-radius: 12px;
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      color: var(--primary); font-size: 1rem;
      cursor: pointer; align-items: center;
      transition: all 0.25s;
    }
    .mobile-menu-btn:hover {
      background: rgba(99,102,241,0.10);
      border-color: rgba(99,102,241,0.25);
      transform: translateY(-1px);
    }
    @media (max-width: 768px) { .mobile-menu-btn { display: inline-flex; } }

    /* === LANGUAGE SWITCHER — 2026 refined === */
    .lang-switcher { position: relative; }
    .lang-btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 7px 14px;
      background: rgba(99,102,241,0.05);
      border: 1px solid rgba(99,102,241,0.12);
      border-radius: 50px;
      color: var(--text); font-size: 0.82rem; font-weight: 600;
      cursor: pointer; font-family: inherit;
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .lang-btn:hover {
      background: rgba(99,102,241,0.10);
      border-color: rgba(99,102,241,0.25);
      transform: translateY(-1px);
      box-shadow: 0 4px 16px rgba(99,102,241,0.10);
    }
    .lang-btn .lang-flag {
      width: 20px; height: 14px; display: inline-flex;
      border-radius: 3px; overflow: hidden;
      box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    }
    .lang-btn .lang-flag svg { width: 100%; height: 100%; display: block; }
    .lang-btn .lang-label {
      font-weight: 700; letter-spacing: 0.3px;
      color: var(--primary);
    }
    .lang-btn .lang-chevron {
      font-size: 0.6rem; opacity: 0.6;
      color: var(--text-muted);
      transition: transform 0.25s;
    }
    .lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

    .lang-dropdown {
      position: absolute; top: calc(100% + 10px); right: 0;
      background: rgba(255,255,255,0.88);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      border: 1px solid rgba(99,102,241,0.10);
      border-radius: 18px;
      box-shadow:
        0 16px 48px rgba(15, 23, 42, 0.12),
        0 4px 16px rgba(15, 23, 42, 0.06);
      padding: 10px; min-width: 340px; max-width: 380px;
      z-index: 200; display: none;
    }
    [data-theme="dark"] .lang-dropdown {
      background: rgba(26, 32, 44, 0.88);
      border-color: rgba(99,102,241,0.15);
    }
    .lang-dropdown.open { display: block; animation: lang-drop-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
    @keyframes lang-drop-in {
      from { opacity: 0; transform: translateY(-10px) scale(0.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .lang-grid {
      display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4px;
    }
    .lang-option {
      display: flex; align-items: center; gap: 10px;
      padding: 9px 12px; border-radius: 12px;
      font-size: 0.84rem; color: var(--text);
      transition: all 0.15s; cursor: pointer;
      text-decoration: none;
      min-width: 0;
    }
    .lang-option:hover {
      background: rgba(99,102,241,0.06);
      transform: translateX(2px);
    }
    .lang-option.lang-active {
      background: rgba(99,102,241,0.10);
      color: var(--primary); font-weight: 700;
    }
    .lang-option .lo-flag {
      width: 24px; height: 18px; flex-shrink: 0;
      border-radius: 3px; overflow: hidden;
      box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    }
    .lang-option .lo-flag-svg { width: 100%; height: 100%; display: block; }
    .lang-option .lo-name {
      flex: 1; font-weight: 500; min-width: 0;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .lang-option.lang-active .lo-name { font-weight: 700; }
    .lang-option .lo-native {
      color: var(--text-muted); font-size: 0.78rem;
      flex-shrink: 0; white-space: nowrap; overflow: hidden;
      text-overflow: ellipsis; max-width: 45%;
    }

    @media (max-width: 768px) {
      .lang-dropdown { min-width: 280px; max-width: calc(100vw - 30px); }
    }

    /* ===== MAIN ===== */
    main { flex: 1; }
  

/* ===== Second style block ===== */


    /* Footer — polished & visible */
    .page-footer {
      background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-page) 100%);
      border-top: 1px solid var(--border);
      padding: 56px 24px 28px;
      margin-top: 64px;
      position: relative;
      flex-shrink: 0;
      box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.04);
    }
    [data-theme="dark"] .page-footer {
      background: linear-gradient(180deg, var(--bg-panel) 0%, #0D1117 100%);
    }
    /* Decorative gradient orb at top-right of footer */
    .page-footer::before {
      content: '';
      position: absolute;
      top: -80px; right: -80px;
      width: 280px; height: 280px;
      background: radial-gradient(circle, rgba(99,102,241,0.10), transparent 70%);
      pointer-events: none;
      z-index: 0;
    }
    .page-footer > * { position: relative; z-index: 1; }
    .footer-main {
      display: grid;
      grid-template-columns: 2.2fr 1fr 1fr 1fr;
      gap: 36px;
      max-width: 1200px; margin: 0 auto 32px;
    }
    .footer-col h4 {
      font-family: 'Montserrat', sans-serif;
      font-size: 0.78rem; text-transform: uppercase;
      letter-spacing: 0.7px; color: var(--text-muted);
      margin: 0 0 18px; font-weight: 800;
      display: flex; align-items: center; gap: 8px;
    }
    .footer-col h4 i { color: var(--primary); font-size: 0.9rem; }
    .footer-col ul { list-style: none; padding: 0; margin: 0; }
    .footer-col li { margin-bottom: 10px; }
    .footer-col a {
      color: var(--text); font-size: 0.88rem; font-weight: 500;
      transition: color 0.2s, padding-left 0.2s;
      display: inline-flex; align-items: center; gap: 6px;
    }
    .footer-col a:hover { color: var(--primary); padding-left: 4px; }
    .footer-col .fc-link-icon { color: var(--primary); margin-right: 4px; font-size: 0.85rem; }
    .fc-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
    .fc-brand-icon {
      width: 44px; height: 44px; border-radius: 13px;
      background: linear-gradient(135deg, #0ea5e9, #6366f1);
      display: flex; align-items: center; justify-content: center;
      color: white;
      box-shadow: 0 4px 12px rgba(99,102,241,0.25);
    }
    .fc-brand-name {
      font-family: 'Montserrat', sans-serif;
      font-size: 1.25rem; font-weight: 900;
      color: var(--text); letter-spacing: -0.5px;
      line-height: 1.2;
    }
    .fc-brand-name small {
      display: block;
      font-size: 0.68rem; font-weight: 600;
      color: var(--text-muted);
      letter-spacing: 0.5px;
      margin-top: 2px;
    }
    .fc-tagline {
      color: var(--text-muted); font-size: 0.88rem;
      margin: 0 0 18px; line-height: 1.6; max-width: 320px;
    }
    .fc-social-row { display: flex; gap: 10px; }
    .fc-social-btn {
      width: 38px; height: 38px; border-radius: 11px;
      background: rgba(99,102,241,0.06);
      border: 1px solid rgba(99,102,241,0.15);
      backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
      display: flex; align-items: center; justify-content: center;
      color: var(--primary); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      text-decoration: none;
    }
    .fc-social-btn:hover {
      transform: translateY(-2px);
      background: rgba(99,102,241,0.12);
      border-color: rgba(99,102,241,0.35);
      box-shadow: 0 4px 12px rgba(99,102,241,0.15);
    }
    .footer-bottom-bar {
      max-width: 1200px; margin: 0 auto;
      padding-top: 24px; border-top: 1px solid var(--border);
      display: flex; justify-content: space-between;
      align-items: center; flex-wrap: wrap; gap: 14px;
      font-size: 0.85rem; color: var(--text-muted);
    }
    .fbb-made { color: #ef4444; }
    .fbb-status {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 4px 12px;
      background: rgba(16,185,129,0.08);
      border: 1px solid rgba(16,185,129,0.20);
      border-radius: 50px;
      color: #10b981; font-size: 0.78rem; font-weight: 600;
    }
    .fbb-status::before {
      content: '';
      width: 7px; height: 7px;
      background: #10b981;
      border-radius: 50%;
      box-shadow: 0 0 6px #10b981;
      animation: status-pulse 2s infinite;
    }
    @keyframes status-pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }

    @media (max-width: 900px) {
      .footer-main { grid-template-columns: 1fr 1fr; gap: 24px; }
    }
    @media (max-width: 600px) {
      .footer-main { grid-template-columns: 1fr; gap: 28px; }
      .page-footer { padding: 40px 18px 24px; }
    }
  