.content-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--bg-element-primary);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    width: 100%;
    transition: all 0.3s ease;
}

#mobile-menu-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    margin-right: 16px;
    transition: all 0.2s ease;
}

#mobile-menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .content-header {
        margin-left: 0;
        width: 100%;
        padding-left: 16px;
    }

    #mobile-menu-toggle-btn {
        display: flex;
    }
}


.header-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-block {
    display: flex;
    align-items: center;
}

.header-block.left {
    flex: 1;
    justify-content: flex-start;
}

.header-block.right {
    justify-content: flex-end;
}

.header-search {
    position: relative;
    
    display: flex;
    align-items: center;
    gap: 12px;
    background: #18181b;
    
    border: 1px solid #27272a;
    border-radius: 9999px;
    
    padding: 12px 20px;
    width: 100%;
    max-width: 380px;
    transition: all 0.2s ease;
}

.header-search:focus-within {
    border-color: #3f3f46;
    background: #27272a;
}

.header-search i {
    font-size: 18px;
    color: #71717a;
}

.header-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
}

.header-search input::placeholder {
    color: #52525b;
}






.header-wallet-container {
    display: flex;
    align-items: center;
    gap: 0;
    background: #27272a;
    border-radius: 9999px;
    padding: 3px 3px 3px 12px;
    height: 36px;
    box-sizing: border-box;
}

.header-wallet {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    height: auto;
}

.header-wallet i {
    font-size: 14px;
    color: #71717a;
}

.header-wallet .wallet-amount {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    font-family: var(--font-body);
    white-space: nowrap;
}


.wallet-divider {
    width: 1px;
    height: 16px;
    background: #3f3f46;
    margin: 0 10px;
}





.btn-header-deposit {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    background: #ffffff;
    color: #000000;
    padding: 0 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.btn-header-deposit:hover {
    background: #e4e4e7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-header-login {
    background: transparent;
    color: #a1a1aa;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-header-login:hover {
    color: #fff;
}

.btn-header-register {
    background: #ffffff;
    color: #000;
    padding: 10px 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-header-register:hover {
    background: #e4e4e7;
    transform: translateY(-1px);
}





.header-avatar-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #27272a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-avatar-btn:hover {
    border-color: #fff;
}

.header-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-dropdown-wrapper {
    position: relative;
}

.notification-wrapper {
    position: relative;
}

.header-action-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #fff;
    transition: color 0.2s;
}

.header-action-btn:hover {
    color: var(--blue);
}

.notification-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: #ff5b5b;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    padding: 0 4px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bg-element-primary);
}

.notification-count.visible {
    display: flex;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    background: linear-gradient(180deg, #1a1a1f 0%, #141417 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    max-height: 500px;
    backdrop-filter: blur(20px);
}

.notification-dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
}

.notification-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

#mark-all-read-btn {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

#mark-all-read-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.notification-list {
    overflow-y: auto;
    flex-grow: 1;
    padding: 8px;
    display: flex;
    gap: 4px;
    flex-direction: column;
}

.notification-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.notification-item.unread {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%);
    border-color: rgba(34, 197, 94, 0.15);
    position: relative;
}

.notification-item.unread::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.notification-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
}

.notification-icon.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #4ade80;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.notification-icon.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #f87171;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.notification-icon.warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.notification-icon.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: #60a5fa;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content .title {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-content .message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-content .date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 8px;
    font-weight: 500;
}

.notification-empty {
    text-align: center;
    padding: 48px 24px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.notification-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
    display: block;
}

.notification-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(158, 177, 189, 0.5) transparent;
}

.notification-list::-webkit-scrollbar {
    width: 8px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background-color: rgba(158, 177, 189, 0.5);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(158, 177, 189, 0.7);
}

:root {
    --blue: #2b90fe;
    --topLine: #212f44;
}

.headfixed {
    align-items: center;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    position: relative;
    
    z-index: 29;
    background-color: rgb(5 21 32);
    backdrop-filter: blur(10px);
    height: 60px;
    top: 0px;
    left: 0px;
}

.headfixed .topHeader {
    align-items: center;
    max-width: 1322px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    
    padding: 0 var(--content-padding);
    position: relative;
    transition: opacity .3s ease;
}

.headfixed .topHeader .topleft {
    grid-gap: 10px;
    align-items: center;
    display: flex;
}

.headfixed .topHeader .topleft .newMainStyle {
    border: 2px solid transparent;
    border-radius: 8px;
    height: 30px;
    padding: 0 10px;
    transition: background-color .15s ease, border-color .15s ease;
    align-items: center;
    background-color: rgb(2 30 59);
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    align-content: center;
}

.headfixed .topHeader .topleft .newMainStyle.application {
    padding: 0 5px 0 10px;
}

.headfixed .topHeader .topleft .newMainStyle.lock {
    height: 31px;
    width: 31px;
    z-index: 2;
}

.headfixed .topHeader .topleft .newMainStyle:hover {
    border-color: #2e9bff;

    i {
        color: #fff !important;
    }
}

.headfixed .topHeader .topleft .newMainStyle .pr {
    margin-right: 7px;
    width: 13px;
}

.headfixed .topHeader .topleft .newMainStyle span {
    font-size: 10px;
    font-weight: 700;
}

