@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    list-style: none;
    scroll-behavior: smooth;
    font-family: "Mulish", sans-serif;
}

:root {
    --theme-text-color: #000000;
    --theme-text-desc-color: #3e3e3e;
    --theme-mbg-color: #f3faff;
    --theme-btn-color: #0f1d26;
    --theme-btn-text-color: #f6fdff;
    --theme-body-color: #fff;
    --theme-border-color: #d7dfe1;
    --theme-lines-color: #EFF4F5;
    --theme-filter-color: #eceef0;
    --popup-color: #f3f3f3;
    
    --main-color: #078ad6;
}

.dark-theme {
    --theme-text-color: #d7dddf;
    --theme-text-desc-color: #bdbdbd;
    --theme-mbg-color: #080c0e;
    --theme-btn-color: #f6fdff;
    --theme-btn-text-color: #181818;
    --theme-body-color: #080c0e;
    --theme-border-color: #1d2328;
    --theme-lines-color: #292b2b;
    --theme-filter-color: #1b1f20;
    --popup-color: #101618;
}

body {
    transition: 0.3s ease-in-out;
    background: var(--theme-body-color);
}
header {
    width: 100%;
    top: 0;
    right: 0;
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: space-between;
    padding: 22px 10%;
    left: 0;
    transition: 0.3s ease-in-out;
    z-index: 5;
}

header.sticky {
    background: var(--theme-mbg-color);
    box-shadow: 0 0 20px #00000018;
    backdrop-filter: blur(8px);
}

header .theme {
    vertical-align: middle;
    font-size: 20px;
    margin-right: 10px;
    color: var(--theme-text-color);
    cursor: pointer;
}

header .logotype {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-text-color);
    transition: 0.3s ease-in-out;
}

@media (hover: hover) {
    header .logotype:hover {
        color: var(--main-color);
    }
}

@media (hover: none) {
    header .logotype:active {
        color: var(--main-color);
    }
}

header .links {
    display: flex;
    margin-left: 125px;
}

header .links a {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-text-color);
    margin-right: 60px;
    display: inline-block;
    transition: 0.3s ease-in-out;
}
header .links li:last-child a {
    margin-right: 0;
}

header .links a:hover {
    color: var(--main-color);
}

header .reg {
    font-weight: 600;
    color: var(--theme-btn-text-color);
    background: var(--theme-btn-color);
    padding: 9px 18px;
    border-radius: 50px;
    transition: 0.30s ease-in-out;
}

header .reg:hover {
    background: var(--main-color);
}

header .login {
    font-weight: 600;
    color: var(--white-text-color);
    margin-right: 15px;
}

header .menu-icon, .mobile-mode, .menu-list {
    display: none;
}

#main {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 200px 18%;
    background-repeat: no-repeat;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease-in-out;
}

.profile-box {
    display: flex;
    color: var(--theme-text-color);
}

.profile-box .left-side {
    width: 50%;
    background: var(--theme-body-color);
    height: fit-content;
    padding: 15px;
    position: relative;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0000000d;
    border: 1px solid var(--theme-border-color);
    transition: 0.3s ease-in-out;
}

.profile-box .right-side {
    width: 100%;
    height: fit-content;
    margin-left: 10px;
}

.profile-box .right-side .top-side {
    width: 100%;
    background: var(--theme-body-color);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0000000d;
    border: 1px solid var(--theme-border-color);
    transition: 0.3s ease-in-out;
}

.profile-box .right-side .bottom-side {
    width: 100%;
    background: var(--theme-body-color);
    margin-top: 10px;
    padding: 12px;
    padding-top: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0000000d;
    border: 1px solid var(--theme-border-color);
    transition: 0.3s ease-in-out;
}

.left-side .top-user {
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid var(--theme-lines-color);
    padding-bottom: 10px;
    transition: border-bottom 0.3s ease-in-out;
}

.left-side img {
    width: 60px;
    border-radius: 50%;
    margin-right: 13px;
    vertical-align: middle;
    transition: 0.3s ease-in-out;
    outline: 2px solid var(--theme-lines-color);
    cursor: pointer;
}

.left-side img:hover {
    filter: brightness(0.5) saturate(0);
    outline: 2px solid #707070;
}

.left-side .avater i {
    position: absolute;
    top: 9%;
    left: 11%;
    transform: translate(-50%, -50%);
    color: white; 
    font-size: 24px; 
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}
.left-side .avater {
    border-radius: 50%;
    width: 60px;
}
.left-side .avater:hover i {
    opacity: 1; 
}

