
    /* --- Header --- */
    .header-bar {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 10px 0;
      background: #111;
      color: #fff;
      position: relative;
      z-index: 1000;
      height: 56px;
    }
    .rank-display { 
      font-size: 1.3em; 
      font-weight: bold; 
    }
    .rank-label { color: #fbbf24; }
    .rank-title { color: #fff; }

    /* --- Floating Menu --- */
    .menu-wrapper {
      position: absolute;
      top: 10px;
      right: 16px;
      z-index: 1001;
    }
    .hamburger-icon {
      background: #fbbf24;
      border: none;
      color: #111;
      font-size: 24px;
      border-radius: 10px;
      width: 44px;
      height: 44px;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }
    .dropdown-menu {
      position: absolute;
      right: 0;
      top: 54px;
      background: #fff;
      color: #111;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      display: none;
      flex-direction: column;
      min-width: 160px;
      overflow: hidden;
      z-index: 9999;
    }
    .dropdown-menu button,
    .dropdown-menu a {
      background: none;
      border: none;
      text-align: left;
      padding: 12px 16px;
      font-size: 15px;
      cursor: pointer;
      width: 100%;
      color: #111;
    }
    .dropdown-menu button:hover,
    .dropdown-menu a:hover {
      background: #f4f4f4;
    }

    /* --- Category Drawer --- */
    .category-drawer {
      position: fixed;
      top: 0;
      left: -300px;
      width: 260px;
      height: 100%;
      background: #1a1a1a;
      color: #fff;
      transition: left 0.3s ease;
      z-index: 9998;
      padding: 20px;
      overflow-y: auto;
    }
    .category-drawer.open { left: 0; }
    .category-drawer h3 {
      margin-bottom: 12px;
      border-bottom: 1px solid #333;
      padding-bottom: 8px;
    }
    .category-drawer ul { list-style: none; padding: 0; }
    .category-drawer li {
      margin: 10px 0;
      cursor: pointer;
      padding: 8px;
      border-radius: 5px;
      transition: background 0.2s;
    }
    .category-drawer li:hover { background: #333; }
    .category-close {
      position: absolute;
      top: 10px;
      right: 14px;
      font-size: 22px;
      cursor: pointer;
      background: none;
      border: none;
      color: #fff;
    }
    .overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      display: none;
      z-index: 9997;
    }
    .overlay.show { display: block; }

    /* --- Main Content --- */
    main {
      padding: 20px;
      transition: transform 0.3s ease;
    }
    main.shifted { transform: translateX(220px); }
    .search-bar {
      display: flex;
      justify-content: space-between;
      margin-bottom: 15px;
    }
    .search-bar input {
      flex: 1;
      padding: 8px;
      border: 1px solid #333;
      border-radius: 6px 0 0 6px;
      background: #222;
      color: #fff;
    }
    .search-bar button {
      background: #fbbf24;
      border: none;
      padding: 8px 14px;
      border-radius: 0 6px 6px 0;
      cursor: pointer;
      font-weight: bold;
    }
    .ad-card {
      background: #1c1c1c;
      border-radius: 8px;
      padding: 12px;
      margin: 8px 0;
    }
    .ad-card h3 { color: #fbbf24; }
    .load-more {
      display: block;
      margin: 20px auto;
      background: #fbbf24;
      border: none;
      padding: 10px 16px;
      border-radius: 6px;
      cursor: pointer;
      font-weight: bold;
    }
    .footer {
      text-align:center;
      padding:15px 0;
      background:#111;
      color:#fff;
      margin-top:30px;
    }

    /* --- Modal --- */
    .modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      align-items: center;
      justify-content: center;
      z-index: 9999;
    }
    .modal-card {
      background: #fff;
      color: #111;
      padding: 20px;
      border-radius: 10px;
      max-width: 420px;
      width: 92%;
      position: relative;
    }
    .modal-card input,
    .modal-card button {
      width: 100%;
      margin: 8px 0;
      padding: 10px;
      border-radius: 6px;
      border: 1px solid #ccc;
    }
    .modal-card button {
      background: #fbbf24;
      border: none;
      font-weight: bold;
      cursor: pointer;
    }
 
