    /* -------- Base Reset & Typography -------- */
    body {
      margin: 0;
      background-color: #f8f9fb;
      color: #2c2c2c;
      font-family: 'Inter', 'Arial', sans-serif;
      line-height: 1.6;
    }

    .preview-content {
      font-family: 'Georgia', serif;
    }

    .preview-content img,
    .ql-editor img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      margin: 12px 0;
    }

    .ql-syntax {
      background-color: #1e1e1e;
      color: #f8f8f2;
      border-radius: 8px;
      padding: 12px 16px;
      font-family: 'Fira Code', monospace;
      font-size: 14px;
      overflow-x: auto;
    }

    /* -------- Blog Post Card -------- */
    .blog-post {
      background: #ffffff;
      color: #333;
      border-radius: 20px;
      padding: 36px;
      margin-bottom: 28px;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
      border: none;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .blog-post:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    }

    .blog-post h2 {
      font-size: 2.25rem;
      margin: 0 0 18px 0;
      font-weight: 700;
      color: #1a1a1a;
    }

    .blog-post p {
      font-size: 1.125rem;
      color: #555;
      margin-bottom: 18px;
    }

    /* -------- Blog Metadata -------- */
    .meta {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 18px;
    }

    .meta img {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      object-fit: cover;
    }

    .meta .author {
      font-weight: 600;
      font-size: 1rem;
    }

    /* -------- Buttons -------- */
    .post-btn,
    .comment-submit {
      background: linear-gradient(135deg, #5651a9, #41435c);
      color: #fff;
      padding: 12px 24px;
      border: none;
      border-radius: 9999px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .post-btn:hover,
    .comment-submit:hover {
      background: linear-gradient(135deg, #4338ca, #4f46e5);
      transform: translateY(-2px);
      box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
    }

    /* -------- Voting Controls -------- */
    .blog-controls {
      display: flex;
      gap: 10px;
      margin-top: 16px;
    }

    .vote-btn {
      border: 1px solid #ddd;
      background: #fafafa;
      padding: 6px 12px;
      border-radius: 10px;
      cursor: pointer;
      display: flex;
      gap: 6px;
      align-items: center;
      font-size: 14px;
      transition: background 0.2s ease, transform 0.2s ease;
    }

    .vote-btn:hover {
      background: #f0f0ff;
      transform: translateY(-1px);
    }

    .vote-count {
      font-weight: 600;
      color: #4f46e5;
    }

    /* -------- Comments (Reverted Style) -------- */
    .comments-area {
      margin-top: 18px;
      border-top: 1px dashed #e0e0e0;
      padding-top: 14px;
    }

    .comment-form {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 8px;
    }

    .comment-input {
      width: 100%;
      min-height: 70px;
      padding: 10px;
      border-radius: 8px;
      border: 1px solid #ddd;
      resize: vertical;
    }

    .comment-submit {
      align-self: flex-end;
      padding: 8px 14px;
      border-radius: 8px;
      border: none;
      background: #535089;
      color: #fff;
      cursor: pointer;
    }

    .comment {
      display: flex;
      gap: 10px;
      padding: 10px 0;
      border-bottom: 1px solid #f0f0f0;
    }

    .comment .avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      object-fit: cover;
    }

    .comment .body {
      flex: 1;
    }

    .comment .body .head {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }

    .comment .body .name {
      font-weight: 700;
    }

    .comment .body .ctime {
      color: #777;
      font-size: 13px;
    }

    .comment .body .text {
      margin: 6px 0;
    }

    .comment .actions {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }

    .quote-box {
      border-left: 3px solid #ddd;
      padding-left: 8px;
      margin: 6px 0;
      color: #555;
      background: #fafafa;
      border-radius: 6px;
    }

    /* -------- Sidebar / Leaderboard -------- */
    .sidebar {
      width: 100%;
    }

    .leaderboard-box {
      background: #fff;
      border-radius: 20px;
      padding: 24px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
      border: none;
      position: sticky;
      top: 24px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .leaderboard-box:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    }

    .leaderboard-box h2 {
      font-size: 1.5rem;
      margin-bottom: 16px;
      font-weight: 700;
      color: #4f46e5;
    }

    .rank,
    .name,
    .score {
      font-size: 1rem;
    }

    .rank {
      font-weight: 700;
      color: #111;
    }

    .score {
      color: #4f46e5;
      font-weight: 600;
    }

    /* -------- Layout -------- */
    .container {
      display: flex;
      gap: 28px;
      justify-content: space-between;
      width: 100%;
      padding: 28px;
    }

    .blog-container {
      flex: 1;
    }

    /* -------- Modal -------- */
    .modal-background {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      z-index: 999;
    }

    #postModal {
      display: none;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: #fff;
      padding: 28px;
      border-radius: 16px;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
      z-index: 1000;
      width: min(900px, 95vw);
    }

    .close-btn {
      position: absolute;
      top: 12px;
      right: 12px;
      font-size: 22px;
      color: #444;
      cursor: pointer;
    }

    /* -------- Responsive -------- */
    @media (max-width: 900px) {
      .container {
        flex-direction: column;
        padding: 20px;
      }

      .sidebar {
        width: 100%;
        margin-top: 20px;
      }

      .leaderboard-box {
        position: relative;
        top: auto;
      }
    }

    .tab-btn {
      padding: 6px 14px;
      border-radius: 6px;
      border: 1px solid #e5e5e5;
      background: #fafafa;
      font-size: 14px;
      font-weight: 500;
      color: #555;
      cursor: pointer;
      transition: all 0.3s ease;
      /* smoother animation */
    }

    .tab-btn:hover {
      background: #f0f0f0;
    }

    .tab-btn.active {
      background: #e5e5e5;
      /* soft gray */
      color: #222;
      /* slightly darker text */
      border-color: #d4d4d4;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
      /* subtle shadow for depth */
    }