/* Donate Shop Styles */
.donate-container {
    background: linear-gradient(to bottom, rgba(22, 26, 46, 0.9), rgba(16, 17, 29, 0.8));
    border-radius: 20px;
    padding: 20px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.donate-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #3d4caa, #4857a0, #5a68c0, #3d4caa);
    background-size: 200% 100%;
    animation: gradientMove 5s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.donate-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.btn-back {
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(61, 76, 170, 0.3);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: rgba(61, 76, 170, 0.6);
    transform: translateX(-3px);
}

.donate-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #a0a8e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(61, 76, 170, 0.3);
}

.donate-subtitle {
    color: #9a9eae;
    font-size: 14px;
}

.donate-categories {
    display: flex;
    background: rgba(34, 38, 57, 0.6);
    border-radius: 15px;
    padding: 4px;
    margin-bottom: 20px;
}

.donate-category {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donate-category:hover {
    background: rgba(61, 76, 170, 0.3);
}

.donate-category.active {
    background: rgba(61, 76, 170, 0.8);
    box-shadow: 0 4px 15px rgba(61, 76, 170, 0.3);
}

.donate-category.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.donate-items-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 76, 170, 0.6) rgba(34, 38, 57, 0.3);
}

.donate-items-container::-webkit-scrollbar {
    width: 6px;
}

.donate-items-container::-webkit-scrollbar-track {
    background: rgba(34, 38, 57, 0.3);
    border-radius: 10px;
}

.donate-items-container::-webkit-scrollbar-thumb {
    background-color: rgba(61, 76, 170, 0.6);
    border-radius: 10px;
}

.donate-category-content {
    display: none;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donate-category-content.active {
    display: block;
}

.donate-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.donate-item {
    background: rgba(34, 38, 57, 0.6);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(61, 76, 170, 0.2);
}

.donate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(90, 104, 192, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(61, 76, 170, 0.5);
}

.item-hover::before {
    opacity: 1;
}

.donate-item-image {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.donate-item-image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.item-hover .donate-item-image img {
    transform: scale(1.05);
}

.donate-item-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #e63946, #ff5963);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(230, 57, 70, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.donate-item-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.donate-item-description {
    color: #9a9eae;
    font-size: 13px;
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.4;
}

.donate-item-price {
    font-weight: 700;
    font-size: 20px;
    color: #4caf50;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* .btn {
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
} */

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-donate {
    background: linear-gradient(to right, #3d4caa, #5a68c0);
    color: white;
    margin-bottom: 8px;
}

.btn-donate:hover {
    background: linear-gradient(to right, #333d8a, #4857a0);
    box-shadow: 0 4px 15px rgba(61, 76, 170, 0.3);
}

.btn-pressed {
    transform: scale(0.95);
    opacity: 0.9;
}

.btn-preview {
    background: rgba(255, 255, 255, 0.1);
    color: #9a9eae;
}

.btn-preview:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.case-item {
    padding-bottom: 8px;
}

/* Case Preview Modal */
/* Modal Styles */
.case-preview-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(to bottom, rgba(34, 38, 57, 0.95), rgba(16, 17, 29, 0.9));
    border-radius: 20px;
    padding: 25px;
    max-width: 90%;
    width: 600px;
    max-height: 80vh;
    color: white;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #9a9eae;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: white;
}

.modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(to right, #fff, #a0a8e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(61, 76, 170, 0.3);
}

.case-items-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.case-item-preview {
    background: rgba(34, 38, 57, 0.7);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(61, 76, 170, 0.2);
}

.case-item-preview:hover {
    transform: translateY(-5px);
    background: rgba(61, 76, 170, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.case-item-preview img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}

.chance {
    font-weight: 700;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
}

.common {
    color: white;
    background: linear-gradient(135deg, #9e9e9e, #707070);
}

.uncommon {
    color: white;
    background: linear-gradient(135deg, #2196f3, #0d47a1);
}

.rare {
    color: white;
    background: linear-gradient(135deg, #9c27b0, #4a148c);
}

.epic {
    color: white;
    background: linear-gradient(135deg, #ff9800, #e65100);
}

.legendary {
    color: white;
    background: linear-gradient(135deg, #f44336, #b71c1c);
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(244, 67, 54, 0.5);
    }
    to {
        box-shadow: 0 0 15px rgba(244, 67, 54, 0.8);
    }
}

/* Main menu restored style (placeholder) */
.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 20px;
    color: white;
    text-align: center;
    padding: 50px;
}

/* Navigation buttons active state */
.nav-buttons .btn.active {
    background: rgba(61, 76, 170, 0.8);
    box-shadow: 0 4px 15px rgba(61, 76, 170, 0.3);
}

/* Ensures smooth transitions between pages */
.menu-content {
    transition: all 0.3s ease;
}