@font-face {
    font-family: 'SFPro';
    font-weight: 900;
    src: url('/fonts/SF-Pro-Display-Heavy.otf');
}

@font-face {
    font-family: 'SFPro';
    font-weight: 500;
    src: url('/fonts/SF-Pro-Display-Medium.otf');
}

@font-face {
    font-family: 'RobotoMono';
    font-weight: 500;
    src: url('/fonts/RobotoMono-Medium.ttf');
}

@font-face {
    font-family: 'SFPro';
    font-weight: 400;
    src: url('/fonts/SF-Pro-Display-Regular.otf');
}

@font-face {
    font-family: 'SFPro';
    font-weight: 700;
    src: url('/fonts/SF-Pro-Display-Bold.otf');
}


@font-face {
    font-family: 'SFPro';
    font-weight: 600;
    src: url('/fonts/SF-Pro-Display-Semibold.otf');
}

@font-face {
    font-family: 'SFPro';
    font-weight: 1000;
    src: url('/fonts/SF-Pro-Display-Black.otf');
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

*, *::before, *::after {
    box-sizing: border-box;
}


::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0b0b0f;
}

::-webkit-scrollbar-thumb {
    background: #e53935;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #eb4b4b;
}


* {
    scrollbar-width: thin;
    scrollbar-color: #e53935 #0b0b0f;
}

input {
    outline: none !important;
}

:root {
    --item-width: 160px;
    --item-gap: 10px;
}

body {
    height: 100vh;
    font-family: 'SFPro';
}

button
{
    font-family: 'SFPro' !important;
}

body::after {
    background-image: url("/images/test.png");
    content: " ";
    position: fixed;
    inset: 0px;
    z-index: 10002222222000;
    pointer-events: none;
    opacity: 0.5;
}

main,
#main,
#app {
    height: 100%;
}

fieldset {
    border: none;
}

.btm {
    margin-top: auto;
}

@keyframes levitate {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: #0D0D0D;

    color: #fff;
}

main {
    position: relative;
    display: flex;
    flex-direction: column;
}

.container {
    margin-left: 170px;
    height: 100%;
}

.separator {
    width: 2px;
    background-color: #2F2F2F;
    margin-bottom: auto;
    margin-top: auto;
    border-radius: 2px;
    margin-left: 0.25rem;
    margin-right: 0.2rem;
}

.live-drop .drop {
    flex-shrink: 0;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    border-bottom: none !important;
}

.live-drop {
    width: 170px;
    height: 100vh;
    background-color: #101010;
    display: flex;
    flex-direction: column;
    position: fixed;
    /* Поднимаем весь стек ленты выше контента (промо и т.п.), иначе раскрытая
       панель drop-detail перекрывается секцией .promo, идущей позже в DOM. */
    z-index: 100;
}

main {
    display: flex;
}



.live-drop-wrapper {
    height: calc(100vh - 70px);
    row-gap: 1px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.live-drop-wrapper .drop
{
    width: 170px !important;
}

.live-drop-wrapper .drop img
{
    left: 24px !important;
}

#rouletteWrapper .skin-card img
{
    top: 8px !important;
}

.logo {
    font-family: 'SFPro';
    font-weight: 900;
    font-size: 30px;
    font-weight: bold;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #101010;
}

.logo img {
    width: 100px;
}

.logo label {
    font-weight: 900;
}

.logo label:first-of-type {
    color: #FF4052;
}

.logo:hover {
    cursor: pointer;
}

.btn {
    border-radius: 5px;
    font-family: 'SFPro';
    font-weight: 500;
    display: flex;

    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 15px;
    padding-right: 15px;
}

.btn label,
.btn span {
    margin-left: auto;
    margin-right: auto;
}

.btn-data {
    display: flex;
}

.action {
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
}


.action .btn:first-of-type {
    /*margin-right: 0.5rem;*/
}

.btn-solid {
    background: #eb4b4b22;
    color: #eb4b4b;
}

.btn-dashed {
    border: 1px solid #eb4b4b22;
    color: #eb4b4b;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.35s ease, border-color 0.35s ease;
}

/* Заполнение «волной» слева направо при наведении */
.btn-dashed::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20%;
    width: 140%;
    height: 100%;
    background: #FF4052;
    transform: translateX(-100%) skewX(-18deg);
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: -1;
    pointer-events: none;
}

.btn-dashed:hover::before {
    transform: translateX(0) skewX(-18deg);
}

.btn-dashed:hover {
    color: #fff;
    border-color: #FF4052;
}

.btn-dashed > * {
    position: relative;
    z-index: 1;
}

.btn-solid img {
    margin-right: 0.5rem;
}

.btn-solid img {
    width: 14px;
    fill: white !important;
}

.drop {
    width: 168px;
    height: 112px;
    display: flex;
    flex-shrink: 0;
}

.live-drop .live-drop-wrapper .drop
{
    animation: slideDown 0s linear forwards;
}

/* Новый предмет «накладывается» сверху как карта в стопку («пирог»): слот растёт
   от нулевой высоты, плавно сдвигая остальные вниз, и одновременно содержимое
   въезжает сверху. Слот никогда не бывает пустым, а лента обрезается по
   overflow:hidden, поэтому пустая область под лентой не оголяется. */
.drop-animation {
    animation: slideDown 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards !important;
    overflow: hidden;
}


@keyframes slideDown {
    0% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-26px);
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        max-height: 112px;
        transform: translateY(0);
    }
}

.drop-img {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
}


.drop-img svg {
    width: 80px;
}

.drop .desc {
    margin-top: auto;
    display: grid;
}

