/* ================== AssistiveTouch Floating Button ================== */

#oc-assistive-btn {
    position: fixed;
    right: 18px;
    bottom: 120px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #facc15, #f97316);
    box-shadow: 0 10px 25px rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 9999;
    opacity: .6;
    transition: opacity .15s, transform .1s, box-shadow .1s;
    user-select: none;
}

#oc-assistive-btn:hover {
    opacity: 1;
    box-shadow: 0 14px 30px rgba(0,0,0,.6);
    transform: translateY(-1px);
}

#oc-assistive-btn.oc-dragging {
    opacity: 1 !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.7);
    transform: scale(1.02);
}

#oc-assistive-btn span {
    pointer-events: none;
}

/* ================== AssistiveTouch Menu ================== */

#oc-assistive-menu {
    position: fixed;
    left: 0;
    top: 0;
    right: auto;
    bottom: auto;

    background: rgba(15,23,42,.96);
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,.6);
    box-shadow: 0 18px 40px rgba(15,23,42,.9);
    padding: 8px 10px;
    z-index: 9999;
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    display: none;
    min-width: 190px;
}

#oc-assistive-menu::before {
    content: "";
    position: absolute;
    right: -6px;           /* mũi tên chĩa về phía nút */
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: inherit;
    border-right: inherit;
    border-bottom: inherit;
}

/* menu item */

.oc-menu-item {
    padding: 8px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: background .12s, color .12s;
    white-space: nowrap;
}

.oc-menu-item span {
    font-size: 11px;
    opacity: .7;
}

.oc-menu-item:hover {
    background: rgba(55,65,81,.9);
    color: #f9fafb;
}

.oc-menu-item-danger:hover {
    background: rgba(248,113,113,.09);
    color: #fecaca;
}

/* ================== Responsive ================== */

@media (max-width: 768px) {
    #oc-assistive-btn {
        width: 46px;
        height: 46px;
        right: 12px;
        bottom: 90px;
    }
}
