.content-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--bg-element-primary);
    z-index: 100;
    border-bottom: 1px solid var(--border-color-primary);
}

@supports (backdrop-filter: blur(10px)) {
    .content-header {
        background-color: rgb(5 21 32 / 35%);
        backdrop-filter: blur(10px);
    }
}

.header-inner {
    width: 100%;
    max-width: 1322px;
    margin: 0 auto;
    padding: 0 var(--content-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-block {
    display: flex;
    align-items: center;
}

.header-block.left {
    flex: 1;
    justify-content: flex-start;
}

.header-block.center {
    flex: 1;
    justify-content: center;
}

.header-block.right {
    flex: 1;
    justify-content: flex-end;
}

.header-logo img {
    height: 24px;
    width: auto;
}

.header-balance {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #05121cb0;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color-primary);
}

.header-balance:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.2); */
    /* border-color: var(--accent-blue); */
}

.header-balance i {
    font-size: 24px;
    color: var(--accent-blue);
}

.balance-info {
    display: flex;
    text-align: left;
    line-height: 1.2;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.balance-info span {
    font-size: 15px;
    color: var(--text-primary);
}

.balance-info small {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
}

.btn-deposit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-casino-bg);
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-deposit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 155, 255, 0.3);
}

.btn-deposit i {
    font-size: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.profile-btn:hover {
    border-color: var(--accent-blue);
}

.profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-dropdown-wrapper {
    position: relative;
}

.profile-dropdown {
}

.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: 360px;
    background-color: var(--bg-main);
    border-radius: 12px;
    border: 1px solid var(--border-color-primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-out;
    display: flex;
    flex-direction: column;
    max-height: 450px;
}

.notification-dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    border-radius: 12px;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color-primary);
    flex-shrink: 0;
}

.notification-header h3 {
    font-size: 16px;
    font-weight: 600;
}

#mark-all-read-btn {
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: 500;
}

.notification-list {
    overflow-y: auto;
    flex-grow: 1;
    padding: 8px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background-color: var(--bg-element-secondary);
}

.notification-item.unread {
    background-color: rgba(46, 155, 255, 0.1);
}

.notification-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.notification-icon.success {
    background-color: #00e70120;
    color: #57ff57;
}

.notification-icon.error {
    background-color: #ff5b5b20;
    color: #ff8f8f;
}

.notification-icon.warning {
    background-color: #ff9b4420;
    color: #ffb87a;
}

.notification-icon.info {
    background-color: #2e9bff20;
    color: #57aeff;
}

.notification-content .title {
    font-weight: 600;
    color: var(--text-primary);
}

.notification-content .message {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.notification-content .date {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
    opacity: 0.7;
}

.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.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;
    /* from .fixed */
    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-bottom: 15px; */
    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 25px 0 50px;
}

.headfixed .topHeader .topleft .transferBtn.vkbtn {
    background-image: linear-gradient(180deg, #021e3b, #021e3b), linear-gradient(180deg, #5eccfc 20%, #021e3b 47%);
    padding: 0 50px 0 25px;
}

.headfixed .topHeader .topleft .transferBtn.tgbtn .bagImg, .headfixed .topHeader .topleft .transferBtn.vkbtn .bagImg {
    bottom: -2px;
    filter: drop-shadow(0 0 10px #2D94FE80);
    right: 0;
    top: auto;
    transform: none;
    max-width: 40px;
}

.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 {
    right: -18px;
    position: absolute;
    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;
        position: absolute;
        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 Queries */
@media (max-width: 700px) {
    .headfixed {
        /* display: none; */
    }
}

@media (max-width: 600px) {
    .headfixed {
        padding: 0 10px;
    }
}

@media (max-width: 1024px) {
    .header-inner {
        padding: 0 16px;
    }

    .btn-deposit span {
        display: none;
    }

    .btn-depositHeader {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-block.center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-block.left, .header-block.right {
        flex-basis: 50%;
    }

    .header-logo img {
        /* height: 36px; */
    }

    .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;
    }
}
