:root {
      --bg-dark: #0a0e17;
      --bg-surface: #111827;
      --bg-card: #1f293d;
      --border: #2e3b52;
      --neon-cyan: #00f0ff;
      --neon-magenta: #ff007f;
      --neon-green: #00ff66;
      --neon-gold: #ffb700;
      --text-main: #f3f4f6;
      --text-muted: #ffffff;
      --text-dim: #6b7280;
      --radius-sm: 6px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.35);
      --glow-magenta: 0 0 15px rgba(255, 0, 127, 0.35);
      --glow-green: 0 0 15px rgba(0, 255, 102, 0.35);
      --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--bg-dark);
      color: var(--text-main);
      font-family: var(--font);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
    }

    /* HEADER & NAV */
    .site-header {
      background: rgba(17, 24, 39, 0.85);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .header-wrapper {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }

    .logo {
      display: flex;
      align-items: center;
      text-decoration: none;
    }

    .logo img {
      width: 120px;
      height: 60px;
      object-fit: contain;
    }

    .nav-toggle {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      width: 30px;
      height: 24px;
      background: transparent;
      border: none;
      cursor: pointer;
      z-index: 102;
    }

    .nav-toggle span {
      width: 100%;
      height: 3px;
      background-color: var(--neon-cyan);
      border-radius: 2px;
      transition: all 0.3s ease;
      box-shadow: 0 0 5px var(--neon-cyan);
    }

    .nav-toggle.active span:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
      opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }

    .main-nav {
      position: fixed;
      top: 72px;
      left: 0;
      width: 100%;
      background: var(--bg-surface);
      border-bottom: 1px solid var(--border);
      padding: 1.5rem 1rem;
      transform: translateY(-150%);
      transition: transform 0.3s ease-in-out;
      z-index: 101;
    }

    .main-nav.active {
      transform: translateY(0);
    }


    .nav-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .nav-link {
      color: var(--text-main);
      text-decoration: none;
      font-weight: 700;
      font-size: 1.05rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      transition: color 0.2s, text-shadow 0.2s;
    }

    .nav-link:hover {
      color: var(--neon-cyan);
      text-shadow: 0 0 8px var(--neon-cyan);
    }

    /* HERO BANNER */
    .hero-banner {
      background: linear-gradient(135deg, rgba(31, 41, 61, 0.8) 0%, rgba(17, 24, 39, 0.95) 100%),
                  radial-gradient(circle at top right, rgba(0, 240, 255, 0.15), transparent 50%),
                  radial-gradient(circle at bottom left, rgba(255, 0, 127, 0.15), transparent 50%);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 2rem 1.25rem;
      margin: 1.5rem 0;
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .hero-banner::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    }

    .hero-banner h1 {
      font-size: 1.85rem;
      font-weight: 900;
      line-height: 1.2;
      margin-bottom: 0.75rem;
      background: linear-gradient(90deg, #ffffff, #a5f3fc);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      text-transform: uppercase;
      letter-spacing: -0.5px;
    }

    .hero-banner p {
      font-size: 1rem;
      color: var(--text-muted);
    }

    /* LAYOUT Grid */
    .main-layout {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      margin-bottom: 3rem;
    }

    /* ARTICLE SCOPED STYLES */
    .article {
      background: var(--bg-surface);
      padding: 1.25rem;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .article h1, .article h2, .article h3, .article h4 {
      color: #fff;
      font-weight: 800;
      line-height: 1.3;
      margin-top: 2rem;
      margin-bottom: 1rem;
    }

    .article h1 { font-size: 1.75rem; }
    .article h2 {
      font-size: 1.4rem;
      border-bottom: 1px solid var(--border);
      padding-bottom: 0.5rem;
      position: relative;
    }

    .article h2::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      width: 60px;
      height: 2px;
      background: var(--neon-cyan);
      box-shadow: var(--glow-cyan);
    }

    .article h3 { font-size: 1.2rem; color: var(--neon-cyan); }

    .article > *:first-child {
      margin-top: 0;
    }

    .article p {
      margin-bottom: 1.25rem;
      color: var(--text-muted);
      font-size: 0.95rem;
      line-height: 1.75;
    }

    .article img {
      border-radius: 5px;
      max-width: 100%;
      height: auto;
      margin: 1.5rem 0;
      display: block;
      border: 1px solid var(--border);
      box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    }

    .article ul, .article ol {
      margin-bottom: 1.5rem;
      padding-left: 1.25rem;
    }

    .article ul li, .article ol li {
      margin-bottom: 0.6rem;
      color: var(--text-muted);
      font-size: 0.95rem;
    }

    .article ul li::marker {
      color: var(--neon-magenta);
    }

    .article ol li::marker {
      color: var(--neon-cyan);
      font-weight: 700;
    }

   /* TABLE MOBILITY & VISUALIZATION */
.table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
}

.table-wrapper table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrapper th,
.table-wrapper td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: top;
}