.main-user {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
    margin-left: 15px;
}

.main-user .name {
    font-weight: 600;
    font-size: 20px;
}

.main-user .new-balance {
    font-size: 15px;
}

.main-user .role {
    border-radius: 6px;
    font-size: 14px;
    padding: 3px 6px;
    margin-left: 3px;
}

.main-user .role.admin {
    color: #c42a2a;
    background: #c42a2a1f;
}

.main-user .role.moder {
    color: #0051ff;
    background: #002fff1f;
}

.main-user .role.media {
    color: #ff00f2;
    background: #ff00f21f;
}

.main-user .role.alpha {
    color: #b700ff;
    background: #ae00ff1f;
}

.main-user .role.premium {
    color: #FFD700;
    background: #FFD7001f;
    display: none;
}

.main-user .role.basic {
    color: #FFD700;
    background: #FFD7001f;
    display: none;
}

.main-user .role.nosub {
    color: #FFD700;
    background: #FFD7001f;
    display: none;
}

.user-info .user-uid, .user-email, .user-hwid, .user-reg {
    margin-top: 16px;
    font-weight: 500;
    font-size: 17px;
    border-bottom: 1.5px solid var(--theme-lines-color);
    padding-bottom: 10px;
    transition: border-bottom 0.3s ease-in-out;
}

.user-hwid .reveal {
    color: var(--main-color);
    cursor: pointer;
}

.user-hwid .revealed {
    color: var(--theme-text-desc-color);
}

.sub {
    max-width: 355px;
    background-image: url('../img/arctic/logo.png'), radial-gradient(ellipse at left, #567cfc66, transparent 75%);
    background-repeat: no-repeat;
    background-position: 20px center, center;
    background-size: 76px auto, cover;
    color: var(--theme-text-color);
    border-radius: 8px;
    padding: 10px;
    min-height: 100px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0000000d;
    border: 1px solid var(--theme-border-color);
    display: grid;
    align-items: center;
    justify-content: center;
    transition: 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
    overflow: hidden;
    margin-bottom: 5px;
    margin-top: 15px;
}

.sub.info {
    background-position: right 20px center, center;
    background-size: 76px auto, cover;
}

.sub > .sub-text, .sub > .info-text {
    grid-area: 1 / 1;
    min-width: 0;
    white-space: normal;
    transform: none;
}
.sub { justify-content: stretch; }
.sub > .sub-text { padding-left: 94px; }
.sub > .info-text { padding-right: 94px; }

.sub-text, .info-text .text {
    margin-bottom: 3px;
    font-weight: 600;
    font-size: 16px;
} 

.sub-text, .info-text .text:last-child { margin-bottom: 0; }

.sub-text {
    text-align: right; 
    transition: 0.3s ease-in-out;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transform: translateX(-10px);
}

.sub.info .sub-text {
    opacity: 0;
    filter: blur(10px);
}

.text-title {
    font-size: 21px;
}

.info-text {
    text-align: left; 
    transition: 0.3s ease-in-out;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0;
    filter: blur(10px);
}

.sub.info .info-text {
    opacity: 1;
    filter: blur(0px);
}

.header-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    margin-bottom: 5px;
}