.drop img {
    position: absolute;
    /*padding-top: 0.4rem;*/
    width: 111px;
    margin-top: -0.5rem;
}


.drop .desc {
    z-index: 3;
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    white-space: nowrap;
}

.drop .desc span {
    font-family: "SFPro", sans-serif;
    font-style: normal;
    font-optical-sizing: auto;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
}

.drop .desc span:first-child {
    font-weight: 300;
    text-transform: uppercase;
    color: #FFF;
    font-size: 11px;
}

.drop .desc span:last-child {
    font-weight: 500;
    text-transform: uppercase;
    color: #737373;
    font-size: 11px;
}

/* ─────────────────────────────────────────────────────────────────────────
   LiveDrop: раскрытие карточки при наведении.
   Лента «замораживается» из C# (новые дропы копятся в буфере), а сама карточка
   показывает выезжающую влево панель с источником, аватаркой, ником и ценой.
   Стилистика — как у карточек рулетки (тёмный фон, скругление 12px, акцент #ff4052).
   ───────────────────────────────────────────────────────────────────────── */

/* Чтобы выезжающая панель не обрезалась — снимаем горизонтальный клип у ленты.
   Лишние карточки уходят за нижнюю кромку вьюпорта (лента в position:fixed),
   поэтому пустого места под ней по-прежнему не возникает. */
.live-drop .live-drop-wrapper {
    overflow: visible;
}

/* Контекст позиционирования только для карточек ленты — НЕ трогаем .drop рулетки.
   Тёмный фон-фолбэк: на него опирается background:inherit раскрытой панели,
   когда у предмета нет класса редкости (None). Классы редкости заданы с
   !important и перекрывают этот фон для цветных предметов. */
.live-drop .live-drop-wrapper .drop {
    position: relative;
    background-color: #161616;
}

.live-drop .drop.drop-hovered,
.live-drop .drop:hover {
    z-index: 70;
    /* Снимаем клип от .drop-animation (overflow:hidden), иначе выезжающая
       панель обрезается границами карточки. Анимация появления к моменту
       наведения уже завершена, поэтому overflow:visible безопасен. */
    overflow: visible;
}

/* Продолжение карточки: пристыковано к правому краю без зазора, тот же фон
   (background:inherit = цвет редкости карточки) — выглядит как единая панель,
   которая «раскрывается» слева направо при наведении (анимируется width). */
.live-drop .drop .drop-detail {
    position: absolute;
    top: 0;
    left: 100%;
    height: 100%;
    width: 0;
    overflow: hidden;
    background-color: inherit;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.35);
    transition: width 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 70;
}

.live-drop .drop.drop-hovered .drop-detail,
.live-drop .drop:hover .drop-detail {
    width: 280px;
}

/* Фиксированная ширина содержимого: не «схлопывается» во время анимации width. */
.live-drop .drop .dd-inner {
    width: 280px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 4px;
}

/* Сброс глобальных правил `.drop img` (position:absolute; width:111px;
   left:24px !important; margin-top), иначе они ломают картинки внутри панели. */
.live-drop .drop .drop-detail img {
    position: static;
    width: auto;
    margin: 0;
    top: auto !important;
    left: auto !important;
}

.live-drop .drop .dd-source {
    width: 84px;
    height: 84px;
    position: relative;
    flex-shrink: 0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.live-drop .drop .dd-source:hover {
    filter: brightness(1.06);
}

/* Кейс: коробка (back) + предмет поверх (front), как на витрине кейсов. */
.live-drop .drop .dd-source .dd-back {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.live-drop .drop .dd-source .dd-front {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    width: 78%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
}

/* При наведении на кейс «всплывает» только скин-предмет (front), сам блок кейса
   остаётся на месте. */
.live-drop .drop .dd-source:hover .dd-front {
    transform: translate(-50%, -50%) translateY(-5px);
}

/* Режимы (апгрейд/контракт/лестница/сапёр): иконка без плашки и рамки. */
.live-drop .drop .dd-source.dd-source-mode {
    padding: 12px;
}

.live-drop .drop .dd-source.dd-source-mode .dd-mode {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 64, 82, 0.45));
}

.live-drop .drop .dd-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.live-drop .drop .dd-user {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.live-drop .drop .dd-user .dd-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.live-drop .drop .dd-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff405222;
    color: #ff6b78;
    font-size: 11px;
    font-weight: 800;
    font-family: 'SFPro', sans-serif;
}

