/* ==========================================================================
       CSS RESET & DESIGN TOKENS
       ========================================================================== */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scrollbar-gutter: stable;
      overflow-y: scroll;
    }

    :root {
      --bg-dark: #08090d;
      --bg-surface: #0f1118;
      --bg-surface-elevated: #151822;
      --bg-surface-hover: #1b1f2c;
      --border-subtle: rgba(255, 255, 255, 0.08);
      --border-hover: rgba(255, 255, 255, 0.16);
      --border-accent: rgba(99, 102, 241, 0.35);
      
      --text-primary: #f8fafc;
      --text-secondary: #94a3b8;
      --text-muted: #64748b;
      
      --accent-primary: #6366f1;
      --accent-secondary: #8b5cf6;
      --accent-pink: #ec4899;
      --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
      --accent-glow: rgba(99, 102, 241, 0.3);
      
      --nav-height: 72px;
      --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
      --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
      --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
      
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-full: 9999px;
    }

    body {
      font-family: var(--font-family);
      background-color: var(--bg-dark);
      color: var(--text-primary);
      min-height: 100vh;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: clip;
      width: 100%;
    }

    /* Lock body scroll when search modal or mobile menu is open */
    body.scroll-locked {
      overflow: hidden;
      touch-action: none;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button {
      font-family: inherit;
      border: none;
      background: none;
      cursor: pointer;
      color: inherit;
    }

    /* ==========================================================================
       NAVBAR BASE STYLES
       ========================================================================== */
    .navbar-wrapper {
      position: sticky;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background: rgba(8, 9, 13, 0.88);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-subtle);
      transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
    }

    .navbar-container {
      max-width: 1320px;
      margin: 0 auto;
      padding: 0 20px;
      height: var(--nav-height);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      position: relative;
    }

    /* --- LEFT: SVG LOGO + BRAND TEXT --- */
    .nav-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
      -webkit-user-select: none;
      user-select: none;
      z-index: 105;
    }

    .brand-icon-wrapper {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform var(--transition-smooth), filter var(--transition-smooth);
      flex-shrink: 0;
    }

    .nav-brand:hover .brand-icon-wrapper {
      transform: scale(1.1) rotate(-4deg);
      filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.65));
    }

    .brand-ai-icon {
      width: 100%;
      height: 100%;
      display: block;
    }

    /* Ultra Lightweight GPU-Accelerated Spin Animation (CLS = 0, Compositor Thread) */
    @keyframes spinSparkle {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }

    .brand-sparkle-wrapper {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      animation: spinSparkle 12s linear infinite;
      transform-origin: center center;
      will-change: transform;
      transition: filter var(--transition-smooth);
    }

    .nav-brand:hover .brand-sparkle-wrapper {
      animation-duration: 3.5s;
      filter: drop-shadow(0 0 12px rgba(41, 245, 183, 0.8));
    }

    .brand-sparkle-icon {
      width: 100%;
      height: 100%;
      display: block;
    }

    .brand-text {
      font-size: 1.2rem;
      font-weight: 800;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    .brand-text .gradient-text {
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* ==========================================================================
       SINGLE UNIFIED NAVIGATION (DESKTOP MODE: >= 993px)
       ========================================================================== */
    .nav-mobile-footer {
      display: none;
    }

    .nav-navigation {
      display: flex;
      align-items: center;
      height: 100%;
    }

    .nav-menu-list {
      display: flex;
      align-items: center;
      gap: 4px;
      list-style: none;
      height: 100%;
    }

    .nav-item {
      position: relative;
      height: 100%;
      display: flex;
      align-items: center;
    }

    .nav-link {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      font-size: 0.925rem;
      font-weight: 600;
      color: var(--text-secondary);
      border-radius: var(--radius-sm);
      transition: color var(--transition-fast), background-color var(--transition-fast);
      cursor: pointer;
      -webkit-user-select: none;
      user-select: none;
    }

    .nav-link:hover,
    .nav-item.active > .nav-link,
    .nav-item:hover > .nav-link {
      color: var(--text-primary);
      background-color: rgba(255, 255, 255, 0.05);
    }

    .chevron-icon {
      width: 14px;
      height: 14px;
      stroke-width: 2.2;
      transition: transform var(--transition-smooth);
      color: var(--text-muted);
    }

    /* Submenu base styles */
    .submenu-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .submenu-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      transition: all var(--transition-fast);
    }

    .submenu-link:hover {
      background-color: var(--bg-surface-hover);
      color: var(--text-primary);
      transform: translateX(3px);
    }

    .submenu-icon-box {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.06);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: #94a3b8;
      transition: all var(--transition-fast);
    }

    .submenu-link:hover .submenu-icon-box {
      background: rgba(99, 102, 241, 0.15);
      border-color: rgba(99, 102, 241, 0.35);
      color: #a5b4fc;
    }

    .submenu-icon {
      width: 17px;
      height: 17px;
    }

    .submenu-text-box {
      display: flex;
      flex-direction: column;
    }

    .submenu-title {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text-primary);
      line-height: 1.2;
    }

    .submenu-desc {
      font-size: 0.74rem;
      color: var(--text-muted);
      margin-top: 2px;
    }

    /* Desktop Specific Submenu (Floating elevated card) */
    @media (min-width: 993px) {
      .nav-submenu {
        position: absolute;
        top: calc(100% - 6px);
        left: 50%;
        transform: translateX(-50%) translateY(8px);
        min-width: 270px;
        background: var(--bg-surface);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
        padding: 8px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
        z-index: 110;
      }

      .nav-submenu::before {
        content: '';
        position: absolute;
        top: -12px;
        left: 0;
        right: 0;
        height: 14px;
      }

      .nav-item:hover .nav-submenu,
      .nav-item:focus-within .nav-submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
      }

      .nav-item:hover .chevron-icon {
        transform: rotate(180deg);
        color: var(--text-primary);
      }
    }

    /* ==========================================================================
       RIGHT ACTIONS: SEARCH BUTTON & CTA BUTTON
       ========================================================================== */
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
      z-index: 105;
    }

    /* Search Trigger Button */
    .nav-search-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      height: 42px;
      padding: 0 14px 0 12px;
      border-radius: var(--radius-full);
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-subtle);
      color: var(--text-secondary);
      font-size: 0.875rem;
      font-weight: 500;
      transition: all var(--transition-fast);
      flex-shrink: 0;
    }

    .nav-search-btn:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.18);
      color: var(--text-primary);
    }

    .search-btn-icon {
      width: 18px;
      height: 18px;
      color: var(--text-secondary);
      flex-shrink: 0;
    }

    .nav-search-btn:hover .search-btn-icon {
      color: var(--text-primary);
    }

    .search-btn-label {
      display: inline-block;
      white-space: nowrap;
    }

    .search-kbd-shortcut {
      display: inline-flex;
      align-items: center;
      padding: 2px 6px;
      font-size: 0.7rem;
      font-weight: 600;
      color: var(--text-muted);
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 4px;
      line-height: 1;
    }

    /* CTA Button (Header) */
    .btn-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      height: 42px;
      padding: 0 18px;
      border-radius: var(--radius-full);
      background: var(--accent-gradient);
      color: #ffffff;
      font-size: 0.88rem;
      font-weight: 700;
      box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
      transition: transform var(--transition-fast), box-shadow var(--transition-fast);
      position: relative;
      overflow: hidden;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .btn-cta::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(rgba(255, 255, 255, 0.16), transparent);
      opacity: 0;
      transition: opacity var(--transition-fast);
    }

    .btn-cta:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
    }

    .btn-cta:hover::after {
      opacity: 1;
    }

    .btn-cta:active {
      transform: translateY(0);
    }

    .cta-icon {
      width: 16px;
      height: 16px;
      stroke-width: 2.4;
      flex-shrink: 0;
    }

    /* Mobile Hamburger / Close Toggle Button */
    .mobile-toggle-btn {
      display: none;
      width: 40px;
      height: 40px;
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-subtle);
      align-items: center;
      justify-content: center;
      color: var(--text-primary);
      transition: background-color var(--transition-fast), border-color var(--transition-fast);
      flex-shrink: 0;
      cursor: pointer;
    }

    .mobile-toggle-btn:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.15);
    }

    .toggle-icon {
      width: 20px;
      height: 20px;
    }

    /* By default, show hamburger lines icon */
    .mobile-toggle-btn .icon-close {
      display: none;
    }
    .mobile-toggle-btn .icon-hamburger {
      display: block;
    }

    /* When menu is open, switch to Close 'X' icon */
    .mobile-toggle-btn.is-active .icon-hamburger {
      display: none;
    }
    .mobile-toggle-btn.is-active .icon-close {
      display: block;
      color: #f43f5e;
    }

    /* ==========================================================================
       RESPONSIVE & FULL-WIDTH MOBILE MENU (<= 992px)
       Menu opens FULL-WIDTH directly below the sticky navbar!
       Navbar stays visible above with Logo, Search Icon, and Close 'X'!
       ========================================================================== */
    @media (max-width: 992px) {
      /* Mobile Navbar: Solid Comfortable Matte Black (Zero transparency, easy on eyes) */
      .navbar-wrapper {
        background: #0b0c10 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
      }

      .brand-icon-wrapper {
        width: 32px;
        height: 32px;
      }

      .brand-sparkle-wrapper {
        width: 24px;
        height: 24px;
      }

      .mobile-toggle-btn {
        display: flex;
      }

      .search-btn-label,
      .search-kbd-shortcut {
        display: none;
      }

      .nav-search-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
      }

      /* Unified Navigation: FULL-WIDTH Overlay below the Top Navbar - Solid Comfortable Black */
      .nav-navigation {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100vw;
        height: calc(100vh - var(--nav-height));
        height: calc(100dvh - var(--nav-height));
        background: #0b0c10 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-top: 1px solid var(--border-subtle);
        z-index: 95;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
        box-sizing: border-box;
      }

      .nav-navigation.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
      }

      /* Full Width Menu List */
      .nav-menu-list {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        height: auto;
        width: 100%;
        box-sizing: border-box;
      }

      .nav-item {
        height: auto;
        width: 100%;
        display: block;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.025);
        border: 1px solid rgba(255, 255, 255, 0.05);
        overflow: hidden;
        transition: border-color var(--transition-fast), background-color var(--transition-fast);
      }

      .nav-item.accordion-open {
        border-color: rgba(99, 102, 241, 0.4);
        background: rgba(255, 255, 255, 0.04);
      }

      .nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        font-size: 0.96rem;
        font-weight: 600;
        color: var(--text-primary);
        text-align: left;
      }

      .nav-item.accordion-open .chevron-icon {
        transform: rotate(180deg);
        color: var(--accent-primary);
      }

      /* Mobile In-Flow Accordion Submenus */
      .nav-submenu {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.15);
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .submenu-list {
        padding: 8px 12px 14px 12px;
        gap: 4px;
      }

      .submenu-link {
        padding: 9px 12px;
        gap: 12px;
        font-size: 0.88rem;
      }

      .submenu-icon-box {
        width: 30px;
        height: 30px;
      }

      .submenu-icon {
        width: 16px;
        height: 16px;
      }

      .submenu-title {
        font-size: 0.88rem;
      }

      .submenu-desc {
        display: none;
      }

      /* Mobile Drawer Footer CTA Container (Matching navbar background cleanly - NO dark black mismatch) */
      .nav-mobile-footer {
        display: flex;
        padding: 16px 20px 24px;
        border-top: 1px solid var(--border-subtle);
        background: #0b0c10;
        flex-shrink: 0;
      }

      .nav-mobile-footer .btn-cta {
        width: 100%;
        justify-content: center;
        height: 44px;
        font-size: 0.92rem;
      }
    }

    @media (max-width: 640px) {
      .navbar-container {
        padding: 0 14px;
        gap: 8px;
      }

      .brand-text {
        font-size: 1.1rem;
      }

      .brand-icon-wrapper {
        width: 28px;
        height: 28px;
      }

      .brand-sparkle-wrapper {
        width: 22px;
        height: 22px;
      }

      .nav-actions {
        gap: 8px;
      }

      .nav-search-btn {
        width: 38px;
        height: 38px;
      }

      /* On narrow phones, hide header CTA to give maximum room to Logo + Search + Close/Hamburger button */
      .nav-actions .btn-cta {
        display: none;
      }

      .mobile-toggle-btn {
        width: 38px;
        height: 38px;
      }

      .nav-menu-list {
        padding: 14px;
      }

      .nav-mobile-footer {
        padding: 14px 16px 20px;
      }
    }

    @media (min-width: 641px) and (max-width: 992px) {
      .nav-actions .btn-cta {
        height: 38px;
        padding: 0 14px;
        font-size: 0.82rem;
      }
      .btn-cta-text-full {
        display: none;
      }
      .btn-cta-text-short {
        display: inline;
      }
    }

    /* Medium Desktop / iPad Pro Landscape / Laptops (993px - 1160px) */
    @media (min-width: 993px) and (max-width: 1160px) {
      .navbar-container {
        padding: 0 16px;
        gap: 10px;
      }
      .nav-menu-list {
        gap: 2px;
      }
      .nav-link {
        padding: 6px 10px;
        font-size: 0.88rem;
      }
      .nav-search-btn {
        padding: 0 10px;
        gap: 6px;
      }
      .search-kbd-shortcut {
        display: none;
      }
      .btn-cta {
        padding: 0 14px;
        font-size: 0.84rem;
      }
      .btn-cta-text-full {
        display: none;
      }
      .btn-cta-text-short {
        display: inline;
      }
    }

    /* Wide Desktop (>= 1161px) */
    @media (min-width: 1161px) {
      .btn-cta-text-full {
        display: inline;
      }
      .btn-cta-text-short {
        display: none;
      }
    }

    /* ==========================================================================
       SEARCH POPUP MODAL (10 TRENDING KEYWORDS: 2 x 5 GRID)
       ========================================================================== */
    .search-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(5, 6, 10, 0.82);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      z-index: 200;
      opacity: 0;
      visibility: hidden;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 60px 16px 20px;
      transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
      box-sizing: border-box;
      overflow-y: auto;
    }

    .search-modal-backdrop.is-open {
      opacity: 1;
      visibility: visible;
    }

    .search-modal-container {
      width: 100%;
      max-width: 640px;
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
      transform: translateY(-16px) scale(0.98);
      transition: transform var(--transition-smooth);
      overflow: hidden;
      box-sizing: border-box;
      margin: 0 auto;
    }

    .search-modal-backdrop.is-open .search-modal-container {
      transform: translateY(0) scale(1);
    }

    .modal-search-header {
      display: flex;
      align-items: center;
      padding: 16px 18px;
      border-bottom: 1px solid var(--border-subtle);
      gap: 12px;
    }

    .modal-search-icon {
      width: 20px;
      height: 20px;
      color: var(--accent-primary);
      flex-shrink: 0;
    }

    .modal-search-input {
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      font-size: 1.05rem;
      font-weight: 500;
      color: var(--text-primary);
      font-family: inherit;
      min-width: 0;
    }

    .modal-search-input::placeholder {
      color: var(--text-muted);
    }

    .modal-clear-btn {
      display: none;
      width: 24px;
      height: 24px;
      border-radius: var(--radius-full);
      background: rgba(255, 255, 255, 0.08);
      color: var(--text-secondary);
      align-items: center;
      justify-content: center;
      transition: background-color var(--transition-fast), color var(--transition-fast);
      flex-shrink: 0;
    }

    .modal-clear-btn.visible {
      display: flex;
    }

    .modal-clear-btn:hover {
      background: rgba(255, 255, 255, 0.16);
      color: var(--text-primary);
    }

    .clear-icon,
    .close-icon {
      width: 16px;
      height: 16px;
    }

    .modal-close-btn {
      width: 32px;
      height: 32px;
      border-radius: var(--radius-sm);
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-subtle);
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition-fast);
      flex-shrink: 0;
    }

    .modal-close-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-primary);
    }

    .modal-search-body {
      padding: 20px 18px;
      max-height: 460px;
      overflow-y: auto;
      box-sizing: border-box;
    }

    .trending-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .trending-title {
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .trending-title-icon {
      width: 14px;
      height: 14px;
      color: #f59e0b;
    }

    .trending-count-badge {
      font-size: 0.7rem;
      font-weight: 600;
      color: var(--text-secondary);
      background: rgba(255, 255, 255, 0.04);
      padding: 2px 8px;
      border-radius: var(--radius-full);
      border: 1px solid var(--border-subtle);
    }

    /* 10 Trending Keywords Grid: 2 per row x 5 rows */
    .trending-keywords-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .trending-kw-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 10px 12px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      transition: all var(--transition-fast);
      cursor: pointer;
      text-align: left;
      min-width: 0;
      box-sizing: border-box;
    }

    .trending-kw-card:hover {
      background: rgba(99, 102, 241, 0.12);
      border-color: rgba(99, 102, 241, 0.4);
      transform: translateY(-1px);
    }

    .trending-kw-card.selected {
      background: rgba(99, 102, 241, 0.18);
      border-color: #6366f1;
    }

    .kw-left {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      flex: 1;
    }

    .kw-trend-icon {
      width: 16px;
      height: 16px;
      color: #f59e0b;
      flex-shrink: 0;
      transition: transform var(--transition-fast), color var(--transition-fast);
    }

    .trending-kw-card:hover .kw-trend-icon,
    .trending-kw-card.selected .kw-trend-icon {
      color: #fbbf24;
      transform: scale(1.15) translateY(-1px);
    }

    .kw-label {
      font-size: 0.825rem;
      font-weight: 600;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
    }

    .kw-arrow-icon {
      width: 13px;
      height: 13px;
      color: var(--text-muted);
      flex-shrink: 0;
      transition: transform var(--transition-fast), color var(--transition-fast);
    }

    .trending-kw-card:hover .kw-arrow-icon,
    .trending-kw-card.selected .kw-arrow-icon {
      transform: translate(2px, -2px);
      color: var(--accent-primary);
    }

    .modal-search-footer {
      padding: 12px 18px;
      background: rgba(0, 0, 0, 0.2);
      border-top: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.76rem;
      color: var(--text-muted);
    }

    .footer-hints {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .hint-item {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .hint-kbd {
      padding: 2px 5px;
      font-size: 0.65rem;
      font-weight: 600;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 4px;
      color: var(--text-secondary);
    }

    @media (max-width: 640px) {
      .search-modal-backdrop {
        padding: 30px 10px 10px;
      }
      .modal-search-header {
        padding: 12px 14px;
      }
      .modal-search-body {
        padding: 14px 12px;
      }
      .trending-kw-card {
        padding: 8px 8px;
        gap: 4px;
      }
      .kw-trend-icon {
        width: 14px;
        height: 14px;
      }
      .kw-label {
        font-size: 0.74rem;
      }
      .modal-search-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 14px;
      }
    }

    

    /* ==========================================================================
       TOP FIXED PARTNER BANNER (GOOGLE ADSENSE READY: 970x250 Desktop / 300x250 Mobile)
       ========================================================================== */
    .top-partner-banner-section {
      width: 100%;
      padding: 24px 20px 0;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .top-partner-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }

    .top-partner-label {
      font-size: 0.65rem;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 6px;
      line-height: 1;
    }

    .top-partner-slot-box {
      width: 970px;
      max-width: 100%;
      height: 250px;
      min-height: 250px;
      background: linear-gradient(165deg, rgba(20, 24, 36, 0.7) 0%, rgba(13, 15, 23, 0.9) 100%);
      border: 1px dashed rgba(99, 102, 241, 0.28);
      border-radius: var(--radius-md);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      box-sizing: border-box;
    }

    .top-partner-inner-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 16px;
      text-align: center;
      color: #94a3b8;
      -webkit-user-select: none;
      user-select: none;
    }

    .top-partner-icon-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 0.82rem;
      font-weight: 600;
      color: #c7d2fe;
      background: rgba(99, 102, 241, 0.12);
      border: 1px solid rgba(99, 102, 241, 0.24);
      padding: 5px 12px;
      border-radius: var(--radius-full);
    }

    .top-partner-icon {
      width: 14px;
      height: 14px;
      stroke: #818cf8;
    }

    .top-partner-dimensions-badge {
      font-size: 0.74rem;
      color: var(--text-muted);
      font-weight: 500;
      font-family: monospace;
    }

    @media (max-width: 1024px) {
      .top-partner-slot-box {
        width: 728px;
        height: 250px;
        min-height: 250px;
      }
    }

    @media (max-width: 767px) {
      .top-partner-banner-section {
        padding: 18px 16px 0;
      }
      .top-partner-slot-box {
        width: 300px;
        height: 250px;
        min-height: 250px;
      }
    }

    @media (max-width: 520px) {
      .top-partner-banner-section {
        padding: 14px 12px 0;
      }
      .top-partner-slot-box {
        width: 300px;
        height: 250px;
        min-height: 250px;
      }
    }

    /* ==========================================================================
       HERO SECTION & SOCIAL SHARE BUTTONS
       ========================================================================== */
    .hero-section {
      max-width: 960px;
      margin: 36px auto 90px;
      padding: 0 20px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .hero-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 16px;
      border-radius: var(--radius-full);
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.3);
      color: #c7d2fe;
      font-size: 0.84rem;
      font-weight: 600;
      margin-bottom: 22px;
      -webkit-user-select: none;
      user-select: none;
    }

    .hero-pill-icon {
      width: 14px;
      height: 14px;
      color: #818cf8;
      flex-shrink: 0;
    }

    .hero-title {
      font-size: clamp(2.1rem, 5vw, 3.6rem);
      font-weight: 800;
      line-height: 1.15;
      margin-bottom: 18px;
    }

    .hero-subtitle {
      font-size: clamp(0.95rem, 2vw, 1.18rem);
      color: var(--text-secondary);
      max-width: 660px;
      margin: 0 auto 32px;
      line-height: 1.6;
      text-align: justify;
      text-align-last: center;
    }

    /* Social Share Container & Buttons */
    .hero-share-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      margin-top: 6px;
    }

    .hero-share-list {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .social-share-btn {
      width: 46px;
      height: 46px;
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-subtle);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      transition: all var(--transition-fast);
      position: relative;
      cursor: pointer;
      text-decoration: none;
      flex-shrink: 0;
      -webkit-user-select: none;
      user-select: none;
    }

    .social-share-btn .share-icon {
      width: 20px;
      height: 20px;
      transition: transform var(--transition-fast);
      pointer-events: none;
    }

    .social-share-btn:hover {
      transform: translateY(-2px);
    }

    .social-share-btn:hover .share-icon {
      transform: scale(1.12);
    }

    .social-share-btn:active {
      transform: translateY(0);
    }

    /* WhatsApp Hover */
    .social-share-btn.share-whatsapp:hover {
      background: rgba(37, 211, 102, 0.12);
      border-color: rgba(37, 211, 102, 0.45);
      color: #25D366;
      box-shadow: 0 8px 24px rgba(37, 211, 102, 0.22);
    }

    /* Facebook Hover */
    .social-share-btn.share-facebook:hover {
      background: rgba(24, 119, 242, 0.12);
      border-color: rgba(24, 119, 242, 0.45);
      color: #1877F2;
      box-shadow: 0 8px 24px rgba(24, 119, 242, 0.22);
    }

    /* X Hover */
    .social-share-btn.share-x:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.4);
      color: #ffffff;
      box-shadow: 0 8px 24px rgba(255, 255, 255, 0.16);
    }

    /* Pinterest Hover */
    .social-share-btn.share-pinterest:hover {
      background: rgba(230, 0, 35, 0.12);
      border-color: rgba(230, 0, 35, 0.45);
      color: #E60023;
      box-shadow: 0 8px 24px rgba(230, 0, 35, 0.22);
    }

    /* Copy Link Hover */
    .social-share-btn.share-copylink:hover {
      background: rgba(99, 102, 241, 0.14);
      border-color: rgba(99, 102, 241, 0.5);
      color: #818cf8;
      box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    }

    /* Copy Feedback Toast */
    .copy-toast {
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      padding: 4px 9px;
      font-size: 0.72rem;
      font-weight: 600;
      color: #ffffff;
      background: #10b981;
      border-radius: var(--radius-sm);
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
      transition: all var(--transition-fast);
      box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    }

    .copy-toast::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 4px solid transparent;
      border-top-color: #10b981;
    }

    .copy-toast.is-shown {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }

    @media (max-width: 640px) {
      .hero-section {
        margin: 36px auto 70px;
        padding: 0 16px;
      }
      .social-share-btn {
        width: 42px;
        height: 42px;
      }
      .social-share-btn .share-icon {
        width: 18px;
        height: 18px;
      }
    }

    /* ==========================================================================
       PROMPT MASONRY DIRECTORY SECTION
       ========================================================================== */
    .prompt-feed-section {
      width: 100%;
      max-width: 1560px;
      margin: 0 auto;
      padding: 0 24px 100px;
      box-sizing: border-box;
    }



    /* Masonry Grid: 5 columns on desktop ("5 ke niche 5 ke niche 5"), 1 on mobile */
    .masonry-grid {
      column-count: 5;
      column-gap: 18px;
      width: 100%;
    }

    @media (max-width: 1400px) {
      .masonry-grid {
        column-count: 4;
        column-gap: 16px;
      }
    }

    @media (max-width: 1080px) {
      .masonry-grid {
        column-count: 3;
        column-gap: 14px;
      }
    }

    @media (max-width: 768px) {
      .prompt-feed-section {
        padding: 0 16px 80px;
      }
      .masonry-grid {
        column-count: 2;
        column-gap: 12px;
      }
    }

    @media (max-width: 520px) {
      .prompt-feed-section {
        padding: 0 12px 60px;
      }
      .masonry-grid {
        column-count: 1;
        column-gap: 0;
      }
    }

    


    /* In-Feed Google AdSense Dummy Placeholder Card */
    .prompt-card.partner-card.feed-ad-card {
      border: 1px dashed rgba(99, 102, 241, 0.38);
      background: linear-gradient(165deg, rgba(20, 24, 36, 0.75) 0%, rgba(13, 15, 23, 0.92) 100%);
      padding: 18px 14px;
      box-sizing: border-box;
      display: inline-block;
      width: 100%;
      margin-bottom: 18px;
    }

    .feed-ad-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      box-sizing: border-box;
    }

    .feed-ad-label {
      font-size: 0.65rem;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 8px;
      line-height: 1;
    }

    .feed-ad-slot-box {
      width: 100%;
      min-height: 380px;
      border-radius: var(--radius-sm);
      background: rgba(15, 18, 28, 0.55);
      border: 1px dashed rgba(99, 102, 241, 0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      padding: 16px 12px;
    }

    .feed-ad-inner-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      text-align: center;
      width: 100%;
      -webkit-user-select: none;
      user-select: none;
    }

    .feed-ad-preview-box {
      width: 100%;
      max-width: 220px;
      height: 120px;
      border-radius: 8px;
      background: rgba(99, 102, 241, 0.08);
      border: 1px dashed rgba(99, 102, 241, 0.3);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .feed-ad-wireframe-icon {
      width: 26px;
      height: 26px;
      stroke: #818cf8;
      opacity: 0.85;
    }

    .feed-ad-preview-text {
      font-size: 0.72rem;
      font-weight: 600;
      color: #c7d2fe;
    }

    .feed-ad-placement-tag {
      font-size: 0.68rem;
      font-weight: 700;
      color: #a5b4fc;
      background: rgba(99, 102, 241, 0.15);
      border: 1px solid rgba(99, 102, 241, 0.28);
      padding: 3px 10px;
      border-radius: var(--radius-full);
    }

    /* Single Prompt Card */
    .prompt-card {
      break-inside: avoid;
      -webkit-column-break-inside: avoid;
      page-break-inside: avoid;
      display: inline-block;
      width: 100%;
      margin-bottom: 18px;
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      overflow: hidden;
      transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
      box-sizing: border-box;
    }

    @media (max-width: 768px) {
      .prompt-card {
        margin-bottom: 14px;
      }
    }

    .prompt-card:hover {
      transform: translateY(-4px);
      border-color: rgba(99, 102, 241, 0.45);
      box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.75), 0 0 24px rgba(99, 102, 241, 0.12);
    }

    /* Image Box */
    .card-image-box {
      position: relative;
      width: 100%;
      background: #0d0f17;
      cursor: zoom-in;
      overflow: hidden;
    }

    .card-prompt-img {
      width: 100%;
      height: auto;
      display: block;
      object-fit: contain;
      transition: transform var(--transition-smooth);
    }

    .card-image-box:hover .card-prompt-img {
      transform: scale(1.035);
    }

    .card-zoom-badge {
      position: absolute;
      bottom: 10px;
      right: 10px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      background: rgba(11, 12, 16, 0.82);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: var(--radius-full);
      color: #ffffff;
      font-size: 0.72rem;
      font-weight: 600;
      opacity: 0;
      transform: translateY(4px);
      transition: all var(--transition-fast);
      pointer-events: none;
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
    }

    .card-image-box:hover .card-zoom-badge {
      opacity: 1;
      transform: translateY(0);
    }

    .badge-zoom-icon {
      width: 13px;
      height: 13px;
    }

    /* Card Body */
    .card-body {
      padding: 14px 14px 16px;
      display: flex;
      flex-direction: column;
    }

    .card-title {
      font-size: 0.96rem;
      font-weight: 700;
      color: var(--text-primary);
      margin: 0 0 10px 0;
      line-height: 1.35;
    }

    /* Scrollable Fixed Height Prompt Box */
    .card-prompt-box {
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: var(--radius-sm);
      padding: 10px 11px 0 11px;
      height: 88px;
      overflow-x: hidden;
      overflow-y: auto;
      overflow-wrap: anywhere;
      word-break: break-word;
      margin-bottom: 12px;
      box-sizing: border-box;
    }

    .card-prompt-box::-webkit-scrollbar {
      width: 4px;
    }

    .card-prompt-box::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.16);
      border-radius: 4px;
    }

    .card-prompt-text {
      font-size: 0.79rem;
      line-height: 1.5;
      color: var(--text-secondary);
      margin: 0;
      padding-bottom: 10px;
      text-align: justify;
      text-justify: inter-word;
      user-select: text;
      -webkit-user-select: text;
      overflow-wrap: anywhere;
      word-break: break-word;
      white-space: pre-wrap;
    }

    /* Copy Prompt Button */
    .card-copy-btn {
      width: 100%;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      border-radius: var(--radius-sm);
      background: rgba(99, 102, 241, 0.12);
      border: 1px solid rgba(99, 102, 241, 0.3);
      color: #c7d2fe;
      font-size: 0.81rem;
      font-weight: 600;
      cursor: pointer;
      transition: all var(--transition-fast);
      margin-bottom: 10px;
      -webkit-user-select: none;
      user-select: none;
    }

    .card-copy-btn:hover {
      background: rgba(99, 102, 241, 0.24);
      border-color: rgba(99, 102, 241, 0.55);
      color: #ffffff;
      box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
    }

    .card-copy-btn.copied {
      background: rgba(16, 185, 129, 0.18);
      border-color: rgba(16, 185, 129, 0.55);
      color: #34d399;
    }

    .card-btn-icon {
      width: 15px;
      height: 15px;
      flex-shrink: 0;
    }

    /* Full-Width Linkable Category Tag */
    .card-category-tag {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      width: 100%;
      padding: 6px 10px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      font-size: 0.74rem;
      font-weight: 600;
      color: var(--text-secondary);
      text-decoration: none;
      transition: all var(--transition-fast);
      margin-bottom: 10px;
      box-sizing: border-box;
      -webkit-user-select: none;
      user-select: none;
    }

    .card-category-tag:hover {
      color: var(--text-primary);
      background: rgba(255, 255, 255, 0.06);
      border-color: var(--border-hover);
    }

    .card-category-tag .cat-hash {
      color: var(--accent-primary);
      font-weight: 700;
    }

    /* 50-50 AI Action Buttons (ChatGPT & Gemini) */
    .card-ai-actions {
      display: flex;
      gap: 8px;
      width: 100%;
    }

    .ai-action-btn {
      flex: 1;
      width: 50%;
      height: 33px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      border-radius: var(--radius-sm);
      font-size: 0.76rem;
      font-weight: 600;
      text-decoration: none;
      transition: all var(--transition-fast);
      box-sizing: border-box;
      border: 1px solid var(--border-subtle);
      background: rgba(255, 255, 255, 0.03);
      color: var(--text-secondary);
      -webkit-user-select: none;
      user-select: none;
    }

    .ai-action-btn .ai-action-icon {
      width: 15px;
      height: 15px;
      flex-shrink: 0;
    }

    .ai-action-btn.btn-chatgpt:hover {
      background: rgba(16, 163, 127, 0.14);
      border-color: rgba(16, 163, 127, 0.45);
      color: #10a37f;
      box-shadow: 0 4px 14px rgba(16, 163, 127, 0.2);
    }

    .ai-action-btn.btn-gemini:hover {
      background: rgba(147, 51, 234, 0.15);
      border-color: rgba(147, 51, 234, 0.45);
      color: #c084fc;
      box-shadow: 0 4px 14px rgba(147, 51, 234, 0.22);
    }

    /* ==========================================================================
       PROMPT FEED PAGINATION
       ========================================================================== */
    .feed-pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      margin-top: 48px;
      padding-top: 24px;
      border-top: 1px solid var(--border-subtle);
      width: 100%;
      box-sizing: border-box;
    }

    .pagination-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 44px;
      padding: 0 20px;
      border-radius: var(--radius-sm);
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-subtle);
      color: var(--text-primary);
      font-size: 0.88rem;
      font-weight: 600;
      text-decoration: none;
      transition: all var(--transition-fast);
      box-sizing: border-box;
      -webkit-user-select: none;
      user-select: none;
    }

    .pagination-btn:hover:not(.is-disabled) {
      background: rgba(99, 102, 241, 0.16);
      border-color: rgba(99, 102, 241, 0.5);
      color: #ffffff;
      box-shadow: 0 4px 16px rgba(99, 102, 241, 0.22);
      transform: translateY(-1px);
    }

    .pagination-btn:active:not(.is-disabled) {
      transform: translateY(0);
    }

    .pagination-btn.is-disabled {
      opacity: 0.38;
      cursor: not-allowed;
      pointer-events: none;
    }

    .pagination-arrow {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .pagination-pages {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .page-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: var(--radius-sm);
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-subtle);
      color: var(--text-secondary);
      font-size: 0.9rem;
      font-weight: 600;
      text-decoration: none;
      transition: all var(--transition-fast);
      box-sizing: border-box;
      -webkit-user-select: none;
      user-select: none;
    }

    .page-link:hover:not(.is-active) {
      background: rgba(255, 255, 255, 0.08);
      border-color: var(--border-hover);
      color: var(--text-primary);
      transform: translateY(-1px);
    }

    .page-link.is-active {
      background: var(--accent-gradient);
      border-color: #6366f1;
      color: #ffffff;
      font-weight: 700;
      box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
      cursor: default;
    }

    .page-ellipsis {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 44px;
      color: var(--text-muted);
      font-size: 1.1rem;
      font-weight: 700;
      user-select: none;
      -webkit-user-select: none;
    }

    /* Mobile Pagination: Previous on top, 1 2 3 ... 50 in middle, Next on bottom */
    @media (max-width: 640px) {
      .feed-pagination {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 36px;
        padding-top: 20px;
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
      }

      .pagination-prev {
        order: 1;
        width: 100%;
        height: 46px;
      }

      .pagination-pages {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
      }

      .page-link {
        width: 44px;
        height: 44px;
        font-size: 0.94rem;
      }

      .pagination-next {
        order: 3;
        width: 100%;
        height: 46px;
      }
    }

    /* ==========================================================================
       IMAGE PREVIEW POPUP MODAL
       ========================================================================== */
    .image-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(5, 6, 10, 0.88);
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
      z-index: 250;
      opacity: 0;
      visibility: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      box-sizing: border-box;
      transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
    }

    .image-modal-backdrop.is-open {
      opacity: 1;
      visibility: visible;
    }

    .image-modal-dialog {
      position: relative;
      max-width: 90vw;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      transform: scale(0.96);
      transition: transform var(--transition-smooth);
    }

    .image-modal-backdrop.is-open .image-modal-dialog {
      transform: scale(1);
    }

    .image-modal-body {
      position: relative;
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      overflow: hidden;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .image-modal-image-box {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      max-width: 100%;
      background: #0d0f17;
      line-height: 0;
    }

    .image-modal-img {
      max-width: 85vw;
      max-height: 76vh;
      width: auto;
      height: auto;
      display: block;
      object-fit: contain;
    }

    .image-modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 36px;
      height: 36px;
      border-radius: var(--radius-full);
      background: rgba(11, 12, 16, 0.72);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.22);
      color: #ffffff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all var(--transition-fast);
      z-index: 15;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    }

    .image-modal-close:hover {
      background: rgba(244, 63, 94, 0.92);
      border-color: #f43f5e;
      color: #ffffff;
      transform: scale(1.08);
      box-shadow: 0 6px 20px rgba(244, 63, 94, 0.45);
    }

    .image-modal-close:active {
      transform: scale(0.96);
    }

    .image-modal-close svg {
      width: 16px;
      height: 16px;
    }

    @media (max-width: 520px) {
      .image-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
      }
      .image-modal-close svg {
        width: 14px;
        height: 14px;
      }
    }

    .image-modal-caption {
      padding: 12px 18px;
      width: 100%;
      box-sizing: border-box;
      font-size: 0.92rem;
      font-weight: 700;
      color: var(--text-primary);
      text-align: center;
      background: var(--bg-surface-elevated);
      border-top: 1px solid var(--border-subtle);
      margin: 0;
    }
    /* ==========================================================================
       SITE FOOTER (BALANCED 3-COLUMN: BRAND + CATEGORIES + LEGAL & COPYRIGHT)
       ========================================================================== */
    .site-footer {
      font-family: var(--font-family);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      width: 100%;
      background: #090a0f;
      border-top: 1px solid var(--border-subtle);
      margin-top: 48px;
      box-sizing: border-box;
      position: relative;
    }

    .footer-container {
      max-width: 1560px;
      margin: 0 auto;
      padding: 60px 24px 36px;
      box-sizing: border-box;
    }

    .footer-main {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 56px;
      margin-bottom: 48px;
    }

    /* Left: Brand Column */
    .footer-brand-col {
      flex: 1.4;
      max-width: 460px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .footer-brand-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
      text-decoration: none;
      margin-bottom: 14px;
      -webkit-user-select: none;
      user-select: none;
      cursor: pointer;
    }

    .footer-brand-logo:hover .brand-icon-wrapper {
      transform: scale(1.1) rotate(-4deg);
      filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.65));
    }

    .footer-brand-logo:hover .brand-sparkle-wrapper {
      animation-duration: 3.5s;
      filter: drop-shadow(0 0 12px rgba(41, 245, 183, 0.8));
    }

    .footer-desc {
      font-size: 0.9rem;
      line-height: 1.65;
      color: var(--text-secondary);
      margin: 0;
    }

    /* Center: Categories Column (3x3 Grid on Desktop) */
    .footer-categories-col {
      flex: 1.5;
      max-width: 520px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .footer-heading {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-primary);
      text-transform: uppercase;
      margin: 0 0 18px 0;
    }

    .footer-tags-list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px 12px;
      list-style: none;
      margin: 0;
      padding: 0;
      width: 100%;
    }

    .footer-tag-item {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 8px 12px;
      border-radius: var(--radius-full);
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-subtle);
      color: var(--text-secondary);
      font-size: 0.82rem;
      font-weight: 600;
      text-decoration: none;
      transition: all var(--transition-fast);
      box-sizing: border-box;
      -webkit-user-select: none;
      user-select: none;
      white-space: nowrap;
    }

    .footer-tag-item .tag-hash {
      color: var(--accent-primary);
      font-weight: 700;
      margin-right: 4px;
    }

    .footer-tag-item:hover {
      background: rgba(99, 102, 241, 0.14);
      border-color: rgba(99, 102, 241, 0.5);
      color: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
    }

    /* All Categories Distinct Featured Button */
    .footer-all-categories-btn {
      width: 100%;
      height: 38px;
      margin-top: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-radius: var(--radius-full);
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(139, 92, 246, 0.16) 50%, rgba(236, 72, 153, 0.12) 100%);
      border: 1px solid rgba(99, 102, 241, 0.42);
      color: #ffffff;
      font-size: 0.85rem;
      font-weight: 700;
      text-decoration: none;
      box-shadow: 0 4px 16px rgba(99, 102, 241, 0.18);
      transition: all var(--transition-fast);
      box-sizing: border-box;
      -webkit-user-select: none;
      user-select: none;
    }

    .footer-all-categories-btn .all-cat-arrow {
      width: 15px;
      height: 15px;
      flex-shrink: 0;
      stroke: #a5b4fc;
      transition: transform var(--transition-fast), stroke var(--transition-fast);
    }

    .footer-all-categories-btn:hover {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(139, 92, 246, 0.28) 50%, rgba(236, 72, 153, 0.22) 100%);
      border-color: #818cf8;
      box-shadow: 0 6px 22px rgba(99, 102, 241, 0.38), 0 0 12px rgba(139, 92, 246, 0.25);
      transform: translateY(-2px);
      color: #ffffff;
    }

    .footer-all-categories-btn:hover .all-cat-arrow {
      transform: translateX(3px);
      stroke: #ffffff;
    }

    .footer-all-categories-btn:active {
      transform: translateY(0);
    }

    /* Right: Legal Column */
    .footer-legal-col {
      flex: 0.9;
      max-width: 240px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .footer-legal-links {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
    }

    .footer-link {
      font-size: 0.9rem;
      color: var(--text-muted);
      text-decoration: none;
      transition: color var(--transition-fast), transform var(--transition-fast);
      display: inline-block;
    }

    .footer-link:hover {
      color: var(--text-primary);
      transform: translateX(3px);
    }

    /* Bottom: Copyright Row */
    .footer-bottom {
      border-top: 1px solid var(--border-subtle);
      padding-top: 26px;
      text-align: center;
    }

    .footer-copyright {
      font-size: 0.86rem;
      color: var(--text-muted);
      margin: 0;
      text-align: center;
    }

    /* Responsive Footer for Tablets and Mobile */
    @media (max-width: 992px) {
      .footer-main {
        gap: 36px;
      }
    }

    @media (max-width: 768px) {
      .footer-container {
        padding: 48px 16px 32px;
      }

      .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 36px;
        margin-bottom: 36px;
      }

      /* Left: Brand centered, description justified */
      .footer-brand-col {
        max-width: 100%;
        align-items: center;
        text-align: center;
      }

      .footer-brand-logo {
        justify-content: center;
      }

      .footer-desc {
        text-align: justify;
        text-justify: inter-word;
        font-size: 0.88rem;
        line-height: 1.6;
        width: 100%;
        max-width: 480px;
      }

      /* Center: Categories stacked one below the other */
      .footer-categories-col {
        align-items: center;
        text-align: center;
        width: 100%;
      }

      .footer-tags-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 290px;
        margin: 0 auto;
        gap: 10px;
      }

      .footer-tag-item {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 9px 18px;
      }

      .footer-all-categories-btn {
        width: 100%;
        max-width: 290px;
        height: 42px;
        margin: 12px auto 0;
        font-size: 0.88rem;
      }

      /* Right: Legal links stacked one below the other in the center */
      .footer-legal-col {
        align-items: center;
        text-align: center;
        width: 100%;
      }

      .footer-legal-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        width: 100%;
      }

      .footer-link:hover {
        transform: translateY(-1px);
      }

      .footer-copyright {
        font-size: 0.82rem;
      }
    }
  
    /* ==========================================================================
       SCROLL TO TOP BUTTON (FIXED BOTTOM RIGHT, 0 CLS)
       ========================================================================== */
    .scroll-to-top-btn {
      position: fixed;
      bottom: 28px;
      right: 28px;
      width: 44px;
      height: 44px;
      border-radius: var(--radius-full);
      background: var(--bg-surface-elevated);
      color: var(--text-primary);
      border: 1px solid var(--border-subtle);
      box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 99;
      opacity: 0;
      visibility: hidden;
      transform: translateY(12px);
      transition: opacity var(--transition-smooth), transform var(--transition-smooth), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
      outline: none;
      -webkit-user-select: none;
      user-select: none;
      pointer-events: none;
    }

    .scroll-to-top-btn.is-visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    .scroll-to-top-btn:hover {
      background: var(--accent-primary);
      border-color: var(--accent-primary);
      color: #ffffff;
      box-shadow: 0 10px 28px -4px rgba(99, 102, 241, 0.5);
    }

    .scroll-top-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
      pointer-events: none;
    }

    @media (max-width: 640px) {
      .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
      }
      .scroll-top-icon {
        width: 18px;
        height: 18px;
      }
    }

    /* ==========================================================================
       HOME CONTENT BOX & COMPLETE TYPOGRAPHY ENGINE (BELOW PAGINATION)
       ========================================================================== */
    .home-content-section {
      width: 100%;
      max-width: 920px;
      margin: 48px auto 0;
      padding: 0 20px 60px;
      box-sizing: border-box;
    }

    .home-content-container {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 44px 40px;
      box-sizing: border-box;
      box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
    }

    /* Core Content Typography */
    .article-content {
      color: #cbd5e1;
      font-size: 1.05rem;
      line-height: 1.82;
      overflow-wrap: break-word;
    }

    .article-content .lead {
      font-size: 1.22rem;
      line-height: 1.7;
      color: #f1f5f9;
      font-weight: 500;
      margin-bottom: 28px;
    }

    .article-content p {
      margin-bottom: 22px;
    }

    /* Headings H1 through H6 */
    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
      color: var(--text-primary);
      font-weight: 750;
      line-height: 1.32;
      margin-top: 38px;
      margin-bottom: 16px;
      scroll-margin-top: 90px;
    }

    .article-content h1 {
      font-size: 2.35rem;
      font-weight: 800;
      margin-top: 10px;
      margin-bottom: 22px;
    }

    .article-content h2 {
      font-size: 1.75rem;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      position: relative;
    }

    .article-content h2::before {
      content: '';
      position: absolute;
      left: 0;
      bottom: -1px;
      width: 56px;
      height: 2px;
      background: var(--accent-gradient);
      border-radius: 2px;
    }

    .article-content h3 {
      font-size: 1.38rem;
      color: #e2e8f0;
    }

    .article-content h4 {
      font-size: 1.18rem;
      color: #cbd5e1;
      font-weight: 700;
    }

    .article-content h5 {
      font-size: 1.05rem;
      color: #94a3b8;
      font-weight: 700;
      text-transform: uppercase;
    }

    .article-content h6 {
      font-size: 0.92rem;
      color: var(--text-muted);
      font-weight: 700;
      text-transform: uppercase;
    }

    /* Lists: Unordered & Ordered & Nested */
    .article-content ul,
    .article-content ol {
      margin-top: 8px;
      margin-bottom: 24px;
      padding-left: 26px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .article-content ul {
      list-style-type: none;
      padding-left: 0;
    }

    .article-content ul > li {
      position: relative;
      padding-left: 28px;
      line-height: 1.75;
    }

    .article-content ul > li::before {
      content: '';
      position: absolute;
      left: 6px;
      top: 10px;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent-primary);
      box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
    }

    .article-content ol {
      list-style-type: none;
      counter-reset: article-ol-counter;
      padding-left: 0;
    }

    .article-content ol > li {
      counter-increment: article-ol-counter;
      position: relative;
      padding-left: 36px;
      line-height: 1.75;
    }

    .article-content ol > li::before {
      content: counter(article-ol-counter);
      position: absolute;
      left: 0;
      top: 3px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: rgba(99, 102, 241, 0.18);
      border: 1px solid rgba(99, 102, 241, 0.45);
      color: #c7d2fe;
      font-size: 0.75rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }

    /* Nested Lists */
    .article-content ul ul,
    .article-content ol ol,
    .article-content ul ol,
    .article-content ol ul {
      margin-top: 8px;
      margin-bottom: 8px;
      padding-left: 18px;
      gap: 6px;
    }

    .article-content ul ul > li::before {
      background: #a5b4fc;
      border-radius: 1px;
      width: 5px;
      height: 5px;
      box-shadow: none;
    }

    /* Blockquote */
    .article-content blockquote {
      margin: 30px 0;
      padding: 22px 26px;
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
      border-left: 4px solid var(--accent-primary);
      border-radius: 0 var(--radius-md) var(--radius-md) 0;
      color: #e2e8f0;
      font-style: italic;
      position: relative;
    }

    .article-content blockquote p {
      margin-bottom: 10px;
      font-size: 1.1rem;
      line-height: 1.7;
    }

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

    .article-content blockquote cite {
      display: block;
      margin-top: 10px;
      font-size: 0.84rem;
      font-style: normal;
      font-weight: 600;
      color: var(--accent-secondary);
    }

    /* Inline Code & Code Blocks */
    .article-content code {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 0.88em;
      background: rgba(99, 102, 241, 0.14);
      color: #c7d2fe;
      border: 1px solid rgba(99, 102, 241, 0.28);
      padding: 2px 7px;
      border-radius: 5px;
    }

    .article-code-block-wrapper {
      margin: 26px 0;
      border-radius: var(--radius-md);
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: #090a0f;
    }

    .article-code-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 16px;
      background: rgba(255, 255, 255, 0.03);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 0.76rem;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
    }

    .article-code-copy-btn {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #e2e8f0;
      padding: 4px 10px;
      border-radius: var(--radius-sm);
      font-size: 0.72rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all var(--transition-fast);
    }

    .article-code-copy-btn:hover {
      background: rgba(99, 102, 241, 0.25);
      border-color: var(--accent-primary);
      color: #ffffff;
    }

    .article-code-copy-btn.copied {
      background: rgba(16, 185, 129, 0.25);
      border-color: #10b981;
      color: #6ee7b7;
    }

    .article-content pre {
      margin: 0;
      padding: 18px 20px;
      overflow-x: auto;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 0.9rem;
      line-height: 1.65;
      color: #e2e8f0;
    }

    .article-content pre code {
      background: transparent;
      border: none;
      padding: 0;
      color: inherit;
      font-size: inherit;
      white-space: pre-wrap;
      word-break: break-word;
    }

    /* Responsive Data Tables */
    .article-table-wrapper {
      width: 100%;
      overflow-x: auto;
      margin: 28px 0;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-subtle);
      background: var(--bg-surface-elevated);
    }

    .article-content table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 0.94rem;
    }

    .article-content th,
    .article-content td {
      padding: 13px 18px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .article-content th {
      background: rgba(99, 102, 241, 0.1);
      color: #f8fafc;
      font-weight: 700;
      font-size: 0.88rem;
      text-transform: uppercase;
      border-bottom: 1px solid rgba(99, 102, 241, 0.25);
    }

    .article-content tr:last-child td {
      border-bottom: none;
    }

    .article-content tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }

    /* Callout & Alert Boxes */
    .article-callout {
      margin: 28px 0;
      padding: 20px 22px;
      border-radius: var(--radius-md);
      display: flex;
      gap: 16px;
      box-sizing: border-box;
    }

    .article-callout-icon {
      width: 24px;
      height: 24px;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .article-callout-body {
      flex: 1;
      font-size: 0.98rem;
      line-height: 1.7;
    }

    .article-callout-title {
      font-weight: 700;
      margin-bottom: 6px;
      font-size: 1rem;
    }

    .article-callout.callout-info {
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.35);
      color: #e0e7ff;
    }

    .article-callout.callout-info .article-callout-icon {
      stroke: #818cf8;
    }

    .article-callout.callout-tip {
      background: rgba(16, 185, 129, 0.08);
      border: 1px solid rgba(16, 185, 129, 0.3);
      color: #d1fae5;
    }

    .article-callout.callout-tip .article-callout-icon {
      stroke: #34d399;
    }

    .article-callout.callout-warning {
      background: rgba(245, 158, 11, 0.08);
      border: 1px solid rgba(245, 158, 11, 0.3);
      color: #fef3c7;
    }

    .article-callout.callout-warning .article-callout-icon {
      stroke: #fbbf24;
    }

    /* Formatting: mark, kbd, small, strong, em, etc. */
    .article-content mark {
      background: rgba(234, 179, 8, 0.2);
      color: #fef08a;
      padding: 2px 6px;
      border-radius: 4px;
    }

    .article-content kbd {
      background: #1e2230;
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
      color: #f8fafc;
      font-family: inherit;
      font-size: 0.78rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 4px;
      display: inline-block;
    }

    .article-content small {
      font-size: 0.84rem;
      color: var(--text-muted);
    }

    .article-content del {
      color: var(--text-muted);
      text-decoration: line-through;
    }

    .article-content ins {
      color: #34d399;
      text-decoration: underline;
    }

    .article-content strong,
    .article-content b {
      color: #f8fafc;
      font-weight: 700;
    }

    .article-content em,
    .article-content i {
      font-style: italic;
    }

    .article-content sub,
    .article-content sup {
      font-size: 0.75em;
      line-height: 0;
      position: relative;
      vertical-align: baseline;
    }

    .article-content sup {
      top: -0.5em;
    }

    .article-content sub {
      bottom: -0.25em;
    }

    .article-content hr {
      border: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.4) 50%, transparent 100%);
      margin: 40px 0;
    }

    .article-content a:not(.article-center-btn) {
      color: #818cf8;
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: color var(--transition-fast);
    }

    .article-content a:not(.article-center-btn):hover {
      color: #c7d2fe;
    }

    /* Article Centered Action Button */
    .article-center-action-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      margin-top: 40px;
      padding-top: 28px;
      border-top: 1px solid var(--border-subtle);
    }

    .article-center-btn,
    .article-center-btn:link,
    .article-center-btn:visited,
    .article-center-btn:hover,
    .article-center-btn:active,
    .article-center-btn:focus {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 34px;
      border-radius: var(--radius-full);
      background: #4f46e5;
      color: #ffffff;
      font-size: 0.98rem;
      font-weight: 700;
      text-decoration: none;
      border: none;
      outline: none;
      box-shadow: none;
      transform: none;
      filter: none;
      cursor: pointer;
    }

    .article-center-btn span {
      color: #ffffff;
      text-decoration: none;
    }

    .article-center-btn .center-btn-icon {
      width: 18px;
      height: 18px;
      stroke: #ffffff;
      transform: none;
    }

    .article-center-btn:hover .center-btn-icon {
      transform: none;
    }

    @media (max-width: 768px) {
      .home-content-section {
        padding: 0 14px 40px;
        margin-top: 36px;
      }
      .home-content-container {
        padding: 28px 18px;
      }
      .article-content h1 {
        font-size: 1.85rem;
      }
      .article-content h2 {
        font-size: 1.45rem;
      }
      .article-content h3 {
        font-size: 1.25rem;
      }
    }