.exit-text span, .download-text span {
    user-select: none;
    display: flex;
    align-items: center;
    padding: 8px 13px;
    font-size: 17px;
    font-weight: 500;
    color: var(--theme-text-color);
    border-radius: 8px;
    box-shadow: 0 0px 8px #0000000d;
    border: 1px solid var(--theme-border-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.exit-text i, .download-text i {
    margin-right: 5px;
}

@media (hover: hover) {
    .exit-text span:hover {
        background: #AC2C2C;
        color: white;
        box-shadow: 0 0px 8px #ac2c2c70;
        border: 1px solid transparent;
    }
}

@media (hover: none) {
    .exit-text span:active {
        background: #AC2C2C;
        color: white;
        box-shadow: 0 0px 8px #ac2c2c70;
        border: 1px solid transparent;
    }
}

.download-text span:hover {
    background: var(--main-color);
    color: white;
    box-shadow: 0 0px 8px rgba(7, 138, 214, 0.5);
    border: 1px solid transparent;
}

.user-info .text {
    margin-left: 5px;
}

.middle-side {
    margin-left: 2px;
    position: relative;
}

.selections {
    width: 100%;
}

.selections .filter {
    margin-left: 5px;
    padding: 6px 10px;
    border: none; outline: none;
    border-radius: 6px;
    font-size: 16px;
    background: var(--theme-btn-color);
    color: var(--theme-btn-text-color);
    cursor: pointer;
}

.filter-list {
    display: none;
    background-color: var(--theme-body-color);
    border-radius: 8px;
    top: 35px;
    width: 18%;
    margin-top: 8px;
    margin-left: 5px;
    left: 0;
    z-index: 1;
    box-shadow: 0 2px 5px #00000021;
    transition: 0.3s ease-in-out;
}

.filter-list label {
    display: block;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--theme-border-color);
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.filter-list label:hover {
    color: var(--theme-btn-text-color);
    background: var(--theme-btn-color);
}

.filter-list label:last-child {
    border-bottom: none;
}

.filter-list input {
    display: none; /* Скрываем радиокнопки */
}

.filter-list input:checked + label {
    background-color: var(--theme-body-color);
    color: var(--theme-text-color); /* Этот цвет можно изменить в зависимости от темы */
}

.middle-side button:last-child button{
    margin-right: 0;
}

/*table*/
table  {
    width: 100%;
}

table, th, td {
    padding: 1rem;
    border-collapse: collapse;
    text-align: start;
}

tr {
    border-bottom: 1px solid var(--theme-lines-color);
    transition: border-bottom 0.3s ease-in-out;
}

tr:last-child {
    border-bottom: 0px solid var(--theme-lines-color);
}

thead th {
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--theme-lines-color);
    transition: border-bottom 0.3s ease-in-out;
}

thead th:first-child {
    width: 550px;
}

table td {
    font-weight: 600;
}

table td span {
    padding: 4px 6px;
    border-radius: 6px;
    font-weight: 600;
}

table td span.bought {
    background: #11e3461f;
    color: #0f9f33;
}

table td span.saled {
    background: #1192e31f;
    color: #1192e3;
}

table td span.putsale {
    background: #e399111f;
    color: #e3ab11;
}

.selections {
    border-bottom: 1px solid var(--theme-lines-color);
    margin-left: 6px;
    transition: 0.3s ease-in-out;
}

.selections .select {
    display: inline-block;
    background: transparent;
    margin-right: 26px;
    padding-bottom: 12px;
    padding-top: 6px;
    border: none; outline: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    color: var(--theme-text-desc-color);
    border-bottom: 2px solid var(--theme-mbg-color);
    transition: 0.3s ease-in-out;
}
.selections .select:last-child {
    margin-right: 0;
}
.selections .select.active {
    color: var(--theme-text-color);
    border-bottom: 2px solid var(--theme-btn-color);
}

/* Анимка на таблицу при смене категории */
tbody {
    transition: 0.3s ease-in-out;
    opacity: 0;
    filter: blur(5px);
}

tbody.active {
    filter: blur(0px);
    opacity: 1;
}

.top-side {
    display: flex;
}

.top-side .user-key, .user-memory {
    padding: 2px 5px;
    padding-right: 10px;
    font-weight: 500;
    font-size: 17px;
    margin-right: 20px;
}
.top-side .user-action {
    width: 100%;
}
.top-side .user-key input, .user-memory input {
    padding: 8px 10px;
    padding-left: 10px;
    font-size: 15px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--theme-border-color); outline: none; user-select: none;
    color: var(--theme-text-desc-color);
    background: var(--theme-body-color);
    transition: 0.3s ease-in-out;
}

.top-side .user-key input::placeholder, .user-memory input::placeholder  {
    color: #9da3a8;
}

.top-side p {
    font-size: 15px;
    margin: 6px 0 12px;
    color: var(--theme-text-desc-color);
}

.top-side .input-text {
    display: flex;
}

