 
    /* =============== Theme Variables =============== */
    :root {
      --bg-color: #000000;
      --text-color: #ffffff;
      --card-bg: #151515;
      --input-bg: #1e1e1e;
      --border-color: #333;
      --secondary-text: #a8b4c0;
      --tertiary-text: #6b7684;
      --hover-bg: rgba(255, 255, 255, 0.05);
      --glass-bg: rgba(10, 10, 10, 0.8);
      --electric-blue: #1d9bf0;
      --electric-blue-hover: #1a8cd8;
      --gradient-start: #1d9bf0;
      --gradient-end: #8b5cf6;
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .light-mode {
      --bg-color: #f8f9fa;
      --text-color: #212529;
      --card-bg: #ffffff;
      --input-bg: #f1f3f5;
      --border-color: #dee2e6;
      --secondary-text: #6c757d;
      --tertiary-text: #495057;
      --hover-bg: rgba(0, 0, 0, 0.05);
      --glass-bg: rgba(255, 255, 255, 0.8);
      --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* =============== Base & Reset =============== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Space Grotesk', sans-serif;
      background: var(--bg-color);
      color: var(--text-color);
      min-height: 100vh;
      padding-bottom: 80px;
      transition: background-color 0.3s, color 0.3s;
    }

    /* =============== Secondary Menu =============== */
    .secondary-menu {
      position: fixed;
      left: 50%;
      transform: translateX(-50%);
      bottom: -250px;
      width: 200px;
      background: var(--glass-bg);
      border-radius: 20px;
      padding: 1rem;
      backdrop-filter: blur(10px);
      transition: bottom 0.3s ease;
      z-index: 99;
      height: 240px;
      overflow-y: auto;
    }

    .secondary-menu.active {
      bottom: 85px;
    }

    .secondary-menu h3 {
      color: var(--electric-blue);
      margin-bottom: 1rem;
      font-size: 1.25rem;
      font-weight: 600;
    }

    .secondary-menu a {
      display: flex;
      align-items: center;
      padding: 0.75rem;
      margin-bottom: 0.5rem;
      color: var(--secondary-text);
      text-decoration: none;
      border-radius: 10px;
      transition: all 0.2s ease;
      font-size: 0.9rem;
      cursor: pointer;
    }

    .secondary-menu a:hover {
      background: var(--hover-bg);
      color: var(--electric-blue);
    }

    .secondary-menu a i {
      margin-right: 0.75rem;
      width: 16px;
      text-align: center;
    }

    /* =============== Main Content =============== */
    .main-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 1rem 6rem;
    }

    .tab-container {
      display: flex;
      justify-content: center;
      margin-bottom: 2rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tab-button {
      padding: 1rem 2rem;
      background: none;
      border: none;
      font-size: 1rem;
      font-weight: 600;
      color: var(--secondary-text);
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
    }

    .tab-button:hover {
      color: var(--primary-text);
    }

    .tab-button.active {
      color: var(--electric-blue);
    }

    .tab-button.active::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      width: 100%;
      height: 3px;
      background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
      border-radius: 3px 3px 0 0;
    }

    .search-container {
      margin-bottom: 2rem;
      text-align: center;
    }

    .community-search {
      width: 100%;
      max-width: 500px;
      padding: 1rem 1.5rem;
      background-color: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: 50px;
      font-size: 1rem;
      color: var(--primary-text);
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    .community-search:focus {
      outline: none;
      border-color: var(--electric-blue);
      box-shadow: 0 0 0 2px rgba(29, 155, 240, 0.3);
    }

    .community-search::placeholder {
      color: var(--tertiary-text);
    }

    .communities-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1.5rem;
    }

    .community-card {
      background: var(--glass-bg);
      border-radius: 20px;
      padding: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 1px solid var(--glass-border);
      transition: all 0.3s ease;
      cursor: pointer;
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    .community-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
      border-color: rgba(255, 255, 255, 0.2);
    }

    .community-content {
      display: flex;
      align-items: center;
      flex-grow: 1;
    }

    .community-image {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 1.5rem;
      border: 2px solid var(--glass-border);
      transition: all 0.3s ease;
    }

    .community-card:hover .community-image {
      border-color: var(--electric-blue);
    }

    .community-info {
      flex-grow: 1;
    }

    .community-info h3 {
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 0.4rem;
      color: var(--primary-text);
    }

    .community-info p {
      color: var(--secondary-text);
      font-size: 0.9rem;
      font-weight: 400;
      margin-bottom: 0;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .join-btn {
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      color: white;
      border: none;
      border-radius: 50px;
      padding: 0.75rem 1.5rem;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .join-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }

    .leave-btn {
      background: linear-gradient(135deg, #dc3545, #c82333);
      color: white;
      border: none;
      border-radius: 50px;
      padding: 0.5rem 1.25rem;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .leave-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }

    .no-communities, .error-container, .no-results {
      width: 100%;
      text-align: center;
      padding: 2rem;
      color: var(--secondary-text);
      background-color: var(--glass-bg);
      border-radius: 20px;
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(10px);
    }

    .no-communities .btn, 
    .error-container .retry-btn {
      display: inline-block;
      margin-top: 1rem;
      padding: 0.75rem 1.5rem;
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      color: white;
      text-decoration: none;
      border-radius: 50px;
      font-weight: 600;
      transition: all 0.3s ease;
      border: none;
      cursor: pointer;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .no-communities .btn:hover, 
    .error-container .retry-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }

    .tab-content {
      display: none;
    }

    .tab-content.active {
      display: block;
    }

    .create-community-btn {
      background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
      color: white;
      border: none;
      border-radius: 50px;
      padding: 0.75rem 1.5rem;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
      margin-bottom: 1.5rem;
      display: inline-block;
      text-decoration: none;
    }

    .create-community-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }

    /* =============== Bottom Nav =============== */
    .navbars {
      position: fixed;
      bottom: 0;
      width: 100%;
      z-index: 100;
      background: var(--card-bg);
      padding: 0.75rem 0;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav {
      display: flex;
      justify-content: space-around;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
    }

    .nav a {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.25rem;
      color: var(--secondary-text);
      text-decoration: none;
      font-size: 0.8rem;
      padding: 0.5rem;
      border-radius: 10px;
      transition: all 0.2s ease;
    }

    .nav a i {
      font-size: 1.25rem;
    }

    .nav a.active {
      color: var(--electric-blue);
    }

    .nav a:hover {
      color: var(--electric-blue);
    }

    /* =============== Responsive =============== */
    @media (max-width: 768px) {
      .main-container { padding: 1rem 1rem 6rem; }
      .nav a { font-size: 0.75rem; }
      .nav a i { font-size: 1.1rem; }
    }

    @media (max-width: 480px) {
      .wrapper { border-radius: 15px; }
      .form-title { font-size: 1.25rem; }
      .image-upload-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
      }
    }

    /* =============== Scroll to Top Button =============== */
    #scrollToTop {
      position: fixed;
      right: 20px;
      bottom: 100px;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: 50%;
      padding: 12px;
      color: var(--secondary-text);
      cursor: pointer;
      z-index: 99;
      display: none;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      backdrop-filter: blur(10px);
    }

    #scrollToTop:hover {
      background: var(--hover-bg);
      color: var(--electric-blue);
    }

    #scrollToTop i {
      font-size: 1.2rem;
    }