/* ==========================================================================
       ARTICLE CONTENT BOX & COMPLETE TYPOGRAPHY ENGINE
       ========================================================================== */
    .article-section {
      width: 100%;
      max-width: 920px;
      margin: 0 auto;
      padding: 0 20px 60px;
      box-sizing: border-box;
    }

    .article-container {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 44px 40px;
      box-sizing: border-box;
      box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
    }

    /* Article Meta Header */
    .article-meta-header {
      display: flex;
      align-items: center;
      padding-bottom: 24px;
      margin-bottom: 32px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .article-author-info {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .article-author-avatar {
      width: 44px;
      height: 44px;
      border-radius: var(--radius-full);
      object-fit: cover;
      border: 2px solid var(--accent-primary);
    }

    .article-author-meta {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .article-author-name {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-primary);
    }

    .article-publish-date {
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    /* Core Content Typography */
    .article-content {
      color: #cbd5e1;
      font-size: 1.05rem;
      line-height: 1.82;
      overflow-wrap: break-word;
    }

    .article-content .lead {
      font-size: 1.22rem;
      line-height: 1.7;
      color: #f1f5f9;
      font-weight: 500;
      margin-bottom: 28px;
    }

    .article-content p {
      margin-bottom: 22px;
    }

    /* Headings H1 through H6 */
    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
      color: var(--text-primary);
      font-weight: 750;
      line-height: 1.32;
      margin-top: 38px;
      margin-bottom: 16px;
      scroll-margin-top: 90px;
    }

    .article-content h1 {
      font-size: 2.35rem;
      font-weight: 800;
      margin-top: 10px;
      margin-bottom: 22px;
    }

    .article-content h2 {
      font-size: 1.75rem;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      position: relative;
    }

    .article-content h2::before {
      content: '';
      position: absolute;
      left: 0;
      bottom: -1px;
      width: 56px;
      height: 2px;
      background: var(--accent-gradient);
      border-radius: 2px;
    }

    .article-content h3 {
      font-size: 1.38rem;
      color: #e2e8f0;
    }

    .article-content h4 {
      font-size: 1.18rem;
      color: #cbd5e1;
      font-weight: 700;
    }

    .article-content h5 {
      font-size: 1.05rem;
      color: #94a3b8;
      font-weight: 700;
      text-transform: uppercase;
    }

    .article-content h6 {
      font-size: 0.92rem;
      color: var(--text-muted);
      font-weight: 700;
      text-transform: uppercase;
    }

    /* Lists: Unordered & Ordered & Nested */
    .article-content ul,
    .article-content ol {
      margin-top: 8px;
      margin-bottom: 24px;
      padding-left: 26px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .article-content ul {
      list-style-type: none;
      padding-left: 0;
    }

    .article-content ul > li {
      position: relative;
      padding-left: 28px;
      line-height: 1.75;
    }

    .article-content ul > li::before {
      content: '';
      position: absolute;
      left: 6px;
      top: 10px;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent-primary);
      box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
    }

    .article-content ol {
      list-style-type: none;
      counter-reset: article-ol-counter;
      padding-left: 0;
    }

    .article-content ol > li {
      counter-increment: article-ol-counter;
      position: relative;
      padding-left: 36px;
      line-height: 1.75;
    }

    .article-content ol > li::before {
      content: counter(article-ol-counter);
      position: absolute;
      left: 0;
      top: 3px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: rgba(99, 102, 241, 0.18);
      border: 1px solid rgba(99, 102, 241, 0.45);
      color: #c7d2fe;
      font-size: 0.75rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }

    /* Nested Lists */
    .article-content ul ul,
    .article-content ol ol,
    .article-content ul ol,
    .article-content ol ul {
      margin-top: 8px;
      margin-bottom: 8px;
      padding-left: 18px;
      gap: 6px;
    }

    .article-content ul ul > li::before {
      background: #a5b4fc;
      border-radius: 1px;
      width: 5px;
      height: 5px;
      box-shadow: none;
    }

    /* Blockquote */
    .article-content blockquote {
      margin: 30px 0;
      padding: 22px 26px;
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
      border-left: 4px solid var(--accent-primary);
      border-radius: 0 var(--radius-md) var(--radius-md) 0;
      color: #e2e8f0;
      font-style: italic;
      position: relative;
    }

    .article-content blockquote p {
      margin-bottom: 10px;
      font-size: 1.1rem;
      line-height: 1.7;
    }

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

    .article-content blockquote cite {
      display: block;
      margin-top: 10px;
      font-size: 0.84rem;
      font-style: normal;
      font-weight: 600;
      color: var(--accent-secondary);
    }

    /* Inline Code & Code Blocks */
    .article-content code {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 0.88em;
      background: rgba(99, 102, 241, 0.14);
      color: #c7d2fe;
      border: 1px solid rgba(99, 102, 241, 0.28);
      padding: 2px 7px;
      border-radius: 5px;
    }

    .article-code-block-wrapper {
      margin: 26px 0;
      border-radius: var(--radius-md);
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: #090a0f;
    }

    .article-code-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 16px;
      background: rgba(255, 255, 255, 0.03);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 0.76rem;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
    }

    .article-code-copy-btn {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #e2e8f0;
      padding: 4px 10px;
      border-radius: var(--radius-sm);
      font-size: 0.72rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all var(--transition-fast);
    }

    .article-code-copy-btn:hover {
      background: rgba(99, 102, 241, 0.25);
      border-color: var(--accent-primary);
      color: #ffffff;
    }

    .article-code-copy-btn.copied {
      background: rgba(16, 185, 129, 0.25);
      border-color: #10b981;
      color: #6ee7b7;
    }

    .article-content pre {
      margin: 0;
      padding: 18px 20px;
      overflow-x: auto;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 0.9rem;
      line-height: 1.65;
      color: #e2e8f0;
    }

    pre code {
      display: block;
      white-space: pre-wrap;
      word-break: break-word;
      background: transparent;
      border: none;
      padding: 0;
      color: inherit;
    }

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

    /* Responsive Data Tables */
    .article-table-wrapper {
      width: 100%;
      overflow-x: auto;
      margin: 28px 0;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-subtle);
      background: var(--bg-surface-elevated);
    }

    .article-content table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 0.94rem;
    }

    .article-content th,
    .article-content td {
      padding: 13px 18px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .article-content th {
      background: rgba(99, 102, 241, 0.1);
      color: #f8fafc;
      font-weight: 700;
      font-size: 0.88rem;
      text-transform: uppercase;
      border-bottom: 1px solid rgba(99, 102, 241, 0.25);
    }

    .article-content tr:last-child td {
      border-bottom: none;
    }

    .article-content tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }

    /* Callout & Alert Boxes */
    .article-callout {
      margin: 28px 0;
      padding: 20px 22px;
      border-radius: var(--radius-md);
      display: flex;
      gap: 16px;
      box-sizing: border-box;
    }

    .article-callout-icon {
      width: 24px;
      height: 24px;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .article-callout-body {
      flex: 1;
      font-size: 0.98rem;
      line-height: 1.7;
    }

    .article-callout-title {
      font-weight: 700;
      margin-bottom: 6px;
      font-size: 1rem;
    }

    .article-callout.callout-info {
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.35);
      color: #e0e7ff;
    }

    .article-callout.callout-info .article-callout-icon {
      stroke: #818cf8;
    }

    .article-callout.callout-tip {
      background: rgba(16, 185, 129, 0.08);
      border: 1px solid rgba(16, 185, 129, 0.3);
      color: #d1fae5;
    }

    .article-callout.callout-tip .article-callout-icon {
      stroke: #34d399;
    }

    .article-callout.callout-warning {
      background: rgba(245, 158, 11, 0.08);
      border: 1px solid rgba(245, 158, 11, 0.3);
      color: #fef3c7;
    }

    .article-callout.callout-warning .article-callout-icon {
      stroke: #fbbf24;
    }

    /* Formatting: mark, kbd, small, strong, em, etc. */
    .article-content mark {
      background: rgba(234, 179, 8, 0.2);
      color: #fef08a;
      padding: 2px 6px;
      border-radius: 4px;
    }

    .article-content kbd {
      background: #1e2230;
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
      color: #f8fafc;
      font-family: inherit;
      font-size: 0.78rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 4px;
      display: inline-block;
    }

    .article-content small {
      font-size: 0.84rem;
      color: var(--text-muted);
    }

    .article-content del {
      color: var(--text-muted);
      text-decoration: line-through;
    }

    .article-content ins {
      color: #34d399;
      text-decoration: underline;
    }

    .article-content strong,
    .article-content b {
      color: #f8fafc;
      font-weight: 700;
    }

    .article-content em,
    .article-content i {
      font-style: italic;
    }

    .article-content sub,
    .article-content sup {
      font-size: 0.75em;
      line-height: 0;
      position: relative;
      vertical-align: baseline;
    }

    .article-content sup {
      top: -0.5em;
    }

    .article-content sub {
      bottom: -0.25em;
    }

    .article-content hr {
      border: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.4) 50%, transparent 100%);
      margin: 40px 0;
    }

    .article-content a:not(.article-center-btn) {
      color: #818cf8;
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: color var(--transition-fast);
    }

    .article-content a:not(.article-center-btn):hover {
      color: #c7d2fe;
    }

    /* Figures, Media & Captions */
    .article-figure {
      margin: 32px 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .article-figure img {
      width: 100%;
      height: auto;
      aspect-ratio: 1 / 1;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-subtle);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
      display: block;
    }

    .article-figure figcaption {
      font-size: 0.82rem;
      color: var(--text-muted);
      text-align: center;
      font-style: italic;
    }

    /* In-Article Sponsor Ad Box */
    .article-ad-box {
      margin: 36px 0;
      padding: 24px 20px;
      border-radius: var(--radius-md);
      background: linear-gradient(165deg, rgba(20, 24, 36, 0.75) 0%, rgba(13, 15, 23, 0.92) 100%);
      border: 1px dashed rgba(99, 102, 241, 0.38);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 12px;
      min-height: 250px;
      box-sizing: border-box;
    }

    /* Article Centered Action Button */
    .article-center-action-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      margin-top: 40px;
      padding-top: 28px;
      border-top: 1px solid var(--border-subtle);
    }

    .article-center-btn,
    .article-center-btn:link,
    .article-center-btn:visited,
    .article-center-btn:hover,
    .article-center-btn:active,
    .article-center-btn:focus {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 34px;
      border-radius: var(--radius-full);
      background: #4f46e5;
      color: #ffffff;
      font-size: 0.98rem;
      font-weight: 700;
      text-decoration: none;
      border: none;
      outline: none;
      box-shadow: none;
      transform: none;
      filter: none;
      cursor: pointer;
    }

    .article-center-btn span {
      color: #ffffff;
      text-decoration: none;
    }

    .article-center-btn .center-btn-icon {
      width: 18px;
      height: 18px;
      stroke: #ffffff;
      transform: none;
    }

    .article-center-btn:hover .center-btn-icon {
      transform: none;
    }

    @media (max-width: 768px) {
      .article-section {
        padding: 0 14px 40px;
      }
      .article-container {
        padding: 28px 18px;
      }
      .article-content h1 {
        font-size: 1.85rem;
      }
      .article-content h2 {
        font-size: 1.45rem;
      }
      .article-content h3 {
        font-size: 1.25rem;
      }
      }

