
header {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: relative;
}

.hamburger i {
    font-size: 28px;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}
.logo img {
    width: 50px;

    height: 50px;
    margin-right: 10px;
    object-fit: contain;
}
.logo-text {
    margin-right: 2px;
}

.logo-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-green);
    border-radius: 50%;
    align-self: flex-end;
    margin-bottom: 2px;
}

.desktop-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-left: -50px;
}
nav ul {
    display: flex;
    list-style: none;
}

nav a {
    color: var(--text-light-gray);
    text-decoration: none;
    padding: 0 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-white);
}

.header-buttons {
    display: flex;
    align-items: center;
}


.login-btn {
}

.try-now-btn {
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
}

.btn-icon-end {
    --btn-icon-end-bg: var(--btn-primary-text);
    --btn-icon-end-text: var(--btn-primary-bg); 
    --btn-icon-end-size: 24px;

    margin-left: 5px;

    width: var(--btn-icon-end-size);
    height: var(--btn-icon-end-size);

        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: var(--btn-icon-end-bg);
        color: var(--btn-icon-end-text);
        flex-shrink: 0;
        padding: 0;
        border-radius: 50%;
    text-decoration: none;
}
.btn-icon-end {
    font-size: 10px;
}
.btn-icon-end.arrow-icon i {
    font-size: 10px;
}




/* New CSS for User Profile Dropdown */
.header-buttons-container {
    display: flex;
    align-items: center;
}

.user-profile-dropdown {
    position: relative;
    cursor: pointer;
}

.user-icon-btn {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: none;
    color: var(--text-white);
    padding: 0;
    cursor: pointer;
}

.user-icon-btn .user-email {
    font-size: 1rem;
    color: var(--text-light-gray);
    margin-right: 10px;
    display: none; /* Hidden by default for mobile */
}

.user-icon-btn .user-balance {
    font-size: 0.875rem;
    color: var(--primary-green);
    margin-right: 10px;
    display: none; /* Hidden by default for mobile */
}

.user-icon-btn .fa-circle-user {
    font-size: 30px;
    color: var(--primary-green);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--table-border);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    margin-top: 10px;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
}

.user-profile-dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    color: var(--text-light-gray);
    text-decoration: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .user-icon-btn .user-email,
    .user-icon-btn .user-balance {
        display: block; /* Show on desktop */
    }
}





/* Mobile Menu styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #1a1a1a;
    color: #fff;
    padding: 1.5rem 3rem;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2rem;
    min-height: 24px;
    
}

.menu-close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    display: flex
;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.menu-close-btn:hover {
    color: var(--primary-green, #b3ff38);
}

.theme-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* User Profile Dropdown Fixes */
.user-profile-dropdown {
    position: relative;
    cursor: pointer;
}

.user-icon-btn {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: none;
    color: var(--text-white);
    padding: 0;
    cursor: pointer;
}

.user-icon-btn .user-email {
    font-size: 1rem;
    color: var(--text-light-gray);
    margin-right: 10px;
    display: none;
}

.user-icon-btn .user-balance {
    font-size: 0.875rem;
    color: var(--primary-green);
    margin-right: 10px;
    display: none;
}

.user-icon-btn .fa-circle-user {
    font-size: 30px;
    color: var(--primary-green);
}
    .mobile-menu { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 80%; 
        height: 100%; 
        padding: 2rem 3rem; 
        transform: translateX(-100%); 
        transition: transform 0.3s ease-in-out; 
    
        background-color: var(--card-bg);
        border-radius: 8px;
        min-width: 150px;
        z-index: 2000;
        list-style: none;
    }

.user-profile-dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    color: var(--text-light-gray);
    text-decoration: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}
.mobile-menu nav ul { 
    margin-top: 5rem;
    flex-direction: column;
}
/* Responsive adjustments */
@media (min-width: 769px) {
    .user-icon-btn .user-email,
    .user-icon-btn .user-balance {
        display: block;
    }
    
    .mobile-btn.user-icon-btn {
        display: none;
    }
    
    .try-now-btn {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .mobile-btn.user-icon-btn {
        display: block;
    }
    
    .try-now-btn {
        display: none;
    }
}
/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
    display: none;
}

.overlay.active {
    display: block;
}




.mobile-btn.user-icon-btn {
    display: block;
}
.try-now-btn {
    display: none;
}
.header-buttons button {
    padding: 0;
}
@media (min-width: 769px) {

    .header-buttons a {
        padding: 0.75rem 1.5rem;
        border-radius: 25px;
        font-weight: 500;
        cursor: pointer;
        text-decoration: none;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    .mobile-btn.user-icon-btn {
        display: none;
    }
    .try-now-btn {
        display: inline-flex;
    }
}





.header-left-group {
    display: none;
}

@media (max-width: 768px) {
    /* Main header adjustments */
    header {
        justify-content: center; /* Center the entire content initially */
        align-items: center;
        /* Using a grid or more complex flex layout is better for this specific
           mobile layout. This is a simpler flex solution. */
    }

    /* Wrap the header's contents in a new flex container to properly align
       the logo and hamburger/buttons. */
    header.mobile-header-layout {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%; /* Ensure it spans the full width */
    }

    /* New CSS to properly align the logo and menu on mobile */
    header .header-left-group, header .header-right-group {
        display: flex;
        align-items: center;
        flex: 1; /* Make both groups take up equal space */
    }
    
    header .header-left-group {
        justify-content: flex-start;
    }

    .header-right-group {
        justify-content: flex-end;
    }

    /* Center the logo itself within the header */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10; /* Ensure the logo is on top if needed */
    }

    /* Hide the desktop nav on mobile */
    .desktop-nav {
        display: none;
    }
    
    /* Show the hamburger menu button on mobile */
    .hamburger {
        display: block; /* Assuming it's hidden by default on desktop */
    }
}