/* ==========================================================================
   STYLE RADIAL MENU - THEO STYLE NHAKHOASSD.COM (GOLD & DARK MARBLE)
   ========================================================================== */

.style_radialMenu__mF0gI {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 650px;
    height: 650px;
    pointer-events: none;
    z-index: 99999;
    font-family: 'Montserrat', sans-serif;
    user-select: none;
}

/* NÚT BẤM TRUNG TÂM NẰM SÁT MÉP TRÁI */
.style_radialMenu__mF0gI .radial-center-btn {
    position: absolute;
    top: 75%;
    left: 20px;
    width: 208px;
    height: 208px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.style_radialMenu__mF0gI .radial-center-btn:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

/* Vòng sáng vàng kim (Gold Glow Effect) */
.style_radialMenu__mF0gI .gold-halo-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    animation: ssdPulse 3s infinite alternate;
}

@keyframes ssdPulse {
    0% { transform: scale(0.95); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Lõi nút bấm viền kim loại */
.style_radialMenu__mF0gI .btn-inner-core {
    position: absolute;
    inset: 0;
    /* background: radial-gradient(circle at 40% 40%, #201a14 0%, #0c0a08 85%); */
    /* border: 2px solid #dfb76c; */
    /* border-radius: 50%; */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* padding-left: 55px; */
     /* Đẩy icon vào vùng hiển thị bên phải bán nguyệt */
    /* box-shadow: inset 0 0 20px rgba(223, 183, 108, 0.45), 0 0 25px rgba(0, 0, 0, 0.9); */
}

.style_radialMenu__mF0gI .icon-tooth {
    position: relative;
    width: 208px;
    height: 208px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.style_radialMenu__mF0gI .icon-tooth img {
    position: absolute;
    width: 208px;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Trạng thái mặc định: hiện ảnh normal, ẩn ảnh active */
.style_radialMenu__mF0gI .icon-tooth .img-normal {
    opacity: 1;
    transform: scale(1);
}

.style_radialMenu__mF0gI .icon-tooth .img-active {
    opacity: 0;
    transform: scale(0.9);
    filter: drop-shadow(0 0 10px rgba(246, 202, 101, 0.9));
}

/* Khi HOVER vào nút hoặc khi menu đang ACTIVE (Đang mở) */
.style_radialMenu__mF0gI .radial-center-btn:hover .icon-tooth .img-normal,
.style_radialMenu__mF0gI.is-open .icon-tooth .img-normal {
    opacity: 0;
    transform: scale(0.9);
}

.style_radialMenu__mF0gI .radial-center-btn:hover .icon-tooth .img-active,
.style_radialMenu__mF0gI.is-open .icon-tooth .img-active {
    opacity: 1;
    transform: scale(1.08);
}


.style_radialMenu__mF0gI .icon-tooth {
    display: block;
    filter: drop-shadow(0 0 6px rgba(246, 202, 101, 0.8));
    transition: transform 0.3s ease;
}

.style_radialMenu__mF0gI .icon-back {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e5a93b;
    border: 1px solid #ffe89e;
    box-shadow: 0 0 12px rgba(229, 169, 59, 0.8);
}

.style_radialMenu__mF0gI .icon-back svg {
    stroke: #161109;
}

/* CÁC ĐƯỜNG TRÒN QUỸ ĐẠO ĐỒNG TÂM (SSD ORBITS) */
.style_radialMenu__mF0gI .radial-orbit-rings {
    border-radius: 50%;
    position: absolute;
    top: 75%;
    left: 20px;
    width: 170px;
    height: 170px;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(223, 183, 108, 0.3);
}

.style_radialMenu__mF0gI.is-open .radial-orbit-rings {
    opacity: 1;
}

.style_radialMenu__mF0gI .ring {
    position: absolute;
    top: 0;
    left: 20px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(223, 183, 108, 0.3);
}

.style_radialMenu__mF0gI .ring-inner {
    width: 220px;
    height: 220px;
}

.style_radialMenu__mF0gI .ring-middle {
    width: 240px;
    height: 240px;
    border: 1px solid rgba(223, 183, 108, 0.2);
}

.style_radialMenu__mF0gI .ring-outer {
    width: 260px;
    height: 260px;
    border: 1px dashed rgba(223, 183, 108, 0.4);
}

/* VÙNG CHỨA CÁC TIA XOÈ QUẠT */
.style_radialMenu__mF0gI .radial-fan-spokes {
    position: absolute;
    top: 75%;
    left: 20px;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
/* Vùng chứa các tia Menu: Căn trùng tuyệt đối với tâm của #drlong-center-tooth-btn */
#drlong-fan-spokes.radial-fan-spokes {
    position: absolute;
    top: 75%;
    left: 20px;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 999;
}

/* Tia xoay quanh tâm gốc */
.style_radialMenu__mF0gI .radial-spoke-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 420px;
    height: 38px;
    margin-top: -19px; /* Căn giữa tia theo trục Y của tâm */
    transform-origin: 0% 50%; /* Trục quay chuẩn xác tại tâm (0, 0) */
    display: flex;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Chấm tròn Dot: Nằm áp sát viền ngoài bán kính 104px của nút 208px */
.style_radialMenu__mF0gI .spoke-dot {
    width: 8px;
    height: 8px;
    margin-left: 80px; /* 104px (bán kính) - 7px (nửa kích thước dot) = Tâm dot chạm đúng mép viền */
    border-radius: 50%;
    background: #B1A580;
    border: 1px solid #B1A580;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

/* Text menu đi liền ngay sau chấm dot */
.style_radialMenu__mF0gI .spoke-text {
    margin-left: 12px;
    color: #ebd296;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
    white-space: nowrap;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Mũi tên nhỏ nếu có menu con */
.style_radialMenu__mF0gI .spoke-text .arrow {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: #dfb76c;
}

/* Hiệu ứng Hover rực rỡ chuẩn SSD */
.style_radialMenu__mF0gI .radial-spoke-item:hover .spoke-dot {
    background: #ffffff;
    box-shadow: 0 0 16px #ffffff, 0 0 24px #e5a93b;
    transform: scale(1.35);
}

.style_radialMenu__mF0gI .radial-spoke-item:hover .spoke-text {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(246, 202, 101, 0.9), 0 0 20px rgba(246, 202, 101, 0.6);
}

/* Khung chứa Icon trung tâm */
.style_radialMenu__mF0gI .icon-tooth {
    position: relative;
    width: 208px;
    height: 208px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.35s ease-in-out;
}

/* Ảnh răng nằm chính giữa */
.style_radialMenu__mF0gI .icon-tooth .img-tooth {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 126px;
    height: 127px;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

/* Vòng xoay Roundabout */
.style_radialMenu__mF0gI .icon-tooth .roundabout {
    position: absolute;
    top: 0;
    left: 0;
    width: 208px;
    height: 208px;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    animation: spinRoundabout 12s linear infinite;
}

/* Animation xoay 360 độ liên tục */
@keyframes spinRoundabout {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Khi HOVER, FOCUS hoặc ACTIVE / CLICK MỞ MENU */
.style_radialMenu__mF0gI .radial-center-btn:hover .icon-tooth,
.style_radialMenu__mF0gI .radial-center-btn:focus .icon-tooth,
.style_radialMenu__mF0gI .radial-center-btn:focus-within .icon-tooth,
.style_radialMenu__mF0gI.is-open .icon-tooth {
    opacity: 1;
}

/* Tăng tốc độ xoay nhẹ khi active/hover (tùy chọn mượt mà) */
.style_radialMenu__mF0gI .radial-center-btn:hover .roundabout,
.style_radialMenu__mF0gI.is-open .roundabout {
    animation-duration: 8s;
}


/* Nút Back thay thế vị trí dot tại cấp 2 và cấp 3 */
.style_radialMenu__mF0gI .spoke-dot.spoke-btn-back {
    width: 24px;
    height: 24px;
    margin-left: 76px; /* 104px (bán kính) - 12px (nửa kích thước nút) để tâm nút chuẩn mép viền */
    border-radius: 50%;
    background: #e5a93b;
    border: 2px solid #ffe89e;
    box-shadow: 0 0 12px rgba(229, 169, 59, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.style_radialMenu__mF0gI .spoke-dot.spoke-btn-back svg {
    display: block;
    pointer-events: none;
}

/* Hover vào nút Back */
.style_radialMenu__mF0gI .spoke-dot.spoke-btn-back:hover {
    background: #ffc252;
    transform: scale(1.25);
    box-shadow: 0 0 16px rgba(255, 194, 82, 1);
}

/* Trạng thái Active của Menu Item */
.style_radialMenu__mF0gI .radial-spoke-item.active .spoke-dot {
        background: #ffffff;
    box-shadow: 0 0 16px #ffffff, 0 0 24px #e5a93b;
    transform: scale(1.35);
}

.style_radialMenu__mF0gI .radial-spoke-item.active .spoke-text {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(246, 202, 101, 0.9), 0 0 20px rgba(246, 202, 101, 0.6);

}

.style_radialMenu__mF0gI .radial-spoke-item.active .arrow {
    color: #ffb834;
}

/* MENU RADIAN SHOW IMAGE */
/* Khóa cuộn trang body */
body.menu-body-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

/* Lớp hiển thị ảnh nền toàn màn hình */
.radial-fullscreen-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99990; /* Nằm ngay dưới menu (menu có z-index: 99999) */
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.radial-fullscreen-preview.is-visible {
    opacity: 1;
}

/* Ảnh minh họa với hiệu ứng zoom chậm */
.radial-fullscreen-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.6) contrast(1.1); /* Hạ sáng để text menu nổi bật */
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.radial-fullscreen-preview.is-visible img {
    transform: scale(1);
}

.radial-fullscreen-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.6) contrast(1.1);
    transform: scale(1.05);
    transition: opacity 0.35s ease, transform 4s ease-out;
}

.radial-fullscreen-preview.is-visible img {
    transform: scale(1);
}



/* Trục nan quạt bắt đầu chính xác từ tâm nút bên trái */
.style_radialMenu__mF0gI .radial-spoke-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 440px;
    height: 38px;
    margin-top: -19px; /* Căn thẳng hàng tâm Y */
    transform-origin: 0% 50%;
    display: flex;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Item Active: Nằm ngang hoàn toàn, text và dot giữ màu vàng gold nổi bật */
.style_radialMenu__mF0gI .radial-spoke-item.active {
    z-index: 10;
}

.style_radialMenu__mF0gI .radial-spoke-item.active .spoke-text {
   
/* } */
#drlong-fan-spokes.radial-fan-spokes {
    cursor: grab;
}
#drlong-fan-spokes.radial-fan-spokes:active {
    cursor: grabbing;
}

@media screen and (max-width: 768px){
    .style_radialMenu__mF0gI .radial-center-btn{
        width: 160px;
        height: 160px;
    }
    .style_radialMenu__mF0gI .icon-tooth{
        width: 160px;
        height: 160px;
    }
    .style_radialMenu__mF0gI .icon-tooth .roundabout{
        width: 160px;
        height: 160px;
    }
    .style_radialMenu__mF0gI .icon-tooth .img-tooth{
         width: 80px;
        height: 80px;
    }

    .style_radialMenu__mF0gI .radial-orbit-rings{
        width: 130px;
        height: 130px;
    }
    .style_radialMenu__mF0gI .spoke-dot{
        margin-left: 61px;
    }
    .style_radialMenu__mF0gI .spoke-dot.spoke-btn-back{
        margin-left: 57px;
    }
}