 /* Дополнительные стили для Crash (добавить в существующий style) */
.btn-bettt-J.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.btn-bettt-J.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 15px;
    margin-top: -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.notification-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 10001;
    font-size: 14px;
    white-space: nowrap;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.notification-toast.success {
    background: rgb(97, 207, 53);
}

.notification-toast.error {
    background: rgb(207, 53, 53);
}

.notification-toast.warning {
    background: rgb(255, 193, 7);
}

    #BetSizeCrash {
        display: block;
        width: 1;
        padding: 6px .75rem !important;
        text-align: center;
        font-size: 22px;
        font-weight: 600;
        line-height: 1.4285714;
        color: #ffffff !important;
        background-color: #0f0f0f !important;
        background-clip: padding-box;
        border: 1px solid #212124 !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 1rem;
        transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
        outline: none !important;
        box-shadow: none !important;
        height: 62px;
    }

    .game-barer-crash {
        height: 450px;
    }

    .history-x {
        overflow: auto;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* Internet Explorer и Edge */
    }

    .history-x::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
        width: 0;
        height: 0;
    }

    .timerCrash {
        border-radius: 10px;
        color: #ffffff;
        font-size: 82px;
        font-weight: 600;
        top: 43%;
        left: 50%;
        margin-right: -50%;
        transform: translate(-50%, -50%);
        position: absolute;
        width: auto;
        display: flex;
        align-items: center;
        gap: 4px;
    }


    .BoomCrash {
        border-radius: 10px;
        color: #f12323;
        font-size: 82px;
        font-weight: 600;
        top: 43%;
        left: 50%;
        margin-right: -50%;
        position: absolute;
        width: auto;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .CrashinGame,
    .CrashBoom {
        top: 43%;
        left: 50%;
        transform: translate(-50%, -50%);
        position: absolute;
        width: auto;
        display: flex;
        align-items: center;
        transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    }

    .BoomCrash{
        transform: translate(-50%, -50%) scale(0) !important;
        opacity: 0 !important;
    }

        .BoomCrash.fly {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1 !important;
    }

    /* Класс, который добавляется при улете */
.CrashinGame.fly {
  transform: translate(300px, -400px);
  /* Вправо (X), Вверх (Y — отрицательное значение) */
  opacity: 0;
  /* Чтобы исчезал (опционально) */
}

    .min-x {
        font-weight: 500;
        font-size: 13px;
        padding: 5px 13px;
        border-radius: .7rem;
        background: #E31B1E30;
        border: 1px solid #E31B1E;
    }

    .medium-x {
        font-weight: 500;
        font-size: 13px;
        padding: 5px 13px;
        border-radius: .7rem;
        background: #0077FF30;
        border: 1px solid #0077FF;
    }

    .hard-x {
        font-weight: 500;
        font-size: 13px;
        padding: 5px 13px;
        border-radius: .7rem;
        background: #E31B7830;
        border: 1px solid #E31B78;
    }

    .max-x {
        font-weight: 500;
        font-size: 13px;
        padding: 5px 13px;
        border-radius: .7rem;
        background: #90E31B30;
        border: 1px solid #90E31B;
    }

    .default-x {
        font-weight: 500;
        font-size: 13px;
        padding: 5px 13px;
        border-radius: .7rem;
        background: #FFCC0030;
        border: 1px solid #FFCC00;
    }

    .bg-crash-bottom {
        position: absolute;
        width: 100%;
        bottom: 0;
        left: 0;
    }

.bg-crash-top {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transform: rotate(180.3deg);
    margin-top: -50px;
}

.usr-money.win {
    color: #61cf35;
}

.usr-money.lose {
    color: #cf3535;
}

 /* Apple-style modal */
    .apple-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.24);
        backdrop-filter: blur(8px);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .apple-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .apple-modal-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(28, 28, 32, 0.98);
        backdrop-filter: blur(30px);
        border-radius: 2rem;
        padding: 24px 20px 30px;
        z-index: 10001;
        transform: translateY(100%) scale(.6);
        transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
        border: 0.5px solid rgba(255, 255, 255, 0.1);
        margin: 14px;
    }
    .apple-modal-container.active {
        transform: translateY(0) scale(1);
    }
    .apple-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 8px;
    }
    .apple-modal-header h5 {
        font-size: 24px;
        font-weight: 600;
        margin: 0;
        color: white;
        height: 20px;
        padding-bottom: 0px;
        margin-bottom: 0px;
    }
    .close-apple-modal {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: 0.2s;
    }
    .close-apple-modal:hover {
        background: rgba(255, 255, 255, 0.35);
        transform: scale(0.96);
    }
    .setting-row {
        
        border-radius: 18px;
        padding: 14px 18px;
        margin-bottom: 20px;
    }
    .setting-label {
        font-size: 17px;
        font-weight: 500;
        margin-bottom: 12px;
        color: white;
    }
    .free-panel {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
    }
    .auto-limit {
        background: #323238;
        border: 1px solid #2c2c30;
        border-radius: 1rem;
        padding: 12px 18px;
        color: white;
        font-size: 18px;
        width: 50%;
        font-weight: 600;
        text-align: center;
        outline: none;
    }

    .btn-def-blue {
        background: #0a84ff;
        border: none;
        border-radius: 1.2rem ;
        padding: 18px;
        font-weight: 600;
        font-size: 18px;
        color: white;
        transition: 0.2s;
        width: 100%;
    }
    .btn-def-blue:active {
        transform: scale(0.97);
    }

    .user-lvl-svg {
        position: absolute;
        top: 0px;
        left: 0px;
        transform: translateY(-27px) translateX(-5px) scale(.9);
        z-index: 2;
    }