  /* Reset & Base */
  html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
  }

  body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #fff;
    color: #0f172a;
    line-height: 1.6;
  }

  /* Scrollbars */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  ::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 6px;
  }

  ::-webkit-scrollbar-track {
    background-color: transparent;
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
  }

  /* Header & Navigation */
  .cc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  }

  .cc-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .cc-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
  }

  .cc-logo img {
    height: 32px;
    width: auto;
    margin-right: 10px;
  }

  .cc-desktop-nav {
    display: none;
  }

  @media (min-width: 1024px) {
    .cc-desktop-nav {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      height: 100%;
    }
  }

  .cc-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: default;
  }

  .cc-nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 0.5rem 0.25rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .cc-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
  }

  .cc-nav-item:hover .cc-nav-link {
    color: #3b82f6;
  }

  .cc-nav-item:hover .cc-chevron {
    transform: rotate(180deg);
  }

  /* Dropdowns */
  .cc-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-out;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
  }

  .cc-dropdown.cc-mega {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 600px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
  }

  .cc-nav-item:hover .cc-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .cc-nav-item:hover .cc-dropdown.cc-mega {
    transform: translateX(-50%) translateY(0);
  }

  .cc-dropdown a {
    font-size: 0.9rem;
    color: #64748b;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
  }

  .cc-dropdown a:hover {
    background: #f1f5f9;
    color: #3b82f6;
  }

  .cc-nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }



  .cc-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
  }

  @media (min-width: 1024px) {
    .cc-hamburger {
      display: none;
    }
  }

  .cc-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #0f172a;
    border-radius: 2px;
    transition: 0.3s;
  }

  .cc-hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .cc-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .cc-hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Mobile Overlay */
  .cc-mobile-overlay {
    position: fixed;
    top: 4.5rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 4.5rem);
    background: #fff;
    z-index: 999;
    display: none;
    overflow-y: auto;
    padding: 1rem 1.5rem 5rem;
  }

  .cc-mobile-overlay.active {
    display: block;
    animation: slideIn 0.3s ease-out;
  }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mobile-group {
    border-bottom: 1px solid #f1f5f9;
  }

  .mobile-trigger {
    width: 100%;
    padding: 1.25rem 0;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .cc-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
    color: #64748b;
  }

  .mobile-content {
    display: none;
    padding-bottom: 1rem;
  }

  .mobile-group.open .mobile-content {
    display: block;
  }

  .mobile-group.open .cc-arrow {
    transform: rotate(180deg);
  }

  .mobile-content a {
    display: block;
    padding: 0.75rem 0;
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
  }

  /* Footer */
  .cc-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 80px 1.5rem 40px;
  }

  .cc-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 3rem;
  }

  .footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
  }

  .cc-footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
    max-width: 320px;
  }

  .brand-socials {
    display: flex;
    gap: 1rem;
  }

  .brand-socials button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }

  .brand-socials button:hover {
    background-color: #0050d5;
    color: #fff;
    border-color: #0050d5;
  }

  .cc-footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .cc-footer-col ul {
    list-style: none;
  }

  .cc-footer-col li {
    margin-bottom: 0.75rem;
  }

  .cc-footer-col a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
  }

  .cc-footer-col a:hover {
    color: #0050d5;
  }

  .cc-footer-bottom {
    border-top: 1px solid #e5e7eb;
    margin-top: 5rem;
    padding-top: 2rem;
  }

  .footer-bottom-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
  }

  @media (max-width: 1024px) {
    .cc-footer-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }

    .cc-footer-brand {
      grid-column: span 2;
    }
  }

  @media (max-width: 768px) {
    .cc-footer-container {
      grid-template-columns: 1fr;
    }

    .cc-footer-brand {
      grid-column: span 1;
    }

    .footer-bottom-container {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
    }
  }

  /* Blog Specific */
  .blog-post-page {
    background-color: #fff;
    min-height: 100vh;
    padding: 2rem 0;
  }

  .blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  .blog-content {
    max-width: 800px;
    margin: 0 auto;
  }

  .category-badge {
    background: #f1f5f9;
    color: #0050d5;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .read-time {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-left: 0.75rem;
  }

  .blog-article h1, .blog-header h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1.1;
    color: #111;
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .blog-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .blog-body p {
    margin-bottom: 2rem;
  }

  .blog-body h2 {
    font-size: 2rem;
    color: #111;
    font-weight: 800;
    margin: 3.5rem 0 1.5rem;
    letter-spacing: -0.02em;
  }

  .blog-callout {
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    background: #f0f7ff;
    border-radius: 0.75rem;
    border-left: 4px solid #0050d5;
    color: #1e3a8a;
    font-size: 1.1rem;
    font-style: italic;
  }

  /* PREMIUM CODE BLOCK */
  .code-block-modern {
    margin: 2.5rem 0;
    background: #1d1f21;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2d2d2d;
  }

  .code-header {
    background: #2d2d2d;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3d3d3d;
  }

  .traffic-lights {
    display: flex;
    gap: 6px;
  }

  .traffic-lights span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
  }

  .traffic-lights span:nth-child(2) {
    background: #ffbd2e;
  }

  .traffic-lights span:nth-child(3) {
    background: #27c93f;
  }

  .code-file-name {
    color: #999;
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .code-body {
    padding: 0;
    overflow-x: auto;
    background: #1d1f21;
  }

  .code-body pre {
    margin: 0 !important;
    padding: 1.5rem !important;
    background: transparent !important;
  }

  .code-body code {
    font-family: 'Fira Code', monospace !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    background: transparent !important;
    text-shadow: none !important;
  }

  /* Prism Token Reset */
  .token {
    background: none !important;
    text-shadow: none !important;
  }

  /* Sidebar Sections */
  .sidebar-section {
    margin-bottom: 3.5rem;
  }

  /* BLOG LAYOUT (Single Column Centered) */
  .blog-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
  }

  .blog-content {
    max-width: 800px;
    width: 100%;
    min-width: 0;
  }

  .sidebar-wrapper {
    display: none;
  }

  .sidebar-header {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
  }

  .sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .sidebar-card {
    text-decoration: none;
    display: block;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
  }

  .sidebar-card:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #3b82f6;
  }

  .sidebar-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.2s;
  }

  .sidebar-card:hover h5 {
    color: #3b82f6;
  }

  .sidebar-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
  }

  @media (max-width: 1024px) {
    .blog-layout {
      flex-direction: column;
      gap: 2rem;
    }

    .blog-content {
      max-width: 100%;
      margin: 0 auto;
    }

    .sidebar-column {
      display: none;
    }
  }

  body.ads-banned .ad-protector {
    display: none !important;
    visibility: hidden !important;
  }

  .ad-protector {
    margin: 3rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    min-width: 250px; /* Force minimum width for ad calculation */
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
  }

  .ad-protector ins.adsbygoogle {
    width: 100% !important; /* Ensure the ad tag fills the stable container */
    max-width: 100%;
  }

  /* Responsive Table Fixes */
  .blog-body table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .blog-body td, .blog-body th {
    min-width: 120px;
    padding: 1rem;
    border: 1px solid #f1f5f9;
    word-wrap: break-word;
  }