.rozemental-circular-menu {
    position: relative;
    width: calc(2 * var(--radius));
    height: calc(2 * var(--radius));
    margin: 0 auto;
    display: inline-block;
    transform-style: preserve-3d;
}

.rozemental-center-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.02);
    z-index: 1;
    pointer-events: none;
}

.rozemental-orbit {
    /* ... */
    transform: translate(-50%, -50%) !important;
    /* ... */
}

@keyframes orbitRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* ✅ فقط rotate تغییر می‌کند */
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.rozemental-item {
    position: absolute;
    width: var(--item-size);
    height: var(--item-size);
    border-radius: 50%;
    background: #F8B5AC !important;
    /* ✅ اجباری */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #4A4A4A;
    font-weight: 500;
    transform:
        rotate(var(--angle)) translate(calc(var(--radius) - var(--item-size) / 2)) rotate(calc(-1 * var(--angle)));
    animation: counterRotate 90s linear infinite;
    z-index: 10;
    /* ✅ بالاتر از مدار */
    transition: all 0.35s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform-origin: center;
    will-change: transform;
}

.rozemental-item img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    border-radius: 50%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.rozemental-item span {
    color: #4A4A4A;
    font-size: 14px;
    text-align: center;
    padding: 6px;
    line-height: 1.3;
    font-weight: 600;
}

.rozemental-item:hover {
    transform:
        rotate(var(--angle)) translate(calc(var(--radius) - 10px)) rotate(calc(-1 * var(--angle)));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    z-index: 20;
    /* ✅ بالاتر از همه */
    background: #E49A93 !important;
    /* ✅ اجباری */
}

.rozemental-circular-menu:hover .rozemental-orbit,
.rozemental-circular-menu:hover .rozemental-item {
    animation-play-state: paused;
}

@keyframes orbitRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes counterRotate {
    0% {
        transform: rotate(var(--angle)) translate(calc(var(--radius) - var(--item-size) / 2)) rotate(calc(-1 * var(--angle)));
    }

    100% {
        transform: rotate(calc(var(--angle) + 360deg)) translate(calc(var(--radius) - var(--item-size) / 2)) rotate(calc(-1 * var(--angle) - 360deg));
    }
}

@media (prefers-reduced-motion: reduce) {

    .rozemental-orbit,
    .rozemental-item {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .rozemental-circular-menu {
        width: 100%;
        min-height: 320px;
    }

    .rozemental-center-ring {
        width: 70px;
        height: 70px;
    }

    .rozemental-orbit {
        position: static;
        animation: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 24px;
        transform: none;
    }

    .rozemental-item {
        position: static;
        transform: none !important;
        animation: none;
        width: 100px;
        height: 100px;
        font-size: 14px;
    }

    .rozemental-item img {
        width: 75%;
        height: 75%;
    }
}