.live-drop .drop .dd-nick {
    font-family: 'SFPro', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-drop .drop .dd-item {
    font-family: 'SFPro', sans-serif;
    font-size: 11px;
    color: #d9d9d9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-drop .drop .dd-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 1px;
}

.live-drop .drop .dd-source-name {
    font-family: 'SFPro', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-drop .drop .dd-price {
    font-family: 'SFPro', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #FF4052;
    white-space: nowrap;
    flex-shrink: 0;
}

.case-drop .drop,
.pli-content .drop {
    border-radius: 12px !important;
    
    
    border: 1px solid #ff405240 !important;
}

.BaseСlass {
    border-left: 2px solid #4A4A4A;
    background-color: #121212 !important;
}

.BaseСlass path, .BaseСlass circle {
    fill: #2A2A2A;
}

.BaseСlass .m-price {
    background-color: #4A4A4A !important;
}

.skin-card.BaseСlass {
    border-bottom: 3px solid #4A4A4A !important;
    border-left: none;
}


.ConsumerGoods,
.ConsumerGrade {
    border-left: 2px solid #5A1A1A;
    background-color: #1A0D0D !important;
}

.skin-card.ConsumerGrade,
.skin-card.ConsumerGoods {
    border-bottom: 3px solid #5A1A1A !important;
    border-left: none;
}

.ConsumerGoods path,
.ConsumerGrade path,
.ConsumerGoods circle,
.ConsumerGrade circle,
{
    fill: #3D1212;
}

.ConsumerGoods .m-price,
.ConsumerGrade .m-price {
    background-color: #5A1A1A !important;
}


.IndustrialGrade {
    border-left: 2px solid #8B0000;
    background-color: #1F0A0A !important;
}

.IndustrialGrade path, .IndustrialGrade circle {
    fill: #5E0000;
}

.IndustrialGrade .m-price {
    background-color: #8B0000 !important;
}

.skin-card.IndustrialGrade {
    border-bottom: 3px solid #8B0000 !important;
    border-left: none;
}

.Restricted {
    border-left: 2px solid #C41E3A;
    background-color: #260D0D !important;
}

.Restricted path, .Restricted circle {
    fill: #801426;
}

.Restricted .m-price {
    background-color: #C41E3A !important;
}

.skin-card.Restricted {
    border-bottom: 3px solid #C41E3A !important;
    border-left: none;
}

.Classified {
    border-left: 2px solid #E62E2E;
    background-color: #2D0F0F !important;
}

.Classified path, .Classified circle {
    fill: #9E2020;
}

.Classified .m-price {
    background-color: #E62E2E !important;
}

.skin-card.Classified {
    border-bottom: 3px solid #E62E2E !important;
    border-left: none;
}


.Covert {
    border-left: 2px solid #FF4052;
    background-color: #350D10 !important;
}

.Covert path, .Covert circle {
    fill: #B32D3A;
}

.Covert .m-price {
    background-color: #FF4052 !important;
}

.skin-card.Covert {
    border-bottom: 3px solid #FF4052 !important;
    border-left: none;
}


.RareSpecialItem {
    border-left: 2px solid #FF4800;
    background-color: #22080A !important;
}

.RareSpecialItem path,.RareSpecialItem circle {
    fill: #D0BF37;
}

.RareSpecialItem .m-price {
    background-color: #59151A !important;
}

.skin-card.RareSpecialItem {
    border-bottom: 3px solid #FF4800 !important;
    border-left: none;
}

.search {
    background-color: #101010;
    padding: 5px;
    display: flex;
    margin-bottom: 20px;
}

.search .wrapper
{
    display: flex;
}

.search label {
    font-family: 'SFPro';
    margin-right: 10px;
    text-align: center;
    align-content: center;
}









.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #4b5563;
}

.search-input {
    font-size: 11px;
    padding: 5px 8px 5px 24px;
    border-radius: 5px;
    color: #aaa;
    background: #161616;
    border: 1px solid #1e1e1e;
    width: 110px;
    outline: none;
}

.search-input::placeholder {
    color: #333;
}

.search .wrapper {
    margin: auto;
}

.title {
    margin: auto;
    text-align: center;
    display: flex;
    background-image: url('/images/title.png');
    background-repeat: no-repeat;
    background-position: center;

    width: 100%;
    height: 40px;
}

.selection {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
}

.title span {
    left: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    font-family: 'SFPro';
    font-size: 25px;
    text-transform: uppercase;
}

.case-list {
    max-width: 1281px;
    margin: 0 auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 2rem;
}

.case-list .case {
    width: 200px;
    display: flex;
    flex-direction: column;
}

.case-title span {
    font-family: 'SFPro';
    text-transform: uppercase;
}

.case-title :nth-child(1) {
    font-weight: 500;
    font-size: 16px;
    color: #fff;
}

.case-title span:last-of-type {
    font-weight: 400;
    color: #FFFFFF69;
    font-size: 12px;
}

.case-img img {
    width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.case-wrapper {
    text-decoration: none;
    color: #fff;
}

.case-title {
    height: 50px;
    overflow: hidden;
    position: relative;
}

.case-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
}

.case-img {
    height: 220px !important;
    display: flex;
    align-items: center;
}

.case-title {
    text-wrap: nowrap;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
}

.case-price {
    display: flex;
    align-items: center;
}

.case-wrapper:hover .back-case {
    animation: case-hover 0.2s ease-out forwards;
}

.case-wrapper:hover .front-weapon {
    animation: front-case-hover 0.2s ease-out forwards;
}


@keyframes case-hover {
    0% {
        filter: saturate(100%);
    }

    50% {
        filter: saturate(130%);
    }

    100% {
        filter: saturate(160%);
    }
}

@keyframes front-case-hover {
    0% {
        scale: 1;
    }

    50% {
        scale: 1.06;
    }

    100% {
        scale: 1.12;
    }
}

.selection .title {
    margin-bottom: 1.5rem;
}

.case-price {
    background: #eb4b4b22;
    color: #eb4b4b;
    border-radius: 4px;
    font-family: 'SFPro';
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 2px !important;
    display: flex;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    font-size: 14px;
}

.btn-solid:hover,
.btn-solid label:hover,
.btn-dashed,
.btn-dashed:hover {
    cursor: pointer;
}

footer {
    background-color: #171717;
    
    margin-top: 100px;
}

.profile {
    display: flex;
    align-items: center;
}

.profile .profile-img {
    cursor: pointer;
}

.profile-wrapper {
    display: flex;
    font-family: 'SFPro';
}

.profile-wrapper .action
{
    margin-left: 10px;
    display: flex;
    gap: 5px;
}

.profile .profile-img {
    display: flex;
    align-items: center;
}

.profile .profile-img img {
    width: 32px;
    height: 32px;
    border-radius: 100px;
}

.profile-data {
    font-size: 14px;
    margin-left: 0.5rem;
    margin-right: 1rem;
}

.profile-data-wrapper {
    display: flex;
    flex-direction: column;
}

.profile-data-wrapper text {
    color: #ff4052;
}

.open-case,
.profile-info {
    margin-top: 3rem;
}

.open-case,
.pn-wrapper {
    font-family: 'SFPro';
    display: flex;
    flex-direction: column;
}

.pn-wrapper {
    align-items: center;
    gap: 10px;
    /*height: 360px;*/
}

.pn-action {
    display: flex;
    gap: 10px;
}

.pn {
    margin-bottom: 1rem;
    margin-top: 1rem;
    width: 90%;
    display: flex;
}

.pn img {
    width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.pn-head .case-title :nth-child(1) {
    font-size: 29px !important;
    height: unset !important;
}

.pn-head .case-title {
    height: unset !important;
}

.pn-head .case-title::after {
    height: 15px;
}

.case-drop,
.pl-inventory {
    display: flex;
    flex-direction: column;
}

.pli-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: center;
    justify-content: center;
}

.pli-content .skin-card-profile .tooltip-wrapper
{
    width: 26px;
}

.skin-card.withdraw::before
{
    border-radius: 8px;
}

.pli-content .skin-card
{
    flex: 1 1 180px;
    min-width: 0;
    max-width: 180px;
}

.pli-content .skin-card-info
{
    padding: 8px !important;
    z-index: 2;
}

.case-drop-wrapper
{
    width: 80%;
    margin: 0 auto;
    justify-content: center;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 6px;
    overflow-y: auto;
}

.case-drop-wrapper .skin-card-name
{
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.case-drop-wrapper .skin-card-weapon
{
    font-size: 11px;
}

.case-drop-wrapper .skin-card-price
{
    font-size: 12px;
}


.case-drop-wrapper .skin-card
{
    cursor: auto !important;
}

.case-drop label,
.pl-inventory label {
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.m-price {
    border: none;
    border-radius: 2px;
}

.desc-name {
    display: grid;
    align-items: center;
    white-space: nowrap;
    width: 100%;
}

.desc-name span:last-of-type {
    font-optical-sizing: auto;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
}

.desc-price {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.desc-price text {
    font-size: 11px;
}

.m-price {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 2px !important;
    background-color: red !important;
    display: flex;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}

.desc-name {
    text-align: center;
}

.roulette-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    background: #101010;
    border: 1px solid #161616;
    border-radius: 12px;
}

.selector {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: #ff4052;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgb(255, 64, 82);
}

.roulette-track {
    display: flex;
    gap: var(--item-gap);
    padding: 0 10px;
    will-change: transform;
}

/* Карточки рулетки имеют класс .drop, а у `.drop img` стоит position:absolute.
   Без containing block на самой карточке картинка во время прокрутки
   позиционируется относительно трансформируемой ленты (.roulette-track) и
   "уезжает" вниз; в конце добавляется filter на .finished .skin-card, который
   создаёт containing block, и картинка прыгает на место. Делаем карточку
   containing block-ом ВСЕГДА, чтобы картинка стояла ровно в любой фазе. */
.roulette-track .skin-card {
    position: relative;
}

.roulette-track.finished .skin-card {
    transition: filter 0.6s linear, opacity 0.6s ease;
}

.roulette-track.finished .skin-card {
    filter: brightness(0.3) grayscale(0.8);
    opacity: 0.5;
}

.roulette-track.finished .skin-card.win {
    filter: brightness(1.2) grayscale(0);
    opacity: 1;
    z-index: 100;
}

.skin-card {
    width: var(--item-width);
    height: 140px;
    background: #252525;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid #4b69ff;
    border-radius: 6px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

.skin-card img {
    width: 75%;
    pointer-events: none;
}

.skin-card.win {
    background: #2a2a2a;
    background-color: rgb(42, 42, 42);
    transition: transform 0.5s ease;
    transform: scale(1.1) !important;
    z-index: 100 !important;
    position: relative;
    box-shadow: 0px 0px 512px rgb(255, 64, 82)
}

.disabled-button {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.selector-disabled {
    display: none;
}

.nf-dialog {
    padding: 1rem;
    background-color: #171717;
    border-radius: 12px;
    display: flex;
}

.flex {
    display: flex;
    gap: 1rem;
}

.column {
    flex-direction: column;
}

.nf-dialog .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nf-balance>span :last-of-type {
    font-weight: bold;
    color: #ff4052;
}

.nf-data {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hide {
    display: none;
}

.profile-info {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.profile-info {
    font-family: 'SFPro';
}

.pl-main {
    text-align: center;
    margin-left: 2rem;
    margin-right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pl {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: #101010;
    padding: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
    border: 1px solid #161616;
    border-radius: 12px;
}

.ntjs {
    justify-content: unset !important;
    text-align: initial !important;
    align-items: unset !important;
}

.pl .pl-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pl .pl-form input {
    background-color: #0c0c0c;
    border: none;
    color: #fff;
    width: 100%;
    border-radius: 5px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 13px;
    height: 34px;
}

.hlp {
    display: flex;
    gap: 5px;
    margin-top: auto;
    
}

.t-helper {
    font-size: 10px;
    color: gray;
    text-align: center;
    align-content: center;
    flex-wrap: wrap;
}

.hlp .t-helper {
    text-align: left !important;
}

.t-helper a {
    text-decoration: none;
    color: #ff4052;
}

.pl.frm {
    display: flex;
    flex-direction: column;
}

.pl-m {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pl-m .plt-header .tooltip-wrapper
{
    width: 20px;
}

.pl-m .pl {
    flex: 1 1;
}

.pl .pl-steam {
    text-align: center;
    display: flex;
    gap: 5px;
}

.pl .pl-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pl .pl-avatar img {
    width: 90px;
    border-radius: 200px;
}

.pl .pl-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pl .pl-stat {
    display: flex;
}

.pl .pl-name {
    font-size: 26px;
    font-weight: 500;
    
    
    display: flex;
    justify-content: center;
}

.pl .pl-stat-item {
    display: flex;
    flex: 1;
    width: 100%;
    align-content: center;
    justify-content: center;
    gap: 5px;
}

.pl-total {
    display: flex;
    gap: 1rem;
}

.pl-total .pl-total-item {
    background-color: #0D0D0D;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-width: 230px;
}

.plt-header {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.frm .plt-header span {
    flex-shrink: 1;
    min-width: 0;
    margin-left: auto;
    flex-shrink: 0;
    padding: 0;
}

.pl-total .plt-content {
    font-size: 33px;
    margin-top: 0.5rem;
    display: flex;
}

.pl-inventory>label:first-of-type {
    margin: unset !important;
    font-size: 22px;
    font-weight: 600;
    margin-left: auto !important;
    margin-right: auto !important;
}

.pli-select fieldset {
    display: flex;
    gap: 0.5rem;
}

.pl-inventory-wrapper {
    margin-top: 1rem;
}

.pli-header {
    display: flex;
    padding-left: 3rem;
    padding-right: 4rem;
    flex-wrap: wrap;
}

.pl-inventory {
    width: 100%;
    max-width: 1281px;
}

.pl-inventory-wrapper {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.pli-header .pli-select {
    margin-right: auto;
}

.pli-header .pn-action {
    margin-left: auto;
    
}

.pli-header .pn-action {
    display: flex;
}

.pli-header .pn-action .btn {
    margin-top: auto;
    margin-bottom: auto;
}

.pli-select-item {
    position: relative;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    padding-left: 30px;
    min-height: 25px;
}

.pli-select-item input[type="radio"] {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.pli-select-item .checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    border: 2px solid #FF4052;
    border-radius: 2px;
    box-sizing: border-box;
}

.pli-select-item input[type="radio"]:checked~.checkmark {
    background-color: #FF4052;
}

.pli-select-item .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pli-select-item input[type="radio"]:checked~.checkmark::after {
    display: block;
}

.pli-select fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.pli-radio {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
    user-select: none;
}

.pli-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid #FF4052;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pli-radio:hover input~.checkmark {
    background-color: rgba(255, 64, 82, 0.1);
}

.pli-radio input:checked~.checkmark {
    background-color: #FF4052;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-radio {
    display: flex;
}

.checkmark :hover,
.custom-radio:hover {
    cursor: pointer;
}

.pli-radio input:checked~.checkmark:after {
    display: block;
}

.pli-radio .checkmark:after {
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 1px !important;
}

.pli-content .skin-card {
    margin-top: 0px !important;
}

.skeleton-base {
    display: inline-block !important;
    height: var(--skeleton-height) !important;
    width: var(--skeleton-width) !important;

    background-color: #1A1A1A !important;

    background-image: linear-gradient(90deg,
    #1A1A1A 0%,
    #0D0D0D 50%,
    #1A1A1A 100%) !important;

    background-size: 200% 100% !important;
    animation: skeleton-shimmer 2s infinite ease-in-out !important;
}

.skeleton-rect {
    border-radius: 6px;
}

.skeleton-circle {
    border-radius: 50%;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.pagination-container {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-item {
    background-color: #1A1A1A;
    color: #999;
    border: 1px solid #272626;
    padding: 6px 12px;
    min-width: 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-item:hover:not(.disabled):not(.separator) {
    background-color: #222;
    color: #fff;
    border-color: #444;
}

.page-item.active {
    background-color: #0D0D0D;
    color: #fff;
    border-color: #272626;
    font-weight: bold;
}

.page-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-item.separator {
    
    
    
    
    
    background: transparent;
    border: none;
    cursor: default;
    padding: 6px 4px;
    min-width: auto;
    display: flex;
    align-content: center;
    text-align: center;
    justify-content: center;
    justify-items: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000000000000000000;
}

.modal-content-custom {
    background: #101010;
    border: 1px solid #161616;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    min-width: 320px;
    width: min(760px, 92vw);
    max-width: min(92vw, 760px);
    max-height: min(88vh, 760px);
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.close-button:hover {
    color: #fff;
}

.modal-overlay .modal-body {
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: 'SFPro';
    max-height: calc(min(88vh, 760px) - 3rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.replace-modal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    
    max-width: 100%;
    box-sizing: border-box;
}

.replace-options-scroll {
    max-height: min(58vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.replace-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #2f2f2f;
    border-radius: 8px;
    padding: 8px;
    min-height: 64px;
    box-sizing: border-box;
}

.replace-option-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.replace-option-image {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.replace-option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.replace-option-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.replace-option-prices {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.replace-option-prices .skin-card-price {
    margin-top: 0;
    padding: 2px 6px;
    line-height: 1.2;
    white-space: nowrap;
    background: #eb4b4b22;
    color: #eb4b4b;
}

.replace-option-comp {
    color: #9ad15f;
    background: rgba(154, 209, 95, 0.12);
}

.replace-option-btn {
    padding: 6px 10px;
    font-size: 11px;
    flex-shrink: 0;
    width: unset !important;
}

@media (max-width: 768px) {
    .replace-option-name {
        font-size: 12px;
    }
}

.pldrop {
    
    flex: unset !important;
    min-width: 278px !important;
}

.profile-data-wrapper span {
    width: 150px;
}

.btn {
    user-select: none !important;
}

.act {
    display: flex;
}

.act .act-item .btn {
    padding: 0px;
    color: #FF4052;
    border: none;
    height: 100%;
}

.act .act-item img {
    width: 16px;
    height: 16px;
    position: unset !important;
    padding: 0px !important;
    margin: auto;
}

.skin-card .skin-price {
    border-radius: 6px;
    display: flex;
    width: 100px;
    margin-bottom: 5px;
    font-size: 0.8em;
    border: 1px solid #FF40528A;
    color: #FF40528A;
}

.skin-card .skin-price text {
    margin: auto !important;
    color: #FF4052;
}


.pli-content .skin-card .desc {
    text-align: center;
}

.pli-content .skin-card {
    display: flex;
    flex-direction: column;
}

.pli-content .skin-card>img:first-of-type {
    left: unset !important;
    width: 55% !important;
}

.pli-content .drop {
    width: auto;
    min-height: 180px;
    overflow: hidden;
}

.pli-content .desc-price {
    margin-top: unset !important;
    margin-bottom: 10px !important;
}

.container::after,auth-loader::after {
    background-image: url("/images/1.webp");
    content: " ";
    position: fixed;
    inset: 0px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.015;
}

.btm {
    font-family: 'SFPro';
}

.btm-act {
    display: flex;
    gap: 1rem;
    text-transform: uppercase;
    font-size: 13px;
}

.btm .bct:not(:last-of-type) {
    border-right: 2px solid #2F2F2F;
    padding-right: 1rem;
}

.btm .bct a {
    text-decoration: none;
    color: white !important;
    font-weight: 500;
}

.btm .btm-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btm .btm-info label {
    font-weight: 400;
    color: #848181;
    font-size: 14px;
}

.btm .btm-info a
{
    text-decoration: none;
    color: #ff4052;
}

.btm .btm-info a:hover
{
    cursor: pointer;
}

footer {
    padding: 1.25rem;
}

.btm-media .media-logo img {
    width: 100px;
}

.btm-media {
    display: flex;
}

.btm-media .media {
    margin-left: unset !important;
    margin-right: unset !important;
}

footer {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    gap: 2rem;
}

footer .production
{
    display: flex;
}

footer .production .skin-card-price
{
    margin: auto;
    margin-left: 1rem;
}

.act-btn-used .btn {
    background-color: #2d1818 !important;
    border: 1px solid #333 !important;
}

.act-btn-used .btn:hover {
    cursor: help !important;
}

.pli-content .act .act-item .btn:hover {
    background-color: #1A1A1A !important;
    color: #999 !important;
    border-radius: 0px !important;
}

.act-disabled .btn {
    pointer-events: none !important;
}

.notification-wrapper {
    color: #fff;
    position: fixed;
    right: 1rem;
    z-index: 6000000000000000000000000;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-message {
    font-size: 0.95rem;
    line-height: 1.25rem;
    color: #ddd;
}

.notification-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
    opacity: 0.9;
    position: fixed;
    top: 1rem;
    right: 1rem;
}

.notification-close:hover {
    opacity: 1;
}

.loader {
    height: 5px;
    background: #333;
    position: relative;
}

.loader-inner {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background: #ff4052;
    animation-name: progress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}


@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.notification:hover .loader-inner {
    animation-play-state: paused;
}

.notification.info {}

.notification.success {
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.12);
}

.notification.error {
    box-shadow: 0 6px 18px rgba(255, 64, 82, 0.12);
}

@media (max-width: 420px) {
    .notification {
        width: calc(100vw - 2rem);
    }

    .notification-wrapper {
        right: 1rem;
        left: 1rem;
        align-items: stretch;
    }
}

.notification-wrapper .notification-body {
    background-color: #101010;
    min-width: 300px;
    max-width: 300px;
    display: flex;
    padding: 1rem;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.pli-content .skin-card .act {
    width: 100%;
}

.pli-content .skin-card .act .act-item {
    flex: 1 !important;
    height: 30px;
    border: 1px solid #ff405240 !important;
}


.pli-content .skin-card .act .act-item {
    border-bottom-width: 0px !important;
}

.pli-content .skin-card .act .act-item:first-of-type {
    border-left-width: 0px !important;
}

.pli-content .skin-card .act .act-item:last-of-type {
    border-right-width: 0px !important;
}

.plt-drop {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    margin-bottom: auto;
}

.plt-drop .plt-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: auto;
    font-size: 14px;
}

.plt-drop .plt-left label:nth-child(2) {
    color: #3F3F3F;
}

.plt-drop .plt-left>label:last-of-type {
    color: #ff4052;
}

.plt-drop .plt-right img {
    width: 120px;
}

.act .act-item .btn {
    border: none !important;
    border-radius: 0 !important;
}

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;

    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);

    background: #1f1f1f;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition:
            opacity .15s ease,
            transform .15s ease;

    z-index: 9999;
}

[data-tooltip]::before {
    content: "";
    position: absolute;

    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);

    border: 6px solid transparent;
    border-top-color: #1f1f1f;

    opacity: 0;
    transition: opacity .15s ease;
}

[data-tooltip]::after {
    width: 370px;
    white-space: normal;
    line-height: 1.2;
    font-size: 11px;
    color: #ffffffb2;
    max-width: 270px;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tooltip-wrapper {
    display: flex;
    position: relative;
    padding: 5px;
}

.skin-status .m-price {
    position: fixed !important;
    font-size: 11px !important;
    border-radius: 0px !important;
    top: 20% !important;
    z-index: 1000000;
}

.skin-status .m-price:first-of-type {
    left: 0 !important;
}

.skin-status .m-price:last-of-type {
    right: 0 !important;
}

.pli-content .wst {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.wst span {
    font-size: 10px !important;
    text-wrap: wrap !important;
    text-transform: none !important;
    color: #fff !important;
    font-weight: 400 !important;
}

.skin-card.withdraw::before {
    background: linear-gradient(180deg, rgba(254, 64, 83, 0.479) 0%, rgba(254, 64, 83, 0.283) 35%, rgba(254, 64, 82, 0.12) 100%);
    position: fixed;
    width: 100%;
    height: 100%;
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.skin-card.withdraw .skin-card-info,
.skin-card.withdraw .skin-card-img-wrapper {
    position: relative;
    z-index: 1;
}

.skin-card.withdraw .m-price {
    background-color: #FF4052 !important;
}

.skin-card .m-price {
    background-color: #FF4052 !important;
}

.pli-content .drop .tooltip-wrapper {
    position: fixed;
    left: 10px;
    top: 10px;
    padding: 5px;
}

.pli-content .drop .tooltip-wrapper svg
{
    width: 22px !important;
    height: 22px !important;
}

.front-weapon
{
    position: absolute;
    z-index: 1000000;
}

.pn-wrapper .pn .case-img
{
    margin-left: auto;
    margin-right: auto;
}

@keyframes levitate {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.pn-wrapper .pn .front-weapon
{
    animation: levitate 3s ease-in-out infinite;
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input[type=range] {
    -webkit-appearance: none;
    background: #161616;
    border-radius: 4px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #FF4052;
    cursor: pointer;
}

.twk-loader {
    position: relative;
}

.twk-loader::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.75);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    z-index: 10;
}

.twk-loader::before {
    content: "Загружаю";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 100px;
    transform: translate(-50%, -50%);
    z-index: 11;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.twk-loader::before {
    background:
            url("data:image/svg+xml;utf8,\
<svg viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'>\
  <circle cx='25' cy='25' r='20' fill='none' stroke='%23ff2a2a' stroke-width='4' stroke-linecap='round' stroke-dasharray='90 150'>\
    <animateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='2.4s' repeatCount='indefinite'/>\
  </circle>\
</svg>") center top no-repeat;
    background-size: 56px 56px;
    padding-top: 60px;
}

.pli-content .skin-card img
{
    margin-left: auto;
    margin-right: auto;
}

.skin-card-img-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    min-height: 0;
    
}

.skin-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.skin-card-info {
    padding: 0 8px 8px;
}

.skin-card-name {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.skin-card-weapon {
    color: #6b7280;
    font-size: 9px;
    line-height: 1.2;
}

.skin-card-price {
    margin-top: 2px;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.skin-card-upgrade,.skin-card-case-drop,.skin-card-profile {
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.skin-card-profile {
    overflow: visible;
    border-radius: 8px;
    width: auto !important;
    height: auto !important;
}

.skin-card-actions {
    border-bottom-left-radius: 7px;  
    border-bottom-right-radius: 7px;
    overflow: hidden; 
}

.items-grid {
    padding: 6px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px; overflow-y: scroll; flex: 1;
    align-content: start;
    scrollbar-width: thin; scrollbar-color: #222 transparent;
}

.items-grid.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-template-columns: unset;
}

.empty-state {
    grid-column: 1 / -1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 20px 0; gap: 12px;
}
.btn-open-cases {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 1px solid #e53935; color: #e53935;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    padding: 10px 20px; border-radius: 8px; cursor: pointer; text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-open-cases:hover { background: #e53935; color: #fff; }
.empty-label { font-size: 12px; color: #444; }

.panel .pagination-container {
    margin-top: auto !important;
    padding: 12px !important;
    margin-top: 0px !important;
}

.skin-card-upgrade.active {
    box-shadow: inset 0 0 0 1px #e53935;
}
.skin-card-upgrade.active::after,.skin-card-contract.active::after {
    content: '✓'; position: absolute; top: 4px; right: 4px;
    background: #e53935; color: #fff; width: 15px; height: 15px;
    border-radius: 3px; font-size: 9px; display: flex;
    align-items: center; justify-content: center; font-weight: 800;
}

.skin-card-upgrade:hover,.skin-card-contract:hover  { opacity: 0.88; }
.skin-card-upgrade:active { opacity: 0.70; }

.skin-card-empty
{
    cursor: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.empty-search
{
    text-align: center;
}


.skin-card-actions {
    display: flex;
    width: 100%;
    margin-top: auto; 
}

.skin-card-act-item {
    flex: 1;
    height: 30px;
    border: 1px solid rgba(255, 64, 82, 0.25);
    border-bottom: none;
    border-right-width: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.skin-card-act-item:first-of-type {
    border-left: none;
}

.skin-card-act-item:last-of-type {
    border-right: none;
}

.skin-card-act-item:hover {
    background: rgba(255, 64, 82, 0.08);
}

.skin-card-act-item .btn {
    border: none !important;
    border-radius: 0 !important;
    padding: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
}

.skin-card-act-item .btn img {
    width: 13px;
    height: 13px;
}


.act-disabled {
    pointer-events: none;
    opacity: 0.65;
}


.act-btn-used .btn img {
    opacity: 0.25;
}

.skin-card-profile
{
    box-shadow:none;
    border-top:1px solid #161616;
    border-right:1px solid #161616;
    border-left:1px solid #161616;
    width:auto; height:auto;
    align-items:unset;
    margin-top:0;
    position:relative;
    cursor: auto;
}


[data-tooltip] {
    position: relative;
    cursor: pointer;
}


[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
[data-tooltip]:hover::before {
    opacity: 1;
}

[data-tooltip]::after {
    white-space: pre-wrap; 
}

.skin-card-profile .skin-card-img
{
    max-height: unset;
    width: unset;
    max-width: 65%;
}

    
[data-tooltip]::after {
    white-space: pre-wrap; 
}

.media { display: flex; align-items: center; }
.media a { display: flex; align-items: center; }
.media img {
    width: 26px; height: 26px;
    margin: 0 0.25rem;
    opacity: 0.75;
    transition: opacity 0.15s;
}
.media img:hover { opacity: 1; }

.skin-card-withdraw-info
{
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 5px;
}


.tooltip-wrapper {
    position: relative;
    display: inline-flex;
}


.tooltip-wrapper::after {
    content: attr(data-tooltip); 

    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);

    
    width: max-content;
    max-width: 220px;
    padding: 10px 12px;

    
    background: #101010;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 11px;
    font-family: 'SFPro', 'Segoe UI', sans-serif;
    line-height: 1.6;
    white-space: pre-wrap; 

    
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);

    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    transform: translateX(-50%) translateY(4px);

    z-index: 100;
}


.tooltip-wrapper::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);

    border: 5px solid transparent;
    border-top-color: #1e1e1e;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;

    z-index: 101;
}


.tooltip-wrapper:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.tooltip-wrapper:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.skin-card-upgrade,.skin-card-contract {
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    outline: 1px solid transparent;
    border-bottom: 3px solid #5A1A1A26 !important;
}

.result-refund {
    font-family: 'SFPro', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #e5a020;
    letter-spacing: 0.5px;
    background: rgba(229, 160, 32, 0.10);
    border: 1px solid rgba(229, 160, 32, 0.25);
    border-radius: 6px;
    padding: 4px 14px;
    white-space: nowrap;
    animation: fadeIn 0.4s 0.15s ease both; 
}


.result-container {
    height: auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.loss-refund-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 6px 14px;
    background: #e53935;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10000;
    position: relative;
}


@media (max-width: 1341px) {
    .live-drop
    {
        display: none !important;
    }

    .container
    {
        margin-left: unset !important;
    }
}

@media (max-width: 981px) {
    .pl-total {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .pl-main
    {
        width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 500px) {
    .pl-main
    {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 472px) {
    .cases .case-img img {
        width: 190px;
    }

    .cases .case-list .case {
        width: 180px;
    }
    
    .profile-info .pl-total
    {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .cases .case-img img {
        width: 180px;
    }

    .cases .case-list .case {
        width: 170px;
    }
    .pl-main
    {
        width: 100%;
        padding: 0rem;
    }
}

@media (max-width: 395px) {
    .cases .case-img img {
        width: 170px;
    }

    .cases .case-list .case {
        width: 160px;
    }
}

@media (max-width: 370px) {
    .cases .case-img img {
        width: 160px;
    }

    .cases .case-list .case {
        width: 150px;
    }
}

@media (max-width: 550px) {
    .pl-m
    {
        display: flex;
        flex-direction: column;
    }

    .pli-select-item
    {
        padding: 0 !important;
    }

    .pli-header
    {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        display: flex;
        flex-direction: column;
    }

    .pli-select fieldset
    {
        flex-direction: column;
    }
    
    .pl-inventory-wrapper .pn-action
    {
        margin-left: unset;
    }

    .pl-inventory-wrapper .pn-action .btn
    {
        margin-top: 1rem;
        width: 100%;
    }
    
    .profile-info .pn-action
    {
        width: 100%;
    }

    .profile-info .pn-action:first-of-type .btn-solid
    {
        margin-left: 2rem;
    }

    .profile-info .pn-action:first-of-type .btn-dashed
    {
        margin-right: 2rem;
    }
    
    .btn
    {
        width: 100%;
    }

    .pl
    {
        display: flex;
        flex-direction: column;
    }
    
    .promo-timer .timer-label
    {
        display: none;
    }

    .promo-timer .timer-digits
    {
        margin-left: auto;
        margin-right: auto;
    }
    
    .contract-info-panel #canvas-block
    {
        height: 300px;
    }
    
    .open-case .pn-action
    {
        display: flex;
        flex-direction: column;
    }
}

.docs-page {
    min-height: calc(100vh - 70px);
    padding: 1.25rem 2rem 0;
}

.docs-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.docs-head h1 {
    margin: 0;
    font-family: 'SFPro', sans-serif;
    font-weight: 900;
    font-size: 34px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.docs-head p {
    margin: 0.35rem 0 0;
    color: #8f8f8f;
    font-size: 13px;
}

.docs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-item {
    border: 1px solid #1b1b1b;
    border-radius: 10px;
    background: #111111;
    overflow: hidden;
}

.docs-item.open {
    border-color: #ff405235;
}

.docs-trigger {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: 'SFPro', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.docs-trigger:hover,.docs-item:hover {
    background: #151515;
}

.docs-chevron {
    color: #ff4052;
    font-size: 18px;
    line-height: 1;
}

.docs-content {
    border-top: 1px solid #1f1f1f;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-content p {
    margin: 0;
    color: #bfbfbf;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .docs-page {
        padding: 1rem 1rem 0;
    }

    .docs-head h1 {
        font-size: 26px;
    }

    .docs-trigger {
        font-size: 12px;
        padding: 12px 14px;
    }

    .docs-content p {
        font-size: 12px;
    }
}

@media (max-width: 440px) {
    .dm-overlay .dm-window .dm-promo-row
    {
        flex-direction: column;
    }

    .dm-overlay .dm-window .dm-promo-row .dm-promo-btn
    {
        padding: 10px 12px;
    }
    
    .dm-amount-row .dm-currency
    {
        display: none;
    }
}