.body-dark-mode {
    background: #1e1e29;
}

.intiserver-xstyle-imghovertransition img:hover {
    transition: 0.5s;
    transform: scale(1.1);
}

.intiserver-xstyle-imghoverbreath img:hover {
    animation: intiserver-xkeyframes-breath 0.5s;
    animation-iteration-count: infinite;
}

.intiserver-xstyle-imghovershake img:hover {
    animation: intiserver-xkeyframes-shake 0.5s;
    animation-iteration-count: infinite;
}

.intiserver-xstyle-imgshaking {
    /*Keyframes looping animation while hovering*/
    animation: intiserver-xkeyframes-shake 0.5s;
    animation-iteration-count: infinite;
}

@keyframes intiserver-xkeyframes-shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes intiserver-xkeyframes-breath {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.bxnimated {
    animation: bounce 1s infinite;
}

@keyframes fogEffect {
    0% {
        transform: translatey(0px);
        opacity: 1;
    }
    50% {
        transform: translatey(-10px);
        opacity: 0.5;
    }
    100% {
        transform: translatey(0px);
        opacity: 1;
    }
}

.bxnimated2 {
    animation: fogEffect 2.5s infinite;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Black with transparency */
    z-index: 100; /* Ensure it appears above other elements */
    display: none; /* Hidden by default */
}

#modal_close {
    background-color: #2c2c3c;
}

.form-check-input:checked {
    background-color: #2c2c3c;
}

.input-decoration-none:focus {
    outline: none; /* Removes the default outline */
    box-shadow: none; /* Disables the shadow effect */
}

/* ========================================
   Premium Rank Perks Modal 
   FINAL VERIFIED SOLUTION
   ======================================== */

.rank-perks-modal {
    position: relative;
    border-radius: 12px !important;
    background: #2c2c3c !important;
    /* box-shadow: 0 0 0 3px #6b46c1 !important; */
    animation: borderColorShift 3s linear infinite !important;
    overflow: hidden !important;
}

/* Header - CRITICAL: Remove margin and balance padding */
.rank-perks-modal > .modal-header {
    background: #32323f !important;
    border-bottom: none !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    margin: 0 !important; /* FIX: Remove Bootstrap's margin-top */
    padding: 1.25rem 1.5rem !important; /* FIX: Balanced padding */
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    z-index: 2 !important; /* Above shine */
}

/* Close button - vertically centered */
.rank-perks-modal .modal-header .btn-close {
    margin: 0 !important;
    padding: 0.5rem !important;
    align-self: center !important;
}

/* Subtitle spacing */
.rank-perks-modal .modal-header p {
    margin-bottom: 0.5rem !important;
}

/* Body */
.rank-perks-modal > .modal-body {
    background: #2c2c3c !important;
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    position: relative !important;
    z-index: 2 !important; /* Above shine */
}

/* Border color animation */
@keyframes borderColorShift {
    0% { box-shadow: 0 0 0 4px #6b46c1; }
    25% { box-shadow: 0 0 0 4px #9333ea; }
    50% { box-shadow: 0 0 0 4px #e3c7ff; }
    75% { box-shadow: 0 0 0 4px #9333ea; }
    100% { box-shadow: 0 0 0 4px #6b46c1; }
}

/* Shine movement */
@keyframes shineMove {
    0% { left: -50%; }
    100% { left: 150%; }
}