.headfixed .topHeader .topleft .newMainStyle .lng {
    margin-right: 7px;
    width: 12px;
}

.headfixed .topHeader .topleft .newMainStyle .windows {
    color: var(--accent-blue);
    width: 16px;
}

.headfixed .topHeader .topleft .newMainStyle .btnTextBlock {
    padding-left: 8px;
    position: relative;

    img {
        max-width: 40px;
        max-height: 40px;
        bottom: 4px;
        position: relative;
    }
}

.headfixed .topHeader .topleft .newMainStyle .btnTextBlock.iconExe {
    padding-left: 10px;
}

.headfixed .topHeader .topleft .newMainStyle .btnTextBlock .icons {
    align-items: center;
    display: flex;
}

.headfixed .topHeader .topleft .newMainStyle .btnTextBlock .icons .platformIcon {
    color: #475774;
}

.headfixed .topHeader .topleft .newMainStyle .btnTextBlock.last {
    margin-left: 8px;
}

.headfixed .topHeader .topleft .newMainStyle .btnTextBlock.last:before {
    background: #475774;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 1px;
}

.headfixed .topHeader .topleft .newMainStyle .btnTextBlock h3 {
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.headfixed .topHeader .topleft .newMainStyle .btnTextBlock .subT {
    font-size: 8px;
    color: #adadad;
}

.headfixed .topHeader .topleft .transferBtn {
    background-image: linear-gradient(180deg, #043466, #043466), linear-gradient(180deg, #2786fd 20%, #043466 47%);
    padding: 0 35px 0 50px;
    position: relative;
}

.headfixed .topHeader .topleft .transferBtn.tgbtn {
    background-image: linear-gradient(180deg, #021e3b, #021e3b), linear-gradient(180deg, #5eccfc 20%, #021e3b 47%);
    padding: 0 8px 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.headfixed .topHeader .topleft .transferBtn.vkbtn {
    background-image: linear-gradient(180deg, #021e3b, #021e3b), linear-gradient(180deg, #5eccfc 20%, #021e3b 47%);
    padding: 0 30px 0 20px;
}

.headfixed .topHeader .topleft .transferBtn.tgbtn .bagImg,
.headfixed .topHeader .topleft .transferBtn.vkbtn .bagImg {
    bottom: 3px;
    filter: drop-shadow(0 0 10px #2D94FE80);
    top: auto;
    transform: none;
    max-width: 20px;
}

.headfixed .topHeader .topleft .transferBtn.tgbtn:hover,
.headfixed .topHeader .topleft .transferBtn.vkbtn:hover {
    border-color: #2786fd;
}

.headfixed .topHeader .topleft .transferBtn span {
    align-items: center;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 2.577px 2.577px #00000040;
    z-index: 2;
}

.headfixed .topHeader .topleft .transferBtn span p {
    color: #2786fd;
}

.headfixed .topHeader .topleft .transferBtn .bagImg {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.headfixed .topHeader .topleft .transferBtn .backImg {
    left: 0;
    position: absolute;
    top: -2px;
}

.headfixed .topHeader .topleft .transferBtn .btnCharacter {
    bottom: -3px;
    position: absolute;
    right: 0;
}

.headfixed .topHeader .topleft .transferBtn:hover {
    border-color: #2786fd;
}

.tgbtn {
    img {
        left: 0px !important;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }
}

.vkbtn {
    img {
        left: none;
        right: 0 !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }
}




@media (max-width: 600px) {
    .headfixed {
        padding: 0 10px;
    }
}

@media (max-width: 1024px) {
    .header-inner {
        padding: 0 16px;
    }

    
    .btn-deposit span {
        display: none;
    }

    
    .btn-deposit i {
        display: block !important;
        font-size: 20px;
    }

    .btn-deposit {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 10px;
        
    }

    
    .header-wallet i {
        display: none;
    }
}

@media (max-width: 768px) {

    .sidebar-toggle-mobile,
    .header-search {
        display: none !important;
    }

    .header-block.center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-block.left,
    .header-block.right {
        flex-basis: 50%;
    }

    .header-logo img {
        
    }

    .header-balance {
        padding: 6px 10px;
        gap: 8px;
    }

    .header-balance i {
        font-size: 20px;
    }

    .balance-info span {
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .header-actions .btn-secondary {
        display: none;
    }

    .header-block.center {
        display: none;
    }
}






.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}


.content-header.search-active {
    z-index: 101;
}


.header-search-results {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 10px;
    display: none;
    
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
    z-index: 102;
}

.header-search-results.active {
    display: flex;
}


.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-deposit i {
    display: none;
    
}

.btn-deposit:hover {
    background: #dfdfdf;
}

.search-result-item:hover {
    background: #27272a;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #27272a;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.search-result-provider {
    color: #71717a;
    font-size: 12px;
}





@media (max-width: 768px) {
    

    .header-search-results {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80vh;
        border-radius: 20px 20px 0 0;
        border: none;
        background: #18181b;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1100;
        
        padding: 20px;
    }

    .header-search-results.active {
        display: flex;
        transform: translateY(0);
    }

    
    .header-search-results::before {
        content: "";
        display: block;
        width: 40px;
        height: 4px;
        background: #3f3f46;
        border-radius: 2px;
        margin: 0 auto 20px auto;
    }
}