header{
    padding:1em 5em;
    background: var(--surface);
    font-size:0.9em;
}

header > div{
    flex:1;
}

header > .mid{
    flex:1.5;
}

@media (max-width:1080px){
    header > .mid{
        flex:2;
    }
}

header .profile-dropdown-trigger:hover{
    cursor:pointer;
}

header .profile-dropdown-trigger .in-btn{
    font-size:0.6em;
    color: var(--grey);
}

.icon-circle{
    color: var(--grey);
    border: 1px solid var(--border-color);
    height:2.3em;
    /* width:2.3em; */
    aspect-ratio:1;
    font-size:0.8em;
    border-radius:100%;

    display:flex;
    align-items:center;
    justify-content:center;
}

.icon-circle.gold{
    color: var(--primary-light);
    background: var(--primary);
    border-color: 2px inline var(--primary-xx-light);
    font-size:.0.9em;
}

header .nav{
    color:var(--grey);
    font-size:0.9em;
}

header .category-btn{
    background: var(--border-color-light);
    padding:0.2em 0.5em;
    border-radius:0.9em;
    font-size:0.85em;
    font-weight:700;
}

header .category-btn .in-icon,
header .create-btn .in-icon,
header .language-btn .in-icon{
    font-size:0.8em;
}

header .v-line{
    height:1.5em;
    width:1px;
    background: var(--border-color);
    margin:0 1em;
}

header .wallet-balance b{
    font-size:0.9em;
}

header .search-box{
    height:2.5em;
    width:9em;
    position:relative;
}

header .search-box input{
    height:100%;
    width:100%;
    border: 1px solid var(--primary);
    padding:1em;
    border-radius:1.5em;
    background: #eee2;
}

header .search-box .search-btn{
    color: #fff;
    background: var(--primary);
    border: none;
    font-size:0.9em;
    padding:0;
    position:absolute;
    right:2.5%;
    top:5.3%;
    height:90%;
    width:auto;
    aspect-ratio:1 !important;
}

header .country-circle{
    height: 3em;
    width: 3em;
    border-radius:100%;
    overflow:hidden;
    background-image: var(--country);
    background-size: 150%;
    background-position: center;
}

header .language-btn{
    margin-left:0.5em;
}

/* Header Dropdowns Styles */
.header-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 10;
    display: none;
    padding: 8px 0;
}

.header-dropdown.active {
    display: block;
}

.header-dropdown-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.header-dropdown-item:hover {
    background: #f5f5f5;
}

.header-dropdown-item i {
    color: #666;
}

/* Category Dropdown */
.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 10;
    display: none;
    padding: 8px 0;
}

.category-dropdown.active {
    display: block;
}

.category-dropdown-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.category-dropdown-item:hover {
    background: #f5f5f5;
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 10;
    display: none;
    padding: 8px 0;
}

.language-dropdown.active {
    display: block;
}

.language-dropdown-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.language-dropdown-item:hover {
    background: #f5f5f5;
}

.language-dropdown-item img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    /* background: #0001;
    color: white;
    backdrop-filter:blur(5px); */

    background: var(--surface);
    color: var(--text-primary);

    z-index: 11;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    padding: 20px;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10;
    display: none;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-nav-close {
    cursor: pointer;
    padding: 8px;
}

.mobile-nav-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display:flex;
    align-items:center;
    font-size:0.9em;
    font-weight:700;
    gap:0.5em;
}

.mobile-nav-item i[class*="fa"]{
    color: var(--primary);
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

/* Chevron Animation */
.chevron-rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width:1080px){
    header .search-box{
        width: 15em;
        max-width:80%;
    }
    header{
        padding-inline: 3em;
    }
    header .mid-2{
        justify-content:end;
        margin-right:5%;
        max-width:65%;
    }

    header .language-btn{
        
    }
}

@media (max-width:768px){
    header{
        padding-inline: 1em;
    }

    .header-dropdown,
    .category-dropdown,
    .language-dropdown {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
    }
}

@media (max-width:360px){
    header{
        padding-inline: 0.5em;
    }
    header .mid-2{
        justify-content:end;
        margin-right:5%;
        max-width:50%;
    }
}