.top-side button {
    border-radius: 6px;
    outline: none; border: none;
    font-size: 16px;
    font-weight: 500;
    background: var(--theme-btn-color);
    color: var(--theme-btn-text-color);
    padding: 0px 20px;
    margin-left: 10px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

@media (hover: hover) {
    .top-side button:hover {
        background-color: var(--main-color);
    }
}

@media (hover: none) {
    .top-side button:active {
        background-color: var(--main-color);
    }
}

.top-side .user-memory {
    padding-left: 8px;
}
.top-side .user-key h2, .user-memory h2 {
    font-size: 22px;
}

.top-side .user-key {
    margin-left: 24px;
}

table td span.upl-upd {
    background: #0789d51d;
    color: var(--main-color);
    border: 1px solid var(--theme-border-color);
}

table td span.upl {
    background: #11e3461f;
    color: #0f9f33;
    border: 1px solid var(--theme-border-color);
}

table td span.upl-upd a {
    background: none;
    cursor: pointer;
}

table tr .prd-name {
    width: auto;
}

table tr .action {
    max-width: 50px;
}

table tr .action i {
    font-size: 22px;
    color: var(--theme-text-color);
}

.dropdown-menu {
    display: block;
    position: absolute;
    background-color: var(--theme-body-color);
    border: 1px solid var(--theme-border-color);
    border-radius: 6px;
    z-index: 1;
    transition: all .3s ease;
}

/* Стили для ссылок в меню */
.dropdown-menu a {
    color: var(--theme-text-color);
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    border-bottom: 1px solid var(--theme-border-color);
    transition: background-color 0.2s ease-in-out;
}

.dropdown-menu a:hover {
    background-color: var(--popup-color);
}

.dropdown-menu a:last-child {
    border-bottom: 1px solid transparent;
}

.dropdown-menu.hide {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    filter: blur(5px);
}

.rename-input {
    width: 50%;
    padding: 8px 10px;
    padding-left: 10px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid var(--theme-border-color); outline: none; user-select: none;
    color: var(--theme-text-desc-color);
    background: var(--theme-body-color);
    transition: 0.15s ease-in-out;
}

.save-btn {
    border-radius: 6px;
    outline: none; border: none;
    font-size: 15px;
    font-weight: 500;
    background: var(--theme-btn-color);
    color: var(--theme-btn-text-color);
    padding: 8px 14px;
    margin-left: 5px;
    cursor: pointer;
    transition: 0.15s ease-in-out;
}

.dropdown-menu.show {
    opacity: 1;
    z-index: 2;
}

/* нельзя выбрать текст внутри div */
.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Chrome/Safari/Opera */
    -khtml-user-select: none;    /* Konqueror */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version,
                                   currently supported by Chrome, Edge, Opera and Firefox */
}



@media screen and (max-width: 1176px) {
    header .links, header .reg, .helps, .user-memory, header .right-side {
        display: none;
    }

    header {
        padding: 22px 5%;
        width: 100%;
        height: 70px;
    }

    .sub-text {
        font-size: 14px;
        width: 600px;
    }

    .info-text {
        font-size: 14px;
        width: 600px;
    }

    .info-text .text {
        font-size: 14px;
    }

    #main {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 70px;
    }

    header .mobile-mode {
        display: flex;
        top: 18px;
    }

    header .theme {
        margin-top: 5px;
    }

    header .menu-icon {
        display: flex;
        font-size: 32px;
        color: var(--theme-text-color);
    }
    
    .user-key.user-action {
        margin-left: 0px;
        margin-right: 0px;
    }

    .profile-box {
        display: flex;
        flex-direction: column;
        margin-bottom: 200px;
    }

    .dropdown-menu.hide {
        transform: translateX(-100px) translateY(-100px);
    }
    
    .dropdown-menu {
        transform: translateX(-100px);
    }

    .profile-box .left-side {
        width: 100%;
    }

    .profile-box .right-side .bottom-side {
        width: 100%;
    }

    .profile-box .right-side {
        margin-left: 0px;
        margin-top: 10px;
    }

    .profile-box .right-side .top-side {
        width: 100%;
    }

    header .menu-list {
        display: none;
        position: absolute;
        background-color: var(--theme-body-color);
        border: 1px solid var(--theme-border-color);
        border-radius: 6px;
        z-index: 1;
        transition: all .5s ease;
        right: -20px;
        margin-right: 30px;
        top: 70px;
        transform: translateY(-20px);
        transition: 0.35s ease;
    }

    header li {
        color: var(--theme-text-color);
        padding: 10px 14px;
        text-decoration: none;
        display: block;
        font-size: 15px;
        border-bottom: 1px solid var(--theme-border-color);
        transition: background-color 0.2s ease-in-out;
    }

    header .menu-list li:hover {
        background-color: var(--popup-color);
    }
    
    header .menu-list li:last-child {
        border-bottom: 1px solid transparent;
    }

    header .menu-list a {
        font-size: 16px;
        font-weight: 600;
        color: var(--theme-text-color);
        margin-right: 0px;
        display: inline-block;
        transition: 0.3s ease-in-out;
    }

    .exit-text span {
        margin-left: -3px;
        margin-top: 3px;
    }

    header .menu-list.hide {
        opacity: 0;
        transform: translateY(-20px);
    }

    .container {
        overflow-x: hidden;
        overflow-y: hidden;
    }

    .super {
        margin-right: 0px;
    }
}