/* ==========================================================================
       CONTACT US FORM & THANK YOU CARD
       ========================================================================== */
    .contact-section {
      width: 100%;
      max-width: 820px;
      margin: 0 auto;
      padding: 0 20px 80px;
      box-sizing: border-box;
    }

    .contact-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 44px 40px;
      box-sizing: border-box;
      box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
      transition: border-color var(--transition-fast);
    }

    .contact-card-header {
      text-align: center;
      margin-bottom: 32px;
    }

    .contact-card-title {
      font-size: 1.75rem;
      font-weight: 700;
      color: var(--text-primary);
      margin: 0 0 10px 0;
    }

    .contact-card-desc {
      font-size: 0.95rem;
      color: var(--text-secondary);
      line-height: 1.6;
      margin: 0 auto;
      max-width: 580px;
      text-align: center;
    }

    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
      text-align: left;
    }

    .form-label {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .required-star {
      color: #ef4444;
      font-weight: 700;
    }

    .form-input,
    .form-textarea {
      width: 100%;
      box-sizing: border-box;
      padding: 12px 16px;
      border-radius: var(--radius-sm);
      background: var(--bg-surface-elevated);
      border: 1px solid var(--border-subtle);
      color: var(--text-primary);
      font-family: inherit;
      font-size: 0.95rem;
      outline: none;
      transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    }

    .form-textarea {
      resize: vertical;
      min-height: 120px;
      line-height: 1.6;
    }

    .form-input:focus,
    .form-textarea:focus {
      border-color: var(--accent-primary);
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
      color: var(--text-muted);
      opacity: 0.8;
    }

    .form-field-error {
      font-size: 0.8rem;
      color: #ef4444;
      display: none;
      margin-top: 2px;
    }

    .form-group.has-error .form-input,
    .form-group.has-error .form-textarea {
      border-color: #ef4444;
      box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    }

    .form-group.has-error .form-field-error {
      display: block;
    }

    .contact-submit-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 14px 24px;
      border-radius: var(--radius-sm);
      background: #4f46e5;
      color: #ffffff;
      font-family: inherit;
      font-size: 1rem;
      font-weight: 600;
      border: none;
      cursor: pointer;
      text-decoration: none;
      margin-top: 6px;
    }

    .submit-btn-icon {
      width: 18px;
      height: 18px;
    }

    /* Thank You State Card */
    .contact-thankyou-card {
      text-align: center;
      padding: 24px 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
    }

    .thankyou-icon-wrapper {
      width: 68px;
      height: 68px;
      border-radius: 50%;
      background: rgba(34, 197, 94, 0.12);
      border: 1px solid rgba(34, 197, 94, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #22c55e;
      margin-bottom: 4px;
    }

    .thankyou-icon {
      width: 34px;
      height: 34px;
    }

    .thankyou-title {
      font-size: 1.85rem;
      font-weight: 700;
      color: var(--text-primary);
      margin: 0;
    }

    .thankyou-message {
      font-size: 1rem;
      color: var(--text-secondary);
      line-height: 1.6;
      max-width: 540px;
      margin: 0 auto;
    }

    .thankyou-message strong {
      color: var(--text-primary);
    }

    .thankyou-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      margin-top: 14px;
      flex-wrap: wrap;
    }

    .thankyou-reset-btn {
      padding: 12px 24px;
      border-radius: var(--radius-sm);
      background: #4f46e5;
      color: #ffffff;
      border: none;
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
    }

    .thankyou-home-btn {
      padding: 12px 24px;
      border-radius: var(--radius-sm);
      background: var(--bg-surface-elevated);
      color: var(--text-primary);
      border: 1px solid var(--border-subtle);
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
    }

    @media (max-width: 640px) {
      .contact-card {
        padding: 28px 20px;
      }
      .form-row {
        grid-template-columns: 1fr;
      }
      .contact-card-title {
        font-size: 1.45rem;
      }
      .thankyou-title {
        font-size: 1.55rem;
      }
      .thankyou-actions {
        flex-direction: column;
        width: 100%;
      }
      .thankyou-reset-btn,
      .thankyou-home-btn {
        width: 100%;
        justify-content: center;
      }
    }


/* ==========================================================================
   CATEGORY FILTER PILLS BAR & SEARCH HERO COMPONENT
   ========================================================================== */
.category-pills-section {
  max-width: 1400px;
  margin: -40px auto 40px;
  padding: 0 24px;
}

.category-pills-container {
  position: relative;
  width: 100%;
}

.category-pills-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.category-pill:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.category-pill .pill-hash {
  color: var(--accent-primary);
  font-weight: 700;
}

.category-pill.is-active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.category-pill.is-active .pill-hash {
  color: rgba(255, 255, 255, 0.85);
}

.search-page-box {
  max-width: 620px;
  margin: 24px auto 0;
}

.search-hero-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #a5b4fc;
}

@media (max-width: 768px) {
  .category-pills-section {
    margin: -30px auto 30px;
    padding: 0 16px;
  }

  .category-pills-scroll {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .category-pills-scroll::-webkit-scrollbar {
    display: none;
  }
}