.table-wrapper th {
  background-color: var(--bg-card);
  color: var(--neon-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.table-wrapper td {
  color: var(--text-muted);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.table-wrapper tr:first-child td {
  background-color: var(--bg-card);
  color: var(--neon-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.table-wrapper tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.table-wrapper tr:last-child td {
  border-bottom: none;
}
    /* SIDEBAR & WIDGETS */
    .sidebar {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .widget {
      background: var(--bg-surface);
      padding: 1.25rem;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      position: relative;
    }

    .widget-title {
      font-size: 1.1rem;
      font-weight: 800;
      margin-bottom: 1.25rem;
      color: #fff;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .widget-title::before {
      content: '';
      display: inline-block;
      width: 4px;
      height: 16px;
      background: var(--neon-magenta);
      box-shadow: var(--glow-magenta);
      border-radius: 2px;
    }

    .top-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }

    .top-list-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.85rem;
      background: var(--bg-card);
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      transition: border-color 0.2s, transform 0.2s;
    }

    .top-list-item:hover {
      border-color: var(--neon-cyan);
      transform: translateY(-2px);
    }

    .top-list-info {
      display: flex;
      flex-direction: column;
    }

    .top-list-name {
      font-weight: 700;
      font-size: 0.95rem;
      color: #fff;
    }

    .top-list-badge {
      font-size: 0.75rem;
      color: var(--neon-gold);
    }

    .btn-cta {
      background: linear-gradient(135deg, var(--neon-green), #00b347);
      color: #000;
      text-decoration: none;
      padding: 0.5rem 1rem;
      border-radius: var(--radius-sm);
      font-size: 0.85rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      box-shadow: var(--glow-green);
      transition: filter 0.2s, transform 0.2s;
    }

    .btn-cta:hover {
      filter: brightness(1.15);
      transform: scale(1.03);
    }

    /* AUTHOR BLOCK */
    .author-block {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-left: 4px solid var(--neon-cyan);
      border-radius: var(--radius-md);
      padding: 1.5rem;
      margin-bottom: 2.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 1.25rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }

    .author-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--neon-cyan);
      box-shadow: var(--glow-cyan);
    }

    .author-info {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .author-meta {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .author-name {
      font-size: 1.15rem;
      font-weight: 800;
      color: #fff;
    }

    .author-badge {
      background: rgba(0, 240, 255, 0.1);
      color: var(--neon-cyan);
      border: 1px solid var(--neon-cyan);
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      font-weight: 700;
    }

    .author-bio {
      font-size: 0.875rem;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* FOOTER */
    .site-footer {
      background: var(--bg-surface);
      border-top: 1px solid var(--border);
      padding: 2.5rem 0 1.5rem 0;
    }

    .footer-top {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      align-items: flex-start;
      margin-bottom: 2rem;
    }

    .footer-nav-list {
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      gap: 1rem 1.5rem;
    }

    .footer-nav-link {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.875rem;
      font-weight: 600;
      transition: color 0.2s;
    }

    .footer-nav-link:hover {
      color: var(--neon-cyan);
    }

    .footer-badges {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 1.25rem;
      margin: 1.5rem 0;
      padding: 1.5rem 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .footer-badges a {
      display: inline-block;
      width: 100px;
      height: 40px;
      filter: grayscale(100%);
      opacity: 0.7;
      transition: filter 0.2s, opacity 0.2s;
    }

    .footer-badges a:hover {
      filter: grayscale(0%);
      opacity: 1;
    }

    .footer-badges img {
      width: 100px;
      height: 40px;
      object-fit: contain;
    }

    .footer-legal {
      text-align: center;
      color: var(--text-dim);
      font-size: 0.775rem;
      line-height: 1.6;
      max-width: 800px;
      margin: 0 auto;
    }

    .footer-legal p {
      margin-bottom: 0.5rem;
    }

    /* BACK TO TOP */
    .back-to-top {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 44px;
      height: 44px;
      background: var(--bg-card);
      color: var(--neon-cyan);
      border: 1px solid var(--neon-cyan);
      border-radius: var(--radius-sm);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--glow-cyan);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s, visibility 0.3s, background 0.2s;
      z-index: 99;
    }

    .back-to-top.visible {
      opacity: 1;
      visibility: visible;
    }

    .back-to-top:hover {
      background: var(--neon-cyan);
      color: #000;
    }

    /* DESKTOP BREAKPOINT (768px+) */
    @media (min-width: 768px) {
      .nav-toggle {
        display: none;
      }

      .main-nav {
        position: static;
        transform: none;
        padding: 0;
        background: transparent;
        border: none;
        width: auto;
      }

      .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
      }

      .hero-banner {
        padding: 3.5rem 2.5rem;
      }

      .hero-banner h1 {
        font-size: 2.5rem;
      }

      .main-layout {
        display: grid;
        align-items: start;
      }

      .article {
        padding: 2.25rem;
      }

      .author-block {
        flex-direction: row;
        text-align: left;
      }

      .author-meta {
        justify-content: flex-start;
      }

      .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
      }
    }
/* ===== TABLE FIX: ADD THIS AT THE VERY END OF YOUR CSS ===== */

.article {
  overflow-x: hidden;
}

.article table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.article table th,
.article table td {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.article .table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.article .table-wrapper table {
  min-width: 700px;
}

@media (max-width: 767px) {
  .article table {
    display: table !important;
  }

  .article .table-wrapper {
    margin: 1.5rem 0;
  }

  .article .table-wrapper table {
    min-width: 640px;
  }
}