.rating-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(16, 18, 18, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.rating-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1c1f17, #101214);
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 380px;
    animation: fadeInScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow:
        0 0 8px 1px rgba(126, 194, 10, 0.25),
        0 12px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(126, 194, 10, 0.2);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-logo {
    width: 85px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(126, 194, 10, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.modal-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(126, 194, 10, 0.7));
}

.rating-modal h2 {
    color: #e5e8d7;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 25px;
    padding: 0 15px;
}

.close-modal {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    line-height: 0.6;
    height: 32px;
    width: 32px;
    border-radius: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: rotate(90deg);
}


.stars {
    margin: 5px 0 20px;
    padding: 5px 0;
}

.star {
    font-size: 38px;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    margin: 0 3px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.star:hover {
    transform: scale(1.15) translateY(-2px);
    background-image: linear-gradient(180deg, rgba(126, 194, 10, 0.8) 0%, rgba(126, 194, 10, 0.5) 100%);
}

.star.active {
    background-image: linear-gradient(180deg, #8fbf36 0%, #699923 100%);
    animation: starPop 0.4s cubic-bezier(0.36, 0, 0.66, 1.54) forwards;
    filter: drop-shadow(0 0 6px rgba(126, 194, 10, 0.6));
}

.message {
    color: #8fbf36;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    visibility: hidden;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.gift-button {
    display: inline-block;
    background: linear-gradient(180deg, #a5cd4b 0%, #799c2f 100%);
    color: #101212;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    box-shadow: 0 3px 8px rgba(126, 194, 10, 0.3);
}

.gift-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(126, 194, 10, 0.5);
}

.gift-button:active {
    transform: translateY(0);
}
