textarea, input, button {
    outline: none;
}

.filter-test {
    mix-blend-mode: color-dodge;
}

::-webkit-scrollbar {
    width: 5px;
}

img {
    user-select: none;
}

input {
    outline: none;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

input:focus::placeholder {
    color: transparent;
}

::-webkit-scrollbar {
    width: 5px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

/* Handle - Сам ползунок */
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 3px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: #242f3b;
}

html, body {
    font-family: "JetBrains Mono", serif;
    font-optical-sizing: auto;
}

a, .btn-link {
    color: #006bb7;
}

main {
    height: 100vh;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZ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4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.dot {
    border-radius: 50%;
    background-color: var(--bg-accent);
    box-shadow: 0 0 10px #5890df;
    animation: pulse 1.5s infinite;
}

.online {
    background-color: #3DFF0D;
    box-shadow: 0 0 10px #27a407;
}

.offline {
    background-color: #e50000;
    box-shadow: 0 4px 10px #900000;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.7);
    }
    50% {
        transform: scale(0.8);
    }
}

.server_name_and_server_map {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.transition-all {
    transition: all 0.5s linear;
}

.toast-enter {
    animation: slideInRight 0.5s ease-out;
}

.toast-exit {
    animation: slideOutRight 0.5s ease-in forwards;
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    top: -10px;
    /*background-color: white;*/
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
}

.rarity-default, .rarity_default {
    border-bottom: solid 5px rgb(116 126 137 / 16%);
    background: linear-gradient(to top left, #747e8929 0%, #0d0d0d 100%);
}

.rarity_common, .rarity_common_weapon {
    color: #b0c3d9;
    background: linear-gradient(to top left, #b0c3d929 0%, #0d0d0d 100%);
    border-bottom: solid 5px #b0c3d9;
}

.rarity_uncommon, .rarity_uncommon_weapon {
    color: #5e98d9 !important;
    background: linear-gradient(to top left, #5e98d929 0%, #0d0d0d 100%);
    border-bottom: solid 5px #5e98d9 !important;
}

.rarity_rare, .rarity_rare_weapon {
    color: #4b69ff !important;
    background: linear-gradient(to top left, #4b69ff29 0%, #0d0d0d 100%);
    border-bottom: solid 5px #4b69ff !important;
}

.rarity_mythical, .rarity_mythical_weapon {
    color: #8847ff !important;
    background: linear-gradient(to top left, #8847ff29 0%, #0d0d0d 100%);
    border-bottom: solid 5px #8847ff !important;
}

.rarity_legendary, .rarity_legendary_weapon {
    color: #d32ce6 !important;
    background: linear-gradient(to top left, #d32ce629 0%, #0d0d0d 100%);
    border-bottom: solid 5px #d32ce6 !important;
}

.rarity_ancient, .rarity_ancient_weapon {
    color: #eb4b4b !important;
    background: linear-gradient(to top left, #eb4b4b29 0%, #0d0d0d 100%);
    border-bottom: solid 5px #eb4b4b !important;
}

.rarity_contraband, .rarity_contraband_weapon {
    color: #c89842;
    background: linear-gradient(to top left, #c8984229 0%, #0d0d0d 100%);
    border-bottom: solid 5px #c89842;
}

.server-category {
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.server-visible {
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: translateX(0);
}

.servers {
    position: relative;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.4;
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

.text-gradient-klmp {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-credits {
    background: linear-gradient(45deg, #00B4D8, #6C63FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-price {
    background: linear-gradient(45deg, var(--bg-accent), #8A2BE2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.case-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-spin {
    animation: spin 0.5s linear infinite;
}

.animate-spin-fast {
    animation: spin 0.3s linear infinite;
}

.reward-wheel {
    perspective: 1000px;
    overflow-x: hidden;
    padding: 0 60px;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.reward-item {
    transform-style: preserve-3d;

    margin: 0 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.reward-wheel {
    perspective: 1000px;
}

.reward-item {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}

.reward-item:not(.scale-125) {
    transform: scale(0.9) translateZ(-100px);
    opacity: 0.6;
}

.reward-item.scale-125 {
    transform: scale(1.25) translateZ(50px);
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@media (max-width: 768px) {
    .sidebar-container {
        animation: menuSlide 0.3s ease-out;
        transform-origin: top center;
    }

    @keyframes menuSlide {
        0% {
            transform: translateY(-20px);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

.server-category {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.server-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes gradient-shine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient-shine {
    background-size: 200% 200%;
    animation: gradient-shine 3s ease infinite;
}

.banner-slider {
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide h2,
.slide p,
.slide a {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.slide.active h2,
.slide.active p,
.slide.active a {
    opacity: 1;
    transform: translateY(0);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}


.skeleton-animation {
    transition: transition-all;
    background: linear-gradient(
            90deg,
            var(--bg-section) 0%,
            var(--bg-accent) 50%,
            var(--bg-section) 100%
    );
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-accent) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--bg-accent);
    border-radius: 4px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.page-fade-in {
    animation: fadeInUp 0.3s ease-out forwards;
}

.body-no-scroll {
    overflow: hidden !important;
}

#chatMessages {
    overscroll-behavior: contain;
}

.update-content-body {
    line-height: 1.7;
    color: var(--text-primary);
}

.update-content-body h1,
.update-content-body h2,
.update-content-body h3 {
    line-height: 1.2;
    font-weight: 600;
}

.update-content-body h1 { font-size: 1.875rem; }
.update-content-body h2 { font-size: 1.5rem; }
.update-content-body h3 { font-size: 1.25rem; }

.update-content-body a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.update-content-body a:hover {
    color: var(--bg-accent);
    text-decoration: underline;
}

.update-content-body ul,
.update-content-body ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
    list-style-position: outside;
}

.update-content-body ul { list-style-type: disc; }
.update-content-body ol { list-style-type: decimal; }

.update-content-body li {
    margin-bottom: 0.5em;
}

.update-content-body li::marker {
    color: var(--text-secondary);
}

.update-content-body strong, .update-content-body b {
    font-weight: 700;
}

.update-content-body em, .update-content-body i {
    font-style: italic;
}

.update-content-body blockquote {
    border-left: 4px solid var(--border-accent);
    padding-left: 1em;
    font-style: italic;
    color: var(--text-muted);
}

.update-content-body .ql-code-block-container {
    background-color: var(--bg-tertiary); 
    color: #abb2bf;                       
    font-family: 'JetBrains Mono', 'Source Code Pro', monospace;
    font-size: 0.9em;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;  
    white-space: pre;  
}

.update-content-body .ql-code-block-container .ql-code-block {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    line-height: 1.6;
    display: block;
}

.update-content-body .ql-code-block-container .hljs {
    background: none !important;
    display: block;
}

.update-content-body p > code,
.update-content-body li > code {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.2em 0.4em;
    font-size: 85%;
    border-radius: 6px;
}